From da737eeba5ff1de50d7c935aca97bce30b1d6a7d Mon Sep 17 00:00:00 2001 From: Somebody Date: Wed, 31 Jan 2024 16:15:30 +0800 Subject: [PATCH] Implement Simulated Universe --- .../proto/AKKLFHFHPFNOuterClass.java | 418 ++++++ .../proto/BELMNIPGEDNOuterClass.java | 498 +++++++ .../proto/CommonRogueQueryOuterClass.java | 383 +++++ .../CommonRogueQueryScRspOuterClass.java | 362 +++++ .../CommonRogueUpdateScNotifyOuterClass.java | 305 ++++ .../proto/DMBBFODODOFOuterClass.java | 358 +++++ .../EnterRogueMapRoomCsReqOuterClass.java | 166 +-- .../EnterRogueMapRoomScRspOuterClass.java | 190 +-- .../proto/FirstNpcTalkInfoOuterClass.java | 340 +++++ .../proto/GetFirstTalkNpcCsReqOuterClass.java | 301 ++++ .../proto/GetFirstTalkNpcScRspOuterClass.java | 377 +++++ ...gueCommonPendingActionCsReqOuterClass.java | 671 +++++++++ ...gueCommonPendingActionScRspOuterClass.java | 829 +++++++++++ .../lunarcore/proto/ItemCostOuterClass.java | 334 ++++- .../proto/JHAHJFNNGHIOuterClass.java | 600 ++++++++ .../proto/KDHBAHABJMPOuterClass.java | 598 ++++++++ .../proto/LMDFPHAHJGLOuterClass.java | 299 ++++ .../proto/LeaveRogueScRspOuterClass.java | 282 ++-- .../proto/MECNPEEJJDEOuterClass.java | 278 ++++ .../proto/NpcExtraInfoOuterClass.java | 16 +- .../proto/NpcRogueInfoOuterClass.java | 966 +++++++++++- .../proto/OONJMMOMFHLOuterClass.java | 292 ++++ .../proto/PickRogueAvatarCsReqOuterClass.java | 301 ++++ .../proto/PickRogueAvatarScRspOuterClass.java | 301 ++++ .../proto/PropAeonInfoOuterClass.java | 421 ++++++ .../proto/PropExtraInfoOuterClass.java | 138 +- .../proto/PropRogueInfoOuterClass.java | 166 +-- .../proto/RogueActionOuterClass.java | 566 +++++++ .../RogueActionResultDataOuterClass.java | 571 +++++++ .../proto/RogueActionResultOuterClass.java | 395 +++++ .../proto/RogueAeonInfoOuterClass.java | 291 ++-- .../lunarcore/proto/RogueAeonOuterClass.java | 419 ++++++ .../proto/RogueAreaInfoOuterClass.java | 293 ++++ .../lunarcore/proto/RogueAreaOuterClass.java | 448 ++---- .../proto/RogueAvatarInfoOuterClass.java | 926 +++++++++++- .../proto/RogueBonusSelectInfoOuterClass.java | 301 ++++ .../proto/RogueBonusSelectOuterClass.java | 174 +++ .../RogueBonusSelectResultOuterClass.java | 260 ++++ .../proto/RogueBuffDataOuterClass.java | 339 +++++ .../proto/RogueBuffInfoOuterClass.java | 137 +- .../lunarcore/proto/RogueBuffOuterClass.java | 14 +- .../proto/RogueBuffRollInfoOuterClass.java | 174 +++ .../proto/RogueBuffSelectOuterClass.java | 174 +++ .../proto/RogueCommonBuffOuterClass.java | 340 +++++ .../RogueCommonBuffSelectInfoOuterClass.java | 1324 +++++++++++++++++ ...RogueCommonBuffSelectResultOuterClass.java | 261 ++++ .../RogueCommonPendingActionOuterClass.java | 381 +++++ .../proto/RogueCurrentInfoOuterClass.java | 785 +++++++--- .../proto/RogueDialogueEventOuterClass.java | 741 +++++++++ .../RogueDialogueEventParamOuterClass.java | 584 ++++++++ .../proto/RogueFinishInfoOuterClass.java | 1315 +++++++++++----- .../proto/RogueHandbookBuffOuterClass.java | 260 ++++ .../proto/RogueHandbookDataOuterClass.java | 354 ++++- .../proto/RogueHandbookEventOuterClass.java | 462 ++++++ .../proto/RogueHandbookMiracleOuterClass.java | 341 +++++ .../proto/RogueInfoDataOuterClass.java | 341 ++++- .../lunarcore/proto/RogueInfoOuterClass.java | 1294 ++-------------- .../proto/RogueMapInfoOuterClass.java | 300 ++-- .../proto/RogueMiracleDataInfoOuterClass.java | 939 ++++++++++++ .../proto/RogueMiracleDataOuterClass.java | 281 ++++ .../proto/RogueMiracleInfoDataOuterClass.java | 458 ++++++ .../proto/RogueMiracleInfoOuterClass.java | 129 +- .../proto/RogueMiracleOuterClass.java | 381 +++-- .../RogueMiracleSelectInfoOuterClass.java | 411 +++-- .../proto/RogueMiracleSelectOuterClass.java | 174 +++ .../RogueMiracleSelectResultOuterClass.java | 260 ++++ .../lunarcore/proto/RogueQueryOuterClass.java | 299 ++++ .../proto/RogueRecordAvatarOuterClass.java | 186 +-- .../proto/RogueRecordInfoOuterClass.java | 268 ++-- .../proto/RogueRerollBuffOuterClass.java | 283 ++++ .../proto/RogueRoomInfoOuterClass.java | 494 ++++++ .../lunarcore/proto/RogueRoomOuterClass.java | 230 +-- .../proto/RogueScoreRewardInfoOuterClass.java | 354 ++++- .../proto/RogueSeasonInfoOuterClass.java | 46 +- .../proto/RogueUpdateOuterClass.java | 419 ++++++ .../proto/RogueVirtualItemInfoOuterClass.java | 294 +--- .../proto/RogueVirtualItemOuterClass.java | 499 +++++++ ...lectRogueDialogueEventCsReqOuterClass.java | 97 +- ...lectRogueDialogueEventScRspOuterClass.java | 279 +++- .../proto/StartRogueCsReqOuterClass.java | 282 ++-- .../proto/StartRogueScRspOuterClass.java | 246 +-- ...eCommonActionResultScNotifyOuterClass.java | 387 +++++ ...CommonPendingActionScNotifyOuterClass.java | 370 +++++ ...ueDialogueEventDataScNotifyOuterClass.java | 303 ++++ .../SyncRogueFinishScNotifyOuterClass.java | 16 +- .../SyncRogueMapRoomScNotifyOuterClass.java | 32 +- .../SyncRogueStatusScNotifyOuterClass.java | 293 ++++ ...ogueVirtualItemInfoScNotifyOuterClass.java | 16 +- .../java/emu/lunarcore/GameConstants.java | 2 +- .../java/emu/lunarcore/data/GameData.java | 1 + .../java/emu/lunarcore/data/GameDepot.java | 1 + .../data/excel/DialogueEventExcel.java | 33 + .../lunarcore/data/excel/RogueBonusExcel.java | 25 + .../lunarcore/data/excel/RogueBuffExcel.java | 2 +- .../data/excel/RogueMiracleExcel.java | 4 +- .../lunarcore/data/excel/RogueNPCExcel.java | 2 +- .../lunarcore/game/battle/BattleService.java | 22 + .../game/enums/DialogueEventCostType.java | 19 + .../game/enums/DialogueEventType.java | 59 + .../emu/lunarcore/game/player/Player.java | 8 +- .../lunarcore/game/rogue/RogueBonusData.java | 14 + .../game/rogue/RogueBonusSelectMenu.java | 55 + .../lunarcore/game/rogue/RogueBuffData.java | 18 + .../game/rogue/RogueBuffSelectMenu.java | 24 +- .../lunarcore/game/rogue/RogueBuffType.java | 5 +- .../game/rogue/RogueEntityLoader.java | 17 + .../game/rogue/RogueEventManager.java | 52 + .../lunarcore/game/rogue/RogueInstance.java | 191 ++- .../lunarcore/game/rogue/RogueManager.java | 73 +- .../game/rogue/RogueMiracleData.java | 16 + .../game/rogue/RogueMiracleSelectMenu.java | 4 +- .../game/scene/entity/EntityNpc.java | 2 +- .../HandlerFinishRogueDialogueGroupCsReq.java | 14 + ...erHandleRogueCommonPendingActionCsReq.java | 26 + .../recv/HandlerPickRogueAvatarCsReq.java | 17 + .../recv/HandlerRollRogueBuffCsReq.java | 24 - .../recv/HandlerSelectRogueBuffCsReq.java | 30 - .../HandlerSelectRogueDialogueEventCsReq.java | 3 +- .../recv/HandlerSelectRogueMiracleCsReq.java | 30 - .../send/PacketAddRogueBuffScNotify.java | 20 - .../send/PacketAddRogueMiracleScNotify.java | 20 - .../PacketGetRogueScoreRewardInfoScRsp.java | 13 +- ...etHandleRogueCommonPendingActionScRsp.java | 31 + .../send/PacketPickRogueAvatarScRsp.java | 21 + .../packet/send/PacketRollRogueBuffScRsp.java | 23 - .../send/PacketSelectRogueBuffScRsp.java | 26 - .../PacketSelectRogueDialogueEventScRsp.java | 30 +- ...PacketSyncRogueBuffSelectInfoScNotify.java | 18 - ...etSyncRogueCommonActionResultScNotify.java | 38 + ...tSyncRogueCommonPendingActionScNotify.java | 48 + ...ketSyncRogueDialogueEventDataScNotify.java | 27 + 131 files changed, 29850 insertions(+), 4739 deletions(-) create mode 100644 src/generated/main/emu/lunarcore/proto/AKKLFHFHPFNOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/BELMNIPGEDNOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/CommonRogueQueryOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/CommonRogueQueryScRspOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/CommonRogueUpdateScNotifyOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/DMBBFODODOFOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/FirstNpcTalkInfoOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/GetFirstTalkNpcCsReqOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/GetFirstTalkNpcScRspOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/HandleRogueCommonPendingActionCsReqOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/HandleRogueCommonPendingActionScRspOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/JHAHJFNNGHIOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/KDHBAHABJMPOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/LMDFPHAHJGLOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/MECNPEEJJDEOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/OONJMMOMFHLOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/PickRogueAvatarCsReqOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/PickRogueAvatarScRspOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/PropAeonInfoOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/RogueActionOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/RogueActionResultDataOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/RogueActionResultOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/RogueAeonOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/RogueAreaInfoOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/RogueBonusSelectInfoOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/RogueBonusSelectOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/RogueBonusSelectResultOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/RogueBuffDataOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/RogueBuffRollInfoOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/RogueBuffSelectOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/RogueCommonBuffOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/RogueCommonBuffSelectInfoOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/RogueCommonBuffSelectResultOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/RogueCommonPendingActionOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/RogueDialogueEventOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/RogueDialogueEventParamOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/RogueHandbookBuffOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/RogueHandbookEventOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/RogueHandbookMiracleOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/RogueMiracleDataInfoOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/RogueMiracleDataOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/RogueMiracleInfoDataOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/RogueMiracleSelectOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/RogueMiracleSelectResultOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/RogueQueryOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/RogueRerollBuffOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/RogueRoomInfoOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/RogueUpdateOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/RogueVirtualItemOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/SyncRogueCommonActionResultScNotifyOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/SyncRogueCommonPendingActionScNotifyOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/SyncRogueDialogueEventDataScNotifyOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/SyncRogueStatusScNotifyOuterClass.java create mode 100644 src/main/java/emu/lunarcore/data/excel/DialogueEventExcel.java create mode 100644 src/main/java/emu/lunarcore/data/excel/RogueBonusExcel.java create mode 100644 src/main/java/emu/lunarcore/game/enums/DialogueEventCostType.java create mode 100644 src/main/java/emu/lunarcore/game/enums/DialogueEventType.java create mode 100644 src/main/java/emu/lunarcore/game/rogue/RogueBonusData.java create mode 100644 src/main/java/emu/lunarcore/game/rogue/RogueBonusSelectMenu.java create mode 100644 src/main/java/emu/lunarcore/game/rogue/RogueEventManager.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerFinishRogueDialogueGroupCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerHandleRogueCommonPendingActionCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerPickRogueAvatarCsReq.java delete mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerRollRogueBuffCsReq.java delete mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerSelectRogueBuffCsReq.java delete mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerSelectRogueMiracleCsReq.java delete mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketAddRogueBuffScNotify.java delete mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketAddRogueMiracleScNotify.java create mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketHandleRogueCommonPendingActionScRsp.java create mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketPickRogueAvatarScRsp.java delete mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketRollRogueBuffScRsp.java delete mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketSelectRogueBuffScRsp.java delete mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueBuffSelectInfoScNotify.java create mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueCommonActionResultScNotify.java create mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueCommonPendingActionScNotify.java create mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueDialogueEventDataScNotify.java diff --git a/src/generated/main/emu/lunarcore/proto/AKKLFHFHPFNOuterClass.java b/src/generated/main/emu/lunarcore/proto/AKKLFHFHPFNOuterClass.java new file mode 100644 index 0000000..0351757 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/AKKLFHFHPFNOuterClass.java @@ -0,0 +1,418 @@ +// 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 AKKLFHFHPFNOuterClass { + /** + * Protobuf type {@code AKKLFHFHPFN} + */ + public static final class AKKLFHFHPFN extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 JPEBPGIEGPO = 7; + */ + private int jPEBPGIEGPO; + + /** + * optional uint32 OFBCBEIEAEC = 10; + */ + private int oFBCBEIEAEC; + + /** + * optional bool CGAFFPHCNEA = 12; + */ + private boolean cGAFFPHCNEA; + + private AKKLFHFHPFN() { + } + + /** + * @return a new empty instance of {@code AKKLFHFHPFN} + */ + public static AKKLFHFHPFN newInstance() { + return new AKKLFHFHPFN(); + } + + /** + * optional uint32 JPEBPGIEGPO = 7; + * @return whether the jPEBPGIEGPO field is set + */ + public boolean hasJPEBPGIEGPO() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 JPEBPGIEGPO = 7; + * @return this + */ + public AKKLFHFHPFN clearJPEBPGIEGPO() { + bitField0_ &= ~0x00000001; + jPEBPGIEGPO = 0; + return this; + } + + /** + * optional uint32 JPEBPGIEGPO = 7; + * @return the jPEBPGIEGPO + */ + public int getJPEBPGIEGPO() { + return jPEBPGIEGPO; + } + + /** + * optional uint32 JPEBPGIEGPO = 7; + * @param value the jPEBPGIEGPO to set + * @return this + */ + public AKKLFHFHPFN setJPEBPGIEGPO(final int value) { + bitField0_ |= 0x00000001; + jPEBPGIEGPO = value; + return this; + } + + /** + * optional uint32 OFBCBEIEAEC = 10; + * @return whether the oFBCBEIEAEC field is set + */ + public boolean hasOFBCBEIEAEC() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 OFBCBEIEAEC = 10; + * @return this + */ + public AKKLFHFHPFN clearOFBCBEIEAEC() { + bitField0_ &= ~0x00000002; + oFBCBEIEAEC = 0; + return this; + } + + /** + * optional uint32 OFBCBEIEAEC = 10; + * @return the oFBCBEIEAEC + */ + public int getOFBCBEIEAEC() { + return oFBCBEIEAEC; + } + + /** + * optional uint32 OFBCBEIEAEC = 10; + * @param value the oFBCBEIEAEC to set + * @return this + */ + public AKKLFHFHPFN setOFBCBEIEAEC(final int value) { + bitField0_ |= 0x00000002; + oFBCBEIEAEC = value; + return this; + } + + /** + * optional bool CGAFFPHCNEA = 12; + * @return whether the cGAFFPHCNEA field is set + */ + public boolean hasCGAFFPHCNEA() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bool CGAFFPHCNEA = 12; + * @return this + */ + public AKKLFHFHPFN clearCGAFFPHCNEA() { + bitField0_ &= ~0x00000004; + cGAFFPHCNEA = false; + return this; + } + + /** + * optional bool CGAFFPHCNEA = 12; + * @return the cGAFFPHCNEA + */ + public boolean getCGAFFPHCNEA() { + return cGAFFPHCNEA; + } + + /** + * optional bool CGAFFPHCNEA = 12; + * @param value the cGAFFPHCNEA to set + * @return this + */ + public AKKLFHFHPFN setCGAFFPHCNEA(final boolean value) { + bitField0_ |= 0x00000004; + cGAFFPHCNEA = value; + return this; + } + + @Override + public AKKLFHFHPFN copyFrom(final AKKLFHFHPFN other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + jPEBPGIEGPO = other.jPEBPGIEGPO; + oFBCBEIEAEC = other.oFBCBEIEAEC; + cGAFFPHCNEA = other.cGAFFPHCNEA; + } + return this; + } + + @Override + public AKKLFHFHPFN mergeFrom(final AKKLFHFHPFN other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasJPEBPGIEGPO()) { + setJPEBPGIEGPO(other.jPEBPGIEGPO); + } + if (other.hasOFBCBEIEAEC()) { + setOFBCBEIEAEC(other.oFBCBEIEAEC); + } + if (other.hasCGAFFPHCNEA()) { + setCGAFFPHCNEA(other.cGAFFPHCNEA); + } + return this; + } + + @Override + public AKKLFHFHPFN clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + jPEBPGIEGPO = 0; + oFBCBEIEAEC = 0; + cGAFFPHCNEA = false; + return this; + } + + @Override + public AKKLFHFHPFN 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 AKKLFHFHPFN)) { + return false; + } + AKKLFHFHPFN other = (AKKLFHFHPFN) o; + return bitField0_ == other.bitField0_ + && (!hasJPEBPGIEGPO() || jPEBPGIEGPO == other.jPEBPGIEGPO) + && (!hasOFBCBEIEAEC() || oFBCBEIEAEC == other.oFBCBEIEAEC) + && (!hasCGAFFPHCNEA() || cGAFFPHCNEA == other.cGAFFPHCNEA); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(jPEBPGIEGPO); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(oFBCBEIEAEC); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 96); + output.writeBoolNoTag(cGAFFPHCNEA); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(jPEBPGIEGPO); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(oFBCBEIEAEC); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2; + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public AKKLFHFHPFN mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 56: { + // jPEBPGIEGPO + jPEBPGIEGPO = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // oFBCBEIEAEC + oFBCBEIEAEC = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // cGAFFPHCNEA + cGAFFPHCNEA = 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.jPEBPGIEGPO, jPEBPGIEGPO); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.oFBCBEIEAEC, oFBCBEIEAEC); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBool(FieldNames.cGAFFPHCNEA, cGAFFPHCNEA); + } + output.endObject(); + } + + @Override + public AKKLFHFHPFN mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 617496720: { + if (input.isAtField(FieldNames.jPEBPGIEGPO)) { + if (!input.trySkipNullValue()) { + jPEBPGIEGPO = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1165634632: { + if (input.isAtField(FieldNames.oFBCBEIEAEC)) { + if (!input.trySkipNullValue()) { + oFBCBEIEAEC = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -927350692: { + if (input.isAtField(FieldNames.cGAFFPHCNEA)) { + if (!input.trySkipNullValue()) { + cGAFFPHCNEA = input.readBool(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public AKKLFHFHPFN clone() { + return new AKKLFHFHPFN().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static AKKLFHFHPFN parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new AKKLFHFHPFN(), data).checkInitialized(); + } + + public static AKKLFHFHPFN parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new AKKLFHFHPFN(), input).checkInitialized(); + } + + public static AKKLFHFHPFN parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new AKKLFHFHPFN(), input).checkInitialized(); + } + + /** + * @return factory for creating AKKLFHFHPFN messages + */ + public static MessageFactory getFactory() { + return AKKLFHFHPFNFactory.INSTANCE; + } + + private enum AKKLFHFHPFNFactory implements MessageFactory { + INSTANCE; + + @Override + public AKKLFHFHPFN create() { + return AKKLFHFHPFN.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName jPEBPGIEGPO = FieldName.forField("JPEBPGIEGPO"); + + static final FieldName oFBCBEIEAEC = FieldName.forField("OFBCBEIEAEC"); + + static final FieldName cGAFFPHCNEA = FieldName.forField("CGAFFPHCNEA"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/BELMNIPGEDNOuterClass.java b/src/generated/main/emu/lunarcore/proto/BELMNIPGEDNOuterClass.java new file mode 100644 index 0000000..a658514 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/BELMNIPGEDNOuterClass.java @@ -0,0 +1,498 @@ +// 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 BELMNIPGEDNOuterClass { + /** + * Protobuf type {@code BELMNIPGEDN} + */ + public static final class BELMNIPGEDN extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 MFOPPKIBGNJ = 8; + */ + private int mFOPPKIBGNJ; + + /** + * optional uint32 DDOPHIJMILL = 9; + */ + private int dDOPHIJMILL; + + /** + * optional uint32 ACJKANLIGBM = 10; + */ + private int aCJKANLIGBM; + + /** + * optional uint32 INGFJNPHCDL = 15; + */ + private int iNGFJNPHCDL; + + private BELMNIPGEDN() { + } + + /** + * @return a new empty instance of {@code BELMNIPGEDN} + */ + public static BELMNIPGEDN newInstance() { + return new BELMNIPGEDN(); + } + + /** + * optional uint32 MFOPPKIBGNJ = 8; + * @return whether the mFOPPKIBGNJ field is set + */ + public boolean hasMFOPPKIBGNJ() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 MFOPPKIBGNJ = 8; + * @return this + */ + public BELMNIPGEDN clearMFOPPKIBGNJ() { + bitField0_ &= ~0x00000001; + mFOPPKIBGNJ = 0; + return this; + } + + /** + * optional uint32 MFOPPKIBGNJ = 8; + * @return the mFOPPKIBGNJ + */ + public int getMFOPPKIBGNJ() { + return mFOPPKIBGNJ; + } + + /** + * optional uint32 MFOPPKIBGNJ = 8; + * @param value the mFOPPKIBGNJ to set + * @return this + */ + public BELMNIPGEDN setMFOPPKIBGNJ(final int value) { + bitField0_ |= 0x00000001; + mFOPPKIBGNJ = value; + return this; + } + + /** + * optional uint32 DDOPHIJMILL = 9; + * @return whether the dDOPHIJMILL field is set + */ + public boolean hasDDOPHIJMILL() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 DDOPHIJMILL = 9; + * @return this + */ + public BELMNIPGEDN clearDDOPHIJMILL() { + bitField0_ &= ~0x00000002; + dDOPHIJMILL = 0; + return this; + } + + /** + * optional uint32 DDOPHIJMILL = 9; + * @return the dDOPHIJMILL + */ + public int getDDOPHIJMILL() { + return dDOPHIJMILL; + } + + /** + * optional uint32 DDOPHIJMILL = 9; + * @param value the dDOPHIJMILL to set + * @return this + */ + public BELMNIPGEDN setDDOPHIJMILL(final int value) { + bitField0_ |= 0x00000002; + dDOPHIJMILL = value; + return this; + } + + /** + * optional uint32 ACJKANLIGBM = 10; + * @return whether the aCJKANLIGBM field is set + */ + public boolean hasACJKANLIGBM() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 ACJKANLIGBM = 10; + * @return this + */ + public BELMNIPGEDN clearACJKANLIGBM() { + bitField0_ &= ~0x00000004; + aCJKANLIGBM = 0; + return this; + } + + /** + * optional uint32 ACJKANLIGBM = 10; + * @return the aCJKANLIGBM + */ + public int getACJKANLIGBM() { + return aCJKANLIGBM; + } + + /** + * optional uint32 ACJKANLIGBM = 10; + * @param value the aCJKANLIGBM to set + * @return this + */ + public BELMNIPGEDN setACJKANLIGBM(final int value) { + bitField0_ |= 0x00000004; + aCJKANLIGBM = value; + return this; + } + + /** + * optional uint32 INGFJNPHCDL = 15; + * @return whether the iNGFJNPHCDL field is set + */ + public boolean hasINGFJNPHCDL() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 INGFJNPHCDL = 15; + * @return this + */ + public BELMNIPGEDN clearINGFJNPHCDL() { + bitField0_ &= ~0x00000008; + iNGFJNPHCDL = 0; + return this; + } + + /** + * optional uint32 INGFJNPHCDL = 15; + * @return the iNGFJNPHCDL + */ + public int getINGFJNPHCDL() { + return iNGFJNPHCDL; + } + + /** + * optional uint32 INGFJNPHCDL = 15; + * @param value the iNGFJNPHCDL to set + * @return this + */ + public BELMNIPGEDN setINGFJNPHCDL(final int value) { + bitField0_ |= 0x00000008; + iNGFJNPHCDL = value; + return this; + } + + @Override + public BELMNIPGEDN copyFrom(final BELMNIPGEDN other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + mFOPPKIBGNJ = other.mFOPPKIBGNJ; + dDOPHIJMILL = other.dDOPHIJMILL; + aCJKANLIGBM = other.aCJKANLIGBM; + iNGFJNPHCDL = other.iNGFJNPHCDL; + } + return this; + } + + @Override + public BELMNIPGEDN mergeFrom(final BELMNIPGEDN other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasMFOPPKIBGNJ()) { + setMFOPPKIBGNJ(other.mFOPPKIBGNJ); + } + if (other.hasDDOPHIJMILL()) { + setDDOPHIJMILL(other.dDOPHIJMILL); + } + if (other.hasACJKANLIGBM()) { + setACJKANLIGBM(other.aCJKANLIGBM); + } + if (other.hasINGFJNPHCDL()) { + setINGFJNPHCDL(other.iNGFJNPHCDL); + } + return this; + } + + @Override + public BELMNIPGEDN clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + mFOPPKIBGNJ = 0; + dDOPHIJMILL = 0; + aCJKANLIGBM = 0; + iNGFJNPHCDL = 0; + return this; + } + + @Override + public BELMNIPGEDN 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 BELMNIPGEDN)) { + return false; + } + BELMNIPGEDN other = (BELMNIPGEDN) o; + return bitField0_ == other.bitField0_ + && (!hasMFOPPKIBGNJ() || mFOPPKIBGNJ == other.mFOPPKIBGNJ) + && (!hasDDOPHIJMILL() || dDOPHIJMILL == other.dDOPHIJMILL) + && (!hasACJKANLIGBM() || aCJKANLIGBM == other.aCJKANLIGBM) + && (!hasINGFJNPHCDL() || iNGFJNPHCDL == other.iNGFJNPHCDL); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(mFOPPKIBGNJ); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(dDOPHIJMILL); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(aCJKANLIGBM); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(iNGFJNPHCDL); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(mFOPPKIBGNJ); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(dDOPHIJMILL); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(aCJKANLIGBM); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(iNGFJNPHCDL); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public BELMNIPGEDN mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 64: { + // mFOPPKIBGNJ + mFOPPKIBGNJ = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // dDOPHIJMILL + dDOPHIJMILL = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // aCJKANLIGBM + aCJKANLIGBM = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // iNGFJNPHCDL + iNGFJNPHCDL = 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.mFOPPKIBGNJ, mFOPPKIBGNJ); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.dDOPHIJMILL, dDOPHIJMILL); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.aCJKANLIGBM, aCJKANLIGBM); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.iNGFJNPHCDL, iNGFJNPHCDL); + } + output.endObject(); + } + + @Override + public BELMNIPGEDN mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -663962379: { + if (input.isAtField(FieldNames.mFOPPKIBGNJ)) { + if (!input.trySkipNullValue()) { + mFOPPKIBGNJ = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 155657604: { + if (input.isAtField(FieldNames.dDOPHIJMILL)) { + if (!input.trySkipNullValue()) { + dDOPHIJMILL = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1408539: { + if (input.isAtField(FieldNames.aCJKANLIGBM)) { + if (!input.trySkipNullValue()) { + aCJKANLIGBM = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1045739275: { + if (input.isAtField(FieldNames.iNGFJNPHCDL)) { + if (!input.trySkipNullValue()) { + iNGFJNPHCDL = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public BELMNIPGEDN clone() { + return new BELMNIPGEDN().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static BELMNIPGEDN parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new BELMNIPGEDN(), data).checkInitialized(); + } + + public static BELMNIPGEDN parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new BELMNIPGEDN(), input).checkInitialized(); + } + + public static BELMNIPGEDN parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new BELMNIPGEDN(), input).checkInitialized(); + } + + /** + * @return factory for creating BELMNIPGEDN messages + */ + public static MessageFactory getFactory() { + return BELMNIPGEDNFactory.INSTANCE; + } + + private enum BELMNIPGEDNFactory implements MessageFactory { + INSTANCE; + + @Override + public BELMNIPGEDN create() { + return BELMNIPGEDN.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName mFOPPKIBGNJ = FieldName.forField("MFOPPKIBGNJ"); + + static final FieldName dDOPHIJMILL = FieldName.forField("DDOPHIJMILL"); + + static final FieldName aCJKANLIGBM = FieldName.forField("ACJKANLIGBM"); + + static final FieldName iNGFJNPHCDL = FieldName.forField("INGFJNPHCDL"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/CommonRogueQueryOuterClass.java b/src/generated/main/emu/lunarcore/proto/CommonRogueQueryOuterClass.java new file mode 100644 index 0000000..fd00bfc --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/CommonRogueQueryOuterClass.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; + +public final class CommonRogueQueryOuterClass { + /** + * Protobuf type {@code CommonRogueQuery} + */ + public static final class CommonRogueQuery extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .RogueQuery rogue_query = 2; + */ + private final RogueQueryOuterClass.RogueQuery rogueQuery = RogueQueryOuterClass.RogueQuery.newInstance(); + + /** + * optional .RogueUpdate rogue_update = 6; + */ + private final RogueUpdateOuterClass.RogueUpdate rogueUpdate = RogueUpdateOuterClass.RogueUpdate.newInstance(); + + private CommonRogueQuery() { + } + + /** + * @return a new empty instance of {@code CommonRogueQuery} + */ + public static CommonRogueQuery newInstance() { + return new CommonRogueQuery(); + } + + /** + * optional .RogueQuery rogue_query = 2; + * @return whether the rogueQuery field is set + */ + public boolean hasRogueQuery() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .RogueQuery rogue_query = 2; + * @return this + */ + public CommonRogueQuery clearRogueQuery() { + bitField0_ &= ~0x00000001; + rogueQuery.clear(); + return this; + } + + /** + * optional .RogueQuery rogue_query = 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 #getMutableRogueQuery()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueQueryOuterClass.RogueQuery getRogueQuery() { + return rogueQuery; + } + + /** + * optional .RogueQuery rogue_query = 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 RogueQueryOuterClass.RogueQuery getMutableRogueQuery() { + bitField0_ |= 0x00000001; + return rogueQuery; + } + + /** + * optional .RogueQuery rogue_query = 2; + * @param value the rogueQuery to set + * @return this + */ + public CommonRogueQuery setRogueQuery(final RogueQueryOuterClass.RogueQuery value) { + bitField0_ |= 0x00000001; + rogueQuery.copyFrom(value); + return this; + } + + /** + * optional .RogueUpdate rogue_update = 6; + * @return whether the rogueUpdate field is set + */ + public boolean hasRogueUpdate() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .RogueUpdate rogue_update = 6; + * @return this + */ + public CommonRogueQuery clearRogueUpdate() { + bitField0_ &= ~0x00000002; + rogueUpdate.clear(); + return this; + } + + /** + * optional .RogueUpdate rogue_update = 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 #getMutableRogueUpdate()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueUpdateOuterClass.RogueUpdate getRogueUpdate() { + return rogueUpdate; + } + + /** + * optional .RogueUpdate rogue_update = 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 RogueUpdateOuterClass.RogueUpdate getMutableRogueUpdate() { + bitField0_ |= 0x00000002; + return rogueUpdate; + } + + /** + * optional .RogueUpdate rogue_update = 6; + * @param value the rogueUpdate to set + * @return this + */ + public CommonRogueQuery setRogueUpdate(final RogueUpdateOuterClass.RogueUpdate value) { + bitField0_ |= 0x00000002; + rogueUpdate.copyFrom(value); + return this; + } + + @Override + public CommonRogueQuery copyFrom(final CommonRogueQuery other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + rogueQuery.copyFrom(other.rogueQuery); + rogueUpdate.copyFrom(other.rogueUpdate); + } + return this; + } + + @Override + public CommonRogueQuery mergeFrom(final CommonRogueQuery other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRogueQuery()) { + getMutableRogueQuery().mergeFrom(other.rogueQuery); + } + if (other.hasRogueUpdate()) { + getMutableRogueUpdate().mergeFrom(other.rogueUpdate); + } + return this; + } + + @Override + public CommonRogueQuery clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + rogueQuery.clear(); + rogueUpdate.clear(); + return this; + } + + @Override + public CommonRogueQuery clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + rogueQuery.clearQuick(); + rogueUpdate.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof CommonRogueQuery)) { + return false; + } + CommonRogueQuery other = (CommonRogueQuery) o; + return bitField0_ == other.bitField0_ + && (!hasRogueQuery() || rogueQuery.equals(other.rogueQuery)) + && (!hasRogueUpdate() || rogueUpdate.equals(other.rogueUpdate)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(rogueQuery); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 50); + output.writeMessageNoTag(rogueUpdate); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(rogueQuery); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(rogueUpdate); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public CommonRogueQuery mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 18: { + // rogueQuery + input.readMessage(rogueQuery); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { + // rogueUpdate + input.readMessage(rogueUpdate); + 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.rogueQuery, rogueQuery); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.rogueUpdate, rogueUpdate); + } + output.endObject(); + } + + @Override + public CommonRogueQuery mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1137163506: + case -494752221: { + if (input.isAtField(FieldNames.rogueQuery)) { + if (!input.trySkipNullValue()) { + input.readMessage(rogueQuery); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -782477501: + case 1952403150: { + if (input.isAtField(FieldNames.rogueUpdate)) { + if (!input.trySkipNullValue()) { + input.readMessage(rogueUpdate); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public CommonRogueQuery clone() { + return new CommonRogueQuery().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static CommonRogueQuery parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new CommonRogueQuery(), data).checkInitialized(); + } + + public static CommonRogueQuery parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new CommonRogueQuery(), input).checkInitialized(); + } + + public static CommonRogueQuery parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new CommonRogueQuery(), input).checkInitialized(); + } + + /** + * @return factory for creating CommonRogueQuery messages + */ + public static MessageFactory getFactory() { + return CommonRogueQueryFactory.INSTANCE; + } + + private enum CommonRogueQueryFactory implements MessageFactory { + INSTANCE; + + @Override + public CommonRogueQuery create() { + return CommonRogueQuery.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName rogueQuery = FieldName.forField("rogueQuery", "rogue_query"); + + static final FieldName rogueUpdate = FieldName.forField("rogueUpdate", "rogue_update"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/CommonRogueQueryScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/CommonRogueQueryScRspOuterClass.java new file mode 100644 index 0000000..8ba3473 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/CommonRogueQueryScRspOuterClass.java @@ -0,0 +1,362 @@ +// 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 CommonRogueQueryScRspOuterClass { + /** + * Protobuf type {@code CommonRogueQueryScRsp} + */ + public static final class CommonRogueQueryScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 3; + */ + private int retcode; + + /** + * optional .CommonRogueQuery common_rogue_query = 4; + */ + private final CommonRogueQueryOuterClass.CommonRogueQuery commonRogueQuery = CommonRogueQueryOuterClass.CommonRogueQuery.newInstance(); + + private CommonRogueQueryScRsp() { + } + + /** + * @return a new empty instance of {@code CommonRogueQueryScRsp} + */ + public static CommonRogueQueryScRsp newInstance() { + return new CommonRogueQueryScRsp(); + } + + /** + * 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 CommonRogueQueryScRsp 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 CommonRogueQueryScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional .CommonRogueQuery common_rogue_query = 4; + * @return whether the commonRogueQuery field is set + */ + public boolean hasCommonRogueQuery() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .CommonRogueQuery common_rogue_query = 4; + * @return this + */ + public CommonRogueQueryScRsp clearCommonRogueQuery() { + bitField0_ &= ~0x00000002; + commonRogueQuery.clear(); + return this; + } + + /** + * optional .CommonRogueQuery common_rogue_query = 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 #getMutableCommonRogueQuery()} if you want to modify it. + * + * @return internal storage object for reading + */ + public CommonRogueQueryOuterClass.CommonRogueQuery getCommonRogueQuery() { + return commonRogueQuery; + } + + /** + * optional .CommonRogueQuery common_rogue_query = 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 CommonRogueQueryOuterClass.CommonRogueQuery getMutableCommonRogueQuery() { + bitField0_ |= 0x00000002; + return commonRogueQuery; + } + + /** + * optional .CommonRogueQuery common_rogue_query = 4; + * @param value the commonRogueQuery to set + * @return this + */ + public CommonRogueQueryScRsp setCommonRogueQuery( + final CommonRogueQueryOuterClass.CommonRogueQuery value) { + bitField0_ |= 0x00000002; + commonRogueQuery.copyFrom(value); + return this; + } + + @Override + public CommonRogueQueryScRsp copyFrom(final CommonRogueQueryScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + commonRogueQuery.copyFrom(other.commonRogueQuery); + } + return this; + } + + @Override + public CommonRogueQueryScRsp mergeFrom(final CommonRogueQueryScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasCommonRogueQuery()) { + getMutableCommonRogueQuery().mergeFrom(other.commonRogueQuery); + } + return this; + } + + @Override + public CommonRogueQueryScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + commonRogueQuery.clear(); + return this; + } + + @Override + public CommonRogueQueryScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + commonRogueQuery.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof CommonRogueQueryScRsp)) { + return false; + } + CommonRogueQueryScRsp other = (CommonRogueQueryScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasCommonRogueQuery() || commonRogueQuery.equals(other.commonRogueQuery)); + } + + @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) 34); + output.writeMessageNoTag(commonRogueQuery); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(commonRogueQuery); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public CommonRogueQueryScRsp 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: { + // commonRogueQuery + input.readMessage(commonRogueQuery); + 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.commonRogueQuery, commonRogueQuery); + } + output.endObject(); + } + + @Override + public CommonRogueQueryScRsp 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 1847205721: + case 1954524623: { + if (input.isAtField(FieldNames.commonRogueQuery)) { + if (!input.trySkipNullValue()) { + input.readMessage(commonRogueQuery); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public CommonRogueQueryScRsp clone() { + return new CommonRogueQueryScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static CommonRogueQueryScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new CommonRogueQueryScRsp(), data).checkInitialized(); + } + + public static CommonRogueQueryScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new CommonRogueQueryScRsp(), input).checkInitialized(); + } + + public static CommonRogueQueryScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new CommonRogueQueryScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating CommonRogueQueryScRsp messages + */ + public static MessageFactory getFactory() { + return CommonRogueQueryScRspFactory.INSTANCE; + } + + private enum CommonRogueQueryScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public CommonRogueQueryScRsp create() { + return CommonRogueQueryScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName commonRogueQuery = FieldName.forField("commonRogueQuery", "common_rogue_query"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/CommonRogueUpdateScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/CommonRogueUpdateScNotifyOuterClass.java new file mode 100644 index 0000000..8a79146 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/CommonRogueUpdateScNotifyOuterClass.java @@ -0,0 +1,305 @@ +// 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 CommonRogueUpdateScNotifyOuterClass { + /** + * Protobuf type {@code CommonRogueUpdateScNotify} + */ + public static final class CommonRogueUpdateScNotify extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + *
+     * CJFJFKJICGK NALLCHLAJPN = 10;
+     * 
+ * + * optional .RogueUpdate rogue_update = 15; + */ + private final RogueUpdateOuterClass.RogueUpdate rogueUpdate = RogueUpdateOuterClass.RogueUpdate.newInstance(); + + private CommonRogueUpdateScNotify() { + } + + /** + * @return a new empty instance of {@code CommonRogueUpdateScNotify} + */ + public static CommonRogueUpdateScNotify newInstance() { + return new CommonRogueUpdateScNotify(); + } + + /** + *
+     * CJFJFKJICGK NALLCHLAJPN = 10;
+     * 
+ * + * optional .RogueUpdate rogue_update = 15; + * @return whether the rogueUpdate field is set + */ + public boolean hasRogueUpdate() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + *
+     * CJFJFKJICGK NALLCHLAJPN = 10;
+     * 
+ * + * optional .RogueUpdate rogue_update = 15; + * @return this + */ + public CommonRogueUpdateScNotify clearRogueUpdate() { + bitField0_ &= ~0x00000001; + rogueUpdate.clear(); + return this; + } + + /** + *
+     * CJFJFKJICGK NALLCHLAJPN = 10;
+     * 
+ * + * optional .RogueUpdate rogue_update = 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 #getMutableRogueUpdate()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueUpdateOuterClass.RogueUpdate getRogueUpdate() { + return rogueUpdate; + } + + /** + *
+     * CJFJFKJICGK NALLCHLAJPN = 10;
+     * 
+ * + * optional .RogueUpdate rogue_update = 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 RogueUpdateOuterClass.RogueUpdate getMutableRogueUpdate() { + bitField0_ |= 0x00000001; + return rogueUpdate; + } + + /** + *
+     * CJFJFKJICGK NALLCHLAJPN = 10;
+     * 
+ * + * optional .RogueUpdate rogue_update = 15; + * @param value the rogueUpdate to set + * @return this + */ + public CommonRogueUpdateScNotify setRogueUpdate(final RogueUpdateOuterClass.RogueUpdate value) { + bitField0_ |= 0x00000001; + rogueUpdate.copyFrom(value); + return this; + } + + @Override + public CommonRogueUpdateScNotify copyFrom(final CommonRogueUpdateScNotify other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + rogueUpdate.copyFrom(other.rogueUpdate); + } + return this; + } + + @Override + public CommonRogueUpdateScNotify mergeFrom(final CommonRogueUpdateScNotify other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRogueUpdate()) { + getMutableRogueUpdate().mergeFrom(other.rogueUpdate); + } + return this; + } + + @Override + public CommonRogueUpdateScNotify clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + rogueUpdate.clear(); + return this; + } + + @Override + public CommonRogueUpdateScNotify clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + rogueUpdate.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof CommonRogueUpdateScNotify)) { + return false; + } + CommonRogueUpdateScNotify other = (CommonRogueUpdateScNotify) o; + return bitField0_ == other.bitField0_ + && (!hasRogueUpdate() || rogueUpdate.equals(other.rogueUpdate)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 122); + output.writeMessageNoTag(rogueUpdate); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(rogueUpdate); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public CommonRogueUpdateScNotify mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 122: { + // rogueUpdate + input.readMessage(rogueUpdate); + 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.rogueUpdate, rogueUpdate); + } + output.endObject(); + } + + @Override + public CommonRogueUpdateScNotify mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -782477501: + case 1952403150: { + if (input.isAtField(FieldNames.rogueUpdate)) { + if (!input.trySkipNullValue()) { + input.readMessage(rogueUpdate); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public CommonRogueUpdateScNotify clone() { + return new CommonRogueUpdateScNotify().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static CommonRogueUpdateScNotify parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new CommonRogueUpdateScNotify(), data).checkInitialized(); + } + + public static CommonRogueUpdateScNotify parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new CommonRogueUpdateScNotify(), input).checkInitialized(); + } + + public static CommonRogueUpdateScNotify parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new CommonRogueUpdateScNotify(), input).checkInitialized(); + } + + /** + * @return factory for creating CommonRogueUpdateScNotify messages + */ + public static MessageFactory getFactory() { + return CommonRogueUpdateScNotifyFactory.INSTANCE; + } + + private enum CommonRogueUpdateScNotifyFactory implements MessageFactory { + INSTANCE; + + @Override + public CommonRogueUpdateScNotify create() { + return CommonRogueUpdateScNotify.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName rogueUpdate = FieldName.forField("rogueUpdate", "rogue_update"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/DMBBFODODOFOuterClass.java b/src/generated/main/emu/lunarcore/proto/DMBBFODODOFOuterClass.java new file mode 100644 index 0000000..c374308 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/DMBBFODODOFOuterClass.java @@ -0,0 +1,358 @@ +// 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 DMBBFODODOFOuterClass { + /** + * Protobuf type {@code DMBBFODODOF} + */ + public static final class DMBBFODODOF extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + *
+     *  4
+     * 
+ * + * optional uint32 BLPICCBCKPK = 2; + */ + private int bLPICCBCKPK; + + /** + * optional uint32 BCKPHBOPCCN = 6; + */ + private int bCKPHBOPCCN; + + private DMBBFODODOF() { + } + + /** + * @return a new empty instance of {@code DMBBFODODOF} + */ + public static DMBBFODODOF newInstance() { + return new DMBBFODODOF(); + } + + /** + *
+     *  4
+     * 
+ * + * optional uint32 BLPICCBCKPK = 2; + * @return whether the bLPICCBCKPK field is set + */ + public boolean hasBLPICCBCKPK() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + *
+     *  4
+     * 
+ * + * optional uint32 BLPICCBCKPK = 2; + * @return this + */ + public DMBBFODODOF clearBLPICCBCKPK() { + bitField0_ &= ~0x00000001; + bLPICCBCKPK = 0; + return this; + } + + /** + *
+     *  4
+     * 
+ * + * optional uint32 BLPICCBCKPK = 2; + * @return the bLPICCBCKPK + */ + public int getBLPICCBCKPK() { + return bLPICCBCKPK; + } + + /** + *
+     *  4
+     * 
+ * + * optional uint32 BLPICCBCKPK = 2; + * @param value the bLPICCBCKPK to set + * @return this + */ + public DMBBFODODOF setBLPICCBCKPK(final int value) { + bitField0_ |= 0x00000001; + bLPICCBCKPK = value; + return this; + } + + /** + * optional uint32 BCKPHBOPCCN = 6; + * @return whether the bCKPHBOPCCN field is set + */ + public boolean hasBCKPHBOPCCN() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 BCKPHBOPCCN = 6; + * @return this + */ + public DMBBFODODOF clearBCKPHBOPCCN() { + bitField0_ &= ~0x00000002; + bCKPHBOPCCN = 0; + return this; + } + + /** + * optional uint32 BCKPHBOPCCN = 6; + * @return the bCKPHBOPCCN + */ + public int getBCKPHBOPCCN() { + return bCKPHBOPCCN; + } + + /** + * optional uint32 BCKPHBOPCCN = 6; + * @param value the bCKPHBOPCCN to set + * @return this + */ + public DMBBFODODOF setBCKPHBOPCCN(final int value) { + bitField0_ |= 0x00000002; + bCKPHBOPCCN = value; + return this; + } + + @Override + public DMBBFODODOF copyFrom(final DMBBFODODOF other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + bLPICCBCKPK = other.bLPICCBCKPK; + bCKPHBOPCCN = other.bCKPHBOPCCN; + } + return this; + } + + @Override + public DMBBFODODOF mergeFrom(final DMBBFODODOF other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBLPICCBCKPK()) { + setBLPICCBCKPK(other.bLPICCBCKPK); + } + if (other.hasBCKPHBOPCCN()) { + setBCKPHBOPCCN(other.bCKPHBOPCCN); + } + return this; + } + + @Override + public DMBBFODODOF clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + bLPICCBCKPK = 0; + bCKPHBOPCCN = 0; + return this; + } + + @Override + public DMBBFODODOF 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 DMBBFODODOF)) { + return false; + } + DMBBFODODOF other = (DMBBFODODOF) o; + return bitField0_ == other.bitField0_ + && (!hasBLPICCBCKPK() || bLPICCBCKPK == other.bLPICCBCKPK) + && (!hasBCKPHBOPCCN() || bCKPHBOPCCN == other.bCKPHBOPCCN); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(bLPICCBCKPK); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(bCKPHBOPCCN); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(bLPICCBCKPK); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(bCKPHBOPCCN); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public DMBBFODODOF mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // bLPICCBCKPK + bLPICCBCKPK = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // bCKPHBOPCCN + bCKPHBOPCCN = 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.bLPICCBCKPK, bLPICCBCKPK); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.bCKPHBOPCCN, bCKPHBOPCCN); + } + output.endObject(); + } + + @Override + public DMBBFODODOF mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 733217314: { + if (input.isAtField(FieldNames.bLPICCBCKPK)) { + if (!input.trySkipNullValue()) { + bLPICCBCKPK = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1904713331: { + if (input.isAtField(FieldNames.bCKPHBOPCCN)) { + if (!input.trySkipNullValue()) { + bCKPHBOPCCN = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public DMBBFODODOF clone() { + return new DMBBFODODOF().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static DMBBFODODOF parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new DMBBFODODOF(), data).checkInitialized(); + } + + public static DMBBFODODOF parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new DMBBFODODOF(), input).checkInitialized(); + } + + public static DMBBFODODOF parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new DMBBFODODOF(), input).checkInitialized(); + } + + /** + * @return factory for creating DMBBFODODOF messages + */ + public static MessageFactory getFactory() { + return DMBBFODODOFFactory.INSTANCE; + } + + private enum DMBBFODODOFFactory implements MessageFactory { + INSTANCE; + + @Override + public DMBBFODODOF create() { + return DMBBFODODOF.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName bLPICCBCKPK = FieldName.forField("BLPICCBCKPK"); + + static final FieldName bCKPHBOPCCN = FieldName.forField("BCKPHBOPCCN"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/EnterRogueMapRoomCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/EnterRogueMapRoomCsReqOuterClass.java index de18c4c..9e281bc 100644 --- a/src/generated/main/emu/lunarcore/proto/EnterRogueMapRoomCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/EnterRogueMapRoomCsReqOuterClass.java @@ -19,15 +19,15 @@ public final class EnterRogueMapRoomCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 site_id = 7; - */ - private int siteId; - - /** - * optional uint32 room_id = 11; + * optional uint32 room_id = 2; */ private int roomId; + /** + * optional uint32 site_id = 5; + */ + private int siteId; + private EnterRogueMapRoomCsReq() { } @@ -39,62 +39,25 @@ public final class EnterRogueMapRoomCsReqOuterClass { } /** - * optional uint32 site_id = 7; - * @return whether the siteId field is set + * optional uint32 room_id = 2; + * @return whether the roomId field is set */ - public boolean hasSiteId() { + public boolean hasRoomId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 site_id = 7; - * @return this - */ - public EnterRogueMapRoomCsReq clearSiteId() { - bitField0_ &= ~0x00000001; - siteId = 0; - return this; - } - - /** - * optional uint32 site_id = 7; - * @return the siteId - */ - public int getSiteId() { - return siteId; - } - - /** - * optional uint32 site_id = 7; - * @param value the siteId to set - * @return this - */ - public EnterRogueMapRoomCsReq setSiteId(final int value) { - bitField0_ |= 0x00000001; - siteId = value; - return this; - } - - /** - * optional uint32 room_id = 11; - * @return whether the roomId field is set - */ - public boolean hasRoomId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 room_id = 11; + * optional uint32 room_id = 2; * @return this */ public EnterRogueMapRoomCsReq clearRoomId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; roomId = 0; return this; } /** - * optional uint32 room_id = 11; + * optional uint32 room_id = 2; * @return the roomId */ public int getRoomId() { @@ -102,23 +65,60 @@ public final class EnterRogueMapRoomCsReqOuterClass { } /** - * optional uint32 room_id = 11; + * optional uint32 room_id = 2; * @param value the roomId to set * @return this */ public EnterRogueMapRoomCsReq setRoomId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; roomId = value; return this; } + /** + * optional uint32 site_id = 5; + * @return whether the siteId field is set + */ + public boolean hasSiteId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 site_id = 5; + * @return this + */ + public EnterRogueMapRoomCsReq clearSiteId() { + bitField0_ &= ~0x00000002; + siteId = 0; + return this; + } + + /** + * optional uint32 site_id = 5; + * @return the siteId + */ + public int getSiteId() { + return siteId; + } + + /** + * optional uint32 site_id = 5; + * @param value the siteId to set + * @return this + */ + public EnterRogueMapRoomCsReq setSiteId(final int value) { + bitField0_ |= 0x00000002; + siteId = 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; + siteId = other.siteId; } return this; } @@ -129,12 +129,12 @@ public final class EnterRogueMapRoomCsReqOuterClass { return this; } cachedSize = -1; - if (other.hasSiteId()) { - setSiteId(other.siteId); - } if (other.hasRoomId()) { setRoomId(other.roomId); } + if (other.hasSiteId()) { + setSiteId(other.siteId); + } return this; } @@ -145,8 +145,8 @@ public final class EnterRogueMapRoomCsReqOuterClass { } cachedSize = -1; bitField0_ = 0; - siteId = 0; roomId = 0; + siteId = 0; return this; } @@ -170,19 +170,19 @@ public final class EnterRogueMapRoomCsReqOuterClass { } EnterRogueMapRoomCsReq other = (EnterRogueMapRoomCsReq) o; return bitField0_ == other.bitField0_ - && (!hasSiteId() || siteId == other.siteId) - && (!hasRoomId() || roomId == other.roomId); + && (!hasRoomId() || roomId == other.roomId) + && (!hasSiteId() || siteId == other.siteId); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); - output.writeUInt32NoTag(siteId); + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(roomId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 88); - output.writeUInt32NoTag(roomId); + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(siteId); } } @@ -190,10 +190,10 @@ public final class EnterRogueMapRoomCsReqOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(siteId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(roomId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(roomId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(siteId); } return size; } @@ -205,18 +205,18 @@ public final class EnterRogueMapRoomCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 56: { - // siteId - siteId = input.readUInt32(); + case 16: { + // roomId + roomId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 88) { + if (tag != 40) { break; } } - case 88: { - // roomId - roomId = input.readUInt32(); + case 40: { + // siteId + siteId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -241,10 +241,10 @@ public final class EnterRogueMapRoomCsReqOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.siteId, siteId); + output.writeUInt32(FieldNames.roomId, roomId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.roomId, roomId); + output.writeUInt32(FieldNames.siteId, siteId); } output.endObject(); } @@ -256,11 +256,11 @@ public final class EnterRogueMapRoomCsReqOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -902090046: - case 2100001043: { - if (input.isAtField(FieldNames.siteId)) { + case -925319338: + case 1379892991: { + if (input.isAtField(FieldNames.roomId)) { if (!input.trySkipNullValue()) { - siteId = input.readUInt32(); + roomId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -268,11 +268,11 @@ public final class EnterRogueMapRoomCsReqOuterClass { } break; } - case -925319338: - case 1379892991: { - if (input.isAtField(FieldNames.roomId)) { + case -902090046: + case 2100001043: { + if (input.isAtField(FieldNames.siteId)) { if (!input.trySkipNullValue()) { - roomId = input.readUInt32(); + siteId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -333,9 +333,9 @@ public final class EnterRogueMapRoomCsReqOuterClass { * 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"); + + static final FieldName siteId = FieldName.forField("siteId", "site_id"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/EnterRogueMapRoomScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/EnterRogueMapRoomScRspOuterClass.java index e65b969..35f4d35 100644 --- a/src/generated/main/emu/lunarcore/proto/EnterRogueMapRoomScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/EnterRogueMapRoomScRspOuterClass.java @@ -18,23 +18,23 @@ public final class EnterRogueMapRoomScRspOuterClass { public static final class EnterRogueMapRoomScRsp extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; + /** + * optional uint32 cur_site_id = 2; + */ + private int curSiteId; + /** * optional uint32 retcode = 5; */ private int retcode; /** - * optional uint32 cur_site_id = 8; - */ - private int curSiteId; - - /** - * optional .LineupInfo lineup = 2; + * optional .LineupInfo lineup = 4; */ private final LineupInfoOuterClass.LineupInfo lineup = LineupInfoOuterClass.LineupInfo.newInstance(); /** - * optional .SceneInfo scene = 15; + * optional .SceneInfo scene = 7; */ private final SceneInfoOuterClass.SceneInfo scene = SceneInfoOuterClass.SceneInfo.newInstance(); @@ -48,12 +48,49 @@ public final class EnterRogueMapRoomScRspOuterClass { return new EnterRogueMapRoomScRsp(); } + /** + * optional uint32 cur_site_id = 2; + * @return whether the curSiteId field is set + */ + public boolean hasCurSiteId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 cur_site_id = 2; + * @return this + */ + public EnterRogueMapRoomScRsp clearCurSiteId() { + bitField0_ &= ~0x00000001; + curSiteId = 0; + return this; + } + + /** + * optional uint32 cur_site_id = 2; + * @return the curSiteId + */ + public int getCurSiteId() { + return curSiteId; + } + + /** + * optional uint32 cur_site_id = 2; + * @param value the curSiteId to set + * @return this + */ + public EnterRogueMapRoomScRsp setCurSiteId(final int value) { + bitField0_ |= 0x00000001; + curSiteId = value; + return this; + } + /** * optional uint32 retcode = 5; * @return whether the retcode field is set */ public boolean hasRetcode() { - return (bitField0_ & 0x00000001) != 0; + return (bitField0_ & 0x00000002) != 0; } /** @@ -61,7 +98,7 @@ public final class EnterRogueMapRoomScRspOuterClass { * @return this */ public EnterRogueMapRoomScRsp clearRetcode() { - bitField0_ &= ~0x00000001; + bitField0_ &= ~0x00000002; retcode = 0; return this; } @@ -80,50 +117,13 @@ public final class EnterRogueMapRoomScRspOuterClass { * @return this */ public EnterRogueMapRoomScRsp setRetcode(final int value) { - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; retcode = value; return this; } /** - * optional uint32 cur_site_id = 8; - * @return whether the curSiteId field is set - */ - public boolean hasCurSiteId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 cur_site_id = 8; - * @return this - */ - public EnterRogueMapRoomScRsp clearCurSiteId() { - bitField0_ &= ~0x00000002; - curSiteId = 0; - return this; - } - - /** - * optional uint32 cur_site_id = 8; - * @return the curSiteId - */ - public int getCurSiteId() { - return curSiteId; - } - - /** - * optional uint32 cur_site_id = 8; - * @param value the curSiteId to set - * @return this - */ - public EnterRogueMapRoomScRsp setCurSiteId(final int value) { - bitField0_ |= 0x00000002; - curSiteId = value; - return this; - } - - /** - * optional .LineupInfo lineup = 2; + * optional .LineupInfo lineup = 4; * @return whether the lineup field is set */ public boolean hasLineup() { @@ -131,7 +131,7 @@ public final class EnterRogueMapRoomScRspOuterClass { } /** - * optional .LineupInfo lineup = 2; + * optional .LineupInfo lineup = 4; * @return this */ public EnterRogueMapRoomScRsp clearLineup() { @@ -141,7 +141,7 @@ public final class EnterRogueMapRoomScRspOuterClass { } /** - * optional .LineupInfo lineup = 2; + * optional .LineupInfo lineup = 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. @@ -155,7 +155,7 @@ public final class EnterRogueMapRoomScRspOuterClass { } /** - * optional .LineupInfo lineup = 2; + * optional .LineupInfo lineup = 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 @@ -169,7 +169,7 @@ public final class EnterRogueMapRoomScRspOuterClass { } /** - * optional .LineupInfo lineup = 2; + * optional .LineupInfo lineup = 4; * @param value the lineup to set * @return this */ @@ -180,7 +180,7 @@ public final class EnterRogueMapRoomScRspOuterClass { } /** - * optional .SceneInfo scene = 15; + * optional .SceneInfo scene = 7; * @return whether the scene field is set */ public boolean hasScene() { @@ -188,7 +188,7 @@ public final class EnterRogueMapRoomScRspOuterClass { } /** - * optional .SceneInfo scene = 15; + * optional .SceneInfo scene = 7; * @return this */ public EnterRogueMapRoomScRsp clearScene() { @@ -198,7 +198,7 @@ public final class EnterRogueMapRoomScRspOuterClass { } /** - * optional .SceneInfo scene = 15; + * 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. @@ -212,7 +212,7 @@ public final class EnterRogueMapRoomScRspOuterClass { } /** - * optional .SceneInfo scene = 15; + * 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 @@ -226,7 +226,7 @@ public final class EnterRogueMapRoomScRspOuterClass { } /** - * optional .SceneInfo scene = 15; + * optional .SceneInfo scene = 7; * @param value the scene to set * @return this */ @@ -241,8 +241,8 @@ public final class EnterRogueMapRoomScRspOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - retcode = other.retcode; curSiteId = other.curSiteId; + retcode = other.retcode; lineup.copyFrom(other.lineup); scene.copyFrom(other.scene); } @@ -255,12 +255,12 @@ public final class EnterRogueMapRoomScRspOuterClass { return this; } cachedSize = -1; - if (other.hasRetcode()) { - setRetcode(other.retcode); - } if (other.hasCurSiteId()) { setCurSiteId(other.curSiteId); } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } if (other.hasLineup()) { getMutableLineup().mergeFrom(other.lineup); } @@ -277,8 +277,8 @@ public final class EnterRogueMapRoomScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - retcode = 0; curSiteId = 0; + retcode = 0; lineup.clear(); scene.clear(); return this; @@ -306,8 +306,8 @@ public final class EnterRogueMapRoomScRspOuterClass { } EnterRogueMapRoomScRsp other = (EnterRogueMapRoomScRsp) o; return bitField0_ == other.bitField0_ - && (!hasRetcode() || retcode == other.retcode) && (!hasCurSiteId() || curSiteId == other.curSiteId) + && (!hasRetcode() || retcode == other.retcode) && (!hasLineup() || lineup.equals(other.lineup)) && (!hasScene() || scene.equals(other.scene)); } @@ -315,19 +315,19 @@ public final class EnterRogueMapRoomScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(curSiteId); + } + if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 40); output.writeUInt32NoTag(retcode); } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(curSiteId); - } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 18); + output.writeRawByte((byte) 34); output.writeMessageNoTag(lineup); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 122); + output.writeRawByte((byte) 58); output.writeMessageNoTag(scene); } } @@ -336,10 +336,10 @@ public final class EnterRogueMapRoomScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(curSiteId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(curSiteId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(lineup); @@ -357,34 +357,34 @@ public final class EnterRogueMapRoomScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { + case 16: { + // curSiteId + curSiteId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 40) { + break; + } + } case 40: { // retcode retcode = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 64) { - break; - } - } - case 64: { - // curSiteId - curSiteId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 18) { + if (tag != 34) { break; } } - case 18: { + case 34: { // lineup input.readMessage(lineup); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 122) { + if (tag != 58) { break; } } - case 122: { + case 58: { // scene input.readMessage(scene); bitField0_ |= 0x00000008; @@ -411,10 +411,10 @@ public final class EnterRogueMapRoomScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.curSiteId, curSiteId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.curSiteId, curSiteId); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000004) != 0) { output.writeMessage(FieldNames.lineup, lineup); @@ -432,10 +432,11 @@ public final class EnterRogueMapRoomScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case -226037470: + case 1245078036: { + if (input.isAtField(FieldNames.curSiteId)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + curSiteId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -443,11 +444,10 @@ public final class EnterRogueMapRoomScRspOuterClass { } break; } - case -226037470: - case 1245078036: { - if (input.isAtField(FieldNames.curSiteId)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - curSiteId = input.readUInt32(); + retcode = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -530,10 +530,10 @@ public final class EnterRogueMapRoomScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName curSiteId = FieldName.forField("curSiteId", "cur_site_id"); + static final FieldName retcode = FieldName.forField("retcode"); + static final FieldName lineup = FieldName.forField("lineup"); static final FieldName scene = FieldName.forField("scene"); diff --git a/src/generated/main/emu/lunarcore/proto/FirstNpcTalkInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/FirstNpcTalkInfoOuterClass.java new file mode 100644 index 0000000..ec37f4f --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/FirstNpcTalkInfoOuterClass.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 FirstNpcTalkInfoOuterClass { + /** + * Protobuf type {@code FirstNpcTalkInfo} + */ + public static final class FirstNpcTalkInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 npc_id = 3; + */ + private int npcId; + + /** + * optional bool KGCJMBBFBIA = 7; + */ + private boolean kGCJMBBFBIA; + + private FirstNpcTalkInfo() { + } + + /** + * @return a new empty instance of {@code FirstNpcTalkInfo} + */ + public static FirstNpcTalkInfo newInstance() { + return new FirstNpcTalkInfo(); + } + + /** + * optional uint32 npc_id = 3; + * @return whether the npcId field is set + */ + public boolean hasNpcId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 npc_id = 3; + * @return this + */ + public FirstNpcTalkInfo clearNpcId() { + bitField0_ &= ~0x00000001; + npcId = 0; + return this; + } + + /** + * optional uint32 npc_id = 3; + * @return the npcId + */ + public int getNpcId() { + return npcId; + } + + /** + * optional uint32 npc_id = 3; + * @param value the npcId to set + * @return this + */ + public FirstNpcTalkInfo setNpcId(final int value) { + bitField0_ |= 0x00000001; + npcId = value; + return this; + } + + /** + * optional bool KGCJMBBFBIA = 7; + * @return whether the kGCJMBBFBIA field is set + */ + public boolean hasKGCJMBBFBIA() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bool KGCJMBBFBIA = 7; + * @return this + */ + public FirstNpcTalkInfo clearKGCJMBBFBIA() { + bitField0_ &= ~0x00000002; + kGCJMBBFBIA = false; + return this; + } + + /** + * optional bool KGCJMBBFBIA = 7; + * @return the kGCJMBBFBIA + */ + public boolean getKGCJMBBFBIA() { + return kGCJMBBFBIA; + } + + /** + * optional bool KGCJMBBFBIA = 7; + * @param value the kGCJMBBFBIA to set + * @return this + */ + public FirstNpcTalkInfo setKGCJMBBFBIA(final boolean value) { + bitField0_ |= 0x00000002; + kGCJMBBFBIA = value; + return this; + } + + @Override + public FirstNpcTalkInfo copyFrom(final FirstNpcTalkInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + npcId = other.npcId; + kGCJMBBFBIA = other.kGCJMBBFBIA; + } + return this; + } + + @Override + public FirstNpcTalkInfo mergeFrom(final FirstNpcTalkInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasNpcId()) { + setNpcId(other.npcId); + } + if (other.hasKGCJMBBFBIA()) { + setKGCJMBBFBIA(other.kGCJMBBFBIA); + } + return this; + } + + @Override + public FirstNpcTalkInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + npcId = 0; + kGCJMBBFBIA = false; + return this; + } + + @Override + public FirstNpcTalkInfo 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 FirstNpcTalkInfo)) { + return false; + } + FirstNpcTalkInfo other = (FirstNpcTalkInfo) o; + return bitField0_ == other.bitField0_ + && (!hasNpcId() || npcId == other.npcId) + && (!hasKGCJMBBFBIA() || kGCJMBBFBIA == other.kGCJMBBFBIA); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(npcId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 56); + output.writeBoolNoTag(kGCJMBBFBIA); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(npcId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2; + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public FirstNpcTalkInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 24: { + // npcId + npcId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // kGCJMBBFBIA + kGCJMBBFBIA = 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.npcId, npcId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBool(FieldNames.kGCJMBBFBIA, kGCJMBBFBIA); + } + output.endObject(); + } + + @Override + public FirstNpcTalkInfo 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 -1845407362: { + if (input.isAtField(FieldNames.kGCJMBBFBIA)) { + if (!input.trySkipNullValue()) { + kGCJMBBFBIA = input.readBool(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public FirstNpcTalkInfo clone() { + return new FirstNpcTalkInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static FirstNpcTalkInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new FirstNpcTalkInfo(), data).checkInitialized(); + } + + public static FirstNpcTalkInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new FirstNpcTalkInfo(), input).checkInitialized(); + } + + public static FirstNpcTalkInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new FirstNpcTalkInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating FirstNpcTalkInfo messages + */ + public static MessageFactory getFactory() { + return FirstNpcTalkInfoFactory.INSTANCE; + } + + private enum FirstNpcTalkInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public FirstNpcTalkInfo create() { + return FirstNpcTalkInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName npcId = FieldName.forField("npcId", "npc_id"); + + static final FieldName kGCJMBBFBIA = FieldName.forField("KGCJMBBFBIA"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GetFirstTalkNpcCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetFirstTalkNpcCsReqOuterClass.java new file mode 100644 index 0000000..026cc66 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GetFirstTalkNpcCsReqOuterClass.java @@ -0,0 +1,301 @@ +// 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 GetFirstTalkNpcCsReqOuterClass { + /** + * Protobuf type {@code GetFirstTalkNpcCsReq} + */ + public static final class GetFirstTalkNpcCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * repeated uint32 npc_id = 12; + */ + private final RepeatedInt npcId = RepeatedInt.newEmptyInstance(); + + private GetFirstTalkNpcCsReq() { + } + + /** + * @return a new empty instance of {@code GetFirstTalkNpcCsReq} + */ + public static GetFirstTalkNpcCsReq newInstance() { + return new GetFirstTalkNpcCsReq(); + } + + /** + * repeated uint32 npc_id = 12; + * @return whether the npcId field is set + */ + public boolean hasNpcId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * repeated uint32 npc_id = 12; + * @return this + */ + public GetFirstTalkNpcCsReq clearNpcId() { + bitField0_ &= ~0x00000001; + npcId.clear(); + return this; + } + + /** + * repeated uint32 npc_id = 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 #getMutableNpcId()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getNpcId() { + return npcId; + } + + /** + * repeated uint32 npc_id = 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 getMutableNpcId() { + bitField0_ |= 0x00000001; + return npcId; + } + + /** + * repeated uint32 npc_id = 12; + * @param value the npcId to add + * @return this + */ + public GetFirstTalkNpcCsReq addNpcId(final int value) { + bitField0_ |= 0x00000001; + npcId.add(value); + return this; + } + + /** + * repeated uint32 npc_id = 12; + * @param values the npcId to add + * @return this + */ + public GetFirstTalkNpcCsReq addAllNpcId(final int... values) { + bitField0_ |= 0x00000001; + npcId.addAll(values); + return this; + } + + @Override + public GetFirstTalkNpcCsReq copyFrom(final GetFirstTalkNpcCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + npcId.copyFrom(other.npcId); + } + return this; + } + + @Override + public GetFirstTalkNpcCsReq mergeFrom(final GetFirstTalkNpcCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasNpcId()) { + getMutableNpcId().addAll(other.npcId); + } + return this; + } + + @Override + public GetFirstTalkNpcCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + npcId.clear(); + return this; + } + + @Override + public GetFirstTalkNpcCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + npcId.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GetFirstTalkNpcCsReq)) { + return false; + } + GetFirstTalkNpcCsReq other = (GetFirstTalkNpcCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasNpcId() || npcId.equals(other.npcId)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + for (int i = 0; i < npcId.length(); i++) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(npcId.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += (1 * npcId.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(npcId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GetFirstTalkNpcCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 98: { + // npcId [packed=true] + input.readPackedUInt32(npcId, 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 96: { + // npcId [packed=false] + tag = input.readRepeatedUInt32(npcId, tag); + bitField0_ |= 0x00000001; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeRepeatedUInt32(FieldNames.npcId, npcId); + } + output.endObject(); + } + + @Override + public GetFirstTalkNpcCsReq 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()) { + input.readRepeatedUInt32(npcId); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GetFirstTalkNpcCsReq clone() { + return new GetFirstTalkNpcCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GetFirstTalkNpcCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GetFirstTalkNpcCsReq(), data).checkInitialized(); + } + + public static GetFirstTalkNpcCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetFirstTalkNpcCsReq(), input).checkInitialized(); + } + + public static GetFirstTalkNpcCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetFirstTalkNpcCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating GetFirstTalkNpcCsReq messages + */ + public static MessageFactory getFactory() { + return GetFirstTalkNpcCsReqFactory.INSTANCE; + } + + private enum GetFirstTalkNpcCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public GetFirstTalkNpcCsReq create() { + return GetFirstTalkNpcCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName npcId = FieldName.forField("npcId", "npc_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GetFirstTalkNpcScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetFirstTalkNpcScRspOuterClass.java new file mode 100644 index 0000000..93d5269 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GetFirstTalkNpcScRspOuterClass.java @@ -0,0 +1,377 @@ +// 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 GetFirstTalkNpcScRspOuterClass { + /** + * Protobuf type {@code GetFirstTalkNpcScRsp} + */ + public static final class GetFirstTalkNpcScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 5; + */ + private int retcode; + + /** + * repeated .FirstNpcTalkInfo npc_talk_info_list = 3; + */ + private final RepeatedMessage npcTalkInfoList = RepeatedMessage.newEmptyInstance(FirstNpcTalkInfoOuterClass.FirstNpcTalkInfo.getFactory()); + + private GetFirstTalkNpcScRsp() { + } + + /** + * @return a new empty instance of {@code GetFirstTalkNpcScRsp} + */ + public static GetFirstTalkNpcScRsp newInstance() { + return new GetFirstTalkNpcScRsp(); + } + + /** + * 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 GetFirstTalkNpcScRsp 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 GetFirstTalkNpcScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * repeated .FirstNpcTalkInfo npc_talk_info_list = 3; + * @return whether the npcTalkInfoList field is set + */ + public boolean hasNpcTalkInfoList() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated .FirstNpcTalkInfo npc_talk_info_list = 3; + * @return this + */ + public GetFirstTalkNpcScRsp clearNpcTalkInfoList() { + bitField0_ &= ~0x00000002; + npcTalkInfoList.clear(); + return this; + } + + /** + * repeated .FirstNpcTalkInfo npc_talk_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 #getMutableNpcTalkInfoList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getNpcTalkInfoList() { + return npcTalkInfoList; + } + + /** + * repeated .FirstNpcTalkInfo npc_talk_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 + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableNpcTalkInfoList( + ) { + bitField0_ |= 0x00000002; + return npcTalkInfoList; + } + + /** + * repeated .FirstNpcTalkInfo npc_talk_info_list = 3; + * @param value the npcTalkInfoList to add + * @return this + */ + public GetFirstTalkNpcScRsp addNpcTalkInfoList( + final FirstNpcTalkInfoOuterClass.FirstNpcTalkInfo value) { + bitField0_ |= 0x00000002; + npcTalkInfoList.add(value); + return this; + } + + /** + * repeated .FirstNpcTalkInfo npc_talk_info_list = 3; + * @param values the npcTalkInfoList to add + * @return this + */ + public GetFirstTalkNpcScRsp addAllNpcTalkInfoList( + final FirstNpcTalkInfoOuterClass.FirstNpcTalkInfo... values) { + bitField0_ |= 0x00000002; + npcTalkInfoList.addAll(values); + return this; + } + + @Override + public GetFirstTalkNpcScRsp copyFrom(final GetFirstTalkNpcScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + npcTalkInfoList.copyFrom(other.npcTalkInfoList); + } + return this; + } + + @Override + public GetFirstTalkNpcScRsp mergeFrom(final GetFirstTalkNpcScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasNpcTalkInfoList()) { + getMutableNpcTalkInfoList().addAll(other.npcTalkInfoList); + } + return this; + } + + @Override + public GetFirstTalkNpcScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + npcTalkInfoList.clear(); + return this; + } + + @Override + public GetFirstTalkNpcScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + npcTalkInfoList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GetFirstTalkNpcScRsp)) { + return false; + } + GetFirstTalkNpcScRsp other = (GetFirstTalkNpcScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasNpcTalkInfoList() || npcTalkInfoList.equals(other.npcTalkInfoList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + for (int i = 0; i < npcTalkInfoList.length(); i++) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(npcTalkInfoList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * npcTalkInfoList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(npcTalkInfoList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GetFirstTalkNpcScRsp 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 != 26) { + break; + } + } + case 26: { + // npcTalkInfoList + tag = input.readRepeatedMessage(npcTalkInfoList, 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.retcode, retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedMessage(FieldNames.npcTalkInfoList, npcTalkInfoList); + } + output.endObject(); + } + + @Override + public GetFirstTalkNpcScRsp 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 -1326095175: + case 2015989466: { + if (input.isAtField(FieldNames.npcTalkInfoList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(npcTalkInfoList); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GetFirstTalkNpcScRsp clone() { + return new GetFirstTalkNpcScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GetFirstTalkNpcScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GetFirstTalkNpcScRsp(), data).checkInitialized(); + } + + public static GetFirstTalkNpcScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetFirstTalkNpcScRsp(), input).checkInitialized(); + } + + public static GetFirstTalkNpcScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetFirstTalkNpcScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating GetFirstTalkNpcScRsp messages + */ + public static MessageFactory getFactory() { + return GetFirstTalkNpcScRspFactory.INSTANCE; + } + + private enum GetFirstTalkNpcScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public GetFirstTalkNpcScRsp create() { + return GetFirstTalkNpcScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName npcTalkInfoList = FieldName.forField("npcTalkInfoList", "npc_talk_info_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/HandleRogueCommonPendingActionCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/HandleRogueCommonPendingActionCsReqOuterClass.java new file mode 100644 index 0000000..dd81167 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/HandleRogueCommonPendingActionCsReqOuterClass.java @@ -0,0 +1,671 @@ +// 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; + + /** + *
+     * PHDCDDGMOJD MKNBOHDIBMC = 1285;
+     * LNKCIHHBMCN LMGOMLNGOCL = 1618;
+     * ECNFHANMIJD PCEFILHFHDH = 368;
+     * GOGIJMPCNAO FBDCGDPCBNL = 569;
+     * 
+ * + * optional .RogueBonusSelectResult bonus_select_result = 136; + */ + private final RogueBonusSelectResultOuterClass.RogueBonusSelectResult bonusSelectResult = RogueBonusSelectResultOuterClass.RogueBonusSelectResult.newInstance(); + + /** + * optional .RogueMiracleSelectResult miracle_select_result = 194; + */ + private final RogueMiracleSelectResultOuterClass.RogueMiracleSelectResult miracleSelectResult = RogueMiracleSelectResultOuterClass.RogueMiracleSelectResult.newInstance(); + + /** + *
+     * KINJFMEPCKE LIIGPIFDPLK = 1157;
+     * CKGDDAIDEMO OECLKHEGBFM = 1521;
+     * 
+ * + * optional .RogueBuffRollInfo roll_buff = 689; + */ + private final RogueBuffRollInfoOuterClass.RogueBuffRollInfo rollBuff = RogueBuffRollInfoOuterClass.RogueBuffRollInfo.newInstance(); + + /** + * optional .RogueCommonBuffSelectResult buff_select_result = 1139; + */ + private final RogueCommonBuffSelectResultOuterClass.RogueCommonBuffSelectResult buffSelectResult = RogueCommonBuffSelectResultOuterClass.RogueCommonBuffSelectResult.newInstance(); + + private HandleRogueCommonPendingActionCsReq() { + } + + /** + * @return a new empty instance of {@code HandleRogueCommonPendingActionCsReq} + */ + public static HandleRogueCommonPendingActionCsReq newInstance() { + return new HandleRogueCommonPendingActionCsReq(); + } + + /** + *
+     * PHDCDDGMOJD MKNBOHDIBMC = 1285;
+     * LNKCIHHBMCN LMGOMLNGOCL = 1618;
+     * ECNFHANMIJD PCEFILHFHDH = 368;
+     * GOGIJMPCNAO FBDCGDPCBNL = 569;
+     * 
+ * + * optional .RogueBonusSelectResult bonus_select_result = 136; + * @return whether the bonusSelectResult field is set + */ + public boolean hasBonusSelectResult() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + *
+     * PHDCDDGMOJD MKNBOHDIBMC = 1285;
+     * LNKCIHHBMCN LMGOMLNGOCL = 1618;
+     * ECNFHANMIJD PCEFILHFHDH = 368;
+     * GOGIJMPCNAO FBDCGDPCBNL = 569;
+     * 
+ * + * optional .RogueBonusSelectResult bonus_select_result = 136; + * @return this + */ + public HandleRogueCommonPendingActionCsReq clearBonusSelectResult() { + bitField0_ &= ~0x00000001; + bonusSelectResult.clear(); + return this; + } + + /** + *
+     * PHDCDDGMOJD MKNBOHDIBMC = 1285;
+     * LNKCIHHBMCN LMGOMLNGOCL = 1618;
+     * ECNFHANMIJD PCEFILHFHDH = 368;
+     * GOGIJMPCNAO FBDCGDPCBNL = 569;
+     * 
+ * + * optional .RogueBonusSelectResult bonus_select_result = 136; + * + * This method returns 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; + } + + /** + *
+     * PHDCDDGMOJD MKNBOHDIBMC = 1285;
+     * LNKCIHHBMCN LMGOMLNGOCL = 1618;
+     * ECNFHANMIJD PCEFILHFHDH = 368;
+     * GOGIJMPCNAO FBDCGDPCBNL = 569;
+     * 
+ * + * optional .RogueBonusSelectResult bonus_select_result = 136; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of 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() { + bitField0_ |= 0x00000001; + return bonusSelectResult; + } + + /** + *
+     * PHDCDDGMOJD MKNBOHDIBMC = 1285;
+     * LNKCIHHBMCN LMGOMLNGOCL = 1618;
+     * ECNFHANMIJD PCEFILHFHDH = 368;
+     * GOGIJMPCNAO FBDCGDPCBNL = 569;
+     * 
+ * + * optional .RogueBonusSelectResult bonus_select_result = 136; + * @param value the bonusSelectResult to set + * @return this + */ + public HandleRogueCommonPendingActionCsReq setBonusSelectResult( + final RogueBonusSelectResultOuterClass.RogueBonusSelectResult value) { + bitField0_ |= 0x00000001; + bonusSelectResult.copyFrom(value); + return this; + } + + /** + * optional .RogueMiracleSelectResult miracle_select_result = 194; + * @return whether the miracleSelectResult field is set + */ + public boolean hasMiracleSelectResult() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .RogueMiracleSelectResult miracle_select_result = 194; + * @return this + */ + public HandleRogueCommonPendingActionCsReq clearMiracleSelectResult() { + bitField0_ &= ~0x00000002; + miracleSelectResult.clear(); + return this; + } + + /** + * optional .RogueMiracleSelectResult miracle_select_result = 194; + * + * This method returns 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; + } + + /** + * optional .RogueMiracleSelectResult miracle_select_result = 194; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of 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( + ) { + bitField0_ |= 0x00000002; + return miracleSelectResult; + } + + /** + * optional .RogueMiracleSelectResult miracle_select_result = 194; + * @param value the miracleSelectResult to set + * @return this + */ + public HandleRogueCommonPendingActionCsReq setMiracleSelectResult( + final RogueMiracleSelectResultOuterClass.RogueMiracleSelectResult value) { + bitField0_ |= 0x00000002; + miracleSelectResult.copyFrom(value); + return this; + } + + /** + *
+     * KINJFMEPCKE LIIGPIFDPLK = 1157;
+     * CKGDDAIDEMO OECLKHEGBFM = 1521;
+     * 
+ * + * optional .RogueBuffRollInfo roll_buff = 689; + * @return whether the rollBuff field is set + */ + public boolean hasRollBuff() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + *
+     * KINJFMEPCKE LIIGPIFDPLK = 1157;
+     * CKGDDAIDEMO OECLKHEGBFM = 1521;
+     * 
+ * + * optional .RogueBuffRollInfo roll_buff = 689; + * @return this + */ + public HandleRogueCommonPendingActionCsReq clearRollBuff() { + bitField0_ &= ~0x00000004; + rollBuff.clear(); + return this; + } + + /** + *
+     * KINJFMEPCKE LIIGPIFDPLK = 1157;
+     * CKGDDAIDEMO OECLKHEGBFM = 1521;
+     * 
+ * + * optional .RogueBuffRollInfo roll_buff = 689; + * + * This method returns 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; + } + + /** + *
+     * KINJFMEPCKE LIIGPIFDPLK = 1157;
+     * CKGDDAIDEMO OECLKHEGBFM = 1521;
+     * 
+ * + * optional .RogueBuffRollInfo roll_buff = 689; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of 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() { + bitField0_ |= 0x00000004; + return rollBuff; + } + + /** + *
+     * KINJFMEPCKE LIIGPIFDPLK = 1157;
+     * CKGDDAIDEMO OECLKHEGBFM = 1521;
+     * 
+ * + * optional .RogueBuffRollInfo roll_buff = 689; + * @param value the rollBuff to set + * @return this + */ + public HandleRogueCommonPendingActionCsReq setRollBuff( + final RogueBuffRollInfoOuterClass.RogueBuffRollInfo value) { + bitField0_ |= 0x00000004; + rollBuff.copyFrom(value); + return this; + } + + /** + * optional .RogueCommonBuffSelectResult buff_select_result = 1139; + * @return whether the buffSelectResult field is set + */ + public boolean hasBuffSelectResult() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .RogueCommonBuffSelectResult buff_select_result = 1139; + * @return this + */ + public HandleRogueCommonPendingActionCsReq clearBuffSelectResult() { + bitField0_ &= ~0x00000008; + buffSelectResult.clear(); + return this; + } + + /** + * optional .RogueCommonBuffSelectResult buff_select_result = 1139; + * + * This method returns 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 = 1139; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of 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( + ) { + bitField0_ |= 0x00000008; + return buffSelectResult; + } + + /** + * optional .RogueCommonBuffSelectResult buff_select_result = 1139; + * @param value the buffSelectResult to set + * @return this + */ + public HandleRogueCommonPendingActionCsReq setBuffSelectResult( + final RogueCommonBuffSelectResultOuterClass.RogueCommonBuffSelectResult value) { + bitField0_ |= 0x00000008; + buffSelectResult.copyFrom(value); + return this; + } + + @Override + public HandleRogueCommonPendingActionCsReq copyFrom( + final HandleRogueCommonPendingActionCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + bonusSelectResult.copyFrom(other.bonusSelectResult); + miracleSelectResult.copyFrom(other.miracleSelectResult); + rollBuff.copyFrom(other.rollBuff); + buffSelectResult.copyFrom(other.buffSelectResult); + } + return this; + } + + @Override + public HandleRogueCommonPendingActionCsReq mergeFrom( + final HandleRogueCommonPendingActionCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBonusSelectResult()) { + getMutableBonusSelectResult().mergeFrom(other.bonusSelectResult); + } + if (other.hasMiracleSelectResult()) { + getMutableMiracleSelectResult().mergeFrom(other.miracleSelectResult); + } + if (other.hasRollBuff()) { + getMutableRollBuff().mergeFrom(other.rollBuff); + } + if (other.hasBuffSelectResult()) { + getMutableBuffSelectResult().mergeFrom(other.buffSelectResult); + } + return this; + } + + @Override + public HandleRogueCommonPendingActionCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + bonusSelectResult.clear(); + miracleSelectResult.clear(); + rollBuff.clear(); + buffSelectResult.clear(); + return this; + } + + @Override + public HandleRogueCommonPendingActionCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + bonusSelectResult.clearQuick(); + miracleSelectResult.clearQuick(); + rollBuff.clearQuick(); + buffSelectResult.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_ + && (!hasBonusSelectResult() || bonusSelectResult.equals(other.bonusSelectResult)) + && (!hasMiracleSelectResult() || miracleSelectResult.equals(other.miracleSelectResult)) + && (!hasRollBuff() || rollBuff.equals(other.rollBuff)) + && (!hasBuffSelectResult() || buffSelectResult.equals(other.buffSelectResult)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawLittleEndian16((short) 2242); + output.writeMessageNoTag(bonusSelectResult); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawLittleEndian16((short) 3218); + output.writeMessageNoTag(miracleSelectResult); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawLittleEndian16((short) 11146); + output.writeMessageNoTag(rollBuff); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawLittleEndian16((short) 18330); + output.writeMessageNoTag(buffSelectResult); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2 + ProtoSink.computeMessageSizeNoTag(bonusSelectResult); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2 + ProtoSink.computeMessageSizeNoTag(miracleSelectResult); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeMessageSizeNoTag(rollBuff); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2 + ProtoSink.computeMessageSizeNoTag(buffSelectResult); + } + 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 1090: { + // bonusSelectResult + input.readMessage(bonusSelectResult); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 1554) { + break; + } + } + case 1554: { + // miracleSelectResult + input.readMessage(miracleSelectResult); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 5514) { + break; + } + } + case 5514: { + // rollBuff + input.readMessage(rollBuff); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 9114) { + break; + } + } + case 9114: { + // buffSelectResult + input.readMessage(buffSelectResult); + 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.bonusSelectResult, bonusSelectResult); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.miracleSelectResult, miracleSelectResult); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.rollBuff, rollBuff); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeMessage(FieldNames.buffSelectResult, buffSelectResult); + } + output.endObject(); + } + + @Override + public HandleRogueCommonPendingActionCsReq mergeFrom(final JsonSource input) throws + IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 732920312: + case 396692640: { + if (input.isAtField(FieldNames.bonusSelectResult)) { + if (!input.trySkipNullValue()) { + input.readMessage(bonusSelectResult); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 961581898: + case 1097144690: { + if (input.isAtField(FieldNames.miracleSelectResult)) { + if (!input.trySkipNullValue()) { + input.readMessage(miracleSelectResult); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -260653456: + case 535908053: { + if (input.isAtField(FieldNames.rollBuff)) { + if (!input.trySkipNullValue()) { + input.readMessage(rollBuff); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -224789460: + case -839396908: { + if (input.isAtField(FieldNames.buffSelectResult)) { + if (!input.trySkipNullValue()) { + input.readMessage(buffSelectResult); + 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 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"); + + static final FieldName buffSelectResult = FieldName.forField("buffSelectResult", "buff_select_result"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/HandleRogueCommonPendingActionScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/HandleRogueCommonPendingActionScRspOuterClass.java new file mode 100644 index 0000000..34f060c --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/HandleRogueCommonPendingActionScRspOuterClass.java @@ -0,0 +1,829 @@ +// 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 = 3; + */ + private int retcode; + + /** + * optional uint32 times = 6; + */ + private int times; + + /** + *
+     * JNFKIKEOCDJ PMKFBIDBNMD = 278;
+     * NBBNKDNALML NHMMLPMPOGJ = 1188;
+     * 
+ * + * optional .RogueRerollBuff rogue_reroll_buff = 726; + */ + private final RogueRerollBuffOuterClass.RogueRerollBuff rogueRerollBuff = RogueRerollBuffOuterClass.RogueRerollBuff.newInstance(); + + /** + *
+     * CAJPKNLHPKI EDNKJDKBFBK = 1063;
+     * HAAFONHLFGK LMMCDOMELIG = 703;
+     * CFEFNJGJLMO CLLEHKCPKPF = 337;
+     * IAAPDOPPHGN NIMIHAMIMDC = 283;
+     * 
+ * + * optional .RogueBonusSelect bonus_select = 1149; + */ + private final RogueBonusSelectOuterClass.RogueBonusSelect bonusSelect = RogueBonusSelectOuterClass.RogueBonusSelect.newInstance(); + + /** + * optional .RogueBuffSelect rogue_buff_select = 1258; + */ + private final RogueBuffSelectOuterClass.RogueBuffSelect rogueBuffSelect = RogueBuffSelectOuterClass.RogueBuffSelect.newInstance(); + + /** + * optional .RogueMiracleSelect miracle_select = 1655; + */ + private final RogueMiracleSelectOuterClass.RogueMiracleSelect miracleSelect = RogueMiracleSelectOuterClass.RogueMiracleSelect.newInstance(); + + private HandleRogueCommonPendingActionScRsp() { + } + + /** + * @return a new empty instance of {@code HandleRogueCommonPendingActionScRsp} + */ + public static HandleRogueCommonPendingActionScRsp newInstance() { + return new HandleRogueCommonPendingActionScRsp(); + } + + /** + * 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 HandleRogueCommonPendingActionScRsp 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 HandleRogueCommonPendingActionScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional uint32 times = 6; + * @return whether the times field is set + */ + public boolean hasTimes() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 times = 6; + * @return this + */ + public HandleRogueCommonPendingActionScRsp clearTimes() { + bitField0_ &= ~0x00000002; + times = 0; + return this; + } + + /** + * optional uint32 times = 6; + * @return the times + */ + public int getTimes() { + return times; + } + + /** + * optional uint32 times = 6; + * @param value the times to set + * @return this + */ + public HandleRogueCommonPendingActionScRsp setTimes(final int value) { + bitField0_ |= 0x00000002; + times = value; + return this; + } + + /** + *
+     * JNFKIKEOCDJ PMKFBIDBNMD = 278;
+     * NBBNKDNALML NHMMLPMPOGJ = 1188;
+     * 
+ * + * optional .RogueRerollBuff rogue_reroll_buff = 726; + * @return whether the rogueRerollBuff field is set + */ + public boolean hasRogueRerollBuff() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + *
+     * JNFKIKEOCDJ PMKFBIDBNMD = 278;
+     * NBBNKDNALML NHMMLPMPOGJ = 1188;
+     * 
+ * + * optional .RogueRerollBuff rogue_reroll_buff = 726; + * @return this + */ + public HandleRogueCommonPendingActionScRsp clearRogueRerollBuff() { + bitField0_ &= ~0x00000004; + rogueRerollBuff.clear(); + return this; + } + + /** + *
+     * JNFKIKEOCDJ PMKFBIDBNMD = 278;
+     * NBBNKDNALML NHMMLPMPOGJ = 1188;
+     * 
+ * + * optional .RogueRerollBuff rogue_reroll_buff = 726; + * + * This method returns 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; + } + + /** + *
+     * JNFKIKEOCDJ PMKFBIDBNMD = 278;
+     * NBBNKDNALML NHMMLPMPOGJ = 1188;
+     * 
+ * + * optional .RogueRerollBuff rogue_reroll_buff = 726; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of 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_ |= 0x00000004; + return rogueRerollBuff; + } + + /** + *
+     * JNFKIKEOCDJ PMKFBIDBNMD = 278;
+     * NBBNKDNALML NHMMLPMPOGJ = 1188;
+     * 
+ * + * optional .RogueRerollBuff rogue_reroll_buff = 726; + * @param value the rogueRerollBuff to set + * @return this + */ + public HandleRogueCommonPendingActionScRsp setRogueRerollBuff( + final RogueRerollBuffOuterClass.RogueRerollBuff value) { + bitField0_ |= 0x00000004; + rogueRerollBuff.copyFrom(value); + return this; + } + + /** + *
+     * CAJPKNLHPKI EDNKJDKBFBK = 1063;
+     * HAAFONHLFGK LMMCDOMELIG = 703;
+     * CFEFNJGJLMO CLLEHKCPKPF = 337;
+     * IAAPDOPPHGN NIMIHAMIMDC = 283;
+     * 
+ * + * optional .RogueBonusSelect bonus_select = 1149; + * @return whether the bonusSelect field is set + */ + public boolean hasBonusSelect() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + *
+     * CAJPKNLHPKI EDNKJDKBFBK = 1063;
+     * HAAFONHLFGK LMMCDOMELIG = 703;
+     * CFEFNJGJLMO CLLEHKCPKPF = 337;
+     * IAAPDOPPHGN NIMIHAMIMDC = 283;
+     * 
+ * + * optional .RogueBonusSelect bonus_select = 1149; + * @return this + */ + public HandleRogueCommonPendingActionScRsp clearBonusSelect() { + bitField0_ &= ~0x00000008; + bonusSelect.clear(); + return this; + } + + /** + *
+     * CAJPKNLHPKI EDNKJDKBFBK = 1063;
+     * HAAFONHLFGK LMMCDOMELIG = 703;
+     * CFEFNJGJLMO CLLEHKCPKPF = 337;
+     * IAAPDOPPHGN NIMIHAMIMDC = 283;
+     * 
+ * + * optional .RogueBonusSelect bonus_select = 1149; + * + * This method returns 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; + } + + /** + *
+     * CAJPKNLHPKI EDNKJDKBFBK = 1063;
+     * HAAFONHLFGK LMMCDOMELIG = 703;
+     * CFEFNJGJLMO CLLEHKCPKPF = 337;
+     * IAAPDOPPHGN NIMIHAMIMDC = 283;
+     * 
+ * + * optional .RogueBonusSelect bonus_select = 1149; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of 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; + } + + /** + *
+     * CAJPKNLHPKI EDNKJDKBFBK = 1063;
+     * HAAFONHLFGK LMMCDOMELIG = 703;
+     * CFEFNJGJLMO CLLEHKCPKPF = 337;
+     * IAAPDOPPHGN NIMIHAMIMDC = 283;
+     * 
+ * + * optional .RogueBonusSelect bonus_select = 1149; + * @param value the bonusSelect to set + * @return this + */ + public HandleRogueCommonPendingActionScRsp setBonusSelect( + final RogueBonusSelectOuterClass.RogueBonusSelect value) { + bitField0_ |= 0x00000008; + bonusSelect.copyFrom(value); + return this; + } + + /** + * optional .RogueBuffSelect rogue_buff_select = 1258; + * @return whether the rogueBuffSelect field is set + */ + public boolean hasRogueBuffSelect() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional .RogueBuffSelect rogue_buff_select = 1258; + * @return this + */ + public HandleRogueCommonPendingActionScRsp clearRogueBuffSelect() { + bitField0_ &= ~0x00000010; + rogueBuffSelect.clear(); + return this; + } + + /** + * optional .RogueBuffSelect rogue_buff_select = 1258; + * + * This method returns 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 = 1258; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of 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_ |= 0x00000010; + return rogueBuffSelect; + } + + /** + * optional .RogueBuffSelect rogue_buff_select = 1258; + * @param value the rogueBuffSelect to set + * @return this + */ + public HandleRogueCommonPendingActionScRsp setRogueBuffSelect( + final RogueBuffSelectOuterClass.RogueBuffSelect value) { + bitField0_ |= 0x00000010; + rogueBuffSelect.copyFrom(value); + return this; + } + + /** + * optional .RogueMiracleSelect miracle_select = 1655; + * @return whether the miracleSelect field is set + */ + public boolean hasMiracleSelect() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional .RogueMiracleSelect miracle_select = 1655; + * @return this + */ + public HandleRogueCommonPendingActionScRsp clearMiracleSelect() { + bitField0_ &= ~0x00000020; + miracleSelect.clear(); + return this; + } + + /** + * optional .RogueMiracleSelect miracle_select = 1655; + * + * This method returns 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 = 1655; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of 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 = 1655; + * @param value the miracleSelect to set + * @return this + */ + public HandleRogueCommonPendingActionScRsp setMiracleSelect( + final RogueMiracleSelectOuterClass.RogueMiracleSelect value) { + bitField0_ |= 0x00000020; + miracleSelect.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; + times = other.times; + rogueRerollBuff.copyFrom(other.rogueRerollBuff); + bonusSelect.copyFrom(other.bonusSelect); + rogueBuffSelect.copyFrom(other.rogueBuffSelect); + miracleSelect.copyFrom(other.miracleSelect); + } + return this; + } + + @Override + public HandleRogueCommonPendingActionScRsp mergeFrom( + final HandleRogueCommonPendingActionScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasTimes()) { + setTimes(other.times); + } + if (other.hasRogueRerollBuff()) { + getMutableRogueRerollBuff().mergeFrom(other.rogueRerollBuff); + } + if (other.hasBonusSelect()) { + getMutableBonusSelect().mergeFrom(other.bonusSelect); + } + if (other.hasRogueBuffSelect()) { + getMutableRogueBuffSelect().mergeFrom(other.rogueBuffSelect); + } + if (other.hasMiracleSelect()) { + getMutableMiracleSelect().mergeFrom(other.miracleSelect); + } + return this; + } + + @Override + public HandleRogueCommonPendingActionScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + times = 0; + rogueRerollBuff.clear(); + bonusSelect.clear(); + rogueBuffSelect.clear(); + miracleSelect.clear(); + return this; + } + + @Override + public HandleRogueCommonPendingActionScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + rogueRerollBuff.clearQuick(); + bonusSelect.clearQuick(); + rogueBuffSelect.clearQuick(); + miracleSelect.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) + && (!hasTimes() || times == other.times) + && (!hasRogueRerollBuff() || rogueRerollBuff.equals(other.rogueRerollBuff)) + && (!hasBonusSelect() || bonusSelect.equals(other.bonusSelect)) + && (!hasRogueBuffSelect() || rogueBuffSelect.equals(other.rogueBuffSelect)) + && (!hasMiracleSelect() || miracleSelect.equals(other.miracleSelect)); + } + + @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) 48); + output.writeUInt32NoTag(times); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawLittleEndian16((short) 11698); + output.writeMessageNoTag(rogueRerollBuff); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawLittleEndian16((short) 18410); + output.writeMessageNoTag(bonusSelect); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawLittleEndian16((short) 20178); + output.writeMessageNoTag(rogueBuffSelect); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawLittleEndian16((short) 26554); + output.writeMessageNoTag(miracleSelect); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(times); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeMessageSizeNoTag(rogueRerollBuff); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2 + ProtoSink.computeMessageSizeNoTag(bonusSelect); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 2 + ProtoSink.computeMessageSizeNoTag(rogueBuffSelect); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 2 + ProtoSink.computeMessageSizeNoTag(miracleSelect); + } + 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 24: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // times + times = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 5810) { + break; + } + } + case 5810: { + // rogueRerollBuff + input.readMessage(rogueRerollBuff); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 9194) { + break; + } + } + case 9194: { + // bonusSelect + input.readMessage(bonusSelect); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 10066) { + break; + } + } + case 10066: { + // rogueBuffSelect + input.readMessage(rogueBuffSelect); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 13242) { + break; + } + } + case 13242: { + // miracleSelect + input.readMessage(miracleSelect); + 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.writeUInt32(FieldNames.times, times); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.rogueRerollBuff, rogueRerollBuff); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeMessage(FieldNames.bonusSelect, bonusSelect); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeMessage(FieldNames.rogueBuffSelect, rogueBuffSelect); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeMessage(FieldNames.miracleSelect, miracleSelect); + } + 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 110364486: { + if (input.isAtField(FieldNames.times)) { + if (!input.trySkipNullValue()) { + times = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -620807395: + case -555127011: { + if (input.isAtField(FieldNames.rogueRerollBuff)) { + if (!input.trySkipNullValue()) { + input.readMessage(rogueRerollBuff); + 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 -183502679: + case -1750117501: { + if (input.isAtField(FieldNames.rogueBuffSelect)) { + if (!input.trySkipNullValue()) { + input.readMessage(rogueBuffSelect); + 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; + } + 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 times = FieldName.forField("times"); + + static final FieldName rogueRerollBuff = FieldName.forField("rogueRerollBuff", "rogue_reroll_buff"); + + static final FieldName bonusSelect = FieldName.forField("bonusSelect", "bonus_select"); + + static final FieldName rogueBuffSelect = FieldName.forField("rogueBuffSelect", "rogue_buff_select"); + + static final FieldName miracleSelect = FieldName.forField("miracleSelect", "miracle_select"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ItemCostOuterClass.java b/src/generated/main/emu/lunarcore/proto/ItemCostOuterClass.java index 8bc9a11..f62cf1b 100644 --- a/src/generated/main/emu/lunarcore/proto/ItemCostOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ItemCostOuterClass.java @@ -31,7 +31,7 @@ public final class ItemCostOuterClass { /** * optional .PileItem pile_item = 6; */ - private final PileItemOuterClass.PileItem pileItem = PileItemOuterClass.PileItem.newInstance(); + private final PileItem pileItem = PileItem.newInstance(); private ItemCost() { } @@ -145,7 +145,7 @@ public final class ItemCostOuterClass { * * @return internal storage object for reading */ - public PileItemOuterClass.PileItem getPileItem() { + public PileItem getPileItem() { return pileItem; } @@ -158,7 +158,7 @@ public final class ItemCostOuterClass { * * @return internal storage object for modifications */ - public PileItemOuterClass.PileItem getMutablePileItem() { + public PileItem getMutablePileItem() { bitField0_ |= 0x00000004; return pileItem; } @@ -168,7 +168,7 @@ public final class ItemCostOuterClass { * @param value the pileItem to set * @return this */ - public ItemCost setPileItem(final PileItemOuterClass.PileItem value) { + public ItemCost setPileItem(final PileItem value) { bitField0_ |= 0x00000004; pileItem.copyFrom(value); return this; @@ -439,4 +439,330 @@ public final class ItemCostOuterClass { static final FieldName pileItem = FieldName.forField("pileItem", "pile_item"); } } + + /** + * Protobuf type {@code PileItem} + */ + public static final class PileItem extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 item_id = 10; + */ + private int itemId; + + /** + * optional uint32 item_num = 12; + */ + private int itemNum; + + private PileItem() { + } + + /** + * @return a new empty instance of {@code PileItem} + */ + public static PileItem newInstance() { + return new PileItem(); + } + + /** + * optional uint32 item_id = 10; + * @return whether the itemId field is set + */ + public boolean hasItemId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 item_id = 10; + * @return this + */ + public PileItem clearItemId() { + bitField0_ &= ~0x00000001; + itemId = 0; + return this; + } + + /** + * optional uint32 item_id = 10; + * @return the itemId + */ + public int getItemId() { + return itemId; + } + + /** + * optional uint32 item_id = 10; + * @param value the itemId to set + * @return this + */ + public PileItem setItemId(final int value) { + bitField0_ |= 0x00000001; + itemId = value; + return this; + } + + /** + * optional uint32 item_num = 12; + * @return whether the itemNum field is set + */ + public boolean hasItemNum() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 item_num = 12; + * @return this + */ + public PileItem clearItemNum() { + bitField0_ &= ~0x00000002; + 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_ |= 0x00000002; + itemNum = value; + return this; + } + + @Override + public PileItem copyFrom(final PileItem other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + itemId = other.itemId; + itemNum = other.itemNum; + } + return this; + } + + @Override + public PileItem mergeFrom(final PileItem other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasItemId()) { + setItemId(other.itemId); + } + if (other.hasItemNum()) { + setItemNum(other.itemNum); + } + return this; + } + + @Override + public PileItem clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + itemId = 0; + itemNum = 0; + return this; + } + + @Override + public PileItem 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 PileItem)) { + return false; + } + PileItem other = (PileItem) o; + return bitField0_ == other.bitField0_ + && (!hasItemId() || itemId == other.itemId) + && (!hasItemNum() || itemNum == other.itemNum); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(itemId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(itemNum); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(itemId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(itemNum); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public PileItem mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 80: { + // itemId + itemId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // itemNum + itemNum = 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.itemId, itemId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.itemNum, itemNum); + } + output.endObject(); + } + + @Override + public PileItem mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1178662002: + case 2116204999: { + if (input.isAtField(FieldNames.itemId)) { + if (!input.trySkipNullValue()) { + itemId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2116189043: + case 1177850970: { + if (input.isAtField(FieldNames.itemNum)) { + if (!input.trySkipNullValue()) { + itemNum = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public PileItem clone() { + return new PileItem().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static PileItem parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new PileItem(), data).checkInitialized(); + } + + public static PileItem parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new PileItem(), input).checkInitialized(); + } + + public static PileItem parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new PileItem(), input).checkInitialized(); + } + + /** + * @return factory for creating PileItem messages + */ + public static MessageFactory getFactory() { + return PileItemFactory.INSTANCE; + } + + private enum PileItemFactory implements MessageFactory { + INSTANCE; + + @Override + public PileItem create() { + return PileItem.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + 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/JHAHJFNNGHIOuterClass.java b/src/generated/main/emu/lunarcore/proto/JHAHJFNNGHIOuterClass.java new file mode 100644 index 0000000..52ae868 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/JHAHJFNNGHIOuterClass.java @@ -0,0 +1,600 @@ +// 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 JHAHJFNNGHIOuterClass { + /** + * Protobuf type {@code JHAHJFNNGHI} + */ + public static final class JHAHJFNNGHI extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + *
+     *  3
+     * 
+ * + * optional uint32 JPEBPGIEGPO = 14; + */ + private int jPEBPGIEGPO; + + /** + *
+     *  9
+     * 
+ * + * optional uint32 OIJBOCHMDKA = 15; + */ + private int oIJBOCHMDKA; + + /** + *
+     *  true
+     * 
+ * + * optional bool CGAFFPHCNEA = 1; + */ + private boolean cGAFFPHCNEA; + + /** + * repeated uint32 maze_unlocked = 8; + */ + private final RepeatedInt mazeUnlocked = RepeatedInt.newEmptyInstance(); + + private JHAHJFNNGHI() { + } + + /** + * @return a new empty instance of {@code JHAHJFNNGHI} + */ + public static JHAHJFNNGHI newInstance() { + return new JHAHJFNNGHI(); + } + + /** + *
+     *  3
+     * 
+ * + * optional uint32 JPEBPGIEGPO = 14; + * @return whether the jPEBPGIEGPO field is set + */ + public boolean hasJPEBPGIEGPO() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + *
+     *  3
+     * 
+ * + * optional uint32 JPEBPGIEGPO = 14; + * @return this + */ + public JHAHJFNNGHI clearJPEBPGIEGPO() { + bitField0_ &= ~0x00000001; + jPEBPGIEGPO = 0; + return this; + } + + /** + *
+     *  3
+     * 
+ * + * optional uint32 JPEBPGIEGPO = 14; + * @return the jPEBPGIEGPO + */ + public int getJPEBPGIEGPO() { + return jPEBPGIEGPO; + } + + /** + *
+     *  3
+     * 
+ * + * optional uint32 JPEBPGIEGPO = 14; + * @param value the jPEBPGIEGPO to set + * @return this + */ + public JHAHJFNNGHI setJPEBPGIEGPO(final int value) { + bitField0_ |= 0x00000001; + jPEBPGIEGPO = value; + return this; + } + + /** + *
+     *  9
+     * 
+ * + * optional uint32 OIJBOCHMDKA = 15; + * @return whether the oIJBOCHMDKA field is set + */ + public boolean hasOIJBOCHMDKA() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + *
+     *  9
+     * 
+ * + * optional uint32 OIJBOCHMDKA = 15; + * @return this + */ + public JHAHJFNNGHI clearOIJBOCHMDKA() { + bitField0_ &= ~0x00000002; + oIJBOCHMDKA = 0; + return this; + } + + /** + *
+     *  9
+     * 
+ * + * optional uint32 OIJBOCHMDKA = 15; + * @return the oIJBOCHMDKA + */ + public int getOIJBOCHMDKA() { + return oIJBOCHMDKA; + } + + /** + *
+     *  9
+     * 
+ * + * optional uint32 OIJBOCHMDKA = 15; + * @param value the oIJBOCHMDKA to set + * @return this + */ + public JHAHJFNNGHI setOIJBOCHMDKA(final int value) { + bitField0_ |= 0x00000002; + oIJBOCHMDKA = value; + return this; + } + + /** + *
+     *  true
+     * 
+ * + * optional bool CGAFFPHCNEA = 1; + * @return whether the cGAFFPHCNEA field is set + */ + public boolean hasCGAFFPHCNEA() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + *
+     *  true
+     * 
+ * + * optional bool CGAFFPHCNEA = 1; + * @return this + */ + public JHAHJFNNGHI clearCGAFFPHCNEA() { + bitField0_ &= ~0x00000004; + cGAFFPHCNEA = false; + return this; + } + + /** + *
+     *  true
+     * 
+ * + * optional bool CGAFFPHCNEA = 1; + * @return the cGAFFPHCNEA + */ + public boolean getCGAFFPHCNEA() { + return cGAFFPHCNEA; + } + + /** + *
+     *  true
+     * 
+ * + * optional bool CGAFFPHCNEA = 1; + * @param value the cGAFFPHCNEA to set + * @return this + */ + public JHAHJFNNGHI setCGAFFPHCNEA(final boolean value) { + bitField0_ |= 0x00000004; + cGAFFPHCNEA = value; + return this; + } + + /** + * repeated uint32 maze_unlocked = 8; + * @return whether the mazeUnlocked field is set + */ + public boolean hasMazeUnlocked() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated uint32 maze_unlocked = 8; + * @return this + */ + public JHAHJFNNGHI clearMazeUnlocked() { + bitField0_ &= ~0x00000008; + mazeUnlocked.clear(); + return this; + } + + /** + * repeated uint32 maze_unlocked = 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 #getMutableMazeUnlocked()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getMazeUnlocked() { + return mazeUnlocked; + } + + /** + * repeated uint32 maze_unlocked = 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 getMutableMazeUnlocked() { + bitField0_ |= 0x00000008; + return mazeUnlocked; + } + + /** + * repeated uint32 maze_unlocked = 8; + * @param value the mazeUnlocked to add + * @return this + */ + public JHAHJFNNGHI addMazeUnlocked(final int value) { + bitField0_ |= 0x00000008; + mazeUnlocked.add(value); + return this; + } + + /** + * repeated uint32 maze_unlocked = 8; + * @param values the mazeUnlocked to add + * @return this + */ + public JHAHJFNNGHI addAllMazeUnlocked(final int... values) { + bitField0_ |= 0x00000008; + mazeUnlocked.addAll(values); + return this; + } + + @Override + public JHAHJFNNGHI copyFrom(final JHAHJFNNGHI other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + jPEBPGIEGPO = other.jPEBPGIEGPO; + oIJBOCHMDKA = other.oIJBOCHMDKA; + cGAFFPHCNEA = other.cGAFFPHCNEA; + mazeUnlocked.copyFrom(other.mazeUnlocked); + } + return this; + } + + @Override + public JHAHJFNNGHI mergeFrom(final JHAHJFNNGHI other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasJPEBPGIEGPO()) { + setJPEBPGIEGPO(other.jPEBPGIEGPO); + } + if (other.hasOIJBOCHMDKA()) { + setOIJBOCHMDKA(other.oIJBOCHMDKA); + } + if (other.hasCGAFFPHCNEA()) { + setCGAFFPHCNEA(other.cGAFFPHCNEA); + } + if (other.hasMazeUnlocked()) { + getMutableMazeUnlocked().addAll(other.mazeUnlocked); + } + return this; + } + + @Override + public JHAHJFNNGHI clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + jPEBPGIEGPO = 0; + oIJBOCHMDKA = 0; + cGAFFPHCNEA = false; + mazeUnlocked.clear(); + return this; + } + + @Override + public JHAHJFNNGHI clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + mazeUnlocked.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof JHAHJFNNGHI)) { + return false; + } + JHAHJFNNGHI other = (JHAHJFNNGHI) o; + return bitField0_ == other.bitField0_ + && (!hasJPEBPGIEGPO() || jPEBPGIEGPO == other.jPEBPGIEGPO) + && (!hasOIJBOCHMDKA() || oIJBOCHMDKA == other.oIJBOCHMDKA) + && (!hasCGAFFPHCNEA() || cGAFFPHCNEA == other.cGAFFPHCNEA) + && (!hasMazeUnlocked() || mazeUnlocked.equals(other.mazeUnlocked)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(jPEBPGIEGPO); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(oIJBOCHMDKA); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 8); + output.writeBoolNoTag(cGAFFPHCNEA); + } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < mazeUnlocked.length(); i++) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(mazeUnlocked.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(jPEBPGIEGPO); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(oIJBOCHMDKA); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * mazeUnlocked.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(mazeUnlocked); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public JHAHJFNNGHI mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 112: { + // jPEBPGIEGPO + jPEBPGIEGPO = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // oIJBOCHMDKA + oIJBOCHMDKA = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 8) { + break; + } + } + case 8: { + // cGAFFPHCNEA + cGAFFPHCNEA = input.readBool(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 66) { + break; + } + } + case 66: { + // mazeUnlocked [packed=true] + input.readPackedUInt32(mazeUnlocked, 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: { + // mazeUnlocked [packed=false] + tag = input.readRepeatedUInt32(mazeUnlocked, tag); + bitField0_ |= 0x00000008; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.jPEBPGIEGPO, jPEBPGIEGPO); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.oIJBOCHMDKA, oIJBOCHMDKA); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBool(FieldNames.cGAFFPHCNEA, cGAFFPHCNEA); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedUInt32(FieldNames.mazeUnlocked, mazeUnlocked); + } + output.endObject(); + } + + @Override + public JHAHJFNNGHI mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 617496720: { + if (input.isAtField(FieldNames.jPEBPGIEGPO)) { + if (!input.trySkipNullValue()) { + jPEBPGIEGPO = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 148222799: { + if (input.isAtField(FieldNames.oIJBOCHMDKA)) { + if (!input.trySkipNullValue()) { + oIJBOCHMDKA = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -927350692: { + if (input.isAtField(FieldNames.cGAFFPHCNEA)) { + if (!input.trySkipNullValue()) { + cGAFFPHCNEA = input.readBool(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1835898942: + case -958227613: { + if (input.isAtField(FieldNames.mazeUnlocked)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(mazeUnlocked); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public JHAHJFNNGHI clone() { + return new JHAHJFNNGHI().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static JHAHJFNNGHI parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new JHAHJFNNGHI(), data).checkInitialized(); + } + + public static JHAHJFNNGHI parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new JHAHJFNNGHI(), input).checkInitialized(); + } + + public static JHAHJFNNGHI parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new JHAHJFNNGHI(), input).checkInitialized(); + } + + /** + * @return factory for creating JHAHJFNNGHI messages + */ + public static MessageFactory getFactory() { + return JHAHJFNNGHIFactory.INSTANCE; + } + + private enum JHAHJFNNGHIFactory implements MessageFactory { + INSTANCE; + + @Override + public JHAHJFNNGHI create() { + return JHAHJFNNGHI.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName jPEBPGIEGPO = FieldName.forField("JPEBPGIEGPO"); + + static final FieldName oIJBOCHMDKA = FieldName.forField("OIJBOCHMDKA"); + + static final FieldName cGAFFPHCNEA = FieldName.forField("CGAFFPHCNEA"); + + static final FieldName mazeUnlocked = FieldName.forField("mazeUnlocked", "maze_unlocked"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/KDHBAHABJMPOuterClass.java b/src/generated/main/emu/lunarcore/proto/KDHBAHABJMPOuterClass.java new file mode 100644 index 0000000..254bdb1 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/KDHBAHABJMPOuterClass.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; + +public final class KDHBAHABJMPOuterClass { + /** + * Protobuf type {@code KDHBAHABJMP} + */ + public static final class KDHBAHABJMP extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 HFCDDCPJGAK = 2; + */ + private int hFCDDCPJGAK; + + /** + * optional uint32 KAKJHOEBIOA = 5; + */ + private int kAKJHOEBIOA; + + /** + * optional uint32 LIHAFMAOKMG = 7; + */ + private int lIHAFMAOKMG; + + /** + * optional uint32 FNNEECKAFKK = 8; + */ + private int fNNEECKAFKK; + + /** + *
+     *  HJEALCCKPAO AMMMELMOKJF = 12;
+     * 
+ * + * optional bool CMJFDLMBIOK = 14; + */ + private boolean cMJFDLMBIOK; + + private KDHBAHABJMP() { + } + + /** + * @return a new empty instance of {@code KDHBAHABJMP} + */ + public static KDHBAHABJMP newInstance() { + return new KDHBAHABJMP(); + } + + /** + * optional uint32 HFCDDCPJGAK = 2; + * @return whether the hFCDDCPJGAK field is set + */ + public boolean hasHFCDDCPJGAK() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 HFCDDCPJGAK = 2; + * @return this + */ + public KDHBAHABJMP clearHFCDDCPJGAK() { + bitField0_ &= ~0x00000001; + hFCDDCPJGAK = 0; + return this; + } + + /** + * optional uint32 HFCDDCPJGAK = 2; + * @return the hFCDDCPJGAK + */ + public int getHFCDDCPJGAK() { + return hFCDDCPJGAK; + } + + /** + * optional uint32 HFCDDCPJGAK = 2; + * @param value the hFCDDCPJGAK to set + * @return this + */ + public KDHBAHABJMP setHFCDDCPJGAK(final int value) { + bitField0_ |= 0x00000001; + hFCDDCPJGAK = value; + return this; + } + + /** + * optional uint32 KAKJHOEBIOA = 5; + * @return whether the kAKJHOEBIOA field is set + */ + public boolean hasKAKJHOEBIOA() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 KAKJHOEBIOA = 5; + * @return this + */ + public KDHBAHABJMP clearKAKJHOEBIOA() { + bitField0_ &= ~0x00000002; + kAKJHOEBIOA = 0; + return this; + } + + /** + * optional uint32 KAKJHOEBIOA = 5; + * @return the kAKJHOEBIOA + */ + public int getKAKJHOEBIOA() { + return kAKJHOEBIOA; + } + + /** + * optional uint32 KAKJHOEBIOA = 5; + * @param value the kAKJHOEBIOA to set + * @return this + */ + public KDHBAHABJMP setKAKJHOEBIOA(final int value) { + bitField0_ |= 0x00000002; + kAKJHOEBIOA = value; + return this; + } + + /** + * optional uint32 LIHAFMAOKMG = 7; + * @return whether the lIHAFMAOKMG field is set + */ + public boolean hasLIHAFMAOKMG() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 LIHAFMAOKMG = 7; + * @return this + */ + public KDHBAHABJMP clearLIHAFMAOKMG() { + bitField0_ &= ~0x00000004; + lIHAFMAOKMG = 0; + return this; + } + + /** + * optional uint32 LIHAFMAOKMG = 7; + * @return the lIHAFMAOKMG + */ + public int getLIHAFMAOKMG() { + return lIHAFMAOKMG; + } + + /** + * optional uint32 LIHAFMAOKMG = 7; + * @param value the lIHAFMAOKMG to set + * @return this + */ + public KDHBAHABJMP setLIHAFMAOKMG(final int value) { + bitField0_ |= 0x00000004; + lIHAFMAOKMG = value; + return this; + } + + /** + * optional uint32 FNNEECKAFKK = 8; + * @return whether the fNNEECKAFKK field is set + */ + public boolean hasFNNEECKAFKK() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 FNNEECKAFKK = 8; + * @return this + */ + public KDHBAHABJMP clearFNNEECKAFKK() { + bitField0_ &= ~0x00000008; + fNNEECKAFKK = 0; + return this; + } + + /** + * optional uint32 FNNEECKAFKK = 8; + * @return the fNNEECKAFKK + */ + public int getFNNEECKAFKK() { + return fNNEECKAFKK; + } + + /** + * optional uint32 FNNEECKAFKK = 8; + * @param value the fNNEECKAFKK to set + * @return this + */ + public KDHBAHABJMP setFNNEECKAFKK(final int value) { + bitField0_ |= 0x00000008; + fNNEECKAFKK = value; + return this; + } + + /** + *
+     *  HJEALCCKPAO AMMMELMOKJF = 12;
+     * 
+ * + * optional bool CMJFDLMBIOK = 14; + * @return whether the cMJFDLMBIOK field is set + */ + public boolean hasCMJFDLMBIOK() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + *
+     *  HJEALCCKPAO AMMMELMOKJF = 12;
+     * 
+ * + * optional bool CMJFDLMBIOK = 14; + * @return this + */ + public KDHBAHABJMP clearCMJFDLMBIOK() { + bitField0_ &= ~0x00000010; + cMJFDLMBIOK = false; + return this; + } + + /** + *
+     *  HJEALCCKPAO AMMMELMOKJF = 12;
+     * 
+ * + * optional bool CMJFDLMBIOK = 14; + * @return the cMJFDLMBIOK + */ + public boolean getCMJFDLMBIOK() { + return cMJFDLMBIOK; + } + + /** + *
+     *  HJEALCCKPAO AMMMELMOKJF = 12;
+     * 
+ * + * optional bool CMJFDLMBIOK = 14; + * @param value the cMJFDLMBIOK to set + * @return this + */ + public KDHBAHABJMP setCMJFDLMBIOK(final boolean value) { + bitField0_ |= 0x00000010; + cMJFDLMBIOK = value; + return this; + } + + @Override + public KDHBAHABJMP copyFrom(final KDHBAHABJMP other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + hFCDDCPJGAK = other.hFCDDCPJGAK; + kAKJHOEBIOA = other.kAKJHOEBIOA; + lIHAFMAOKMG = other.lIHAFMAOKMG; + fNNEECKAFKK = other.fNNEECKAFKK; + cMJFDLMBIOK = other.cMJFDLMBIOK; + } + return this; + } + + @Override + public KDHBAHABJMP mergeFrom(final KDHBAHABJMP other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasHFCDDCPJGAK()) { + setHFCDDCPJGAK(other.hFCDDCPJGAK); + } + if (other.hasKAKJHOEBIOA()) { + setKAKJHOEBIOA(other.kAKJHOEBIOA); + } + if (other.hasLIHAFMAOKMG()) { + setLIHAFMAOKMG(other.lIHAFMAOKMG); + } + if (other.hasFNNEECKAFKK()) { + setFNNEECKAFKK(other.fNNEECKAFKK); + } + if (other.hasCMJFDLMBIOK()) { + setCMJFDLMBIOK(other.cMJFDLMBIOK); + } + return this; + } + + @Override + public KDHBAHABJMP clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + hFCDDCPJGAK = 0; + kAKJHOEBIOA = 0; + lIHAFMAOKMG = 0; + fNNEECKAFKK = 0; + cMJFDLMBIOK = false; + return this; + } + + @Override + public KDHBAHABJMP 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 KDHBAHABJMP)) { + return false; + } + KDHBAHABJMP other = (KDHBAHABJMP) o; + return bitField0_ == other.bitField0_ + && (!hasHFCDDCPJGAK() || hFCDDCPJGAK == other.hFCDDCPJGAK) + && (!hasKAKJHOEBIOA() || kAKJHOEBIOA == other.kAKJHOEBIOA) + && (!hasLIHAFMAOKMG() || lIHAFMAOKMG == other.lIHAFMAOKMG) + && (!hasFNNEECKAFKK() || fNNEECKAFKK == other.fNNEECKAFKK) + && (!hasCMJFDLMBIOK() || cMJFDLMBIOK == other.cMJFDLMBIOK); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(hFCDDCPJGAK); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(kAKJHOEBIOA); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(lIHAFMAOKMG); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(fNNEECKAFKK); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 112); + output.writeBoolNoTag(cMJFDLMBIOK); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(hFCDDCPJGAK); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(kAKJHOEBIOA); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(lIHAFMAOKMG); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(fNNEECKAFKK); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 2; + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public KDHBAHABJMP mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // hFCDDCPJGAK + hFCDDCPJGAK = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // kAKJHOEBIOA + kAKJHOEBIOA = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // lIHAFMAOKMG + lIHAFMAOKMG = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { + // fNNEECKAFKK + fNNEECKAFKK = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // cMJFDLMBIOK + cMJFDLMBIOK = 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.writeUInt32(FieldNames.hFCDDCPJGAK, hFCDDCPJGAK); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.kAKJHOEBIOA, kAKJHOEBIOA); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.lIHAFMAOKMG, lIHAFMAOKMG); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.fNNEECKAFKK, fNNEECKAFKK); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeBool(FieldNames.cMJFDLMBIOK, cMJFDLMBIOK); + } + output.endObject(); + } + + @Override + public KDHBAHABJMP mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1775850855: { + if (input.isAtField(FieldNames.hFCDDCPJGAK)) { + if (!input.trySkipNullValue()) { + hFCDDCPJGAK = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2008773982: { + if (input.isAtField(FieldNames.kAKJHOEBIOA)) { + if (!input.trySkipNullValue()) { + kAKJHOEBIOA = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -296464422: { + if (input.isAtField(FieldNames.lIHAFMAOKMG)) { + if (!input.trySkipNullValue()) { + lIHAFMAOKMG = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 169241555: { + if (input.isAtField(FieldNames.fNNEECKAFKK)) { + if (!input.trySkipNullValue()) { + fNNEECKAFKK = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1216373954: { + if (input.isAtField(FieldNames.cMJFDLMBIOK)) { + if (!input.trySkipNullValue()) { + cMJFDLMBIOK = input.readBool(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public KDHBAHABJMP clone() { + return new KDHBAHABJMP().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static KDHBAHABJMP parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new KDHBAHABJMP(), data).checkInitialized(); + } + + public static KDHBAHABJMP parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new KDHBAHABJMP(), input).checkInitialized(); + } + + public static KDHBAHABJMP parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new KDHBAHABJMP(), input).checkInitialized(); + } + + /** + * @return factory for creating KDHBAHABJMP messages + */ + public static MessageFactory getFactory() { + return KDHBAHABJMPFactory.INSTANCE; + } + + private enum KDHBAHABJMPFactory implements MessageFactory { + INSTANCE; + + @Override + public KDHBAHABJMP create() { + return KDHBAHABJMP.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName hFCDDCPJGAK = FieldName.forField("HFCDDCPJGAK"); + + static final FieldName kAKJHOEBIOA = FieldName.forField("KAKJHOEBIOA"); + + static final FieldName lIHAFMAOKMG = FieldName.forField("LIHAFMAOKMG"); + + static final FieldName fNNEECKAFKK = FieldName.forField("FNNEECKAFKK"); + + static final FieldName cMJFDLMBIOK = FieldName.forField("CMJFDLMBIOK"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/LMDFPHAHJGLOuterClass.java b/src/generated/main/emu/lunarcore/proto/LMDFPHAHJGLOuterClass.java new file mode 100644 index 0000000..5031c02 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/LMDFPHAHJGLOuterClass.java @@ -0,0 +1,299 @@ +// 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 LMDFPHAHJGLOuterClass { + /** + * Protobuf type {@code LMDFPHAHJGL} + */ + public static final class LMDFPHAHJGL extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * repeated uint32 PFOIMEJPCIP = 12; + */ + private final RepeatedInt pFOIMEJPCIP = RepeatedInt.newEmptyInstance(); + + private LMDFPHAHJGL() { + } + + /** + * @return a new empty instance of {@code LMDFPHAHJGL} + */ + public static LMDFPHAHJGL newInstance() { + return new LMDFPHAHJGL(); + } + + /** + * repeated uint32 PFOIMEJPCIP = 12; + * @return whether the pFOIMEJPCIP field is set + */ + public boolean hasPFOIMEJPCIP() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * repeated uint32 PFOIMEJPCIP = 12; + * @return this + */ + public LMDFPHAHJGL clearPFOIMEJPCIP() { + bitField0_ &= ~0x00000001; + pFOIMEJPCIP.clear(); + return this; + } + + /** + * repeated uint32 PFOIMEJPCIP = 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 #getMutablePFOIMEJPCIP()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getPFOIMEJPCIP() { + return pFOIMEJPCIP; + } + + /** + * repeated uint32 PFOIMEJPCIP = 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 getMutablePFOIMEJPCIP() { + bitField0_ |= 0x00000001; + return pFOIMEJPCIP; + } + + /** + * repeated uint32 PFOIMEJPCIP = 12; + * @param value the pFOIMEJPCIP to add + * @return this + */ + public LMDFPHAHJGL addPFOIMEJPCIP(final int value) { + bitField0_ |= 0x00000001; + pFOIMEJPCIP.add(value); + return this; + } + + /** + * repeated uint32 PFOIMEJPCIP = 12; + * @param values the pFOIMEJPCIP to add + * @return this + */ + public LMDFPHAHJGL addAllPFOIMEJPCIP(final int... values) { + bitField0_ |= 0x00000001; + pFOIMEJPCIP.addAll(values); + return this; + } + + @Override + public LMDFPHAHJGL copyFrom(final LMDFPHAHJGL other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + pFOIMEJPCIP.copyFrom(other.pFOIMEJPCIP); + } + return this; + } + + @Override + public LMDFPHAHJGL mergeFrom(final LMDFPHAHJGL other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasPFOIMEJPCIP()) { + getMutablePFOIMEJPCIP().addAll(other.pFOIMEJPCIP); + } + return this; + } + + @Override + public LMDFPHAHJGL clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + pFOIMEJPCIP.clear(); + return this; + } + + @Override + public LMDFPHAHJGL clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + pFOIMEJPCIP.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof LMDFPHAHJGL)) { + return false; + } + LMDFPHAHJGL other = (LMDFPHAHJGL) o; + return bitField0_ == other.bitField0_ + && (!hasPFOIMEJPCIP() || pFOIMEJPCIP.equals(other.pFOIMEJPCIP)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + for (int i = 0; i < pFOIMEJPCIP.length(); i++) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(pFOIMEJPCIP.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += (1 * pFOIMEJPCIP.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(pFOIMEJPCIP); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public LMDFPHAHJGL mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 98: { + // pFOIMEJPCIP [packed=true] + input.readPackedUInt32(pFOIMEJPCIP, 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 96: { + // pFOIMEJPCIP [packed=false] + tag = input.readRepeatedUInt32(pFOIMEJPCIP, tag); + bitField0_ |= 0x00000001; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeRepeatedUInt32(FieldNames.pFOIMEJPCIP, pFOIMEJPCIP); + } + output.endObject(); + } + + @Override + public LMDFPHAHJGL mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 387398332: { + if (input.isAtField(FieldNames.pFOIMEJPCIP)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(pFOIMEJPCIP); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public LMDFPHAHJGL clone() { + return new LMDFPHAHJGL().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static LMDFPHAHJGL parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new LMDFPHAHJGL(), data).checkInitialized(); + } + + public static LMDFPHAHJGL parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new LMDFPHAHJGL(), input).checkInitialized(); + } + + public static LMDFPHAHJGL parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new LMDFPHAHJGL(), input).checkInitialized(); + } + + /** + * @return factory for creating LMDFPHAHJGL messages + */ + public static MessageFactory getFactory() { + return LMDFPHAHJGLFactory.INSTANCE; + } + + private enum LMDFPHAHJGLFactory implements MessageFactory { + INSTANCE; + + @Override + public LMDFPHAHJGL create() { + return LMDFPHAHJGL.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName pFOIMEJPCIP = FieldName.forField("PFOIMEJPCIP"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/LeaveRogueScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/LeaveRogueScRspOuterClass.java index 53c27e4..ca9575d 100644 --- a/src/generated/main/emu/lunarcore/proto/LeaveRogueScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/LeaveRogueScRspOuterClass.java @@ -19,25 +19,25 @@ public final class LeaveRogueScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 2; */ private int retcode; /** - * optional .SceneInfo scene = 3; - */ - private final SceneInfoOuterClass.SceneInfo scene = SceneInfoOuterClass.SceneInfo.newInstance(); - - /** - * optional .RogueInfo rogue_info = 5; + * optional .RogueInfo rogue_info = 6; */ private final RogueInfoOuterClass.RogueInfo rogueInfo = RogueInfoOuterClass.RogueInfo.newInstance(); /** - * optional .LineupInfo lineup = 13; + * optional .LineupInfo lineup = 12; */ private final LineupInfoOuterClass.LineupInfo lineup = LineupInfoOuterClass.LineupInfo.newInstance(); + /** + * optional .SceneInfo scene = 15; + */ + private final SceneInfoOuterClass.SceneInfo scene = SceneInfoOuterClass.SceneInfo.newInstance(); + private LeaveRogueScRsp() { } @@ -49,7 +49,7 @@ public final class LeaveRogueScRspOuterClass { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 2; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -57,7 +57,7 @@ public final class LeaveRogueScRspOuterClass { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 2; * @return this */ public LeaveRogueScRsp clearRetcode() { @@ -67,7 +67,7 @@ public final class LeaveRogueScRspOuterClass { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 2; * @return the retcode */ public int getRetcode() { @@ -75,7 +75,7 @@ public final class LeaveRogueScRspOuterClass { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 2; * @param value the retcode to set * @return this */ @@ -86,82 +86,25 @@ public final class LeaveRogueScRspOuterClass { } /** - * optional .SceneInfo scene = 3; - * @return whether the scene field is set + * optional .RogueInfo rogue_info = 6; + * @return whether the rogueInfo field is set */ - public boolean hasScene() { + public boolean hasRogueInfo() { return (bitField0_ & 0x00000002) != 0; } /** - * optional .SceneInfo scene = 3; - * @return this - */ - public LeaveRogueScRsp clearScene() { - bitField0_ &= ~0x00000002; - 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_ |= 0x00000002; - return scene; - } - - /** - * optional .SceneInfo scene = 3; - * @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 = 5; - * @return whether the rogueInfo field is set - */ - public boolean hasRogueInfo() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional .RogueInfo rogue_info = 5; + * optional .RogueInfo rogue_info = 6; * @return this */ public LeaveRogueScRsp clearRogueInfo() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; rogueInfo.clear(); return this; } /** - * optional .RogueInfo rogue_info = 5; + * optional .RogueInfo 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. @@ -175,7 +118,7 @@ public final class LeaveRogueScRspOuterClass { } /** - * optional .RogueInfo rogue_info = 5; + * optional .RogueInfo 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 @@ -184,41 +127,41 @@ public final class LeaveRogueScRspOuterClass { * @return internal storage object for modifications */ public RogueInfoOuterClass.RogueInfo getMutableRogueInfo() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; return rogueInfo; } /** - * optional .RogueInfo rogue_info = 5; + * optional .RogueInfo rogue_info = 6; * @param value the rogueInfo to set * @return this */ public LeaveRogueScRsp setRogueInfo(final RogueInfoOuterClass.RogueInfo value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; rogueInfo.copyFrom(value); return this; } /** - * optional .LineupInfo lineup = 13; + * optional .LineupInfo lineup = 12; * @return whether the lineup field is set */ public boolean hasLineup() { - return (bitField0_ & 0x00000008) != 0; + return (bitField0_ & 0x00000004) != 0; } /** - * optional .LineupInfo lineup = 13; + * optional .LineupInfo lineup = 12; * @return this */ public LeaveRogueScRsp clearLineup() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000004; lineup.clear(); return this; } /** - * optional .LineupInfo lineup = 13; + * optional .LineupInfo lineup = 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. @@ -232,7 +175,7 @@ public final class LeaveRogueScRspOuterClass { } /** - * optional .LineupInfo lineup = 13; + * optional .LineupInfo lineup = 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 @@ -241,30 +184,87 @@ public final class LeaveRogueScRspOuterClass { * @return internal storage object for modifications */ public LineupInfoOuterClass.LineupInfo getMutableLineup() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; return lineup; } /** - * optional .LineupInfo lineup = 13; + * optional .LineupInfo lineup = 12; * @param value the lineup to set * @return this */ public LeaveRogueScRsp setLineup(final LineupInfoOuterClass.LineupInfo value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; lineup.copyFrom(value); return this; } + /** + * optional .SceneInfo scene = 15; + * @return whether the scene field is set + */ + public boolean hasScene() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .SceneInfo scene = 15; + * @return this + */ + public LeaveRogueScRsp clearScene() { + bitField0_ &= ~0x00000008; + 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_ |= 0x00000008; + return scene; + } + + /** + * optional .SceneInfo scene = 15; + * @param value the scene to set + * @return this + */ + public LeaveRogueScRsp setScene(final SceneInfoOuterClass.SceneInfo value) { + bitField0_ |= 0x00000008; + scene.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); + scene.copyFrom(other.scene); } return this; } @@ -278,15 +278,15 @@ public final class LeaveRogueScRspOuterClass { 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); } + if (other.hasScene()) { + getMutableScene().mergeFrom(other.scene); + } return this; } @@ -298,9 +298,9 @@ public final class LeaveRogueScRspOuterClass { cachedSize = -1; bitField0_ = 0; retcode = 0; - scene.clear(); rogueInfo.clear(); lineup.clear(); + scene.clear(); return this; } @@ -311,9 +311,9 @@ public final class LeaveRogueScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - scene.clearQuick(); rogueInfo.clearQuick(); lineup.clearQuick(); + scene.clearQuick(); return this; } @@ -328,29 +328,29 @@ public final class LeaveRogueScRspOuterClass { 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)); + && (!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) 64); + output.writeRawByte((byte) 16); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 26); - output.writeMessageNoTag(scene); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 42); + output.writeRawByte((byte) 50); output.writeMessageNoTag(rogueInfo); } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 106); + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 98); output.writeMessageNoTag(lineup); } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 122); + output.writeMessageNoTag(scene); + } } @Override @@ -360,14 +360,14 @@ public final class LeaveRogueScRspOuterClass { 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) { + if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(lineup); } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(scene); + } return size; } @@ -378,36 +378,36 @@ public final class LeaveRogueScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 64: { + case 16: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 26) { + if (tag != 50) { break; } } - case 26: { - // scene - input.readMessage(scene); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 42) { - break; - } - } - case 42: { + case 50: { // rogueInfo input.readMessage(rogueInfo); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 106) { + if (tag != 98) { break; } } - case 106: { + case 98: { // lineup input.readMessage(lineup); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 122) { + break; + } + } + case 122: { + // scene + input.readMessage(scene); bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 0) { @@ -435,14 +435,14 @@ public final class LeaveRogueScRspOuterClass { 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) { + if ((bitField0_ & 0x00000004) != 0) { output.writeMessage(FieldNames.lineup, lineup); } + if ((bitField0_ & 0x00000008) != 0) { + output.writeMessage(FieldNames.scene, scene); + } output.endObject(); } @@ -464,23 +464,12 @@ public final class LeaveRogueScRspOuterClass { } 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; + bitField0_ |= 0x00000002; } } else { input.skipUnknownField(); @@ -491,6 +480,17 @@ public final class LeaveRogueScRspOuterClass { if (input.isAtField(FieldNames.lineup)) { if (!input.trySkipNullValue()) { input.readMessage(lineup); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 109254796: { + if (input.isAtField(FieldNames.scene)) { + if (!input.trySkipNullValue()) { + input.readMessage(scene); bitField0_ |= 0x00000008; } } else { @@ -553,11 +553,11 @@ public final class LeaveRogueScRspOuterClass { 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"); + + static final FieldName scene = FieldName.forField("scene"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/MECNPEEJJDEOuterClass.java b/src/generated/main/emu/lunarcore/proto/MECNPEEJJDEOuterClass.java new file mode 100644 index 0000000..5a4b7c5 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/MECNPEEJJDEOuterClass.java @@ -0,0 +1,278 @@ +// 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; + + /** + *
+     *  idk
+     * 
+ * + * optional uint32 GLFDHAJPJDF = 3; + */ + private int gLFDHAJPJDF; + + private MECNPEEJJDE() { + } + + /** + * @return a new empty instance of {@code MECNPEEJJDE} + */ + public static MECNPEEJJDE newInstance() { + return new MECNPEEJJDE(); + } + + /** + *
+     *  idk
+     * 
+ * + * optional uint32 GLFDHAJPJDF = 3; + * @return whether the gLFDHAJPJDF field is set + */ + public boolean hasGLFDHAJPJDF() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + *
+     *  idk
+     * 
+ * + * optional uint32 GLFDHAJPJDF = 3; + * @return this + */ + public MECNPEEJJDE clearGLFDHAJPJDF() { + bitField0_ &= ~0x00000001; + gLFDHAJPJDF = 0; + return this; + } + + /** + *
+     *  idk
+     * 
+ * + * optional uint32 GLFDHAJPJDF = 3; + * @return the gLFDHAJPJDF + */ + public int getGLFDHAJPJDF() { + return gLFDHAJPJDF; + } + + /** + *
+     *  idk
+     * 
+ * + * 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/NpcExtraInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/NpcExtraInfoOuterClass.java index f21dda3..23c0576 100644 --- a/src/generated/main/emu/lunarcore/proto/NpcExtraInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/NpcExtraInfoOuterClass.java @@ -19,7 +19,7 @@ public final class NpcExtraInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional .NpcRogueInfo rogue_info = 12; + * optional .NpcRogueInfo rogue_info = 14; */ private final NpcRogueInfoOuterClass.NpcRogueInfo rogueInfo = NpcRogueInfoOuterClass.NpcRogueInfo.newInstance(); @@ -34,7 +34,7 @@ public final class NpcExtraInfoOuterClass { } /** - * optional .NpcRogueInfo rogue_info = 12; + * optional .NpcRogueInfo rogue_info = 14; * @return whether the rogueInfo field is set */ public boolean hasRogueInfo() { @@ -42,7 +42,7 @@ public final class NpcExtraInfoOuterClass { } /** - * optional .NpcRogueInfo rogue_info = 12; + * optional .NpcRogueInfo rogue_info = 14; * @return this */ public NpcExtraInfo clearRogueInfo() { @@ -52,7 +52,7 @@ public final class NpcExtraInfoOuterClass { } /** - * optional .NpcRogueInfo rogue_info = 12; + * optional .NpcRogueInfo 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. @@ -66,7 +66,7 @@ public final class NpcExtraInfoOuterClass { } /** - * optional .NpcRogueInfo rogue_info = 12; + * optional .NpcRogueInfo 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 @@ -80,7 +80,7 @@ public final class NpcExtraInfoOuterClass { } /** - * optional .NpcRogueInfo rogue_info = 12; + * optional .NpcRogueInfo rogue_info = 14; * @param value the rogueInfo to set * @return this */ @@ -150,7 +150,7 @@ public final class NpcExtraInfoOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 98); + output.writeRawByte((byte) 114); output.writeMessageNoTag(rogueInfo); } } @@ -171,7 +171,7 @@ public final class NpcExtraInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 98: { + case 114: { // rogueInfo input.readMessage(rogueInfo); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/NpcRogueInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/NpcRogueInfoOuterClass.java index 18094ab..1f2db7c 100644 --- a/src/generated/main/emu/lunarcore/proto/NpcRogueInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/NpcRogueInfoOuterClass.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.RepeatedMessage; public final class NpcRogueInfoOuterClass { /** @@ -19,14 +20,48 @@ public final class NpcRogueInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 rogue_npc_id = 4; + *
+     * repeated KELFICDMDDG CEEFGPGODAA = 9;
+     * 
+ * + * optional uint32 GENMIFOCMJA = 1; + */ + private int gENMIFOCMJA; + + /** + * optional uint32 rogue_npc_id = 6; */ private int rogueNpcId; /** - * optional uint32 dialogue_group_id = 12; + * optional uint32 INJPFALMDHJ = 12; */ - private int dialogueGroupId; + private int iNJPFALMDHJ; + + /** + * optional uint32 GBMDBBBMBEJ = 14; + */ + private int gBMDBBBMBEJ; + + /** + * optional bool BHPGGEOBJHM = 5; + */ + private boolean bHPGGEOBJHM; + + /** + * optional bool MNINDBMAJKL = 7; + */ + private boolean mNINDBMAJKL; + + /** + * optional bool AGBFDIIKPKF = 13; + */ + private boolean aGBFDIIKPKF; + + /** + * repeated .NpcRogueInfo.HCGOEHLPCMDEntry HCGOEHLPCMD = 15; + */ + private final RepeatedMessage hCGOEHLPCMD = RepeatedMessage.newEmptyInstance(HCGOEHLPCMDEntry.getFactory()); private NpcRogueInfo() { } @@ -39,25 +74,78 @@ public final class NpcRogueInfoOuterClass { } /** - * optional uint32 rogue_npc_id = 4; - * @return whether the rogueNpcId field is set + *
+     * repeated KELFICDMDDG CEEFGPGODAA = 9;
+     * 
+ * + * optional uint32 GENMIFOCMJA = 1; + * @return whether the gENMIFOCMJA field is set */ - public boolean hasRogueNpcId() { + public boolean hasGENMIFOCMJA() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 rogue_npc_id = 4; + *
+     * repeated KELFICDMDDG CEEFGPGODAA = 9;
+     * 
+ * + * optional uint32 GENMIFOCMJA = 1; + * @return this + */ + public NpcRogueInfo clearGENMIFOCMJA() { + bitField0_ &= ~0x00000001; + gENMIFOCMJA = 0; + return this; + } + + /** + *
+     * repeated KELFICDMDDG CEEFGPGODAA = 9;
+     * 
+ * + * optional uint32 GENMIFOCMJA = 1; + * @return the gENMIFOCMJA + */ + public int getGENMIFOCMJA() { + return gENMIFOCMJA; + } + + /** + *
+     * repeated KELFICDMDDG CEEFGPGODAA = 9;
+     * 
+ * + * optional uint32 GENMIFOCMJA = 1; + * @param value the gENMIFOCMJA to set + * @return this + */ + public NpcRogueInfo setGENMIFOCMJA(final int value) { + bitField0_ |= 0x00000001; + gENMIFOCMJA = value; + return this; + } + + /** + * optional uint32 rogue_npc_id = 6; + * @return whether the rogueNpcId field is set + */ + public boolean hasRogueNpcId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 rogue_npc_id = 6; * @return this */ public NpcRogueInfo clearRogueNpcId() { - bitField0_ &= ~0x00000001; + bitField0_ &= ~0x00000002; rogueNpcId = 0; return this; } /** - * optional uint32 rogue_npc_id = 4; + * optional uint32 rogue_npc_id = 6; * @return the rogueNpcId */ public int getRogueNpcId() { @@ -65,50 +153,266 @@ public final class NpcRogueInfoOuterClass { } /** - * optional uint32 rogue_npc_id = 4; + * optional uint32 rogue_npc_id = 6; * @param value the rogueNpcId to set * @return this */ public NpcRogueInfo setRogueNpcId(final int value) { - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; rogueNpcId = value; return this; } /** - * optional uint32 dialogue_group_id = 12; - * @return whether the dialogueGroupId field is set + * optional uint32 INJPFALMDHJ = 12; + * @return whether the iNJPFALMDHJ field is set */ - public boolean hasDialogueGroupId() { - return (bitField0_ & 0x00000002) != 0; + public boolean hasINJPFALMDHJ() { + return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 dialogue_group_id = 12; + * optional uint32 INJPFALMDHJ = 12; * @return this */ - public NpcRogueInfo clearDialogueGroupId() { - bitField0_ &= ~0x00000002; - dialogueGroupId = 0; + public NpcRogueInfo clearINJPFALMDHJ() { + bitField0_ &= ~0x00000004; + iNJPFALMDHJ = 0; return this; } /** - * optional uint32 dialogue_group_id = 12; - * @return the dialogueGroupId + * optional uint32 INJPFALMDHJ = 12; + * @return the iNJPFALMDHJ */ - public int getDialogueGroupId() { - return dialogueGroupId; + public int getINJPFALMDHJ() { + return iNJPFALMDHJ; } /** - * optional uint32 dialogue_group_id = 12; - * @param value the dialogueGroupId to set + * optional uint32 INJPFALMDHJ = 12; + * @param value the iNJPFALMDHJ to set * @return this */ - public NpcRogueInfo setDialogueGroupId(final int value) { - bitField0_ |= 0x00000002; - dialogueGroupId = value; + public NpcRogueInfo setINJPFALMDHJ(final int value) { + bitField0_ |= 0x00000004; + iNJPFALMDHJ = value; + return this; + } + + /** + * optional uint32 GBMDBBBMBEJ = 14; + * @return whether the gBMDBBBMBEJ field is set + */ + public boolean hasGBMDBBBMBEJ() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 GBMDBBBMBEJ = 14; + * @return this + */ + public NpcRogueInfo clearGBMDBBBMBEJ() { + bitField0_ &= ~0x00000008; + gBMDBBBMBEJ = 0; + return this; + } + + /** + * optional uint32 GBMDBBBMBEJ = 14; + * @return the gBMDBBBMBEJ + */ + public int getGBMDBBBMBEJ() { + return gBMDBBBMBEJ; + } + + /** + * optional uint32 GBMDBBBMBEJ = 14; + * @param value the gBMDBBBMBEJ to set + * @return this + */ + public NpcRogueInfo setGBMDBBBMBEJ(final int value) { + bitField0_ |= 0x00000008; + gBMDBBBMBEJ = value; + return this; + } + + /** + * optional bool BHPGGEOBJHM = 5; + * @return whether the bHPGGEOBJHM field is set + */ + public boolean hasBHPGGEOBJHM() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional bool BHPGGEOBJHM = 5; + * @return this + */ + public NpcRogueInfo clearBHPGGEOBJHM() { + bitField0_ &= ~0x00000010; + bHPGGEOBJHM = false; + return this; + } + + /** + * optional bool BHPGGEOBJHM = 5; + * @return the bHPGGEOBJHM + */ + public boolean getBHPGGEOBJHM() { + return bHPGGEOBJHM; + } + + /** + * optional bool BHPGGEOBJHM = 5; + * @param value the bHPGGEOBJHM to set + * @return this + */ + public NpcRogueInfo setBHPGGEOBJHM(final boolean value) { + bitField0_ |= 0x00000010; + bHPGGEOBJHM = value; + return this; + } + + /** + * optional bool MNINDBMAJKL = 7; + * @return whether the mNINDBMAJKL field is set + */ + public boolean hasMNINDBMAJKL() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional bool MNINDBMAJKL = 7; + * @return this + */ + public NpcRogueInfo clearMNINDBMAJKL() { + bitField0_ &= ~0x00000020; + mNINDBMAJKL = false; + return this; + } + + /** + * optional bool MNINDBMAJKL = 7; + * @return the mNINDBMAJKL + */ + public boolean getMNINDBMAJKL() { + return mNINDBMAJKL; + } + + /** + * optional bool MNINDBMAJKL = 7; + * @param value the mNINDBMAJKL to set + * @return this + */ + public NpcRogueInfo setMNINDBMAJKL(final boolean value) { + bitField0_ |= 0x00000020; + mNINDBMAJKL = value; + return this; + } + + /** + * optional bool AGBFDIIKPKF = 13; + * @return whether the aGBFDIIKPKF field is set + */ + public boolean hasAGBFDIIKPKF() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional bool AGBFDIIKPKF = 13; + * @return this + */ + public NpcRogueInfo clearAGBFDIIKPKF() { + bitField0_ &= ~0x00000040; + aGBFDIIKPKF = false; + return this; + } + + /** + * optional bool AGBFDIIKPKF = 13; + * @return the aGBFDIIKPKF + */ + public boolean getAGBFDIIKPKF() { + return aGBFDIIKPKF; + } + + /** + * optional bool AGBFDIIKPKF = 13; + * @param value the aGBFDIIKPKF to set + * @return this + */ + public NpcRogueInfo setAGBFDIIKPKF(final boolean value) { + bitField0_ |= 0x00000040; + aGBFDIIKPKF = value; + return this; + } + + /** + * repeated .NpcRogueInfo.HCGOEHLPCMDEntry HCGOEHLPCMD = 15; + * @return whether the hCGOEHLPCMD field is set + */ + public boolean hasHCGOEHLPCMD() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * repeated .NpcRogueInfo.HCGOEHLPCMDEntry HCGOEHLPCMD = 15; + * @return this + */ + public NpcRogueInfo clearHCGOEHLPCMD() { + bitField0_ &= ~0x00000080; + hCGOEHLPCMD.clear(); + return this; + } + + /** + * repeated .NpcRogueInfo.HCGOEHLPCMDEntry HCGOEHLPCMD = 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 #getMutableHCGOEHLPCMD()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getHCGOEHLPCMD() { + return hCGOEHLPCMD; + } + + /** + * repeated .NpcRogueInfo.HCGOEHLPCMDEntry HCGOEHLPCMD = 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 getMutableHCGOEHLPCMD() { + bitField0_ |= 0x00000080; + return hCGOEHLPCMD; + } + + /** + * repeated .NpcRogueInfo.HCGOEHLPCMDEntry HCGOEHLPCMD = 15; + * @param value the hCGOEHLPCMD to add + * @return this + */ + public NpcRogueInfo addHCGOEHLPCMD(final HCGOEHLPCMDEntry value) { + bitField0_ |= 0x00000080; + hCGOEHLPCMD.add(value); + return this; + } + + /** + * repeated .NpcRogueInfo.HCGOEHLPCMDEntry HCGOEHLPCMD = 15; + * @param values the hCGOEHLPCMD to add + * @return this + */ + public NpcRogueInfo addAllHCGOEHLPCMD(final HCGOEHLPCMDEntry... values) { + bitField0_ |= 0x00000080; + hCGOEHLPCMD.addAll(values); return this; } @@ -117,8 +421,14 @@ public final class NpcRogueInfoOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; + gENMIFOCMJA = other.gENMIFOCMJA; rogueNpcId = other.rogueNpcId; - dialogueGroupId = other.dialogueGroupId; + iNJPFALMDHJ = other.iNJPFALMDHJ; + gBMDBBBMBEJ = other.gBMDBBBMBEJ; + bHPGGEOBJHM = other.bHPGGEOBJHM; + mNINDBMAJKL = other.mNINDBMAJKL; + aGBFDIIKPKF = other.aGBFDIIKPKF; + hCGOEHLPCMD.copyFrom(other.hCGOEHLPCMD); } return this; } @@ -129,11 +439,29 @@ public final class NpcRogueInfoOuterClass { return this; } cachedSize = -1; + if (other.hasGENMIFOCMJA()) { + setGENMIFOCMJA(other.gENMIFOCMJA); + } if (other.hasRogueNpcId()) { setRogueNpcId(other.rogueNpcId); } - if (other.hasDialogueGroupId()) { - setDialogueGroupId(other.dialogueGroupId); + if (other.hasINJPFALMDHJ()) { + setINJPFALMDHJ(other.iNJPFALMDHJ); + } + if (other.hasGBMDBBBMBEJ()) { + setGBMDBBBMBEJ(other.gBMDBBBMBEJ); + } + if (other.hasBHPGGEOBJHM()) { + setBHPGGEOBJHM(other.bHPGGEOBJHM); + } + if (other.hasMNINDBMAJKL()) { + setMNINDBMAJKL(other.mNINDBMAJKL); + } + if (other.hasAGBFDIIKPKF()) { + setAGBFDIIKPKF(other.aGBFDIIKPKF); + } + if (other.hasHCGOEHLPCMD()) { + getMutableHCGOEHLPCMD().addAll(other.hCGOEHLPCMD); } return this; } @@ -145,8 +473,14 @@ public final class NpcRogueInfoOuterClass { } cachedSize = -1; bitField0_ = 0; + gENMIFOCMJA = 0; rogueNpcId = 0; - dialogueGroupId = 0; + iNJPFALMDHJ = 0; + gBMDBBBMBEJ = 0; + bHPGGEOBJHM = false; + mNINDBMAJKL = false; + aGBFDIIKPKF = false; + hCGOEHLPCMD.clear(); return this; } @@ -157,6 +491,7 @@ public final class NpcRogueInfoOuterClass { } cachedSize = -1; bitField0_ = 0; + hCGOEHLPCMD.clearQuick(); return this; } @@ -170,19 +505,51 @@ public final class NpcRogueInfoOuterClass { } NpcRogueInfo other = (NpcRogueInfo) o; return bitField0_ == other.bitField0_ + && (!hasGENMIFOCMJA() || gENMIFOCMJA == other.gENMIFOCMJA) && (!hasRogueNpcId() || rogueNpcId == other.rogueNpcId) - && (!hasDialogueGroupId() || dialogueGroupId == other.dialogueGroupId); + && (!hasINJPFALMDHJ() || iNJPFALMDHJ == other.iNJPFALMDHJ) + && (!hasGBMDBBBMBEJ() || gBMDBBBMBEJ == other.gBMDBBBMBEJ) + && (!hasBHPGGEOBJHM() || bHPGGEOBJHM == other.bHPGGEOBJHM) + && (!hasMNINDBMAJKL() || mNINDBMAJKL == other.mNINDBMAJKL) + && (!hasAGBFDIIKPKF() || aGBFDIIKPKF == other.aGBFDIIKPKF) + && (!hasHCGOEHLPCMD() || hCGOEHLPCMD.equals(other.hCGOEHLPCMD)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 32); - output.writeUInt32NoTag(rogueNpcId); + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(gENMIFOCMJA); } if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(rogueNpcId); + } + if ((bitField0_ & 0x00000004) != 0) { output.writeRawByte((byte) 96); - output.writeUInt32NoTag(dialogueGroupId); + output.writeUInt32NoTag(iNJPFALMDHJ); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(gBMDBBBMBEJ); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 40); + output.writeBoolNoTag(bHPGGEOBJHM); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 56); + output.writeBoolNoTag(mNINDBMAJKL); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 104); + output.writeBoolNoTag(aGBFDIIKPKF); + } + if ((bitField0_ & 0x00000080) != 0) { + for (int i = 0; i < hCGOEHLPCMD.length(); i++) { + output.writeRawByte((byte) 122); + output.writeMessageNoTag(hCGOEHLPCMD.get(i)); + } } } @@ -190,10 +557,28 @@ public final class NpcRogueInfoOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(rogueNpcId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(gENMIFOCMJA); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(dialogueGroupId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(rogueNpcId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(iNJPFALMDHJ); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(gBMDBBBMBEJ); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000020) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000040) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000080) != 0) { + size += (1 * hCGOEHLPCMD.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(hCGOEHLPCMD); } return size; } @@ -205,20 +590,73 @@ public final class NpcRogueInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 32: { + case 8: { + // gENMIFOCMJA + gENMIFOCMJA = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { // rogueNpcId rogueNpcId = input.readUInt32(); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 96) { break; } } case 96: { - // dialogueGroupId - dialogueGroupId = input.readUInt32(); - bitField0_ |= 0x00000002; + // iNJPFALMDHJ + iNJPFALMDHJ = input.readUInt32(); + bitField0_ |= 0x00000004; tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // gBMDBBBMBEJ + gBMDBBBMBEJ = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // bHPGGEOBJHM + bHPGGEOBJHM = input.readBool(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // mNINDBMAJKL + mNINDBMAJKL = input.readBool(); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // aGBFDIIKPKF + aGBFDIIKPKF = input.readBool(); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 122) { + break; + } + } + case 122: { + // hCGOEHLPCMD + tag = input.readRepeatedMessage(hCGOEHLPCMD, tag); + bitField0_ |= 0x00000080; if (tag != 0) { break; } @@ -241,10 +679,28 @@ public final class NpcRogueInfoOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.rogueNpcId, rogueNpcId); + output.writeUInt32(FieldNames.gENMIFOCMJA, gENMIFOCMJA); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.dialogueGroupId, dialogueGroupId); + output.writeUInt32(FieldNames.rogueNpcId, rogueNpcId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.iNJPFALMDHJ, iNJPFALMDHJ); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.gBMDBBBMBEJ, gBMDBBBMBEJ); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeBool(FieldNames.bHPGGEOBJHM, bHPGGEOBJHM); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeBool(FieldNames.mNINDBMAJKL, mNINDBMAJKL); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeBool(FieldNames.aGBFDIIKPKF, aGBFDIIKPKF); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRepeatedMessage(FieldNames.hCGOEHLPCMD, hCGOEHLPCMD); } output.endObject(); } @@ -256,11 +712,10 @@ public final class NpcRogueInfoOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -1140086238: - case 1751967038: { - if (input.isAtField(FieldNames.rogueNpcId)) { + case 543187766: { + if (input.isAtField(FieldNames.gENMIFOCMJA)) { if (!input.trySkipNullValue()) { - rogueNpcId = input.readUInt32(); + gENMIFOCMJA = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -268,11 +723,11 @@ public final class NpcRogueInfoOuterClass { } break; } - case 1758320386: - case 1899979106: { - if (input.isAtField(FieldNames.dialogueGroupId)) { + case -1140086238: + case 1751967038: { + if (input.isAtField(FieldNames.rogueNpcId)) { if (!input.trySkipNullValue()) { - dialogueGroupId = input.readUInt32(); + rogueNpcId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -280,6 +735,72 @@ public final class NpcRogueInfoOuterClass { } break; } + case 535806911: { + if (input.isAtField(FieldNames.iNJPFALMDHJ)) { + if (!input.trySkipNullValue()) { + iNJPFALMDHJ = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1904002038: { + if (input.isAtField(FieldNames.gBMDBBBMBEJ)) { + if (!input.trySkipNullValue()) { + gBMDBBBMBEJ = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1652898465: { + if (input.isAtField(FieldNames.bHPGGEOBJHM)) { + if (!input.trySkipNullValue()) { + bHPGGEOBJHM = input.readBool(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1486036461: { + if (input.isAtField(FieldNames.mNINDBMAJKL)) { + if (!input.trySkipNullValue()) { + mNINDBMAJKL = input.readBool(); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1115149894: { + if (input.isAtField(FieldNames.aGBFDIIKPKF)) { + if (!input.trySkipNullValue()) { + aGBFDIIKPKF = input.readBool(); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1102985776: { + if (input.isAtField(FieldNames.hCGOEHLPCMD)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(hCGOEHLPCMD); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } default: { input.skipUnknownField(); break; @@ -319,6 +840,331 @@ public final class NpcRogueInfoOuterClass { return NpcRogueInfoFactory.INSTANCE; } + /** + * Protobuf type {@code HCGOEHLPCMDEntry} + */ + public static final class HCGOEHLPCMDEntry 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 HCGOEHLPCMDEntry() { + } + + /** + * @return a new empty instance of {@code HCGOEHLPCMDEntry} + */ + public static HCGOEHLPCMDEntry newInstance() { + return new HCGOEHLPCMDEntry(); + } + + /** + * 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 HCGOEHLPCMDEntry 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 HCGOEHLPCMDEntry 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 HCGOEHLPCMDEntry 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 HCGOEHLPCMDEntry setValue(final int value) { + bitField0_ |= 0x00000002; + value_ = value; + return this; + } + + @Override + public HCGOEHLPCMDEntry copyFrom(final HCGOEHLPCMDEntry other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + key = other.key; + value_ = other.value_; + } + return this; + } + + @Override + public HCGOEHLPCMDEntry mergeFrom(final HCGOEHLPCMDEntry other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasKey()) { + setKey(other.key); + } + if (other.hasValue()) { + setValue(other.value_); + } + return this; + } + + @Override + public HCGOEHLPCMDEntry clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + key = 0; + value_ = 0; + return this; + } + + @Override + public HCGOEHLPCMDEntry 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 HCGOEHLPCMDEntry)) { + return false; + } + HCGOEHLPCMDEntry other = (HCGOEHLPCMDEntry) 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 HCGOEHLPCMDEntry 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 HCGOEHLPCMDEntry 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 HCGOEHLPCMDEntry clone() { + return new HCGOEHLPCMDEntry().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static HCGOEHLPCMDEntry parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new HCGOEHLPCMDEntry(), data).checkInitialized(); + } + + public static HCGOEHLPCMDEntry parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new HCGOEHLPCMDEntry(), input).checkInitialized(); + } + + public static HCGOEHLPCMDEntry parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new HCGOEHLPCMDEntry(), input).checkInitialized(); + } + + /** + * @return factory for creating HCGOEHLPCMDEntry messages + */ + public static MessageFactory getFactory() { + return HCGOEHLPCMDEntryFactory.INSTANCE; + } + + private enum HCGOEHLPCMDEntryFactory implements MessageFactory { + INSTANCE; + + @Override + public HCGOEHLPCMDEntry create() { + return HCGOEHLPCMDEntry.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; @@ -332,9 +1178,21 @@ public final class NpcRogueInfoOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { + static final FieldName gENMIFOCMJA = FieldName.forField("GENMIFOCMJA"); + static final FieldName rogueNpcId = FieldName.forField("rogueNpcId", "rogue_npc_id"); - static final FieldName dialogueGroupId = FieldName.forField("dialogueGroupId", "dialogue_group_id"); + static final FieldName iNJPFALMDHJ = FieldName.forField("INJPFALMDHJ"); + + static final FieldName gBMDBBBMBEJ = FieldName.forField("GBMDBBBMBEJ"); + + static final FieldName bHPGGEOBJHM = FieldName.forField("BHPGGEOBJHM"); + + static final FieldName mNINDBMAJKL = FieldName.forField("MNINDBMAJKL"); + + static final FieldName aGBFDIIKPKF = FieldName.forField("AGBFDIIKPKF"); + + static final FieldName hCGOEHLPCMD = FieldName.forField("HCGOEHLPCMD"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/OONJMMOMFHLOuterClass.java b/src/generated/main/emu/lunarcore/proto/OONJMMOMFHLOuterClass.java new file mode 100644 index 0000000..e5c1a18 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/OONJMMOMFHLOuterClass.java @@ -0,0 +1,292 @@ +// 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 OONJMMOMFHLOuterClass { + /** + * Protobuf type {@code OONJMMOMFHL} + */ + public static final class OONJMMOMFHL extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * repeated .KDHBAHABJMP AMEONEDBMDL = 7; + */ + private final RepeatedMessage aMEONEDBMDL = RepeatedMessage.newEmptyInstance(KDHBAHABJMPOuterClass.KDHBAHABJMP.getFactory()); + + private OONJMMOMFHL() { + } + + /** + * @return a new empty instance of {@code OONJMMOMFHL} + */ + public static OONJMMOMFHL newInstance() { + return new OONJMMOMFHL(); + } + + /** + * repeated .KDHBAHABJMP AMEONEDBMDL = 7; + * @return whether the aMEONEDBMDL field is set + */ + public boolean hasAMEONEDBMDL() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * repeated .KDHBAHABJMP AMEONEDBMDL = 7; + * @return this + */ + public OONJMMOMFHL clearAMEONEDBMDL() { + bitField0_ &= ~0x00000001; + aMEONEDBMDL.clear(); + return this; + } + + /** + * repeated .KDHBAHABJMP AMEONEDBMDL = 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 #getMutableAMEONEDBMDL()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getAMEONEDBMDL() { + return aMEONEDBMDL; + } + + /** + * repeated .KDHBAHABJMP AMEONEDBMDL = 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 getMutableAMEONEDBMDL() { + bitField0_ |= 0x00000001; + return aMEONEDBMDL; + } + + /** + * repeated .KDHBAHABJMP AMEONEDBMDL = 7; + * @param value the aMEONEDBMDL to add + * @return this + */ + public OONJMMOMFHL addAMEONEDBMDL(final KDHBAHABJMPOuterClass.KDHBAHABJMP value) { + bitField0_ |= 0x00000001; + aMEONEDBMDL.add(value); + return this; + } + + /** + * repeated .KDHBAHABJMP AMEONEDBMDL = 7; + * @param values the aMEONEDBMDL to add + * @return this + */ + public OONJMMOMFHL addAllAMEONEDBMDL(final KDHBAHABJMPOuterClass.KDHBAHABJMP... values) { + bitField0_ |= 0x00000001; + aMEONEDBMDL.addAll(values); + return this; + } + + @Override + public OONJMMOMFHL copyFrom(final OONJMMOMFHL other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + aMEONEDBMDL.copyFrom(other.aMEONEDBMDL); + } + return this; + } + + @Override + public OONJMMOMFHL mergeFrom(final OONJMMOMFHL other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasAMEONEDBMDL()) { + getMutableAMEONEDBMDL().addAll(other.aMEONEDBMDL); + } + return this; + } + + @Override + public OONJMMOMFHL clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + aMEONEDBMDL.clear(); + return this; + } + + @Override + public OONJMMOMFHL clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + aMEONEDBMDL.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof OONJMMOMFHL)) { + return false; + } + OONJMMOMFHL other = (OONJMMOMFHL) o; + return bitField0_ == other.bitField0_ + && (!hasAMEONEDBMDL() || aMEONEDBMDL.equals(other.aMEONEDBMDL)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + for (int i = 0; i < aMEONEDBMDL.length(); i++) { + output.writeRawByte((byte) 58); + output.writeMessageNoTag(aMEONEDBMDL.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += (1 * aMEONEDBMDL.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(aMEONEDBMDL); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public OONJMMOMFHL mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 58: { + // aMEONEDBMDL + tag = input.readRepeatedMessage(aMEONEDBMDL, 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.aMEONEDBMDL, aMEONEDBMDL); + } + output.endObject(); + } + + @Override + public OONJMMOMFHL mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -455539094: { + if (input.isAtField(FieldNames.aMEONEDBMDL)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(aMEONEDBMDL); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public OONJMMOMFHL clone() { + return new OONJMMOMFHL().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static OONJMMOMFHL parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new OONJMMOMFHL(), data).checkInitialized(); + } + + public static OONJMMOMFHL parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new OONJMMOMFHL(), input).checkInitialized(); + } + + public static OONJMMOMFHL parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new OONJMMOMFHL(), input).checkInitialized(); + } + + /** + * @return factory for creating OONJMMOMFHL messages + */ + public static MessageFactory getFactory() { + return OONJMMOMFHLFactory.INSTANCE; + } + + private enum OONJMMOMFHLFactory implements MessageFactory { + INSTANCE; + + @Override + public OONJMMOMFHL create() { + return OONJMMOMFHL.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName aMEONEDBMDL = FieldName.forField("AMEONEDBMDL"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/PickRogueAvatarCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/PickRogueAvatarCsReqOuterClass.java new file mode 100644 index 0000000..52a8b42 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/PickRogueAvatarCsReqOuterClass.java @@ -0,0 +1,301 @@ +// 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 PickRogueAvatarCsReqOuterClass { + /** + * Protobuf type {@code PickRogueAvatarCsReq} + */ + public static final class PickRogueAvatarCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * repeated uint32 base_avatar_list = 9; + */ + private final RepeatedInt baseAvatarList = RepeatedInt.newEmptyInstance(); + + private PickRogueAvatarCsReq() { + } + + /** + * @return a new empty instance of {@code PickRogueAvatarCsReq} + */ + public static PickRogueAvatarCsReq newInstance() { + return new PickRogueAvatarCsReq(); + } + + /** + * repeated uint32 base_avatar_list = 9; + * @return whether the baseAvatarList field is set + */ + public boolean hasBaseAvatarList() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * repeated uint32 base_avatar_list = 9; + * @return this + */ + public PickRogueAvatarCsReq clearBaseAvatarList() { + bitField0_ &= ~0x00000001; + baseAvatarList.clear(); + return this; + } + + /** + * repeated uint32 base_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 #getMutableBaseAvatarList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getBaseAvatarList() { + return baseAvatarList; + } + + /** + * repeated uint32 base_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 RepeatedInt getMutableBaseAvatarList() { + bitField0_ |= 0x00000001; + return baseAvatarList; + } + + /** + * repeated uint32 base_avatar_list = 9; + * @param value the baseAvatarList to add + * @return this + */ + public PickRogueAvatarCsReq addBaseAvatarList(final int value) { + bitField0_ |= 0x00000001; + baseAvatarList.add(value); + return this; + } + + /** + * repeated uint32 base_avatar_list = 9; + * @param values the baseAvatarList to add + * @return this + */ + public PickRogueAvatarCsReq addAllBaseAvatarList(final int... values) { + bitField0_ |= 0x00000001; + baseAvatarList.addAll(values); + return this; + } + + @Override + public PickRogueAvatarCsReq copyFrom(final PickRogueAvatarCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + baseAvatarList.copyFrom(other.baseAvatarList); + } + return this; + } + + @Override + public PickRogueAvatarCsReq mergeFrom(final PickRogueAvatarCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBaseAvatarList()) { + getMutableBaseAvatarList().addAll(other.baseAvatarList); + } + return this; + } + + @Override + public PickRogueAvatarCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + baseAvatarList.clear(); + return this; + } + + @Override + public PickRogueAvatarCsReq 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 PickRogueAvatarCsReq)) { + return false; + } + PickRogueAvatarCsReq other = (PickRogueAvatarCsReq) 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) 72); + 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 PickRogueAvatarCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 74: { + // 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 72: { + // 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 PickRogueAvatarCsReq 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 PickRogueAvatarCsReq clone() { + return new PickRogueAvatarCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static PickRogueAvatarCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new PickRogueAvatarCsReq(), data).checkInitialized(); + } + + public static PickRogueAvatarCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new PickRogueAvatarCsReq(), input).checkInitialized(); + } + + public static PickRogueAvatarCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new PickRogueAvatarCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating PickRogueAvatarCsReq messages + */ + public static MessageFactory getFactory() { + return PickRogueAvatarCsReqFactory.INSTANCE; + } + + private enum PickRogueAvatarCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public PickRogueAvatarCsReq create() { + return PickRogueAvatarCsReq.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/PickRogueAvatarScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/PickRogueAvatarScRspOuterClass.java new file mode 100644 index 0000000..a5c1c4c --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/PickRogueAvatarScRspOuterClass.java @@ -0,0 +1,301 @@ +// 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 = 14; + */ + 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 = 14; + * @return whether the baseAvatarList field is set + */ + public boolean hasBaseAvatarList() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * repeated uint32 base_avatar_list = 14; + * @return this + */ + public PickRogueAvatarScRsp clearBaseAvatarList() { + bitField0_ &= ~0x00000001; + baseAvatarList.clear(); + return this; + } + + /** + * repeated uint32 base_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. + * + * 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 = 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 getMutableBaseAvatarList() { + bitField0_ |= 0x00000001; + return baseAvatarList; + } + + /** + * repeated uint32 base_avatar_list = 14; + * @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 = 14; + * @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) 112); + 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 114: { + // 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 112: { + // 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/PropAeonInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/PropAeonInfoOuterClass.java new file mode 100644 index 0000000..637cd5b --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/PropAeonInfoOuterClass.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 PropAeonInfoOuterClass { + /** + * Protobuf type {@code PropAeonInfo} + */ + public static final class PropAeonInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 aeon_id = 7; + */ + private int aeonId; + + /** + * optional uint32 add_exp = 13; + */ + private int addExp; + + /** + * optional uint32 dialogue_group_id = 14; + */ + private int dialogueGroupId; + + private PropAeonInfo() { + } + + /** + * @return a new empty instance of {@code PropAeonInfo} + */ + public static PropAeonInfo newInstance() { + return new PropAeonInfo(); + } + + /** + * optional uint32 aeon_id = 7; + * @return whether the aeonId field is set + */ + public boolean hasAeonId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 aeon_id = 7; + * @return this + */ + public PropAeonInfo clearAeonId() { + bitField0_ &= ~0x00000001; + aeonId = 0; + return this; + } + + /** + * optional uint32 aeon_id = 7; + * @return the aeonId + */ + public int getAeonId() { + return aeonId; + } + + /** + * optional uint32 aeon_id = 7; + * @param value the aeonId to set + * @return this + */ + public PropAeonInfo setAeonId(final int value) { + bitField0_ |= 0x00000001; + aeonId = value; + return this; + } + + /** + * optional uint32 add_exp = 13; + * @return whether the addExp field is set + */ + public boolean hasAddExp() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 add_exp = 13; + * @return this + */ + public PropAeonInfo clearAddExp() { + bitField0_ &= ~0x00000002; + addExp = 0; + return this; + } + + /** + * optional uint32 add_exp = 13; + * @return the addExp + */ + public int getAddExp() { + return addExp; + } + + /** + * optional uint32 add_exp = 13; + * @param value the addExp to set + * @return this + */ + public PropAeonInfo setAddExp(final int value) { + bitField0_ |= 0x00000002; + addExp = value; + return this; + } + + /** + * optional uint32 dialogue_group_id = 14; + * @return whether the dialogueGroupId field is set + */ + public boolean hasDialogueGroupId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 dialogue_group_id = 14; + * @return this + */ + public PropAeonInfo clearDialogueGroupId() { + bitField0_ &= ~0x00000004; + dialogueGroupId = 0; + return this; + } + + /** + * optional uint32 dialogue_group_id = 14; + * @return the dialogueGroupId + */ + public int getDialogueGroupId() { + return dialogueGroupId; + } + + /** + * optional uint32 dialogue_group_id = 14; + * @param value the dialogueGroupId to set + * @return this + */ + public PropAeonInfo setDialogueGroupId(final int value) { + bitField0_ |= 0x00000004; + dialogueGroupId = value; + return this; + } + + @Override + public PropAeonInfo copyFrom(final PropAeonInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + aeonId = other.aeonId; + addExp = other.addExp; + dialogueGroupId = other.dialogueGroupId; + } + return this; + } + + @Override + public PropAeonInfo mergeFrom(final PropAeonInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasAeonId()) { + setAeonId(other.aeonId); + } + if (other.hasAddExp()) { + setAddExp(other.addExp); + } + if (other.hasDialogueGroupId()) { + setDialogueGroupId(other.dialogueGroupId); + } + return this; + } + + @Override + public PropAeonInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + aeonId = 0; + addExp = 0; + dialogueGroupId = 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) + && (!hasAddExp() || addExp == other.addExp) + && (!hasDialogueGroupId() || dialogueGroupId == other.dialogueGroupId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(aeonId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(addExp); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(dialogueGroupId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(aeonId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(addExp); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(dialogueGroupId); + } + 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 56: { + // aeonId + aeonId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // addExp + addExp = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // dialogueGroupId + dialogueGroupId = 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.addExp, addExp); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.dialogueGroupId, dialogueGroupId); + } + 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 -1422538308: + case -1148257921: { + if (input.isAtField(FieldNames.addExp)) { + if (!input.trySkipNullValue()) { + addExp = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1758320386: + case 1899979106: { + if (input.isAtField(FieldNames.dialogueGroupId)) { + if (!input.trySkipNullValue()) { + dialogueGroupId = 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 addExp = FieldName.forField("addExp", "add_exp"); + + static final FieldName dialogueGroupId = FieldName.forField("dialogueGroupId", "dialogue_group_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/PropExtraInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/PropExtraInfoOuterClass.java index 0ee9711..2d551d0 100644 --- a/src/generated/main/emu/lunarcore/proto/PropExtraInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/PropExtraInfoOuterClass.java @@ -18,6 +18,15 @@ public final class PropExtraInfoOuterClass { public static final class PropExtraInfo extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; + /** + *
+     * CIJCHJHMFPM chess_rogue_info = 7;
+     * 
+ * + * optional .PropAeonInfo aeon_info = 3; + */ + private final PropAeonInfoOuterClass.PropAeonInfo aeonInfo = PropAeonInfoOuterClass.PropAeonInfo.newInstance(); + /** * optional .PropRogueInfo rogue_info = 11; */ @@ -33,12 +42,89 @@ public final class PropExtraInfoOuterClass { return new PropExtraInfo(); } + /** + *
+     * CIJCHJHMFPM chess_rogue_info = 7;
+     * 
+ * + * optional .PropAeonInfo aeon_info = 3; + * @return whether the aeonInfo field is set + */ + public boolean hasAeonInfo() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + *
+     * CIJCHJHMFPM chess_rogue_info = 7;
+     * 
+ * + * optional .PropAeonInfo aeon_info = 3; + * @return this + */ + public PropExtraInfo clearAeonInfo() { + bitField0_ &= ~0x00000001; + aeonInfo.clear(); + return this; + } + + /** + *
+     * CIJCHJHMFPM chess_rogue_info = 7;
+     * 
+ * + * optional .PropAeonInfo aeon_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 #getMutableAeonInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public PropAeonInfoOuterClass.PropAeonInfo getAeonInfo() { + return aeonInfo; + } + + /** + *
+     * CIJCHJHMFPM chess_rogue_info = 7;
+     * 
+ * + * optional .PropAeonInfo aeon_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 PropAeonInfoOuterClass.PropAeonInfo getMutableAeonInfo() { + bitField0_ |= 0x00000001; + return aeonInfo; + } + + /** + *
+     * CIJCHJHMFPM chess_rogue_info = 7;
+     * 
+ * + * optional .PropAeonInfo aeon_info = 3; + * @param value the aeonInfo to set + * @return this + */ + public PropExtraInfo setAeonInfo(final PropAeonInfoOuterClass.PropAeonInfo value) { + bitField0_ |= 0x00000001; + aeonInfo.copyFrom(value); + return this; + } + /** * optional .PropRogueInfo rogue_info = 11; * @return whether the rogueInfo field is set */ public boolean hasRogueInfo() { - return (bitField0_ & 0x00000001) != 0; + return (bitField0_ & 0x00000002) != 0; } /** @@ -46,7 +132,7 @@ public final class PropExtraInfoOuterClass { * @return this */ public PropExtraInfo clearRogueInfo() { - bitField0_ &= ~0x00000001; + bitField0_ &= ~0x00000002; rogueInfo.clear(); return this; } @@ -75,7 +161,7 @@ public final class PropExtraInfoOuterClass { * @return internal storage object for modifications */ public PropRogueInfoOuterClass.PropRogueInfo getMutableRogueInfo() { - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; return rogueInfo; } @@ -85,7 +171,7 @@ public final class PropExtraInfoOuterClass { * @return this */ public PropExtraInfo setRogueInfo(final PropRogueInfoOuterClass.PropRogueInfo value) { - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; rogueInfo.copyFrom(value); return this; } @@ -95,6 +181,7 @@ public final class PropExtraInfoOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; + aeonInfo.copyFrom(other.aeonInfo); rogueInfo.copyFrom(other.rogueInfo); } return this; @@ -106,6 +193,9 @@ public final class PropExtraInfoOuterClass { return this; } cachedSize = -1; + if (other.hasAeonInfo()) { + getMutableAeonInfo().mergeFrom(other.aeonInfo); + } if (other.hasRogueInfo()) { getMutableRogueInfo().mergeFrom(other.rogueInfo); } @@ -119,6 +209,7 @@ public final class PropExtraInfoOuterClass { } cachedSize = -1; bitField0_ = 0; + aeonInfo.clear(); rogueInfo.clear(); return this; } @@ -130,6 +221,7 @@ public final class PropExtraInfoOuterClass { } cachedSize = -1; bitField0_ = 0; + aeonInfo.clearQuick(); rogueInfo.clearQuick(); return this; } @@ -144,12 +236,17 @@ public final class PropExtraInfoOuterClass { } PropExtraInfo other = (PropExtraInfo) o; return bitField0_ == other.bitField0_ + && (!hasAeonInfo() || aeonInfo.equals(other.aeonInfo)) && (!hasRogueInfo() || rogueInfo.equals(other.rogueInfo)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(aeonInfo); + } + if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 90); output.writeMessageNoTag(rogueInfo); } @@ -159,6 +256,9 @@ public final class PropExtraInfoOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(aeonInfo); + } + if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(rogueInfo); } return size; @@ -171,10 +271,19 @@ public final class PropExtraInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { + case 26: { + // aeonInfo + input.readMessage(aeonInfo); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 90) { + break; + } + } case 90: { // rogueInfo input.readMessage(rogueInfo); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { break; @@ -198,6 +307,9 @@ public final class PropExtraInfoOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { + output.writeMessage(FieldNames.aeonInfo, aeonInfo); + } + if ((bitField0_ & 0x00000002) != 0) { output.writeMessage(FieldNames.rogueInfo, rogueInfo); } output.endObject(); @@ -210,12 +322,24 @@ public final class PropExtraInfoOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { + case -20823983: + case -625367446: { + if (input.isAtField(FieldNames.aeonInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(aeonInfo); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } case 655808936: case -1124583437: { if (input.isAtField(FieldNames.rogueInfo)) { if (!input.trySkipNullValue()) { input.readMessage(rogueInfo); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } else { input.skipUnknownField(); @@ -274,6 +398,8 @@ public final class PropExtraInfoOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { + static final FieldName aeonInfo = FieldName.forField("aeonInfo", "aeon_info"); + static final FieldName rogueInfo = FieldName.forField("rogueInfo", "rogue_info"); } } diff --git a/src/generated/main/emu/lunarcore/proto/PropRogueInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/PropRogueInfoOuterClass.java index c4ffdc0..31b2d2c 100644 --- a/src/generated/main/emu/lunarcore/proto/PropRogueInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/PropRogueInfoOuterClass.java @@ -19,15 +19,15 @@ public final class PropRogueInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 room_id = 2; - */ - private int roomId; - - /** - * optional uint32 site_id = 10; + * optional uint32 site_id = 11; */ private int siteId; + /** + * optional uint32 room_id = 12; + */ + private int roomId; + private PropRogueInfo() { } @@ -39,62 +39,25 @@ public final class PropRogueInfoOuterClass { } /** - * optional uint32 room_id = 2; - * @return whether the roomId field is set + * optional uint32 site_id = 11; + * @return whether the siteId field is set */ - public boolean hasRoomId() { + public boolean hasSiteId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 room_id = 2; - * @return this - */ - public PropRogueInfo clearRoomId() { - bitField0_ &= ~0x00000001; - roomId = 0; - return this; - } - - /** - * optional uint32 room_id = 2; - * @return the roomId - */ - public int getRoomId() { - return roomId; - } - - /** - * optional uint32 room_id = 2; - * @param value the roomId to set - * @return this - */ - public PropRogueInfo setRoomId(final int value) { - bitField0_ |= 0x00000001; - roomId = value; - return this; - } - - /** - * optional uint32 site_id = 10; - * @return whether the siteId field is set - */ - public boolean hasSiteId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 site_id = 10; + * optional uint32 site_id = 11; * @return this */ public PropRogueInfo clearSiteId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; siteId = 0; return this; } /** - * optional uint32 site_id = 10; + * optional uint32 site_id = 11; * @return the siteId */ public int getSiteId() { @@ -102,23 +65,60 @@ public final class PropRogueInfoOuterClass { } /** - * optional uint32 site_id = 10; + * optional uint32 site_id = 11; * @param value the siteId to set * @return this */ public PropRogueInfo setSiteId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; siteId = value; return this; } + /** + * optional uint32 room_id = 12; + * @return whether the roomId field is set + */ + public boolean hasRoomId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 room_id = 12; + * @return this + */ + public PropRogueInfo clearRoomId() { + bitField0_ &= ~0x00000002; + 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 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_; - roomId = other.roomId; siteId = other.siteId; + roomId = other.roomId; } return this; } @@ -129,12 +129,12 @@ public final class PropRogueInfoOuterClass { return this; } cachedSize = -1; - if (other.hasRoomId()) { - setRoomId(other.roomId); - } if (other.hasSiteId()) { setSiteId(other.siteId); } + if (other.hasRoomId()) { + setRoomId(other.roomId); + } return this; } @@ -145,8 +145,8 @@ public final class PropRogueInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - roomId = 0; siteId = 0; + roomId = 0; return this; } @@ -170,19 +170,19 @@ public final class PropRogueInfoOuterClass { } PropRogueInfo other = (PropRogueInfo) o; return bitField0_ == other.bitField0_ - && (!hasRoomId() || roomId == other.roomId) - && (!hasSiteId() || siteId == other.siteId); + && (!hasSiteId() || siteId == other.siteId) + && (!hasRoomId() || roomId == other.roomId); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(roomId); + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(siteId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 80); - output.writeUInt32NoTag(siteId); + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(roomId); } } @@ -190,10 +190,10 @@ public final class PropRogueInfoOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(roomId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(siteId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(siteId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(roomId); } return size; } @@ -205,18 +205,18 @@ public final class PropRogueInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { - // roomId - roomId = input.readUInt32(); + case 88: { + // siteId + siteId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 80) { + if (tag != 96) { break; } } - case 80: { - // siteId - siteId = input.readUInt32(); + case 96: { + // roomId + roomId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -241,10 +241,10 @@ public final class PropRogueInfoOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.roomId, roomId); + output.writeUInt32(FieldNames.siteId, siteId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.siteId, siteId); + output.writeUInt32(FieldNames.roomId, roomId); } output.endObject(); } @@ -256,11 +256,11 @@ public final class PropRogueInfoOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -925319338: - case 1379892991: { - if (input.isAtField(FieldNames.roomId)) { + case -902090046: + case 2100001043: { + if (input.isAtField(FieldNames.siteId)) { if (!input.trySkipNullValue()) { - roomId = input.readUInt32(); + siteId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -268,11 +268,11 @@ public final class PropRogueInfoOuterClass { } break; } - case -902090046: - case 2100001043: { - if (input.isAtField(FieldNames.siteId)) { + case -925319338: + case 1379892991: { + if (input.isAtField(FieldNames.roomId)) { if (!input.trySkipNullValue()) { - siteId = input.readUInt32(); + roomId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -332,9 +332,9 @@ public final class PropRogueInfoOuterClass { * 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 roomId = FieldName.forField("roomId", "room_id"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/RogueActionOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueActionOuterClass.java new file mode 100644 index 0000000..04f2f80 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueActionOuterClass.java @@ -0,0 +1,566 @@ +// 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; + + /** + *
+     * LLFCJMIMLKM AHNMLHMDONN = 1018;
+     * HKNINLMGOBO KDNAICGDMPF = 300;
+     * MEOJKHHEBII BNCDLNBHMPB = 187;
+     * CPPHCDOAOMC KNNHLJKEGEJ = 746;
+     * FNMHPFGFAML JGLPEKLFGBM = 1274;
+     * 
+ * + * optional .RogueBonusSelectInfo bonus_select_info = 1074; + */ + private final RogueBonusSelectInfoOuterClass.RogueBonusSelectInfo bonusSelectInfo = RogueBonusSelectInfoOuterClass.RogueBonusSelectInfo.newInstance(); + + /** + * optional .RogueCommonBuffSelectInfo buff_select_info = 1185; + */ + private final RogueCommonBuffSelectInfoOuterClass.RogueCommonBuffSelectInfo buffSelectInfo = RogueCommonBuffSelectInfoOuterClass.RogueCommonBuffSelectInfo.newInstance(); + + /** + *
+     * MJBKKJOHDBI BMIDONBKJNJ = 1111;
+     * APICFOIELNJ BDLINKPALNL = 1279;
+     * 
+ * + * optional .RogueMiracleSelectInfo miracle_select_info = 1967; + */ + private final RogueMiracleSelectInfoOuterClass.RogueMiracleSelectInfo miracleSelectInfo = RogueMiracleSelectInfoOuterClass.RogueMiracleSelectInfo.newInstance(); + + private RogueAction() { + } + + /** + * @return a new empty instance of {@code RogueAction} + */ + public static RogueAction newInstance() { + return new RogueAction(); + } + + /** + *
+     * LLFCJMIMLKM AHNMLHMDONN = 1018;
+     * HKNINLMGOBO KDNAICGDMPF = 300;
+     * MEOJKHHEBII BNCDLNBHMPB = 187;
+     * CPPHCDOAOMC KNNHLJKEGEJ = 746;
+     * FNMHPFGFAML JGLPEKLFGBM = 1274;
+     * 
+ * + * optional .RogueBonusSelectInfo bonus_select_info = 1074; + * @return whether the bonusSelectInfo field is set + */ + public boolean hasBonusSelectInfo() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + *
+     * LLFCJMIMLKM AHNMLHMDONN = 1018;
+     * HKNINLMGOBO KDNAICGDMPF = 300;
+     * MEOJKHHEBII BNCDLNBHMPB = 187;
+     * CPPHCDOAOMC KNNHLJKEGEJ = 746;
+     * FNMHPFGFAML JGLPEKLFGBM = 1274;
+     * 
+ * + * optional .RogueBonusSelectInfo bonus_select_info = 1074; + * @return this + */ + public RogueAction clearBonusSelectInfo() { + bitField0_ &= ~0x00000001; + bonusSelectInfo.clear(); + return this; + } + + /** + *
+     * LLFCJMIMLKM AHNMLHMDONN = 1018;
+     * HKNINLMGOBO KDNAICGDMPF = 300;
+     * MEOJKHHEBII BNCDLNBHMPB = 187;
+     * CPPHCDOAOMC KNNHLJKEGEJ = 746;
+     * FNMHPFGFAML JGLPEKLFGBM = 1274;
+     * 
+ * + * optional .RogueBonusSelectInfo bonus_select_info = 1074; + * + * This method returns 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; + } + + /** + *
+     * LLFCJMIMLKM AHNMLHMDONN = 1018;
+     * HKNINLMGOBO KDNAICGDMPF = 300;
+     * MEOJKHHEBII BNCDLNBHMPB = 187;
+     * CPPHCDOAOMC KNNHLJKEGEJ = 746;
+     * FNMHPFGFAML JGLPEKLFGBM = 1274;
+     * 
+ * + * optional .RogueBonusSelectInfo bonus_select_info = 1074; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of 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() { + bitField0_ |= 0x00000001; + return bonusSelectInfo; + } + + /** + *
+     * LLFCJMIMLKM AHNMLHMDONN = 1018;
+     * HKNINLMGOBO KDNAICGDMPF = 300;
+     * MEOJKHHEBII BNCDLNBHMPB = 187;
+     * CPPHCDOAOMC KNNHLJKEGEJ = 746;
+     * FNMHPFGFAML JGLPEKLFGBM = 1274;
+     * 
+ * + * optional .RogueBonusSelectInfo bonus_select_info = 1074; + * @param value the bonusSelectInfo to set + * @return this + */ + public RogueAction setBonusSelectInfo( + final RogueBonusSelectInfoOuterClass.RogueBonusSelectInfo value) { + bitField0_ |= 0x00000001; + bonusSelectInfo.copyFrom(value); + return this; + } + + /** + * optional .RogueCommonBuffSelectInfo buff_select_info = 1185; + * @return whether the buffSelectInfo field is set + */ + public boolean hasBuffSelectInfo() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .RogueCommonBuffSelectInfo buff_select_info = 1185; + * @return this + */ + public RogueAction clearBuffSelectInfo() { + bitField0_ &= ~0x00000002; + buffSelectInfo.clear(); + return this; + } + + /** + * optional .RogueCommonBuffSelectInfo buff_select_info = 1185; + * + * This method returns 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 = 1185; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of 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_ |= 0x00000002; + return buffSelectInfo; + } + + /** + * optional .RogueCommonBuffSelectInfo buff_select_info = 1185; + * @param value the buffSelectInfo to set + * @return this + */ + public RogueAction setBuffSelectInfo( + final RogueCommonBuffSelectInfoOuterClass.RogueCommonBuffSelectInfo value) { + bitField0_ |= 0x00000002; + buffSelectInfo.copyFrom(value); + return this; + } + + /** + *
+     * MJBKKJOHDBI BMIDONBKJNJ = 1111;
+     * APICFOIELNJ BDLINKPALNL = 1279;
+     * 
+ * + * optional .RogueMiracleSelectInfo miracle_select_info = 1967; + * @return whether the miracleSelectInfo field is set + */ + public boolean hasMiracleSelectInfo() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + *
+     * MJBKKJOHDBI BMIDONBKJNJ = 1111;
+     * APICFOIELNJ BDLINKPALNL = 1279;
+     * 
+ * + * optional .RogueMiracleSelectInfo miracle_select_info = 1967; + * @return this + */ + public RogueAction clearMiracleSelectInfo() { + bitField0_ &= ~0x00000004; + miracleSelectInfo.clear(); + return this; + } + + /** + *
+     * MJBKKJOHDBI BMIDONBKJNJ = 1111;
+     * APICFOIELNJ BDLINKPALNL = 1279;
+     * 
+ * + * optional .RogueMiracleSelectInfo miracle_select_info = 1967; + * + * This method returns 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; + } + + /** + *
+     * MJBKKJOHDBI BMIDONBKJNJ = 1111;
+     * APICFOIELNJ BDLINKPALNL = 1279;
+     * 
+ * + * optional .RogueMiracleSelectInfo miracle_select_info = 1967; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of 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_ |= 0x00000004; + return miracleSelectInfo; + } + + /** + *
+     * MJBKKJOHDBI BMIDONBKJNJ = 1111;
+     * APICFOIELNJ BDLINKPALNL = 1279;
+     * 
+ * + * optional .RogueMiracleSelectInfo miracle_select_info = 1967; + * @param value the miracleSelectInfo to set + * @return this + */ + public RogueAction setMiracleSelectInfo( + final RogueMiracleSelectInfoOuterClass.RogueMiracleSelectInfo value) { + bitField0_ |= 0x00000004; + miracleSelectInfo.copyFrom(value); + return this; + } + + @Override + public RogueAction copyFrom(final RogueAction other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + bonusSelectInfo.copyFrom(other.bonusSelectInfo); + buffSelectInfo.copyFrom(other.buffSelectInfo); + miracleSelectInfo.copyFrom(other.miracleSelectInfo); + } + return this; + } + + @Override + public RogueAction mergeFrom(final RogueAction other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBonusSelectInfo()) { + getMutableBonusSelectInfo().mergeFrom(other.bonusSelectInfo); + } + if (other.hasBuffSelectInfo()) { + getMutableBuffSelectInfo().mergeFrom(other.buffSelectInfo); + } + if (other.hasMiracleSelectInfo()) { + getMutableMiracleSelectInfo().mergeFrom(other.miracleSelectInfo); + } + return this; + } + + @Override + public RogueAction clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + bonusSelectInfo.clear(); + buffSelectInfo.clear(); + miracleSelectInfo.clear(); + return this; + } + + @Override + public RogueAction clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + bonusSelectInfo.clearQuick(); + buffSelectInfo.clearQuick(); + miracleSelectInfo.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_ + && (!hasBonusSelectInfo() || bonusSelectInfo.equals(other.bonusSelectInfo)) + && (!hasBuffSelectInfo() || buffSelectInfo.equals(other.buffSelectInfo)) + && (!hasMiracleSelectInfo() || miracleSelectInfo.equals(other.miracleSelectInfo)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawLittleEndian16((short) 17298); + output.writeMessageNoTag(bonusSelectInfo); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawLittleEndian16((short) 19082); + output.writeMessageNoTag(buffSelectInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawLittleEndian16((short) 31482); + output.writeMessageNoTag(miracleSelectInfo); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2 + ProtoSink.computeMessageSizeNoTag(bonusSelectInfo); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2 + ProtoSink.computeMessageSizeNoTag(buffSelectInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeMessageSizeNoTag(miracleSelectInfo); + } + 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 8594: { + // bonusSelectInfo + input.readMessage(bonusSelectInfo); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 9482) { + break; + } + } + case 9482: { + // buffSelectInfo + input.readMessage(buffSelectInfo); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 15738) { + break; + } + } + case 15738: { + // miracleSelectInfo + input.readMessage(miracleSelectInfo); + 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.bonusSelectInfo, bonusSelectInfo); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.buffSelectInfo, buffSelectInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.miracleSelectInfo, miracleSelectInfo); + } + output.endObject(); + } + + @Override + public RogueAction mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1283182921: + case -1836716559: { + if (input.isAtField(FieldNames.bonusSelectInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(bonusSelectInfo); + 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; + } + case -1009314021: + case -1608054973: { + if (input.isAtField(FieldNames.miracleSelectInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(miracleSelectInfo); + 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 bonusSelectInfo = FieldName.forField("bonusSelectInfo", "bonus_select_info"); + + static final FieldName buffSelectInfo = FieldName.forField("buffSelectInfo", "buff_select_info"); + + static final FieldName miracleSelectInfo = FieldName.forField("miracleSelectInfo", "miracle_select_info"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueActionResultDataOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueActionResultDataOuterClass.java new file mode 100644 index 0000000..b9e0e13 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueActionResultDataOuterClass.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; + +public final class RogueActionResultDataOuterClass { + /** + * Protobuf type {@code RogueActionResultData} + */ + public static final class RogueActionResultData extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + *
+     * MCFPILGOKJL LBHBDGKKJIJ = 167;
+     * PONBIJNJGJN CANDAIPCPJK = 1473;
+     * KALADHPCJPN CDCGLLGKBPA = 1188;
+     * CNEKDDFMKCK FGHCBKGDKAB = 1032;
+     * HICHEGNFHNG IIDMFNJOBOG = 1742;
+     * PGJANLDGLEM DPCCLAKMHLJ = 477;
+     * 
+ * + * optional .RogueMiracleData add_miracle_list = 168; + */ + private final RogueMiracleDataOuterClass.RogueMiracleData addMiracleList = RogueMiracleDataOuterClass.RogueMiracleData.newInstance(); + + /** + *
+     * EMDFCFEMMKJ NMEKCEBDBLP = 12;
+     * EMDFCFEMMKJ DMBEFNHGHDG = 11;
+     * 
+ * + * optional .RogueBuffData add_buff_list = 319; + */ + private final RogueBuffDataOuterClass.RogueBuffData addBuffList = RogueBuffDataOuterClass.RogueBuffData.newInstance(); + + /** + * optional .RogueBuffData remove_buff_list = 439; + */ + private final RogueBuffDataOuterClass.RogueBuffData removeBuffList = RogueBuffDataOuterClass.RogueBuffData.newInstance(); + + private RogueActionResultData() { + } + + /** + * @return a new empty instance of {@code RogueActionResultData} + */ + public static RogueActionResultData newInstance() { + return new RogueActionResultData(); + } + + /** + *
+     * MCFPILGOKJL LBHBDGKKJIJ = 167;
+     * PONBIJNJGJN CANDAIPCPJK = 1473;
+     * KALADHPCJPN CDCGLLGKBPA = 1188;
+     * CNEKDDFMKCK FGHCBKGDKAB = 1032;
+     * HICHEGNFHNG IIDMFNJOBOG = 1742;
+     * PGJANLDGLEM DPCCLAKMHLJ = 477;
+     * 
+ * + * optional .RogueMiracleData add_miracle_list = 168; + * @return whether the addMiracleList field is set + */ + public boolean hasAddMiracleList() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + *
+     * MCFPILGOKJL LBHBDGKKJIJ = 167;
+     * PONBIJNJGJN CANDAIPCPJK = 1473;
+     * KALADHPCJPN CDCGLLGKBPA = 1188;
+     * CNEKDDFMKCK FGHCBKGDKAB = 1032;
+     * HICHEGNFHNG IIDMFNJOBOG = 1742;
+     * PGJANLDGLEM DPCCLAKMHLJ = 477;
+     * 
+ * + * optional .RogueMiracleData add_miracle_list = 168; + * @return this + */ + public RogueActionResultData clearAddMiracleList() { + bitField0_ &= ~0x00000001; + addMiracleList.clear(); + return this; + } + + /** + *
+     * MCFPILGOKJL LBHBDGKKJIJ = 167;
+     * PONBIJNJGJN CANDAIPCPJK = 1473;
+     * KALADHPCJPN CDCGLLGKBPA = 1188;
+     * CNEKDDFMKCK FGHCBKGDKAB = 1032;
+     * HICHEGNFHNG IIDMFNJOBOG = 1742;
+     * PGJANLDGLEM DPCCLAKMHLJ = 477;
+     * 
+ * + * optional .RogueMiracleData add_miracle_list = 168; + * + * This method returns 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; + } + + /** + *
+     * MCFPILGOKJL LBHBDGKKJIJ = 167;
+     * PONBIJNJGJN CANDAIPCPJK = 1473;
+     * KALADHPCJPN CDCGLLGKBPA = 1188;
+     * CNEKDDFMKCK FGHCBKGDKAB = 1032;
+     * HICHEGNFHNG IIDMFNJOBOG = 1742;
+     * PGJANLDGLEM DPCCLAKMHLJ = 477;
+     * 
+ * + * optional .RogueMiracleData add_miracle_list = 168; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of 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() { + bitField0_ |= 0x00000001; + return addMiracleList; + } + + /** + *
+     * MCFPILGOKJL LBHBDGKKJIJ = 167;
+     * PONBIJNJGJN CANDAIPCPJK = 1473;
+     * KALADHPCJPN CDCGLLGKBPA = 1188;
+     * CNEKDDFMKCK FGHCBKGDKAB = 1032;
+     * HICHEGNFHNG IIDMFNJOBOG = 1742;
+     * PGJANLDGLEM DPCCLAKMHLJ = 477;
+     * 
+ * + * optional .RogueMiracleData add_miracle_list = 168; + * @param value the addMiracleList to set + * @return this + */ + public RogueActionResultData setAddMiracleList( + final RogueMiracleDataOuterClass.RogueMiracleData value) { + bitField0_ |= 0x00000001; + addMiracleList.copyFrom(value); + return this; + } + + /** + *
+     * EMDFCFEMMKJ NMEKCEBDBLP = 12;
+     * EMDFCFEMMKJ DMBEFNHGHDG = 11;
+     * 
+ * + * optional .RogueBuffData add_buff_list = 319; + * @return whether the addBuffList field is set + */ + public boolean hasAddBuffList() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + *
+     * EMDFCFEMMKJ NMEKCEBDBLP = 12;
+     * EMDFCFEMMKJ DMBEFNHGHDG = 11;
+     * 
+ * + * optional .RogueBuffData add_buff_list = 319; + * @return this + */ + public RogueActionResultData clearAddBuffList() { + bitField0_ &= ~0x00000002; + addBuffList.clear(); + return this; + } + + /** + *
+     * EMDFCFEMMKJ NMEKCEBDBLP = 12;
+     * EMDFCFEMMKJ DMBEFNHGHDG = 11;
+     * 
+ * + * optional .RogueBuffData add_buff_list = 319; + * + * This method returns 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; + } + + /** + *
+     * EMDFCFEMMKJ NMEKCEBDBLP = 12;
+     * EMDFCFEMMKJ DMBEFNHGHDG = 11;
+     * 
+ * + * optional .RogueBuffData add_buff_list = 319; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of 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() { + bitField0_ |= 0x00000002; + return addBuffList; + } + + /** + *
+     * EMDFCFEMMKJ NMEKCEBDBLP = 12;
+     * EMDFCFEMMKJ DMBEFNHGHDG = 11;
+     * 
+ * + * optional .RogueBuffData add_buff_list = 319; + * @param value the addBuffList to set + * @return this + */ + public RogueActionResultData setAddBuffList(final RogueBuffDataOuterClass.RogueBuffData value) { + bitField0_ |= 0x00000002; + addBuffList.copyFrom(value); + return this; + } + + /** + * optional .RogueBuffData remove_buff_list = 439; + * @return whether the removeBuffList field is set + */ + public boolean hasRemoveBuffList() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .RogueBuffData remove_buff_list = 439; + * @return this + */ + public RogueActionResultData clearRemoveBuffList() { + bitField0_ &= ~0x00000004; + removeBuffList.clear(); + return this; + } + + /** + * optional .RogueBuffData remove_buff_list = 439; + * + * This method returns 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 = 439; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of 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() { + bitField0_ |= 0x00000004; + return removeBuffList; + } + + /** + * optional .RogueBuffData remove_buff_list = 439; + * @param value the removeBuffList to set + * @return this + */ + public RogueActionResultData setRemoveBuffList( + final RogueBuffDataOuterClass.RogueBuffData value) { + bitField0_ |= 0x00000004; + removeBuffList.copyFrom(value); + return this; + } + + @Override + public RogueActionResultData copyFrom(final RogueActionResultData other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + addMiracleList.copyFrom(other.addMiracleList); + addBuffList.copyFrom(other.addBuffList); + removeBuffList.copyFrom(other.removeBuffList); + } + return this; + } + + @Override + public RogueActionResultData mergeFrom(final RogueActionResultData other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasAddMiracleList()) { + getMutableAddMiracleList().mergeFrom(other.addMiracleList); + } + if (other.hasAddBuffList()) { + getMutableAddBuffList().mergeFrom(other.addBuffList); + } + if (other.hasRemoveBuffList()) { + getMutableRemoveBuffList().mergeFrom(other.removeBuffList); + } + return this; + } + + @Override + public RogueActionResultData clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + addMiracleList.clear(); + addBuffList.clear(); + removeBuffList.clear(); + return this; + } + + @Override + public RogueActionResultData clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + addMiracleList.clearQuick(); + addBuffList.clearQuick(); + removeBuffList.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_ + && (!hasAddMiracleList() || addMiracleList.equals(other.addMiracleList)) + && (!hasAddBuffList() || addBuffList.equals(other.addBuffList)) + && (!hasRemoveBuffList() || removeBuffList.equals(other.removeBuffList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawLittleEndian16((short) 2754); + output.writeMessageNoTag(addMiracleList); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawLittleEndian16((short) 5114); + output.writeMessageNoTag(addBuffList); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawLittleEndian16((short) 7098); + output.writeMessageNoTag(removeBuffList); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2 + ProtoSink.computeMessageSizeNoTag(addMiracleList); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2 + ProtoSink.computeMessageSizeNoTag(addBuffList); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeMessageSizeNoTag(removeBuffList); + } + 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 1346: { + // addMiracleList + input.readMessage(addMiracleList); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 2554) { + break; + } + } + case 2554: { + // addBuffList + input.readMessage(addBuffList); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 3514) { + break; + } + } + case 3514: { + // removeBuffList + input.readMessage(removeBuffList); + 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.addMiracleList, addMiracleList); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.addBuffList, addBuffList); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.removeBuffList, removeBuffList); + } + output.endObject(); + } + + @Override + public RogueActionResultData mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1381554510: + case -850648438: { + if (input.isAtField(FieldNames.addMiracleList)) { + if (!input.trySkipNullValue()) { + input.readMessage(addMiracleList); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1797898066: + case 888419052: { + if (input.isAtField(FieldNames.addBuffList)) { + if (!input.trySkipNullValue()) { + input.readMessage(addBuffList); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1177726005: + case 1903522575: { + if (input.isAtField(FieldNames.removeBuffList)) { + if (!input.trySkipNullValue()) { + input.readMessage(removeBuffList); + bitField0_ |= 0x00000004; + } + } 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 addMiracleList = FieldName.forField("addMiracleList", "add_miracle_list"); + + static final FieldName addBuffList = FieldName.forField("addBuffList", "add_buff_list"); + + static final FieldName removeBuffList = FieldName.forField("removeBuffList", "remove_buff_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueActionResultOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueActionResultOuterClass.java new file mode 100644 index 0000000..4420cc6 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueActionResultOuterClass.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 RogueActionResultOuterClass { + /** + * Protobuf type {@code RogueActionResult} + */ + public static final class RogueActionResult extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .RogueBuffSource source = 3; + */ + private int source; + + /** + * optional .RogueActionResultData action_data = 11; + */ + private final RogueActionResultDataOuterClass.RogueActionResultData actionData = RogueActionResultDataOuterClass.RogueActionResultData.newInstance(); + + private RogueActionResult() { + } + + /** + * @return a new empty instance of {@code RogueActionResult} + */ + public static RogueActionResult newInstance() { + return new RogueActionResult(); + } + + /** + * optional .RogueBuffSource source = 3; + * @return whether the source field is set + */ + public boolean hasSource() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .RogueBuffSource source = 3; + * @return this + */ + public RogueActionResult clearSource() { + bitField0_ &= ~0x00000001; + source = 0; + return this; + } + + /** + * optional .RogueBuffSource source = 3; + * @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 = 3; + * @param value the source to set + * @return this + */ + public RogueActionResult setSource(final RogueBuffSourceOuterClass.RogueBuffSource value) { + bitField0_ |= 0x00000001; + source = value.getNumber(); + return this; + } + + /** + * optional .RogueActionResultData action_data = 11; + * @return whether the actionData field is set + */ + public boolean hasActionData() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .RogueActionResultData action_data = 11; + * @return this + */ + public RogueActionResult clearActionData() { + bitField0_ &= ~0x00000002; + actionData.clear(); + return this; + } + + /** + * optional .RogueActionResultData action_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 #getMutableActionData()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueActionResultDataOuterClass.RogueActionResultData getActionData() { + return actionData; + } + + /** + * optional .RogueActionResultData action_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 + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RogueActionResultDataOuterClass.RogueActionResultData getMutableActionData() { + bitField0_ |= 0x00000002; + return actionData; + } + + /** + * optional .RogueActionResultData action_data = 11; + * @param value the actionData to set + * @return this + */ + public RogueActionResult setActionData( + final RogueActionResultDataOuterClass.RogueActionResultData value) { + bitField0_ |= 0x00000002; + actionData.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; + actionData.copyFrom(other.actionData); + } + return this; + } + + @Override + public RogueActionResult mergeFrom(final RogueActionResult other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasSource()) { + setSourceValue(other.source); + } + if (other.hasActionData()) { + getMutableActionData().mergeFrom(other.actionData); + } + return this; + } + + @Override + public RogueActionResult clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + source = 0; + actionData.clear(); + return this; + } + + @Override + public RogueActionResult clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + actionData.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) + && (!hasActionData() || actionData.equals(other.actionData)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 24); + output.writeEnumNoTag(source); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 90); + output.writeMessageNoTag(actionData); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(source); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(actionData); + } + 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 24: { + // source + final int value = input.readInt32(); + if (RogueBuffSourceOuterClass.RogueBuffSource.forNumber(value) != null) { + source = value; + bitField0_ |= 0x00000001; + } + tag = input.readTag(); + if (tag != 90) { + break; + } + } + case 90: { + // actionData + input.readMessage(actionData); + 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.actionData, actionData); + } + 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 1851381504: + case 1583258643: { + if (input.isAtField(FieldNames.actionData)) { + if (!input.trySkipNullValue()) { + input.readMessage(actionData); + 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 actionData = FieldName.forField("actionData", "action_data"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueAeonInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueAeonInfoOuterClass.java index e506fb3..a3d683e 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueAeonInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RogueAeonInfoOuterClass.java @@ -20,19 +20,31 @@ public final class RogueAeonInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 unlock_aeon_num = 4; + *
+     *  3
+     * 
+ * + * optional uint32 JPEBPGIEGPO = 14; + */ + private int jPEBPGIEGPO; + + /** + *
+     *  9
+     * 
+ * + * optional uint32 unlock_aeon_num = 15; */ private int unlockAeonNum; /** - * optional uint32 unlock_aeon_enhance_num = 5; + *
+     *  guess
+     * 
+ * + * optional bool is_unlocked = 1; */ - private int unlockAeonEnhanceNum; - - /** - * optional uint32 selected_aeon_id = 12; - */ - private int selectedAeonId; + private boolean isUnlocked; /** * repeated uint32 aeon_id_list = 8; @@ -50,25 +62,90 @@ public final class RogueAeonInfoOuterClass { } /** - * optional uint32 unlock_aeon_num = 4; - * @return whether the unlockAeonNum field is set + *
+     *  3
+     * 
+ * + * optional uint32 JPEBPGIEGPO = 14; + * @return whether the jPEBPGIEGPO field is set */ - public boolean hasUnlockAeonNum() { + public boolean hasJPEBPGIEGPO() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 unlock_aeon_num = 4; + *
+     *  3
+     * 
+ * + * optional uint32 JPEBPGIEGPO = 14; + * @return this + */ + public RogueAeonInfo clearJPEBPGIEGPO() { + bitField0_ &= ~0x00000001; + jPEBPGIEGPO = 0; + return this; + } + + /** + *
+     *  3
+     * 
+ * + * optional uint32 JPEBPGIEGPO = 14; + * @return the jPEBPGIEGPO + */ + public int getJPEBPGIEGPO() { + return jPEBPGIEGPO; + } + + /** + *
+     *  3
+     * 
+ * + * optional uint32 JPEBPGIEGPO = 14; + * @param value the jPEBPGIEGPO to set + * @return this + */ + public RogueAeonInfo setJPEBPGIEGPO(final int value) { + bitField0_ |= 0x00000001; + jPEBPGIEGPO = value; + return this; + } + + /** + *
+     *  9
+     * 
+ * + * optional uint32 unlock_aeon_num = 15; + * @return whether the unlockAeonNum field is set + */ + public boolean hasUnlockAeonNum() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + *
+     *  9
+     * 
+ * + * optional uint32 unlock_aeon_num = 15; * @return this */ public RogueAeonInfo clearUnlockAeonNum() { - bitField0_ &= ~0x00000001; + bitField0_ &= ~0x00000002; unlockAeonNum = 0; return this; } /** - * optional uint32 unlock_aeon_num = 4; + *
+     *  9
+     * 
+ * + * optional uint32 unlock_aeon_num = 15; * @return the unlockAeonNum */ public int getUnlockAeonNum() { @@ -76,87 +153,70 @@ public final class RogueAeonInfoOuterClass { } /** - * optional uint32 unlock_aeon_num = 4; + *
+     *  9
+     * 
+ * + * optional uint32 unlock_aeon_num = 15; * @param value the unlockAeonNum to set * @return this */ public RogueAeonInfo setUnlockAeonNum(final int value) { - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; unlockAeonNum = value; return this; } /** - * optional uint32 unlock_aeon_enhance_num = 5; - * @return whether the unlockAeonEnhanceNum field is set + *
+     *  guess
+     * 
+ * + * optional bool is_unlocked = 1; + * @return whether the isUnlocked field is set */ - public boolean hasUnlockAeonEnhanceNum() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 unlock_aeon_enhance_num = 5; - * @return this - */ - public RogueAeonInfo clearUnlockAeonEnhanceNum() { - bitField0_ &= ~0x00000002; - unlockAeonEnhanceNum = 0; - return this; - } - - /** - * optional uint32 unlock_aeon_enhance_num = 5; - * @return the unlockAeonEnhanceNum - */ - public int getUnlockAeonEnhanceNum() { - return unlockAeonEnhanceNum; - } - - /** - * optional uint32 unlock_aeon_enhance_num = 5; - * @param value the unlockAeonEnhanceNum to set - * @return this - */ - public RogueAeonInfo setUnlockAeonEnhanceNum(final int value) { - bitField0_ |= 0x00000002; - unlockAeonEnhanceNum = value; - return this; - } - - /** - * optional uint32 selected_aeon_id = 12; - * @return whether the selectedAeonId field is set - */ - public boolean hasSelectedAeonId() { + public boolean hasIsUnlocked() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 selected_aeon_id = 12; + *
+     *  guess
+     * 
+ * + * optional bool is_unlocked = 1; * @return this */ - public RogueAeonInfo clearSelectedAeonId() { + public RogueAeonInfo clearIsUnlocked() { bitField0_ &= ~0x00000004; - selectedAeonId = 0; + isUnlocked = false; return this; } /** - * optional uint32 selected_aeon_id = 12; - * @return the selectedAeonId + *
+     *  guess
+     * 
+ * + * optional bool is_unlocked = 1; + * @return the isUnlocked */ - public int getSelectedAeonId() { - return selectedAeonId; + public boolean getIsUnlocked() { + return isUnlocked; } /** - * optional uint32 selected_aeon_id = 12; - * @param value the selectedAeonId to set + *
+     *  guess
+     * 
+ * + * optional bool is_unlocked = 1; + * @param value the isUnlocked to set * @return this */ - public RogueAeonInfo setSelectedAeonId(final int value) { + public RogueAeonInfo setIsUnlocked(final boolean value) { bitField0_ |= 0x00000004; - selectedAeonId = value; + isUnlocked = value; return this; } @@ -233,9 +293,9 @@ public final class RogueAeonInfoOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; + jPEBPGIEGPO = other.jPEBPGIEGPO; unlockAeonNum = other.unlockAeonNum; - unlockAeonEnhanceNum = other.unlockAeonEnhanceNum; - selectedAeonId = other.selectedAeonId; + isUnlocked = other.isUnlocked; aeonIdList.copyFrom(other.aeonIdList); } return this; @@ -247,14 +307,14 @@ public final class RogueAeonInfoOuterClass { return this; } cachedSize = -1; + if (other.hasJPEBPGIEGPO()) { + setJPEBPGIEGPO(other.jPEBPGIEGPO); + } if (other.hasUnlockAeonNum()) { setUnlockAeonNum(other.unlockAeonNum); } - if (other.hasUnlockAeonEnhanceNum()) { - setUnlockAeonEnhanceNum(other.unlockAeonEnhanceNum); - } - if (other.hasSelectedAeonId()) { - setSelectedAeonId(other.selectedAeonId); + if (other.hasIsUnlocked()) { + setIsUnlocked(other.isUnlocked); } if (other.hasAeonIdList()) { getMutableAeonIdList().addAll(other.aeonIdList); @@ -269,9 +329,9 @@ public final class RogueAeonInfoOuterClass { } cachedSize = -1; bitField0_ = 0; + jPEBPGIEGPO = 0; unlockAeonNum = 0; - unlockAeonEnhanceNum = 0; - selectedAeonId = 0; + isUnlocked = false; aeonIdList.clear(); return this; } @@ -297,25 +357,25 @@ public final class RogueAeonInfoOuterClass { } RogueAeonInfo other = (RogueAeonInfo) o; return bitField0_ == other.bitField0_ + && (!hasJPEBPGIEGPO() || jPEBPGIEGPO == other.jPEBPGIEGPO) && (!hasUnlockAeonNum() || unlockAeonNum == other.unlockAeonNum) - && (!hasUnlockAeonEnhanceNum() || unlockAeonEnhanceNum == other.unlockAeonEnhanceNum) - && (!hasSelectedAeonId() || selectedAeonId == other.selectedAeonId) + && (!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(unlockAeonNum); + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(jPEBPGIEGPO); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(unlockAeonEnhanceNum); + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(unlockAeonNum); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 96); - output.writeUInt32NoTag(selectedAeonId); + output.writeRawByte((byte) 8); + output.writeBoolNoTag(isUnlocked); } if ((bitField0_ & 0x00000008) != 0) { for (int i = 0; i < aeonIdList.length(); i++) { @@ -329,13 +389,13 @@ public final class RogueAeonInfoOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(unlockAeonNum); + size += 1 + ProtoSink.computeUInt32SizeNoTag(jPEBPGIEGPO); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(unlockAeonEnhanceNum); + size += 1 + ProtoSink.computeUInt32SizeNoTag(unlockAeonNum); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(selectedAeonId); + size += 2; } if ((bitField0_ & 0x00000008) != 0) { size += (1 * aeonIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(aeonIdList); @@ -350,27 +410,27 @@ public final class RogueAeonInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 32: { - // unlockAeonNum - unlockAeonNum = input.readUInt32(); + case 112: { + // jPEBPGIEGPO + jPEBPGIEGPO = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 40) { + if (tag != 120) { break; } } - case 40: { - // unlockAeonEnhanceNum - unlockAeonEnhanceNum = input.readUInt32(); + case 120: { + // unlockAeonNum + unlockAeonNum = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 96) { + if (tag != 8) { break; } } - case 96: { - // selectedAeonId - selectedAeonId = input.readUInt32(); + case 8: { + // isUnlocked + isUnlocked = input.readBool(); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 66) { @@ -410,13 +470,13 @@ public final class RogueAeonInfoOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.unlockAeonNum, unlockAeonNum); + output.writeUInt32(FieldNames.jPEBPGIEGPO, jPEBPGIEGPO); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.unlockAeonEnhanceNum, unlockAeonEnhanceNum); + output.writeUInt32(FieldNames.unlockAeonNum, unlockAeonNum); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.selectedAeonId, selectedAeonId); + output.writeBool(FieldNames.isUnlocked, isUnlocked); } if ((bitField0_ & 0x00000008) != 0) { output.writeRepeatedUInt32(FieldNames.aeonIdList, aeonIdList); @@ -431,11 +491,10 @@ public final class RogueAeonInfoOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -281209953: - case -952729371: { - if (input.isAtField(FieldNames.unlockAeonNum)) { + case 617496720: { + if (input.isAtField(FieldNames.jPEBPGIEGPO)) { if (!input.trySkipNullValue()) { - unlockAeonNum = input.readUInt32(); + jPEBPGIEGPO = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -443,11 +502,11 @@ public final class RogueAeonInfoOuterClass { } break; } - case 1040991167: - case 7773396: { - if (input.isAtField(FieldNames.unlockAeonEnhanceNum)) { + case -281209953: + case -952729371: { + if (input.isAtField(FieldNames.unlockAeonNum)) { if (!input.trySkipNullValue()) { - unlockAeonEnhanceNum = input.readUInt32(); + unlockAeonNum = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -455,11 +514,11 @@ public final class RogueAeonInfoOuterClass { } break; } - case 1331475449: - case 853040179: { - if (input.isAtField(FieldNames.selectedAeonId)) { + case -1004219859: + case -945979816: { + if (input.isAtField(FieldNames.isUnlocked)) { if (!input.trySkipNullValue()) { - selectedAeonId = input.readUInt32(); + isUnlocked = input.readBool(); bitField0_ |= 0x00000004; } } else { @@ -531,11 +590,11 @@ public final class RogueAeonInfoOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { + static final FieldName jPEBPGIEGPO = FieldName.forField("JPEBPGIEGPO"); + static final FieldName unlockAeonNum = FieldName.forField("unlockAeonNum", "unlock_aeon_num"); - static final FieldName unlockAeonEnhanceNum = FieldName.forField("unlockAeonEnhanceNum", "unlock_aeon_enhance_num"); - - static final FieldName selectedAeonId = FieldName.forField("selectedAeonId", "selected_aeon_id"); + 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 new file mode 100644 index 0000000..197f697 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueAeonOuterClass.java @@ -0,0 +1,419 @@ +// 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 aeon_id = 7; + */ + private int aeonId; + + /** + * optional uint32 OFBCBEIEAEC = 10; + */ + private int oFBCBEIEAEC; + + /** + * optional bool CGAFFPHCNEA = 12; + */ + private boolean cGAFFPHCNEA; + + private RogueAeon() { + } + + /** + * @return a new empty instance of {@code RogueAeon} + */ + public static RogueAeon newInstance() { + return new RogueAeon(); + } + + /** + * optional uint32 aeon_id = 7; + * @return whether the aeonId field is set + */ + public boolean hasAeonId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 aeon_id = 7; + * @return this + */ + public RogueAeon clearAeonId() { + bitField0_ &= ~0x00000001; + aeonId = 0; + return this; + } + + /** + * optional uint32 aeon_id = 7; + * @return the aeonId + */ + public int getAeonId() { + return aeonId; + } + + /** + * optional uint32 aeon_id = 7; + * @param value the aeonId to set + * @return this + */ + public RogueAeon setAeonId(final int value) { + bitField0_ |= 0x00000001; + aeonId = value; + return this; + } + + /** + * optional uint32 OFBCBEIEAEC = 10; + * @return whether the oFBCBEIEAEC field is set + */ + public boolean hasOFBCBEIEAEC() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 OFBCBEIEAEC = 10; + * @return this + */ + public RogueAeon clearOFBCBEIEAEC() { + bitField0_ &= ~0x00000002; + oFBCBEIEAEC = 0; + return this; + } + + /** + * optional uint32 OFBCBEIEAEC = 10; + * @return the oFBCBEIEAEC + */ + public int getOFBCBEIEAEC() { + return oFBCBEIEAEC; + } + + /** + * optional uint32 OFBCBEIEAEC = 10; + * @param value the oFBCBEIEAEC to set + * @return this + */ + public RogueAeon setOFBCBEIEAEC(final int value) { + bitField0_ |= 0x00000002; + oFBCBEIEAEC = value; + return this; + } + + /** + * optional bool CGAFFPHCNEA = 12; + * @return whether the cGAFFPHCNEA field is set + */ + public boolean hasCGAFFPHCNEA() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bool CGAFFPHCNEA = 12; + * @return this + */ + public RogueAeon clearCGAFFPHCNEA() { + bitField0_ &= ~0x00000004; + cGAFFPHCNEA = false; + return this; + } + + /** + * optional bool CGAFFPHCNEA = 12; + * @return the cGAFFPHCNEA + */ + public boolean getCGAFFPHCNEA() { + return cGAFFPHCNEA; + } + + /** + * optional bool CGAFFPHCNEA = 12; + * @param value the cGAFFPHCNEA to set + * @return this + */ + public RogueAeon setCGAFFPHCNEA(final boolean value) { + bitField0_ |= 0x00000004; + cGAFFPHCNEA = value; + return this; + } + + @Override + public RogueAeon copyFrom(final RogueAeon other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + aeonId = other.aeonId; + oFBCBEIEAEC = other.oFBCBEIEAEC; + cGAFFPHCNEA = other.cGAFFPHCNEA; + } + return this; + } + + @Override + public RogueAeon mergeFrom(final RogueAeon other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasAeonId()) { + setAeonId(other.aeonId); + } + if (other.hasOFBCBEIEAEC()) { + setOFBCBEIEAEC(other.oFBCBEIEAEC); + } + if (other.hasCGAFFPHCNEA()) { + setCGAFFPHCNEA(other.cGAFFPHCNEA); + } + return this; + } + + @Override + public RogueAeon clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + aeonId = 0; + oFBCBEIEAEC = 0; + cGAFFPHCNEA = 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_ + && (!hasAeonId() || aeonId == other.aeonId) + && (!hasOFBCBEIEAEC() || oFBCBEIEAEC == other.oFBCBEIEAEC) + && (!hasCGAFFPHCNEA() || cGAFFPHCNEA == other.cGAFFPHCNEA); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(aeonId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(oFBCBEIEAEC); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 96); + output.writeBoolNoTag(cGAFFPHCNEA); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(aeonId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(oFBCBEIEAEC); + } + 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 56: { + // aeonId + aeonId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // oFBCBEIEAEC + oFBCBEIEAEC = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // cGAFFPHCNEA + cGAFFPHCNEA = 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.aeonId, aeonId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.oFBCBEIEAEC, oFBCBEIEAEC); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBool(FieldNames.cGAFFPHCNEA, cGAFFPHCNEA); + } + output.endObject(); + } + + @Override + public RogueAeon 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 1165634632: { + if (input.isAtField(FieldNames.oFBCBEIEAEC)) { + if (!input.trySkipNullValue()) { + oFBCBEIEAEC = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -927350692: { + if (input.isAtField(FieldNames.cGAFFPHCNEA)) { + if (!input.trySkipNullValue()) { + cGAFFPHCNEA = 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 aeonId = FieldName.forField("aeonId", "aeon_id"); + + static final FieldName oFBCBEIEAEC = FieldName.forField("OFBCBEIEAEC"); + + static final FieldName cGAFFPHCNEA = FieldName.forField("CGAFFPHCNEA"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueAreaInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueAreaInfoOuterClass.java new file mode 100644 index 0000000..8ee9e8f --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueAreaInfoOuterClass.java @@ -0,0 +1,293 @@ +// 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 = 7; + */ + 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 = 7; + * @return whether the rogueArea field is set + */ + public boolean hasRogueArea() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * repeated .RogueArea rogue_area = 7; + * @return this + */ + public RogueAreaInfo clearRogueArea() { + bitField0_ &= ~0x00000001; + rogueArea.clear(); + return this; + } + + /** + * repeated .RogueArea rogue_area = 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 #getMutableRogueArea()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getRogueArea() { + return rogueArea; + } + + /** + * repeated .RogueArea rogue_area = 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 getMutableRogueArea() { + bitField0_ |= 0x00000001; + return rogueArea; + } + + /** + * repeated .RogueArea rogue_area = 7; + * @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 = 7; + * @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) 58); + 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 58: { + // 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 index 0132a1b..530923c 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueAreaOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RogueAreaOuterClass.java @@ -19,34 +19,33 @@ public final class RogueAreaOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 map_id = 6; - */ - private int mapId; - - /** - * optional uint32 cur_reach_room_num = 11; + * optional uint32 cur_reach_room_num = 2; */ private int curReachRoomNum; /** - * optional uint32 area_id = 12; + * optional uint32 map_id = 5; + */ + private int mapId; + + /** + * optional uint32 area_id = 7; */ private int areaId; /** - * optional .RogueAreaStatus rogue_area_status = 8; + * optional uint32 rogue_area_status = 8; */ private int rogueAreaStatus; /** - * optional .RogueStatus rogue_status = 9; + *
+     *  HJEALCCKPAO AMMMELMOKJF = 12;
+     * 
+ * + * optional bool CMJFDLMBIOK = 14; */ - private int rogueStatus; - - /** - * optional bool is_reward_taken = 14; - */ - private boolean isRewardTaken; + private boolean cMJFDLMBIOK; private RogueArea() { } @@ -59,62 +58,25 @@ public final class RogueAreaOuterClass { } /** - * optional uint32 map_id = 6; - * @return whether the mapId field is set + * optional uint32 cur_reach_room_num = 2; + * @return whether the curReachRoomNum field is set */ - public boolean hasMapId() { + public boolean hasCurReachRoomNum() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 map_id = 6; - * @return this - */ - public RogueArea clearMapId() { - bitField0_ &= ~0x00000001; - mapId = 0; - return this; - } - - /** - * optional uint32 map_id = 6; - * @return the mapId - */ - public int getMapId() { - return mapId; - } - - /** - * optional uint32 map_id = 6; - * @param value the mapId to set - * @return this - */ - public RogueArea setMapId(final int value) { - bitField0_ |= 0x00000001; - mapId = value; - return this; - } - - /** - * optional uint32 cur_reach_room_num = 11; - * @return whether the curReachRoomNum field is set - */ - public boolean hasCurReachRoomNum() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 cur_reach_room_num = 11; + * optional uint32 cur_reach_room_num = 2; * @return this */ public RogueArea clearCurReachRoomNum() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; curReachRoomNum = 0; return this; } /** - * optional uint32 cur_reach_room_num = 11; + * optional uint32 cur_reach_room_num = 2; * @return the curReachRoomNum */ public int getCurReachRoomNum() { @@ -122,18 +84,55 @@ public final class RogueAreaOuterClass { } /** - * optional uint32 cur_reach_room_num = 11; + * optional uint32 cur_reach_room_num = 2; * @param value the curReachRoomNum to set * @return this */ public RogueArea setCurReachRoomNum(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; curReachRoomNum = value; return this; } /** - * optional uint32 area_id = 12; + * optional uint32 map_id = 5; + * @return whether the mapId field is set + */ + public boolean hasMapId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 map_id = 5; + * @return this + */ + public RogueArea clearMapId() { + bitField0_ &= ~0x00000002; + 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_ |= 0x00000002; + mapId = value; + return this; + } + + /** + * optional uint32 area_id = 7; * @return whether the areaId field is set */ public boolean hasAreaId() { @@ -141,7 +140,7 @@ public final class RogueAreaOuterClass { } /** - * optional uint32 area_id = 12; + * optional uint32 area_id = 7; * @return this */ public RogueArea clearAreaId() { @@ -151,7 +150,7 @@ public final class RogueAreaOuterClass { } /** - * optional uint32 area_id = 12; + * optional uint32 area_id = 7; * @return the areaId */ public int getAreaId() { @@ -159,7 +158,7 @@ public final class RogueAreaOuterClass { } /** - * optional uint32 area_id = 12; + * optional uint32 area_id = 7; * @param value the areaId to set * @return this */ @@ -170,7 +169,7 @@ public final class RogueAreaOuterClass { } /** - * optional .RogueAreaStatus rogue_area_status = 8; + * optional uint32 rogue_area_status = 8; * @return whether the rogueAreaStatus field is set */ public boolean hasRogueAreaStatus() { @@ -178,7 +177,7 @@ public final class RogueAreaOuterClass { } /** - * optional .RogueAreaStatus rogue_area_status = 8; + * optional uint32 rogue_area_status = 8; * @return this */ public RogueArea clearRogueAreaStatus() { @@ -188,145 +187,74 @@ public final class RogueAreaOuterClass { } /** - * optional .RogueAreaStatus rogue_area_status = 8; + * optional uint32 rogue_area_status = 8; * @return the rogueAreaStatus */ - public RogueAreaStatusOuterClass.RogueAreaStatus getRogueAreaStatus() { - return RogueAreaStatusOuterClass.RogueAreaStatus.forNumber(rogueAreaStatus); - } - - /** - * Gets the value of the internal enum store. The result is - * equivalent to {@link RogueArea#getRogueAreaStatus()}.getNumber(). - * - * @return numeric wire representation - */ - public int getRogueAreaStatusValue() { + public int getRogueAreaStatus() { return rogueAreaStatus; } /** - * 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 RogueAreaStatusOuterClass.RogueAreaStatus}. Setting an invalid value - * can cause {@link RogueArea#getRogueAreaStatus()} to return null - * - * @param value the numeric wire value to set + * optional uint32 rogue_area_status = 8; + * @param value the rogueAreaStatus to set * @return this */ - public RogueArea setRogueAreaStatusValue(final int value) { + public RogueArea setRogueAreaStatus(final int value) { bitField0_ |= 0x00000008; rogueAreaStatus = value; return this; } /** - * optional .RogueAreaStatus rogue_area_status = 8; - * @param value the rogueAreaStatus to set - * @return this + *
+     *  HJEALCCKPAO AMMMELMOKJF = 12;
+     * 
+ * + * optional bool CMJFDLMBIOK = 14; + * @return whether the cMJFDLMBIOK field is set */ - public RogueArea setRogueAreaStatus(final RogueAreaStatusOuterClass.RogueAreaStatus value) { - bitField0_ |= 0x00000008; - rogueAreaStatus = value.getNumber(); - return this; - } - - /** - * optional .RogueStatus rogue_status = 9; - * @return whether the rogueStatus field is set - */ - public boolean hasRogueStatus() { + public boolean hasCMJFDLMBIOK() { return (bitField0_ & 0x00000010) != 0; } /** - * optional .RogueStatus rogue_status = 9; + *
+     *  HJEALCCKPAO AMMMELMOKJF = 12;
+     * 
+ * + * optional bool CMJFDLMBIOK = 14; * @return this */ - public RogueArea clearRogueStatus() { + public RogueArea clearCMJFDLMBIOK() { bitField0_ &= ~0x00000010; - rogueStatus = 0; + cMJFDLMBIOK = false; return this; } /** - * optional .RogueStatus rogue_status = 9; - * @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 RogueArea#getRogueStatus()}.getNumber(). + *
+     *  HJEALCCKPAO AMMMELMOKJF = 12;
+     * 
* - * @return numeric wire representation + * optional bool CMJFDLMBIOK = 14; + * @return the cMJFDLMBIOK */ - public int getRogueStatusValue() { - return rogueStatus; + public boolean getCMJFDLMBIOK() { + return cMJFDLMBIOK; } /** - * 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 RogueArea#getRogueStatus()} to return null + *
+     *  HJEALCCKPAO AMMMELMOKJF = 12;
+     * 
* - * @param value the numeric wire value to set + * optional bool CMJFDLMBIOK = 14; + * @param value the cMJFDLMBIOK to set * @return this */ - public RogueArea setRogueStatusValue(final int value) { + public RogueArea setCMJFDLMBIOK(final boolean value) { bitField0_ |= 0x00000010; - rogueStatus = value; - return this; - } - - /** - * optional .RogueStatus rogue_status = 9; - * @param value the rogueStatus to set - * @return this - */ - public RogueArea setRogueStatus(final RogueStatusOuterClass.RogueStatus value) { - bitField0_ |= 0x00000010; - rogueStatus = value.getNumber(); - return this; - } - - /** - * optional bool is_reward_taken = 14; - * @return whether the isRewardTaken field is set - */ - public boolean hasIsRewardTaken() { - return (bitField0_ & 0x00000020) != 0; - } - - /** - * optional bool is_reward_taken = 14; - * @return this - */ - public RogueArea clearIsRewardTaken() { - bitField0_ &= ~0x00000020; - isRewardTaken = false; - return this; - } - - /** - * optional bool is_reward_taken = 14; - * @return the isRewardTaken - */ - public boolean getIsRewardTaken() { - return isRewardTaken; - } - - /** - * optional bool is_reward_taken = 14; - * @param value the isRewardTaken to set - * @return this - */ - public RogueArea setIsRewardTaken(final boolean value) { - bitField0_ |= 0x00000020; - isRewardTaken = value; + cMJFDLMBIOK = value; return this; } @@ -335,12 +263,11 @@ public final class RogueAreaOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - mapId = other.mapId; curReachRoomNum = other.curReachRoomNum; + mapId = other.mapId; areaId = other.areaId; rogueAreaStatus = other.rogueAreaStatus; - rogueStatus = other.rogueStatus; - isRewardTaken = other.isRewardTaken; + cMJFDLMBIOK = other.cMJFDLMBIOK; } return this; } @@ -351,23 +278,20 @@ public final class RogueAreaOuterClass { return this; } cachedSize = -1; - if (other.hasMapId()) { - setMapId(other.mapId); - } if (other.hasCurReachRoomNum()) { setCurReachRoomNum(other.curReachRoomNum); } + if (other.hasMapId()) { + setMapId(other.mapId); + } if (other.hasAreaId()) { setAreaId(other.areaId); } if (other.hasRogueAreaStatus()) { - setRogueAreaStatusValue(other.rogueAreaStatus); + setRogueAreaStatus(other.rogueAreaStatus); } - if (other.hasRogueStatus()) { - setRogueStatusValue(other.rogueStatus); - } - if (other.hasIsRewardTaken()) { - setIsRewardTaken(other.isRewardTaken); + if (other.hasCMJFDLMBIOK()) { + setCMJFDLMBIOK(other.cMJFDLMBIOK); } return this; } @@ -379,12 +303,11 @@ public final class RogueAreaOuterClass { } cachedSize = -1; bitField0_ = 0; - mapId = 0; curReachRoomNum = 0; + mapId = 0; areaId = 0; rogueAreaStatus = 0; - rogueStatus = 0; - isRewardTaken = false; + cMJFDLMBIOK = false; return this; } @@ -408,39 +331,34 @@ public final class RogueAreaOuterClass { } RogueArea other = (RogueArea) o; return bitField0_ == other.bitField0_ - && (!hasMapId() || mapId == other.mapId) && (!hasCurReachRoomNum() || curReachRoomNum == other.curReachRoomNum) + && (!hasMapId() || mapId == other.mapId) && (!hasAreaId() || areaId == other.areaId) && (!hasRogueAreaStatus() || rogueAreaStatus == other.rogueAreaStatus) - && (!hasRogueStatus() || rogueStatus == other.rogueStatus) - && (!hasIsRewardTaken() || isRewardTaken == other.isRewardTaken); + && (!hasCMJFDLMBIOK() || cMJFDLMBIOK == other.cMJFDLMBIOK); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 48); - output.writeUInt32NoTag(mapId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 16); output.writeUInt32NoTag(curReachRoomNum); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(mapId); + } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 56); output.writeUInt32NoTag(areaId); } if ((bitField0_ & 0x00000008) != 0) { output.writeRawByte((byte) 64); - output.writeEnumNoTag(rogueAreaStatus); + output.writeUInt32NoTag(rogueAreaStatus); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 72); - output.writeEnumNoTag(rogueStatus); - } - if ((bitField0_ & 0x00000020) != 0) { output.writeRawByte((byte) 112); - output.writeBoolNoTag(isRewardTaken); + output.writeBoolNoTag(cMJFDLMBIOK); } } @@ -448,21 +366,18 @@ public final class RogueAreaOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(mapId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(curReachRoomNum); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(curReachRoomNum); + size += 1 + ProtoSink.computeUInt32SizeNoTag(mapId); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(areaId); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeEnumSizeNoTag(rogueAreaStatus); + size += 1 + ProtoSink.computeUInt32SizeNoTag(rogueAreaStatus); } if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeEnumSizeNoTag(rogueStatus); - } - if ((bitField0_ & 0x00000020) != 0) { size += 2; } return size; @@ -475,25 +390,25 @@ public final class RogueAreaOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 48: { - // mapId - mapId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 88) { - break; - } - } - case 88: { + case 16: { // curReachRoomNum curReachRoomNum = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 96) { + if (tag != 40) { break; } } - case 96: { + case 40: { + // mapId + mapId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { // areaId areaId = input.readUInt32(); bitField0_ |= 0x00000004; @@ -504,32 +419,17 @@ public final class RogueAreaOuterClass { } case 64: { // rogueAreaStatus - final int value = input.readInt32(); - if (RogueAreaStatusOuterClass.RogueAreaStatus.forNumber(value) != null) { - rogueAreaStatus = value; - bitField0_ |= 0x00000008; - } - tag = input.readTag(); - if (tag != 72) { - break; - } - } - case 72: { - // rogueStatus - final int value = input.readInt32(); - if (RogueStatusOuterClass.RogueStatus.forNumber(value) != null) { - rogueStatus = value; - bitField0_ |= 0x00000010; - } + rogueAreaStatus = input.readUInt32(); + bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 112) { break; } } case 112: { - // isRewardTaken - isRewardTaken = input.readBool(); - bitField0_ |= 0x00000020; + // cMJFDLMBIOK + cMJFDLMBIOK = input.readBool(); + bitField0_ |= 0x00000010; tag = input.readTag(); if (tag != 0) { break; @@ -553,22 +453,19 @@ public final class RogueAreaOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.mapId, mapId); + output.writeUInt32(FieldNames.curReachRoomNum, curReachRoomNum); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.curReachRoomNum, curReachRoomNum); + output.writeUInt32(FieldNames.mapId, mapId); } if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.areaId, areaId); } if ((bitField0_ & 0x00000008) != 0) { - output.writeEnum(FieldNames.rogueAreaStatus, rogueAreaStatus, RogueAreaStatusOuterClass.RogueAreaStatus.converter()); + output.writeUInt32(FieldNames.rogueAreaStatus, rogueAreaStatus); } if ((bitField0_ & 0x00000010) != 0) { - output.writeEnum(FieldNames.rogueStatus, rogueStatus, RogueStatusOuterClass.RogueStatus.converter()); - } - if ((bitField0_ & 0x00000020) != 0) { - output.writeBool(FieldNames.isRewardTaken, isRewardTaken); + output.writeBool(FieldNames.cMJFDLMBIOK, cMJFDLMBIOK); } output.endObject(); } @@ -580,11 +477,11 @@ public final class RogueAreaOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 103663511: - case -1081377058: { - if (input.isAtField(FieldNames.mapId)) { + case 888045080: + case 328196941: { + if (input.isAtField(FieldNames.curReachRoomNum)) { if (!input.trySkipNullValue()) { - mapId = input.readUInt32(); + curReachRoomNum = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -592,11 +489,11 @@ public final class RogueAreaOuterClass { } break; } - case 888045080: - case 328196941: { - if (input.isAtField(FieldNames.curReachRoomNum)) { + case 103663511: + case -1081377058: { + if (input.isAtField(FieldNames.mapId)) { if (!input.trySkipNullValue()) { - curReachRoomNum = input.readUInt32(); + mapId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -620,42 +517,19 @@ public final class RogueAreaOuterClass { case -1961715457: { if (input.isAtField(FieldNames.rogueAreaStatus)) { if (!input.trySkipNullValue()) { - final RogueAreaStatusOuterClass.RogueAreaStatus value = input.readEnum(RogueAreaStatusOuterClass.RogueAreaStatus.converter()); - if (value != null) { - rogueAreaStatus = value.getNumber(); - bitField0_ |= 0x00000008; - } else { - input.skipUnknownEnumValue(); - } + rogueAreaStatus = input.readUInt32(); + bitField0_ |= 0x00000008; } } else { input.skipUnknownField(); } break; } - case -836112788: - case 1898767863: { - if (input.isAtField(FieldNames.rogueStatus)) { + case 1216373954: { + if (input.isAtField(FieldNames.cMJFDLMBIOK)) { if (!input.trySkipNullValue()) { - final RogueStatusOuterClass.RogueStatus value = input.readEnum(RogueStatusOuterClass.RogueStatus.converter()); - if (value != null) { - rogueStatus = value.getNumber(); - bitField0_ |= 0x00000010; - } else { - input.skipUnknownEnumValue(); - } - } - } else { - input.skipUnknownField(); - } - break; - } - case -522199218: - case 1351172268: { - if (input.isAtField(FieldNames.isRewardTaken)) { - if (!input.trySkipNullValue()) { - isRewardTaken = input.readBool(); - bitField0_ |= 0x00000020; + cMJFDLMBIOK = input.readBool(); + bitField0_ |= 0x00000010; } } else { input.skipUnknownField(); @@ -714,17 +588,15 @@ public final class RogueAreaOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName mapId = FieldName.forField("mapId", "map_id"); - static final FieldName curReachRoomNum = FieldName.forField("curReachRoomNum", "cur_reach_room_num"); + static final FieldName mapId = FieldName.forField("mapId", "map_id"); + static final FieldName areaId = FieldName.forField("areaId", "area_id"); static final FieldName rogueAreaStatus = FieldName.forField("rogueAreaStatus", "rogue_area_status"); - static final FieldName rogueStatus = FieldName.forField("rogueStatus", "rogue_status"); - - static final FieldName isRewardTaken = FieldName.forField("isRewardTaken", "is_reward_taken"); + static final FieldName cMJFDLMBIOK = FieldName.forField("CMJFDLMBIOK"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/RogueAvatarInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueAvatarInfoOuterClass.java index 49924cf..66c7e2e 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueAvatarInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RogueAvatarInfoOuterClass.java @@ -20,10 +20,25 @@ public final class RogueAvatarInfoOuterClass { private static final long serialVersionUID = 0L; /** - * repeated uint32 base_avatar_id_list = 14; + * optional .CLPDAOOAHOE AJJJNLPCEED = 2; + */ + private final CLPDAOOAHOE aJJJNLPCEED = CLPDAOOAHOE.newInstance(); + + /** + * repeated uint32 DDDICOEFHPM = 7; + */ + private final RepeatedInt dDDICOEFHPM = RepeatedInt.newEmptyInstance(); + + /** + * repeated uint32 base_avatar_id_list = 11; */ private final RepeatedInt baseAvatarIdList = RepeatedInt.newEmptyInstance(); + /** + * repeated uint32 POGOCOKADMA = 14; + */ + private final RepeatedInt pOGOCOKADMA = RepeatedInt.newEmptyInstance(); + private RogueAvatarInfo() { } @@ -35,25 +50,150 @@ public final class RogueAvatarInfoOuterClass { } /** - * repeated uint32 base_avatar_id_list = 14; - * @return whether the baseAvatarIdList field is set + * optional .CLPDAOOAHOE AJJJNLPCEED = 2; + * @return whether the aJJJNLPCEED field is set */ - public boolean hasBaseAvatarIdList() { + public boolean hasAJJJNLPCEED() { return (bitField0_ & 0x00000001) != 0; } /** - * repeated uint32 base_avatar_id_list = 14; + * optional .CLPDAOOAHOE AJJJNLPCEED = 2; + * @return this + */ + public RogueAvatarInfo clearAJJJNLPCEED() { + bitField0_ &= ~0x00000001; + aJJJNLPCEED.clear(); + return this; + } + + /** + * optional .CLPDAOOAHOE AJJJNLPCEED = 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 #getMutableAJJJNLPCEED()} if you want to modify it. + * + * @return internal storage object for reading + */ + public CLPDAOOAHOE getAJJJNLPCEED() { + return aJJJNLPCEED; + } + + /** + * optional .CLPDAOOAHOE AJJJNLPCEED = 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 CLPDAOOAHOE getMutableAJJJNLPCEED() { + bitField0_ |= 0x00000001; + return aJJJNLPCEED; + } + + /** + * optional .CLPDAOOAHOE AJJJNLPCEED = 2; + * @param value the aJJJNLPCEED to set + * @return this + */ + public RogueAvatarInfo setAJJJNLPCEED(final CLPDAOOAHOE value) { + bitField0_ |= 0x00000001; + aJJJNLPCEED.copyFrom(value); + return this; + } + + /** + * repeated uint32 DDDICOEFHPM = 7; + * @return whether the dDDICOEFHPM field is set + */ + public boolean hasDDDICOEFHPM() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated uint32 DDDICOEFHPM = 7; + * @return this + */ + public RogueAvatarInfo clearDDDICOEFHPM() { + bitField0_ &= ~0x00000002; + dDDICOEFHPM.clear(); + return this; + } + + /** + * repeated uint32 DDDICOEFHPM = 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 #getMutableDDDICOEFHPM()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getDDDICOEFHPM() { + return dDDICOEFHPM; + } + + /** + * repeated uint32 DDDICOEFHPM = 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 getMutableDDDICOEFHPM() { + bitField0_ |= 0x00000002; + return dDDICOEFHPM; + } + + /** + * repeated uint32 DDDICOEFHPM = 7; + * @param value the dDDICOEFHPM to add + * @return this + */ + public RogueAvatarInfo addDDDICOEFHPM(final int value) { + bitField0_ |= 0x00000002; + dDDICOEFHPM.add(value); + return this; + } + + /** + * repeated uint32 DDDICOEFHPM = 7; + * @param values the dDDICOEFHPM to add + * @return this + */ + public RogueAvatarInfo addAllDDDICOEFHPM(final int... values) { + bitField0_ |= 0x00000002; + dDDICOEFHPM.addAll(values); + return this; + } + + /** + * repeated uint32 base_avatar_id_list = 11; + * @return whether the baseAvatarIdList field is set + */ + public boolean hasBaseAvatarIdList() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated uint32 base_avatar_id_list = 11; * @return this */ public RogueAvatarInfo clearBaseAvatarIdList() { - bitField0_ &= ~0x00000001; + bitField0_ &= ~0x00000004; baseAvatarIdList.clear(); return this; } /** - * repeated uint32 base_avatar_id_list = 14; + * repeated uint32 base_avatar_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. @@ -67,7 +207,7 @@ public final class RogueAvatarInfoOuterClass { } /** - * repeated uint32 base_avatar_id_list = 14; + * repeated uint32 base_avatar_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 @@ -76,38 +216,109 @@ public final class RogueAvatarInfoOuterClass { * @return internal storage object for modifications */ public RepeatedInt getMutableBaseAvatarIdList() { - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; return baseAvatarIdList; } /** - * repeated uint32 base_avatar_id_list = 14; + * repeated uint32 base_avatar_id_list = 11; * @param value the baseAvatarIdList to add * @return this */ public RogueAvatarInfo addBaseAvatarIdList(final int value) { - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; baseAvatarIdList.add(value); return this; } /** - * repeated uint32 base_avatar_id_list = 14; + * repeated uint32 base_avatar_id_list = 11; * @param values the baseAvatarIdList to add * @return this */ public RogueAvatarInfo addAllBaseAvatarIdList(final int... values) { - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; baseAvatarIdList.addAll(values); return this; } + /** + * repeated uint32 POGOCOKADMA = 14; + * @return whether the pOGOCOKADMA field is set + */ + public boolean hasPOGOCOKADMA() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated uint32 POGOCOKADMA = 14; + * @return this + */ + public RogueAvatarInfo clearPOGOCOKADMA() { + bitField0_ &= ~0x00000008; + pOGOCOKADMA.clear(); + return this; + } + + /** + * repeated uint32 POGOCOKADMA = 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 #getMutablePOGOCOKADMA()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getPOGOCOKADMA() { + return pOGOCOKADMA; + } + + /** + * repeated uint32 POGOCOKADMA = 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 getMutablePOGOCOKADMA() { + bitField0_ |= 0x00000008; + return pOGOCOKADMA; + } + + /** + * repeated uint32 POGOCOKADMA = 14; + * @param value the pOGOCOKADMA to add + * @return this + */ + public RogueAvatarInfo addPOGOCOKADMA(final int value) { + bitField0_ |= 0x00000008; + pOGOCOKADMA.add(value); + return this; + } + + /** + * repeated uint32 POGOCOKADMA = 14; + * @param values the pOGOCOKADMA to add + * @return this + */ + public RogueAvatarInfo addAllPOGOCOKADMA(final int... values) { + bitField0_ |= 0x00000008; + pOGOCOKADMA.addAll(values); + return this; + } + @Override public RogueAvatarInfo copyFrom(final RogueAvatarInfo other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; + aJJJNLPCEED.copyFrom(other.aJJJNLPCEED); + dDDICOEFHPM.copyFrom(other.dDDICOEFHPM); baseAvatarIdList.copyFrom(other.baseAvatarIdList); + pOGOCOKADMA.copyFrom(other.pOGOCOKADMA); } return this; } @@ -118,9 +329,18 @@ public final class RogueAvatarInfoOuterClass { return this; } cachedSize = -1; + if (other.hasAJJJNLPCEED()) { + getMutableAJJJNLPCEED().mergeFrom(other.aJJJNLPCEED); + } + if (other.hasDDDICOEFHPM()) { + getMutableDDDICOEFHPM().addAll(other.dDDICOEFHPM); + } if (other.hasBaseAvatarIdList()) { getMutableBaseAvatarIdList().addAll(other.baseAvatarIdList); } + if (other.hasPOGOCOKADMA()) { + getMutablePOGOCOKADMA().addAll(other.pOGOCOKADMA); + } return this; } @@ -131,7 +351,10 @@ public final class RogueAvatarInfoOuterClass { } cachedSize = -1; bitField0_ = 0; + aJJJNLPCEED.clear(); + dDDICOEFHPM.clear(); baseAvatarIdList.clear(); + pOGOCOKADMA.clear(); return this; } @@ -142,7 +365,10 @@ public final class RogueAvatarInfoOuterClass { } cachedSize = -1; bitField0_ = 0; + aJJJNLPCEED.clearQuick(); + dDDICOEFHPM.clear(); baseAvatarIdList.clear(); + pOGOCOKADMA.clear(); return this; } @@ -156,25 +382,53 @@ public final class RogueAvatarInfoOuterClass { } RogueAvatarInfo other = (RogueAvatarInfo) o; return bitField0_ == other.bitField0_ - && (!hasBaseAvatarIdList() || baseAvatarIdList.equals(other.baseAvatarIdList)); + && (!hasAJJJNLPCEED() || aJJJNLPCEED.equals(other.aJJJNLPCEED)) + && (!hasDDDICOEFHPM() || dDDICOEFHPM.equals(other.dDDICOEFHPM)) + && (!hasBaseAvatarIdList() || baseAvatarIdList.equals(other.baseAvatarIdList)) + && (!hasPOGOCOKADMA() || pOGOCOKADMA.equals(other.pOGOCOKADMA)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(aJJJNLPCEED); + } + if ((bitField0_ & 0x00000002) != 0) { + for (int i = 0; i < dDDICOEFHPM.length(); i++) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(dDDICOEFHPM.array()[i]); + } + } + if ((bitField0_ & 0x00000004) != 0) { for (int i = 0; i < baseAvatarIdList.length(); i++) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 88); output.writeUInt32NoTag(baseAvatarIdList.array()[i]); } } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < pOGOCOKADMA.length(); i++) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(pOGOCOKADMA.array()[i]); + } + } } @Override protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(aJJJNLPCEED); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * dDDICOEFHPM.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(dDDICOEFHPM); + } + if ((bitField0_ & 0x00000004) != 0) { size += (1 * baseAvatarIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(baseAvatarIdList); } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * pOGOCOKADMA.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(pOGOCOKADMA); + } return size; } @@ -185,10 +439,37 @@ public final class RogueAvatarInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 114: { + case 18: { + // aJJJNLPCEED + input.readMessage(aJJJNLPCEED); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 58) { + break; + } + } + case 58: { + // dDDICOEFHPM [packed=true] + input.readPackedUInt32(dDDICOEFHPM, tag); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 90) { + break; + } + } + case 90: { // baseAvatarIdList [packed=true] input.readPackedUInt32(baseAvatarIdList, tag); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 114) { + break; + } + } + case 114: { + // pOGOCOKADMA [packed=true] + input.readPackedUInt32(pOGOCOKADMA, tag); + bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 0) { break; @@ -204,10 +485,22 @@ public final class RogueAvatarInfoOuterClass { tag = input.readTag(); break; } - case 112: { + case 56: { + // dDDICOEFHPM [packed=false] + tag = input.readRepeatedUInt32(dDDICOEFHPM, tag); + bitField0_ |= 0x00000002; + break; + } + case 88: { // baseAvatarIdList [packed=false] tag = input.readRepeatedUInt32(baseAvatarIdList, tag); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; + break; + } + case 112: { + // pOGOCOKADMA [packed=false] + tag = input.readRepeatedUInt32(pOGOCOKADMA, tag); + bitField0_ |= 0x00000008; break; } } @@ -218,8 +511,17 @@ public final class RogueAvatarInfoOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { + output.writeMessage(FieldNames.aJJJNLPCEED, aJJJNLPCEED); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedUInt32(FieldNames.dDDICOEFHPM, dDDICOEFHPM); + } + if ((bitField0_ & 0x00000004) != 0) { output.writeRepeatedUInt32(FieldNames.baseAvatarIdList, baseAvatarIdList); } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedUInt32(FieldNames.pOGOCOKADMA, pOGOCOKADMA); + } output.endObject(); } @@ -230,12 +532,45 @@ public final class RogueAvatarInfoOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { + case -225944950: { + if (input.isAtField(FieldNames.aJJJNLPCEED)) { + if (!input.trySkipNullValue()) { + input.readMessage(aJJJNLPCEED); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -727553421: { + if (input.isAtField(FieldNames.dDDICOEFHPM)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(dDDICOEFHPM); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } case -1212654461: case 914628490: { if (input.isAtField(FieldNames.baseAvatarIdList)) { if (!input.trySkipNullValue()) { input.readRepeatedUInt32(baseAvatarIdList); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2062105039: { + if (input.isAtField(FieldNames.pOGOCOKADMA)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(pOGOCOKADMA); + bitField0_ |= 0x00000008; } } else { input.skipUnknownField(); @@ -295,7 +630,558 @@ public final class RogueAvatarInfoOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { + static final FieldName aJJJNLPCEED = FieldName.forField("AJJJNLPCEED"); + + static final FieldName dDDICOEFHPM = FieldName.forField("DDDICOEFHPM"); + static final FieldName baseAvatarIdList = FieldName.forField("baseAvatarIdList", "base_avatar_id_list"); + + static final FieldName pOGOCOKADMA = FieldName.forField("POGOCOKADMA"); + } + } + + /** + * Protobuf type {@code CLPDAOOAHOE} + */ + public static final class CLPDAOOAHOE extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 DJGJDMBOFEH = 11; + */ + private int dJGJDMBOFEH; + + /** + * optional uint32 KKNMDMPJLBG = 15; + */ + private int kKNMDMPJLBG; + + /** + * optional .ItemCostList MGEFFLOEPBK = 7; + */ + private final ItemCostListOuterClass.ItemCostList mGEFFLOEPBK = ItemCostListOuterClass.ItemCostList.newInstance(); + + /** + * repeated uint32 PFIDJJKFGJH = 12; + */ + private final RepeatedInt pFIDJJKFGJH = RepeatedInt.newEmptyInstance(); + + private CLPDAOOAHOE() { + } + + /** + * @return a new empty instance of {@code CLPDAOOAHOE} + */ + public static CLPDAOOAHOE newInstance() { + return new CLPDAOOAHOE(); + } + + /** + * optional uint32 DJGJDMBOFEH = 11; + * @return whether the dJGJDMBOFEH field is set + */ + public boolean hasDJGJDMBOFEH() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 DJGJDMBOFEH = 11; + * @return this + */ + public CLPDAOOAHOE clearDJGJDMBOFEH() { + bitField0_ &= ~0x00000001; + dJGJDMBOFEH = 0; + return this; + } + + /** + * optional uint32 DJGJDMBOFEH = 11; + * @return the dJGJDMBOFEH + */ + public int getDJGJDMBOFEH() { + return dJGJDMBOFEH; + } + + /** + * optional uint32 DJGJDMBOFEH = 11; + * @param value the dJGJDMBOFEH to set + * @return this + */ + public CLPDAOOAHOE setDJGJDMBOFEH(final int value) { + bitField0_ |= 0x00000001; + dJGJDMBOFEH = value; + return this; + } + + /** + * optional uint32 KKNMDMPJLBG = 15; + * @return whether the kKNMDMPJLBG field is set + */ + public boolean hasKKNMDMPJLBG() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 KKNMDMPJLBG = 15; + * @return this + */ + public CLPDAOOAHOE clearKKNMDMPJLBG() { + bitField0_ &= ~0x00000002; + kKNMDMPJLBG = 0; + return this; + } + + /** + * optional uint32 KKNMDMPJLBG = 15; + * @return the kKNMDMPJLBG + */ + public int getKKNMDMPJLBG() { + return kKNMDMPJLBG; + } + + /** + * optional uint32 KKNMDMPJLBG = 15; + * @param value the kKNMDMPJLBG to set + * @return this + */ + public CLPDAOOAHOE setKKNMDMPJLBG(final int value) { + bitField0_ |= 0x00000002; + kKNMDMPJLBG = value; + return this; + } + + /** + * optional .ItemCostList MGEFFLOEPBK = 7; + * @return whether the mGEFFLOEPBK field is set + */ + public boolean hasMGEFFLOEPBK() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .ItemCostList MGEFFLOEPBK = 7; + * @return this + */ + public CLPDAOOAHOE clearMGEFFLOEPBK() { + bitField0_ &= ~0x00000004; + mGEFFLOEPBK.clear(); + return this; + } + + /** + * optional .ItemCostList MGEFFLOEPBK = 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 #getMutableMGEFFLOEPBK()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ItemCostListOuterClass.ItemCostList getMGEFFLOEPBK() { + return mGEFFLOEPBK; + } + + /** + * optional .ItemCostList MGEFFLOEPBK = 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 getMutableMGEFFLOEPBK() { + bitField0_ |= 0x00000004; + return mGEFFLOEPBK; + } + + /** + * optional .ItemCostList MGEFFLOEPBK = 7; + * @param value the mGEFFLOEPBK to set + * @return this + */ + public CLPDAOOAHOE setMGEFFLOEPBK(final ItemCostListOuterClass.ItemCostList value) { + bitField0_ |= 0x00000004; + mGEFFLOEPBK.copyFrom(value); + return this; + } + + /** + * repeated uint32 PFIDJJKFGJH = 12; + * @return whether the pFIDJJKFGJH field is set + */ + public boolean hasPFIDJJKFGJH() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated uint32 PFIDJJKFGJH = 12; + * @return this + */ + public CLPDAOOAHOE clearPFIDJJKFGJH() { + bitField0_ &= ~0x00000008; + pFIDJJKFGJH.clear(); + return this; + } + + /** + * repeated uint32 PFIDJJKFGJH = 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 #getMutablePFIDJJKFGJH()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getPFIDJJKFGJH() { + return pFIDJJKFGJH; + } + + /** + * repeated uint32 PFIDJJKFGJH = 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 getMutablePFIDJJKFGJH() { + bitField0_ |= 0x00000008; + return pFIDJJKFGJH; + } + + /** + * repeated uint32 PFIDJJKFGJH = 12; + * @param value the pFIDJJKFGJH to add + * @return this + */ + public CLPDAOOAHOE addPFIDJJKFGJH(final int value) { + bitField0_ |= 0x00000008; + pFIDJJKFGJH.add(value); + return this; + } + + /** + * repeated uint32 PFIDJJKFGJH = 12; + * @param values the pFIDJJKFGJH to add + * @return this + */ + public CLPDAOOAHOE addAllPFIDJJKFGJH(final int... values) { + bitField0_ |= 0x00000008; + pFIDJJKFGJH.addAll(values); + return this; + } + + @Override + public CLPDAOOAHOE copyFrom(final CLPDAOOAHOE other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + dJGJDMBOFEH = other.dJGJDMBOFEH; + kKNMDMPJLBG = other.kKNMDMPJLBG; + mGEFFLOEPBK.copyFrom(other.mGEFFLOEPBK); + pFIDJJKFGJH.copyFrom(other.pFIDJJKFGJH); + } + return this; + } + + @Override + public CLPDAOOAHOE mergeFrom(final CLPDAOOAHOE other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasDJGJDMBOFEH()) { + setDJGJDMBOFEH(other.dJGJDMBOFEH); + } + if (other.hasKKNMDMPJLBG()) { + setKKNMDMPJLBG(other.kKNMDMPJLBG); + } + if (other.hasMGEFFLOEPBK()) { + getMutableMGEFFLOEPBK().mergeFrom(other.mGEFFLOEPBK); + } + if (other.hasPFIDJJKFGJH()) { + getMutablePFIDJJKFGJH().addAll(other.pFIDJJKFGJH); + } + return this; + } + + @Override + public CLPDAOOAHOE clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + dJGJDMBOFEH = 0; + kKNMDMPJLBG = 0; + mGEFFLOEPBK.clear(); + pFIDJJKFGJH.clear(); + return this; + } + + @Override + public CLPDAOOAHOE clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + mGEFFLOEPBK.clearQuick(); + pFIDJJKFGJH.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof CLPDAOOAHOE)) { + return false; + } + CLPDAOOAHOE other = (CLPDAOOAHOE) o; + return bitField0_ == other.bitField0_ + && (!hasDJGJDMBOFEH() || dJGJDMBOFEH == other.dJGJDMBOFEH) + && (!hasKKNMDMPJLBG() || kKNMDMPJLBG == other.kKNMDMPJLBG) + && (!hasMGEFFLOEPBK() || mGEFFLOEPBK.equals(other.mGEFFLOEPBK)) + && (!hasPFIDJJKFGJH() || pFIDJJKFGJH.equals(other.pFIDJJKFGJH)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(dJGJDMBOFEH); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(kKNMDMPJLBG); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 58); + output.writeMessageNoTag(mGEFFLOEPBK); + } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < pFIDJJKFGJH.length(); i++) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(pFIDJJKFGJH.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(dJGJDMBOFEH); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(kKNMDMPJLBG); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(mGEFFLOEPBK); + } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * pFIDJJKFGJH.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(pFIDJJKFGJH); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public CLPDAOOAHOE mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 88: { + // dJGJDMBOFEH + dJGJDMBOFEH = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // kKNMDMPJLBG + kKNMDMPJLBG = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 58) { + break; + } + } + case 58: { + // mGEFFLOEPBK + input.readMessage(mGEFFLOEPBK); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 98) { + break; + } + } + case 98: { + // pFIDJJKFGJH [packed=true] + input.readPackedUInt32(pFIDJJKFGJH, 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 96: { + // pFIDJJKFGJH [packed=false] + tag = input.readRepeatedUInt32(pFIDJJKFGJH, tag); + bitField0_ |= 0x00000008; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.dJGJDMBOFEH, dJGJDMBOFEH); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.kKNMDMPJLBG, kKNMDMPJLBG); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.mGEFFLOEPBK, mGEFFLOEPBK); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedUInt32(FieldNames.pFIDJJKFGJH, pFIDJJKFGJH); + } + output.endObject(); + } + + @Override + public CLPDAOOAHOE mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -463479542: { + if (input.isAtField(FieldNames.dJGJDMBOFEH)) { + if (!input.trySkipNullValue()) { + dJGJDMBOFEH = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 825219695: { + if (input.isAtField(FieldNames.kKNMDMPJLBG)) { + if (!input.trySkipNullValue()) { + kKNMDMPJLBG = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -464868894: { + if (input.isAtField(FieldNames.mGEFFLOEPBK)) { + if (!input.trySkipNullValue()) { + input.readMessage(mGEFFLOEPBK); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -662375: { + if (input.isAtField(FieldNames.pFIDJJKFGJH)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(pFIDJJKFGJH); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public CLPDAOOAHOE clone() { + return new CLPDAOOAHOE().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static CLPDAOOAHOE parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new CLPDAOOAHOE(), data).checkInitialized(); + } + + public static CLPDAOOAHOE parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new CLPDAOOAHOE(), input).checkInitialized(); + } + + public static CLPDAOOAHOE parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new CLPDAOOAHOE(), input).checkInitialized(); + } + + /** + * @return factory for creating CLPDAOOAHOE messages + */ + public static MessageFactory getFactory() { + return CLPDAOOAHOEFactory.INSTANCE; + } + + private enum CLPDAOOAHOEFactory implements MessageFactory { + INSTANCE; + + @Override + public CLPDAOOAHOE create() { + return CLPDAOOAHOE.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName dJGJDMBOFEH = FieldName.forField("DJGJDMBOFEH"); + + static final FieldName kKNMDMPJLBG = FieldName.forField("KKNMDMPJLBG"); + + static final FieldName mGEFFLOEPBK = FieldName.forField("MGEFFLOEPBK"); + + static final FieldName pFIDJJKFGJH = FieldName.forField("PFIDJJKFGJH"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/RogueBonusSelectInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueBonusSelectInfoOuterClass.java new file mode 100644 index 0000000..79baa2b --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueBonusSelectInfoOuterClass.java @@ -0,0 +1,301 @@ +// 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 RogueBonusSelectInfoOuterClass { + /** + * Protobuf type {@code RogueBonusSelectInfo} + */ + public static final class RogueBonusSelectInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * repeated uint32 bonus_info = 5; + */ + private final RepeatedInt bonusInfo = RepeatedInt.newEmptyInstance(); + + private RogueBonusSelectInfo() { + } + + /** + * @return a new empty instance of {@code RogueBonusSelectInfo} + */ + public static RogueBonusSelectInfo newInstance() { + return new RogueBonusSelectInfo(); + } + + /** + * repeated uint32 bonus_info = 5; + * @return whether the bonusInfo field is set + */ + public boolean hasBonusInfo() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * repeated uint32 bonus_info = 5; + * @return this + */ + public RogueBonusSelectInfo clearBonusInfo() { + bitField0_ &= ~0x00000001; + bonusInfo.clear(); + return this; + } + + /** + * repeated uint32 bonus_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 #getMutableBonusInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getBonusInfo() { + return bonusInfo; + } + + /** + * repeated uint32 bonus_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 RepeatedInt getMutableBonusInfo() { + bitField0_ |= 0x00000001; + return bonusInfo; + } + + /** + * repeated uint32 bonus_info = 5; + * @param value the bonusInfo to add + * @return this + */ + public RogueBonusSelectInfo addBonusInfo(final int value) { + bitField0_ |= 0x00000001; + bonusInfo.add(value); + return this; + } + + /** + * repeated uint32 bonus_info = 5; + * @param values the bonusInfo to add + * @return this + */ + public RogueBonusSelectInfo addAllBonusInfo(final int... values) { + bitField0_ |= 0x00000001; + bonusInfo.addAll(values); + return this; + } + + @Override + public RogueBonusSelectInfo copyFrom(final RogueBonusSelectInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + bonusInfo.copyFrom(other.bonusInfo); + } + return this; + } + + @Override + public RogueBonusSelectInfo mergeFrom(final RogueBonusSelectInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBonusInfo()) { + getMutableBonusInfo().addAll(other.bonusInfo); + } + return this; + } + + @Override + public RogueBonusSelectInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + bonusInfo.clear(); + return this; + } + + @Override + public RogueBonusSelectInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + bonusInfo.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueBonusSelectInfo)) { + return false; + } + RogueBonusSelectInfo other = (RogueBonusSelectInfo) o; + return bitField0_ == other.bitField0_ + && (!hasBonusInfo() || bonusInfo.equals(other.bonusInfo)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + for (int i = 0; i < bonusInfo.length(); i++) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(bonusInfo.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += (1 * bonusInfo.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(bonusInfo); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueBonusSelectInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 42: { + // bonusInfo [packed=true] + input.readPackedUInt32(bonusInfo, 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 40: { + // bonusInfo [packed=false] + tag = input.readRepeatedUInt32(bonusInfo, tag); + bitField0_ |= 0x00000001; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeRepeatedUInt32(FieldNames.bonusInfo, bonusInfo); + } + output.endObject(); + } + + @Override + public RogueBonusSelectInfo 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)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(bonusInfo); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueBonusSelectInfo clone() { + return new RogueBonusSelectInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueBonusSelectInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueBonusSelectInfo(), data).checkInitialized(); + } + + public static RogueBonusSelectInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueBonusSelectInfo(), input).checkInitialized(); + } + + public static RogueBonusSelectInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueBonusSelectInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueBonusSelectInfo messages + */ + public static MessageFactory getFactory() { + return RogueBonusSelectInfoFactory.INSTANCE; + } + + private enum RogueBonusSelectInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueBonusSelectInfo create() { + return RogueBonusSelectInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName bonusInfo = FieldName.forField("bonusInfo", "bonus_info"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueBonusSelectOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueBonusSelectOuterClass.java new file mode 100644 index 0000000..70d9bb2 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueBonusSelectOuterClass.java @@ -0,0 +1,174 @@ +// 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/RogueBonusSelectResultOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueBonusSelectResultOuterClass.java new file mode 100644 index 0000000..a2c760f --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueBonusSelectResultOuterClass.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 RogueBonusSelectResultOuterClass { + /** + * Protobuf type {@code RogueBonusSelectResult} + */ + public static final class RogueBonusSelectResult extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 bonus_id = 9; + */ + private int bonusId; + + private RogueBonusSelectResult() { + } + + /** + * @return a new empty instance of {@code RogueBonusSelectResult} + */ + public static RogueBonusSelectResult newInstance() { + return new RogueBonusSelectResult(); + } + + /** + * optional uint32 bonus_id = 9; + * @return whether the bonusId field is set + */ + public boolean hasBonusId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 bonus_id = 9; + * @return this + */ + public RogueBonusSelectResult clearBonusId() { + bitField0_ &= ~0x00000001; + bonusId = 0; + return this; + } + + /** + * optional uint32 bonus_id = 9; + * @return the bonusId + */ + public int getBonusId() { + return bonusId; + } + + /** + * optional uint32 bonus_id = 9; + * @param value the bonusId to set + * @return this + */ + public RogueBonusSelectResult setBonusId(final int value) { + bitField0_ |= 0x00000001; + bonusId = value; + return this; + } + + @Override + public RogueBonusSelectResult copyFrom(final RogueBonusSelectResult other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + bonusId = other.bonusId; + } + return this; + } + + @Override + public RogueBonusSelectResult mergeFrom(final RogueBonusSelectResult other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBonusId()) { + setBonusId(other.bonusId); + } + return this; + } + + @Override + public RogueBonusSelectResult clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + bonusId = 0; + return this; + } + + @Override + public RogueBonusSelectResult 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 RogueBonusSelectResult)) { + return false; + } + RogueBonusSelectResult other = (RogueBonusSelectResult) o; + return bitField0_ == other.bitField0_ + && (!hasBonusId() || bonusId == other.bonusId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(bonusId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(bonusId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueBonusSelectResult mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 72: { + // bonusId + bonusId = 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.bonusId, bonusId); + } + output.endObject(); + } + + @Override + public RogueBonusSelectResult 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)) { + if (!input.trySkipNullValue()) { + bonusId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueBonusSelectResult clone() { + return new RogueBonusSelectResult().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueBonusSelectResult parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueBonusSelectResult(), data).checkInitialized(); + } + + public static RogueBonusSelectResult parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueBonusSelectResult(), input).checkInitialized(); + } + + public static RogueBonusSelectResult parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueBonusSelectResult(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueBonusSelectResult messages + */ + public static MessageFactory getFactory() { + return RogueBonusSelectResultFactory.INSTANCE; + } + + private enum RogueBonusSelectResultFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueBonusSelectResult create() { + return RogueBonusSelectResult.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName bonusId = FieldName.forField("bonusId", "bonus_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueBuffDataOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueBuffDataOuterClass.java new file mode 100644 index 0000000..a9ccbb8 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueBuffDataOuterClass.java @@ -0,0 +1,339 @@ +// 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 buff_id = 5; + */ + private int buffId; + + /** + * optional uint32 level = 9; + */ + private int level; + + private RogueBuffData() { + } + + /** + * @return a new empty instance of {@code RogueBuffData} + */ + public static RogueBuffData newInstance() { + return new RogueBuffData(); + } + + /** + * 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 RogueBuffData 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 RogueBuffData setBuffId(final int value) { + bitField0_ |= 0x00000001; + buffId = value; + return this; + } + + /** + * optional uint32 level = 9; + * @return whether the level field is set + */ + public boolean hasLevel() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 level = 9; + * @return this + */ + public RogueBuffData clearLevel() { + bitField0_ &= ~0x00000002; + level = 0; + return this; + } + + /** + * optional uint32 level = 9; + * @return the level + */ + public int getLevel() { + return level; + } + + /** + * optional uint32 level = 9; + * @param value the level to set + * @return this + */ + public RogueBuffData setLevel(final int value) { + bitField0_ |= 0x00000002; + level = value; + return this; + } + + @Override + public RogueBuffData copyFrom(final RogueBuffData other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + buffId = other.buffId; + level = other.level; + } + return this; + } + + @Override + public RogueBuffData mergeFrom(final RogueBuffData other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBuffId()) { + setBuffId(other.buffId); + } + if (other.hasLevel()) { + setLevel(other.level); + } + return this; + } + + @Override + public RogueBuffData clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + buffId = 0; + level = 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_ + && (!hasBuffId() || buffId == other.buffId) + && (!hasLevel() || level == other.level); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(buffId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(level); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(buffId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(level); + } + 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 40: { + // buffId + buffId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // level + level = 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.buffId, buffId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.level, level); + } + output.endObject(); + } + + @Override + public RogueBuffData 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; + } + case 102865796: { + if (input.isAtField(FieldNames.level)) { + if (!input.trySkipNullValue()) { + level = 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 buffId = FieldName.forField("buffId", "buff_id"); + + static final FieldName level = FieldName.forField("level"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueBuffInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueBuffInfoOuterClass.java index 22ab15c..a8bcf30 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueBuffInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RogueBuffInfoOuterClass.java @@ -20,12 +20,7 @@ public final class RogueBuffInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional .RogueBuffSelectInfo buff_select_info = 10; - */ - private final RogueBuffSelectInfoOuterClass.RogueBuffSelectInfo buffSelectInfo = RogueBuffSelectInfoOuterClass.RogueBuffSelectInfo.newInstance(); - - /** - * repeated .RogueBuff maze_buff_list = 7; + * repeated .RogueBuff maze_buff_list = 1; */ private final RepeatedMessage mazeBuffList = RepeatedMessage.newEmptyInstance(RogueBuffOuterClass.RogueBuff.getFactory()); @@ -40,83 +35,25 @@ public final class RogueBuffInfoOuterClass { } /** - * optional .RogueBuffSelectInfo buff_select_info = 10; - * @return whether the buffSelectInfo field is set + * repeated .RogueBuff maze_buff_list = 1; + * @return whether the mazeBuffList field is set */ - public boolean hasBuffSelectInfo() { + public boolean hasMazeBuffList() { return (bitField0_ & 0x00000001) != 0; } /** - * optional .RogueBuffSelectInfo buff_select_info = 10; - * @return this - */ - public RogueBuffInfo clearBuffSelectInfo() { - bitField0_ &= ~0x00000001; - buffSelectInfo.clear(); - return this; - } - - /** - * optional .RogueBuffSelectInfo buff_select_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 #getMutableBuffSelectInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueBuffSelectInfoOuterClass.RogueBuffSelectInfo getBuffSelectInfo() { - return buffSelectInfo; - } - - /** - * optional .RogueBuffSelectInfo buff_select_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 RogueBuffSelectInfoOuterClass.RogueBuffSelectInfo getMutableBuffSelectInfo() { - bitField0_ |= 0x00000001; - return buffSelectInfo; - } - - /** - * optional .RogueBuffSelectInfo buff_select_info = 10; - * @param value the buffSelectInfo to set - * @return this - */ - public RogueBuffInfo setBuffSelectInfo( - final RogueBuffSelectInfoOuterClass.RogueBuffSelectInfo value) { - bitField0_ |= 0x00000001; - buffSelectInfo.copyFrom(value); - return this; - } - - /** - * repeated .RogueBuff maze_buff_list = 7; - * @return whether the mazeBuffList field is set - */ - public boolean hasMazeBuffList() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * repeated .RogueBuff maze_buff_list = 7; + * repeated .RogueBuff maze_buff_list = 1; * @return this */ public RogueBuffInfo clearMazeBuffList() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; mazeBuffList.clear(); return this; } /** - * repeated .RogueBuff maze_buff_list = 7; + * repeated .RogueBuff maze_buff_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. @@ -130,7 +67,7 @@ public final class RogueBuffInfoOuterClass { } /** - * repeated .RogueBuff maze_buff_list = 7; + * repeated .RogueBuff maze_buff_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 @@ -139,28 +76,28 @@ public final class RogueBuffInfoOuterClass { * @return internal storage object for modifications */ public RepeatedMessage getMutableMazeBuffList() { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; return mazeBuffList; } /** - * repeated .RogueBuff maze_buff_list = 7; + * repeated .RogueBuff maze_buff_list = 1; * @param value the mazeBuffList to add * @return this */ public RogueBuffInfo addMazeBuffList(final RogueBuffOuterClass.RogueBuff value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; mazeBuffList.add(value); return this; } /** - * repeated .RogueBuff maze_buff_list = 7; + * repeated .RogueBuff maze_buff_list = 1; * @param values the mazeBuffList to add * @return this */ public RogueBuffInfo addAllMazeBuffList(final RogueBuffOuterClass.RogueBuff... values) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; mazeBuffList.addAll(values); return this; } @@ -170,7 +107,6 @@ public final class RogueBuffInfoOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - buffSelectInfo.copyFrom(other.buffSelectInfo); mazeBuffList.copyFrom(other.mazeBuffList); } return this; @@ -182,9 +118,6 @@ public final class RogueBuffInfoOuterClass { return this; } cachedSize = -1; - if (other.hasBuffSelectInfo()) { - getMutableBuffSelectInfo().mergeFrom(other.buffSelectInfo); - } if (other.hasMazeBuffList()) { getMutableMazeBuffList().addAll(other.mazeBuffList); } @@ -198,7 +131,6 @@ public final class RogueBuffInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - buffSelectInfo.clear(); mazeBuffList.clear(); return this; } @@ -210,7 +142,6 @@ public final class RogueBuffInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - buffSelectInfo.clearQuick(); mazeBuffList.clearQuick(); return this; } @@ -225,19 +156,14 @@ public final class RogueBuffInfoOuterClass { } RogueBuffInfo other = (RogueBuffInfo) o; return bitField0_ == other.bitField0_ - && (!hasBuffSelectInfo() || buffSelectInfo.equals(other.buffSelectInfo)) && (!hasMazeBuffList() || mazeBuffList.equals(other.mazeBuffList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 82); - output.writeMessageNoTag(buffSelectInfo); - } - if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < mazeBuffList.length(); i++) { - output.writeRawByte((byte) 58); + output.writeRawByte((byte) 10); output.writeMessageNoTag(mazeBuffList.get(i)); } } @@ -247,9 +173,6 @@ public final class RogueBuffInfoOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(buffSelectInfo); - } - if ((bitField0_ & 0x00000002) != 0) { size += (1 * mazeBuffList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(mazeBuffList); } return size; @@ -262,19 +185,10 @@ public final class RogueBuffInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 82: { - // buffSelectInfo - input.readMessage(buffSelectInfo); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 58) { - break; - } - } - case 58: { + case 10: { // mazeBuffList tag = input.readRepeatedMessage(mazeBuffList, tag); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; if (tag != 0) { break; } @@ -297,9 +211,6 @@ public final class RogueBuffInfoOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeMessage(FieldNames.buffSelectInfo, buffSelectInfo); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeRepeatedMessage(FieldNames.mazeBuffList, mazeBuffList); } output.endObject(); @@ -312,24 +223,12 @@ public final class RogueBuffInfoOuterClass { } 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; - } case 1147228272: case -1634995062: { if (input.isAtField(FieldNames.mazeBuffList)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(mazeBuffList); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } else { input.skipUnknownField(); @@ -388,8 +287,6 @@ public final class RogueBuffInfoOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName buffSelectInfo = FieldName.forField("buffSelectInfo", "buff_select_info"); - static final FieldName mazeBuffList = FieldName.forField("mazeBuffList", "maze_buff_list"); } } diff --git a/src/generated/main/emu/lunarcore/proto/RogueBuffOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueBuffOuterClass.java index d6f5ca1..fa0d62a 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueBuffOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RogueBuffOuterClass.java @@ -19,7 +19,7 @@ public final class RogueBuffOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 level = 8; + * optional uint32 level = 10; */ private int level; @@ -39,7 +39,7 @@ public final class RogueBuffOuterClass { } /** - * optional uint32 level = 8; + * optional uint32 level = 10; * @return whether the level field is set */ public boolean hasLevel() { @@ -47,7 +47,7 @@ public final class RogueBuffOuterClass { } /** - * optional uint32 level = 8; + * optional uint32 level = 10; * @return this */ public RogueBuff clearLevel() { @@ -57,7 +57,7 @@ public final class RogueBuffOuterClass { } /** - * optional uint32 level = 8; + * optional uint32 level = 10; * @return the level */ public int getLevel() { @@ -65,7 +65,7 @@ public final class RogueBuffOuterClass { } /** - * optional uint32 level = 8; + * optional uint32 level = 10; * @param value the level to set * @return this */ @@ -177,7 +177,7 @@ public final class RogueBuffOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 80); output.writeUInt32NoTag(level); } if ((bitField0_ & 0x00000002) != 0) { @@ -205,7 +205,7 @@ public final class RogueBuffOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 64: { + case 80: { // level level = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/RogueBuffRollInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueBuffRollInfoOuterClass.java new file mode 100644 index 0000000..e0e909b --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueBuffRollInfoOuterClass.java @@ -0,0 +1,174 @@ +// 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 RogueBuffRollInfoOuterClass { + /** + * Protobuf type {@code RogueBuffRollInfo} + */ + public static final class RogueBuffRollInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + private RogueBuffRollInfo() { + } + + /** + * @return a new empty instance of {@code RogueBuffRollInfo} + */ + public static RogueBuffRollInfo newInstance() { + return new RogueBuffRollInfo(); + } + + @Override + public RogueBuffRollInfo copyFrom(final RogueBuffRollInfo other) { + cachedSize = other.cachedSize; + return this; + } + + @Override + public RogueBuffRollInfo mergeFrom(final RogueBuffRollInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public RogueBuffRollInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public RogueBuffRollInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueBuffRollInfo)) { + return false; + } + RogueBuffRollInfo other = (RogueBuffRollInfo) 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 RogueBuffRollInfo 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 RogueBuffRollInfo 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 RogueBuffRollInfo clone() { + return new RogueBuffRollInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueBuffRollInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueBuffRollInfo(), data).checkInitialized(); + } + + public static RogueBuffRollInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueBuffRollInfo(), input).checkInitialized(); + } + + public static RogueBuffRollInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueBuffRollInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueBuffRollInfo messages + */ + public static MessageFactory getFactory() { + return RogueBuffRollInfoFactory.INSTANCE; + } + + private enum RogueBuffRollInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueBuffRollInfo create() { + return RogueBuffRollInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueBuffSelectOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueBuffSelectOuterClass.java new file mode 100644 index 0000000..f265e2e --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueBuffSelectOuterClass.java @@ -0,0 +1,174 @@ +// 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 RogueBuffSelectOuterClass { + /** + * Protobuf type {@code RogueBuffSelect} + */ + public static final class RogueBuffSelect extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + private RogueBuffSelect() { + } + + /** + * @return a new empty instance of {@code RogueBuffSelect} + */ + public static RogueBuffSelect newInstance() { + return new RogueBuffSelect(); + } + + @Override + public RogueBuffSelect copyFrom(final RogueBuffSelect other) { + cachedSize = other.cachedSize; + return this; + } + + @Override + public RogueBuffSelect mergeFrom(final RogueBuffSelect other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public RogueBuffSelect clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public RogueBuffSelect clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueBuffSelect)) { + return false; + } + RogueBuffSelect other = (RogueBuffSelect) 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 RogueBuffSelect 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 RogueBuffSelect 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 RogueBuffSelect clone() { + return new RogueBuffSelect().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueBuffSelect parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueBuffSelect(), data).checkInitialized(); + } + + public static RogueBuffSelect parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueBuffSelect(), input).checkInitialized(); + } + + public static RogueBuffSelect parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueBuffSelect(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueBuffSelect messages + */ + public static MessageFactory getFactory() { + return RogueBuffSelectFactory.INSTANCE; + } + + private enum RogueBuffSelectFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueBuffSelect create() { + return RogueBuffSelect.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueCommonBuffOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueCommonBuffOuterClass.java new file mode 100644 index 0000000..239824c --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueCommonBuffOuterClass.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 RogueCommonBuffOuterClass { + /** + * Protobuf type {@code RogueCommonBuff} + */ + public static final class RogueCommonBuff extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 buff_id = 5; + */ + private int buffId; + + /** + * optional uint32 level = 9; + */ + private int level; + + private RogueCommonBuff() { + } + + /** + * @return a new empty instance of {@code RogueCommonBuff} + */ + public static RogueCommonBuff newInstance() { + return new RogueCommonBuff(); + } + + /** + * 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 RogueCommonBuff 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 RogueCommonBuff setBuffId(final int value) { + bitField0_ |= 0x00000001; + buffId = value; + return this; + } + + /** + * optional uint32 level = 9; + * @return whether the level field is set + */ + public boolean hasLevel() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 level = 9; + * @return this + */ + public RogueCommonBuff clearLevel() { + bitField0_ &= ~0x00000002; + level = 0; + return this; + } + + /** + * optional uint32 level = 9; + * @return the level + */ + public int getLevel() { + return level; + } + + /** + * optional uint32 level = 9; + * @param value the level to set + * @return this + */ + public RogueCommonBuff setLevel(final int value) { + bitField0_ |= 0x00000002; + level = value; + return this; + } + + @Override + public RogueCommonBuff copyFrom(final RogueCommonBuff other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + buffId = other.buffId; + level = other.level; + } + return this; + } + + @Override + public RogueCommonBuff mergeFrom(final RogueCommonBuff other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBuffId()) { + setBuffId(other.buffId); + } + if (other.hasLevel()) { + setLevel(other.level); + } + return this; + } + + @Override + public RogueCommonBuff clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + buffId = 0; + level = 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_ + && (!hasBuffId() || buffId == other.buffId) + && (!hasLevel() || level == other.level); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(buffId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(level); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(buffId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(level); + } + 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 40: { + // buffId + buffId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // level + level = 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.buffId, buffId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.level, level); + } + output.endObject(); + } + + @Override + public RogueCommonBuff 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; + } + case 102865796: { + if (input.isAtField(FieldNames.level)) { + if (!input.trySkipNullValue()) { + level = 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 buffId = FieldName.forField("buffId", "buff_id"); + + static final FieldName level = FieldName.forField("level"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueCommonBuffSelectInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueCommonBuffSelectInfoOuterClass.java new file mode 100644 index 0000000..c2d920d --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueCommonBuffSelectInfoOuterClass.java @@ -0,0 +1,1324 @@ +// 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_total_count = 1; + */ + private int sourceTotalCount; + + /** + * optional uint32 select_buff_source_hint = 4; + */ + private int selectBuffSourceHint; + + /** + * optional uint32 roll_buff_free_times = 8; + */ + private int rollBuffFreeTimes; + + /** + * optional uint32 roll_buff_max_times = 9; + */ + private int rollBuffMaxTimes; + + /** + * optional uint32 source_cur_count = 10; + */ + private int sourceCurCount; + + /** + * optional uint32 roll_buff_times = 11; + */ + private int rollBuffTimes; + + /** + * optional .RogueCommonBuffSelectSource source_type = 14; + */ + private int sourceType; + + /** + * optional bool can_roll = 2; + */ + private boolean canRoll; + + /** + * optional .ItemCostList roll_buffs_cost = 12; + */ + private final ItemCostListOuterClass.ItemCostList rollBuffsCost = ItemCostListOuterClass.ItemCostList.newInstance(); + + /** + * repeated uint32 first_buff_type_list = 6; + */ + private final RepeatedInt firstBuffTypeList = RepeatedInt.newEmptyInstance(); + + /** + * repeated uint32 handbook_unlock_buff_id_list = 15; + */ + 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_total_count = 1; + * @return whether the sourceTotalCount field is set + */ + public boolean hasSourceTotalCount() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 source_total_count = 1; + * @return this + */ + public RogueCommonBuffSelectInfo clearSourceTotalCount() { + bitField0_ &= ~0x00000001; + sourceTotalCount = 0; + return this; + } + + /** + * optional uint32 source_total_count = 1; + * @return the sourceTotalCount + */ + public int getSourceTotalCount() { + return sourceTotalCount; + } + + /** + * optional uint32 source_total_count = 1; + * @param value the sourceTotalCount to set + * @return this + */ + public RogueCommonBuffSelectInfo setSourceTotalCount(final int value) { + bitField0_ |= 0x00000001; + sourceTotalCount = value; + return this; + } + + /** + * optional uint32 select_buff_source_hint = 4; + * @return whether the selectBuffSourceHint field is set + */ + public boolean hasSelectBuffSourceHint() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 select_buff_source_hint = 4; + * @return this + */ + public RogueCommonBuffSelectInfo clearSelectBuffSourceHint() { + bitField0_ &= ~0x00000002; + selectBuffSourceHint = 0; + return this; + } + + /** + * optional uint32 select_buff_source_hint = 4; + * @return the selectBuffSourceHint + */ + public int getSelectBuffSourceHint() { + return selectBuffSourceHint; + } + + /** + * optional uint32 select_buff_source_hint = 4; + * @param value the selectBuffSourceHint to set + * @return this + */ + public RogueCommonBuffSelectInfo setSelectBuffSourceHint(final int value) { + bitField0_ |= 0x00000002; + selectBuffSourceHint = value; + return this; + } + + /** + * optional uint32 roll_buff_free_times = 8; + * @return whether the rollBuffFreeTimes field is set + */ + public boolean hasRollBuffFreeTimes() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 roll_buff_free_times = 8; + * @return this + */ + public RogueCommonBuffSelectInfo clearRollBuffFreeTimes() { + bitField0_ &= ~0x00000004; + rollBuffFreeTimes = 0; + return this; + } + + /** + * optional uint32 roll_buff_free_times = 8; + * @return the rollBuffFreeTimes + */ + public int getRollBuffFreeTimes() { + return rollBuffFreeTimes; + } + + /** + * optional uint32 roll_buff_free_times = 8; + * @param value the rollBuffFreeTimes to set + * @return this + */ + public RogueCommonBuffSelectInfo setRollBuffFreeTimes(final int value) { + bitField0_ |= 0x00000004; + rollBuffFreeTimes = value; + return this; + } + + /** + * optional uint32 roll_buff_max_times = 9; + * @return whether the rollBuffMaxTimes field is set + */ + public boolean hasRollBuffMaxTimes() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 roll_buff_max_times = 9; + * @return this + */ + public RogueCommonBuffSelectInfo clearRollBuffMaxTimes() { + bitField0_ &= ~0x00000008; + rollBuffMaxTimes = 0; + return this; + } + + /** + * optional uint32 roll_buff_max_times = 9; + * @return the rollBuffMaxTimes + */ + public int getRollBuffMaxTimes() { + return rollBuffMaxTimes; + } + + /** + * optional uint32 roll_buff_max_times = 9; + * @param value the rollBuffMaxTimes to set + * @return this + */ + public RogueCommonBuffSelectInfo setRollBuffMaxTimes(final int value) { + bitField0_ |= 0x00000008; + rollBuffMaxTimes = value; + return this; + } + + /** + * optional uint32 source_cur_count = 10; + * @return whether the sourceCurCount field is set + */ + public boolean hasSourceCurCount() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 source_cur_count = 10; + * @return this + */ + public RogueCommonBuffSelectInfo clearSourceCurCount() { + bitField0_ &= ~0x00000010; + sourceCurCount = 0; + return this; + } + + /** + * optional uint32 source_cur_count = 10; + * @return the sourceCurCount + */ + public int getSourceCurCount() { + return sourceCurCount; + } + + /** + * optional uint32 source_cur_count = 10; + * @param value the sourceCurCount to set + * @return this + */ + public RogueCommonBuffSelectInfo setSourceCurCount(final int value) { + bitField0_ |= 0x00000010; + sourceCurCount = value; + return this; + } + + /** + * optional uint32 roll_buff_times = 11; + * @return whether the rollBuffTimes field is set + */ + public boolean hasRollBuffTimes() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional uint32 roll_buff_times = 11; + * @return this + */ + public RogueCommonBuffSelectInfo clearRollBuffTimes() { + bitField0_ &= ~0x00000020; + rollBuffTimes = 0; + return this; + } + + /** + * optional uint32 roll_buff_times = 11; + * @return the rollBuffTimes + */ + public int getRollBuffTimes() { + return rollBuffTimes; + } + + /** + * optional uint32 roll_buff_times = 11; + * @param value the rollBuffTimes to set + * @return this + */ + public RogueCommonBuffSelectInfo setRollBuffTimes(final int value) { + bitField0_ |= 0x00000020; + rollBuffTimes = value; + return this; + } + + /** + * optional .RogueCommonBuffSelectSource source_type = 14; + * @return whether the sourceType field is set + */ + public boolean hasSourceType() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional .RogueCommonBuffSelectSource source_type = 14; + * @return this + */ + public RogueCommonBuffSelectInfo clearSourceType() { + bitField0_ &= ~0x00000040; + sourceType = 0; + return this; + } + + /** + * optional .RogueCommonBuffSelectSource source_type = 14; + * @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_ |= 0x00000040; + sourceType = value; + return this; + } + + /** + * optional .RogueCommonBuffSelectSource source_type = 14; + * @param value the sourceType to set + * @return this + */ + public RogueCommonBuffSelectInfo setSourceType( + final RogueCommonBuffSelectSourceOuterClass.RogueCommonBuffSelectSource value) { + bitField0_ |= 0x00000040; + sourceType = value.getNumber(); + return this; + } + + /** + * optional bool can_roll = 2; + * @return whether the canRoll field is set + */ + public boolean hasCanRoll() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * optional bool can_roll = 2; + * @return this + */ + public RogueCommonBuffSelectInfo clearCanRoll() { + bitField0_ &= ~0x00000080; + canRoll = false; + return this; + } + + /** + * optional bool can_roll = 2; + * @return the canRoll + */ + public boolean getCanRoll() { + return canRoll; + } + + /** + * optional bool can_roll = 2; + * @param value the canRoll to set + * @return this + */ + public RogueCommonBuffSelectInfo setCanRoll(final boolean value) { + bitField0_ |= 0x00000080; + canRoll = value; + return this; + } + + /** + * optional .ItemCostList roll_buffs_cost = 12; + * @return whether the rollBuffsCost field is set + */ + public boolean hasRollBuffsCost() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + * optional .ItemCostList roll_buffs_cost = 12; + * @return this + */ + public RogueCommonBuffSelectInfo clearRollBuffsCost() { + bitField0_ &= ~0x00000100; + rollBuffsCost.clear(); + return this; + } + + /** + * optional .ItemCostList roll_buffs_cost = 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 #getMutableRollBuffsCost()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ItemCostListOuterClass.ItemCostList getRollBuffsCost() { + return rollBuffsCost; + } + + /** + * optional .ItemCostList roll_buffs_cost = 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 ItemCostListOuterClass.ItemCostList getMutableRollBuffsCost() { + bitField0_ |= 0x00000100; + return rollBuffsCost; + } + + /** + * optional .ItemCostList roll_buffs_cost = 12; + * @param value the rollBuffsCost to set + * @return this + */ + public RogueCommonBuffSelectInfo setRollBuffsCost( + final ItemCostListOuterClass.ItemCostList value) { + bitField0_ |= 0x00000100; + rollBuffsCost.copyFrom(value); + return this; + } + + /** + * repeated uint32 first_buff_type_list = 6; + * @return whether the firstBuffTypeList field is set + */ + public boolean hasFirstBuffTypeList() { + return (bitField0_ & 0x00000200) != 0; + } + + /** + * repeated uint32 first_buff_type_list = 6; + * @return this + */ + public RogueCommonBuffSelectInfo clearFirstBuffTypeList() { + bitField0_ &= ~0x00000200; + firstBuffTypeList.clear(); + return this; + } + + /** + * repeated uint32 first_buff_type_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 #getMutableFirstBuffTypeList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getFirstBuffTypeList() { + return firstBuffTypeList; + } + + /** + * repeated uint32 first_buff_type_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 getMutableFirstBuffTypeList() { + bitField0_ |= 0x00000200; + return firstBuffTypeList; + } + + /** + * repeated uint32 first_buff_type_list = 6; + * @param value the firstBuffTypeList to add + * @return this + */ + public RogueCommonBuffSelectInfo addFirstBuffTypeList(final int value) { + bitField0_ |= 0x00000200; + firstBuffTypeList.add(value); + return this; + } + + /** + * repeated uint32 first_buff_type_list = 6; + * @param values the firstBuffTypeList to add + * @return this + */ + public RogueCommonBuffSelectInfo addAllFirstBuffTypeList(final int... values) { + bitField0_ |= 0x00000200; + firstBuffTypeList.addAll(values); + return this; + } + + /** + * repeated uint32 handbook_unlock_buff_id_list = 15; + * @return whether the handbookUnlockBuffIdList field is set + */ + public boolean hasHandbookUnlockBuffIdList() { + return (bitField0_ & 0x00000400) != 0; + } + + /** + * repeated uint32 handbook_unlock_buff_id_list = 15; + * @return this + */ + public RogueCommonBuffSelectInfo clearHandbookUnlockBuffIdList() { + bitField0_ &= ~0x00000400; + handbookUnlockBuffIdList.clear(); + return this; + } + + /** + * repeated uint32 handbook_unlock_buff_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 #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 = 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 getMutableHandbookUnlockBuffIdList() { + bitField0_ |= 0x00000400; + return handbookUnlockBuffIdList; + } + + /** + * repeated uint32 handbook_unlock_buff_id_list = 15; + * @param value the handbookUnlockBuffIdList to add + * @return this + */ + public RogueCommonBuffSelectInfo addHandbookUnlockBuffIdList(final int value) { + bitField0_ |= 0x00000400; + handbookUnlockBuffIdList.add(value); + return this; + } + + /** + * repeated uint32 handbook_unlock_buff_id_list = 15; + * @param values the handbookUnlockBuffIdList to add + * @return this + */ + public RogueCommonBuffSelectInfo addAllHandbookUnlockBuffIdList(final int... values) { + bitField0_ |= 0x00000400; + handbookUnlockBuffIdList.addAll(values); + return this; + } + + /** + * repeated .RogueCommonBuff maze_buff_list = 7; + * @return whether the mazeBuffList field is set + */ + public boolean hasMazeBuffList() { + return (bitField0_ & 0x00000800) != 0; + } + + /** + * repeated .RogueCommonBuff maze_buff_list = 7; + * @return this + */ + public RogueCommonBuffSelectInfo clearMazeBuffList() { + bitField0_ &= ~0x00000800; + 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_ |= 0x00000800; + return mazeBuffList; + } + + /** + * repeated .RogueCommonBuff maze_buff_list = 7; + * @param value the mazeBuffList to add + * @return this + */ + public RogueCommonBuffSelectInfo addMazeBuffList( + final RogueCommonBuffOuterClass.RogueCommonBuff value) { + bitField0_ |= 0x00000800; + 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_ |= 0x00000800; + mazeBuffList.addAll(values); + return this; + } + + @Override + public RogueCommonBuffSelectInfo copyFrom(final RogueCommonBuffSelectInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + sourceTotalCount = other.sourceTotalCount; + selectBuffSourceHint = other.selectBuffSourceHint; + rollBuffFreeTimes = other.rollBuffFreeTimes; + rollBuffMaxTimes = other.rollBuffMaxTimes; + sourceCurCount = other.sourceCurCount; + rollBuffTimes = other.rollBuffTimes; + 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.hasSourceTotalCount()) { + setSourceTotalCount(other.sourceTotalCount); + } + if (other.hasSelectBuffSourceHint()) { + setSelectBuffSourceHint(other.selectBuffSourceHint); + } + if (other.hasRollBuffFreeTimes()) { + setRollBuffFreeTimes(other.rollBuffFreeTimes); + } + if (other.hasRollBuffMaxTimes()) { + setRollBuffMaxTimes(other.rollBuffMaxTimes); + } + if (other.hasSourceCurCount()) { + setSourceCurCount(other.sourceCurCount); + } + if (other.hasRollBuffTimes()) { + setRollBuffTimes(other.rollBuffTimes); + } + 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; + sourceTotalCount = 0; + selectBuffSourceHint = 0; + rollBuffFreeTimes = 0; + rollBuffMaxTimes = 0; + sourceCurCount = 0; + rollBuffTimes = 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_ + && (!hasSourceTotalCount() || sourceTotalCount == other.sourceTotalCount) + && (!hasSelectBuffSourceHint() || selectBuffSourceHint == other.selectBuffSourceHint) + && (!hasRollBuffFreeTimes() || rollBuffFreeTimes == other.rollBuffFreeTimes) + && (!hasRollBuffMaxTimes() || rollBuffMaxTimes == other.rollBuffMaxTimes) + && (!hasSourceCurCount() || sourceCurCount == other.sourceCurCount) + && (!hasRollBuffTimes() || rollBuffTimes == other.rollBuffTimes) + && (!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) 8); + output.writeUInt32NoTag(sourceTotalCount); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(selectBuffSourceHint); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(rollBuffFreeTimes); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(rollBuffMaxTimes); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(sourceCurCount); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(rollBuffTimes); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 112); + output.writeEnumNoTag(sourceType); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRawByte((byte) 16); + output.writeBoolNoTag(canRoll); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeRawByte((byte) 98); + output.writeMessageNoTag(rollBuffsCost); + } + if ((bitField0_ & 0x00000200) != 0) { + for (int i = 0; i < firstBuffTypeList.length(); i++) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(firstBuffTypeList.array()[i]); + } + } + if ((bitField0_ & 0x00000400) != 0) { + for (int i = 0; i < handbookUnlockBuffIdList.length(); i++) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(handbookUnlockBuffIdList.array()[i]); + } + } + if ((bitField0_ & 0x00000800) != 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(sourceTotalCount); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(selectBuffSourceHint); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(rollBuffFreeTimes); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(rollBuffMaxTimes); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(sourceCurCount); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(rollBuffTimes); + } + if ((bitField0_ & 0x00000040) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(sourceType); + } + if ((bitField0_ & 0x00000080) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000100) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(rollBuffsCost); + } + if ((bitField0_ & 0x00000200) != 0) { + size += (1 * firstBuffTypeList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(firstBuffTypeList); + } + if ((bitField0_ & 0x00000400) != 0) { + size += (1 * handbookUnlockBuffIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(handbookUnlockBuffIdList); + } + if ((bitField0_ & 0x00000800) != 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 8: { + // sourceTotalCount + sourceTotalCount = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // selectBuffSourceHint + selectBuffSourceHint = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { + // rollBuffFreeTimes + rollBuffFreeTimes = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // rollBuffMaxTimes + rollBuffMaxTimes = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // sourceCurCount + sourceCurCount = input.readUInt32(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // rollBuffTimes + rollBuffTimes = input.readUInt32(); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // sourceType + final int value = input.readInt32(); + if (RogueCommonBuffSelectSourceOuterClass.RogueCommonBuffSelectSource.forNumber(value) != null) { + sourceType = value; + bitField0_ |= 0x00000040; + } + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // canRoll + canRoll = input.readBool(); + bitField0_ |= 0x00000080; + tag = input.readTag(); + if (tag != 98) { + break; + } + } + case 98: { + // rollBuffsCost + input.readMessage(rollBuffsCost); + bitField0_ |= 0x00000100; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { + // firstBuffTypeList [packed=true] + input.readPackedUInt32(firstBuffTypeList, tag); + bitField0_ |= 0x00000200; + tag = input.readTag(); + if (tag != 122) { + break; + } + } + case 122: { + // handbookUnlockBuffIdList [packed=true] + input.readPackedUInt32(handbookUnlockBuffIdList, tag); + bitField0_ |= 0x00000400; + tag = input.readTag(); + if (tag != 58) { + break; + } + } + case 58: { + // mazeBuffList + tag = input.readRepeatedMessage(mazeBuffList, tag); + bitField0_ |= 0x00000800; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 48: { + // firstBuffTypeList [packed=false] + tag = input.readRepeatedUInt32(firstBuffTypeList, tag); + bitField0_ |= 0x00000200; + break; + } + case 120: { + // handbookUnlockBuffIdList [packed=false] + tag = input.readRepeatedUInt32(handbookUnlockBuffIdList, tag); + bitField0_ |= 0x00000400; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.sourceTotalCount, sourceTotalCount); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.selectBuffSourceHint, selectBuffSourceHint); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.rollBuffFreeTimes, rollBuffFreeTimes); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.rollBuffMaxTimes, rollBuffMaxTimes); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.sourceCurCount, sourceCurCount); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeUInt32(FieldNames.rollBuffTimes, rollBuffTimes); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeEnum(FieldNames.sourceType, sourceType, RogueCommonBuffSelectSourceOuterClass.RogueCommonBuffSelectSource.converter()); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeBool(FieldNames.canRoll, canRoll); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeMessage(FieldNames.rollBuffsCost, rollBuffsCost); + } + if ((bitField0_ & 0x00000200) != 0) { + output.writeRepeatedUInt32(FieldNames.firstBuffTypeList, firstBuffTypeList); + } + if ((bitField0_ & 0x00000400) != 0) { + output.writeRepeatedUInt32(FieldNames.handbookUnlockBuffIdList, handbookUnlockBuffIdList); + } + if ((bitField0_ & 0x00000800) != 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 -1098445146: + case -1750826448: { + if (input.isAtField(FieldNames.sourceTotalCount)) { + if (!input.trySkipNullValue()) { + sourceTotalCount = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1160450543: + case -335538398: { + if (input.isAtField(FieldNames.selectBuffSourceHint)) { + if (!input.trySkipNullValue()) { + selectBuffSourceHint = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -212024406: + case -694689955: { + if (input.isAtField(FieldNames.rollBuffFreeTimes)) { + if (!input.trySkipNullValue()) { + rollBuffFreeTimes = 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 -831207446: + case 557368108: { + if (input.isAtField(FieldNames.sourceCurCount)) { + if (!input.trySkipNullValue()) { + sourceCurCount = input.readUInt32(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -436216138: + case 2038334812: { + if (input.isAtField(FieldNames.rollBuffTimes)) { + if (!input.trySkipNullValue()) { + rollBuffTimes = input.readUInt32(); + bitField0_ |= 0x00000020; + } + } 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_ |= 0x00000040; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + case 549719149: + case -126477428: { + if (input.isAtField(FieldNames.canRoll)) { + if (!input.trySkipNullValue()) { + canRoll = input.readBool(); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + case -408716688: + case -1703619794: { + if (input.isAtField(FieldNames.rollBuffsCost)) { + if (!input.trySkipNullValue()) { + input.readMessage(rollBuffsCost); + bitField0_ |= 0x00000100; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2103912645: + case -1677036794: { + if (input.isAtField(FieldNames.firstBuffTypeList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(firstBuffTypeList); + bitField0_ |= 0x00000200; + } + } else { + input.skipUnknownField(); + } + break; + } + case 620352744: + case 2008489866: { + if (input.isAtField(FieldNames.handbookUnlockBuffIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(handbookUnlockBuffIdList); + bitField0_ |= 0x00000400; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1147228272: + case -1634995062: { + if (input.isAtField(FieldNames.mazeBuffList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(mazeBuffList); + bitField0_ |= 0x00000800; + } + } 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 sourceTotalCount = FieldName.forField("sourceTotalCount", "source_total_count"); + + static final FieldName selectBuffSourceHint = FieldName.forField("selectBuffSourceHint", "select_buff_source_hint"); + + static final FieldName rollBuffFreeTimes = FieldName.forField("rollBuffFreeTimes", "roll_buff_free_times"); + + static final FieldName rollBuffMaxTimes = FieldName.forField("rollBuffMaxTimes", "roll_buff_max_times"); + + static final FieldName sourceCurCount = FieldName.forField("sourceCurCount", "source_cur_count"); + + static final FieldName rollBuffTimes = FieldName.forField("rollBuffTimes", "roll_buff_times"); + + 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 new file mode 100644 index 0000000..30c8c2e --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueCommonBuffSelectResultOuterClass.java @@ -0,0 +1,261 @@ +// 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 = 12; + */ + private int buffId; + + private RogueCommonBuffSelectResult() { + } + + /** + * @return a new empty instance of {@code RogueCommonBuffSelectResult} + */ + public static RogueCommonBuffSelectResult newInstance() { + return new RogueCommonBuffSelectResult(); + } + + /** + * optional uint32 buff_id = 12; + * @return whether the buffId field is set + */ + public boolean hasBuffId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 buff_id = 12; + * @return this + */ + public RogueCommonBuffSelectResult clearBuffId() { + bitField0_ &= ~0x00000001; + buffId = 0; + return this; + } + + /** + * optional uint32 buff_id = 12; + * @return the buffId + */ + public int getBuffId() { + return buffId; + } + + /** + * optional uint32 buff_id = 12; + * @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) 96); + 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 96: { + // 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/RogueCommonPendingActionOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueCommonPendingActionOuterClass.java new file mode 100644 index 0000000..c0d9548 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueCommonPendingActionOuterClass.java @@ -0,0 +1,381 @@ +// 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; + + /** + *
+     *  idk
+     * 
+ * + * optional uint32 GLFDHAJPJDF = 3; + */ + private int gLFDHAJPJDF; + + /** + * optional .RogueAction rogue_action = 7; + */ + 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(); + } + + /** + *
+     *  idk
+     * 
+ * + * optional uint32 GLFDHAJPJDF = 3; + * @return whether the gLFDHAJPJDF field is set + */ + public boolean hasGLFDHAJPJDF() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + *
+     *  idk
+     * 
+ * + * optional uint32 GLFDHAJPJDF = 3; + * @return this + */ + public RogueCommonPendingAction clearGLFDHAJPJDF() { + bitField0_ &= ~0x00000001; + gLFDHAJPJDF = 0; + return this; + } + + /** + *
+     *  idk
+     * 
+ * + * optional uint32 GLFDHAJPJDF = 3; + * @return the gLFDHAJPJDF + */ + public int getGLFDHAJPJDF() { + return gLFDHAJPJDF; + } + + /** + *
+     *  idk
+     * 
+ * + * optional uint32 GLFDHAJPJDF = 3; + * @param value the gLFDHAJPJDF to set + * @return this + */ + public RogueCommonPendingAction setGLFDHAJPJDF(final int value) { + bitField0_ |= 0x00000001; + gLFDHAJPJDF = value; + return this; + } + + /** + * optional .RogueAction rogue_action = 7; + * @return whether the rogueAction field is set + */ + public boolean hasRogueAction() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .RogueAction rogue_action = 7; + * @return this + */ + public RogueCommonPendingAction clearRogueAction() { + bitField0_ &= ~0x00000002; + rogueAction.clear(); + return this; + } + + /** + * optional .RogueAction 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 RogueActionOuterClass.RogueAction getRogueAction() { + return rogueAction; + } + + /** + * optional .RogueAction 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 RogueActionOuterClass.RogueAction getMutableRogueAction() { + bitField0_ |= 0x00000002; + return rogueAction; + } + + /** + * optional .RogueAction rogue_action = 7; + * @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_; + gLFDHAJPJDF = other.gLFDHAJPJDF; + rogueAction.copyFrom(other.rogueAction); + } + return this; + } + + @Override + public RogueCommonPendingAction mergeFrom(final RogueCommonPendingAction other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasGLFDHAJPJDF()) { + setGLFDHAJPJDF(other.gLFDHAJPJDF); + } + if (other.hasRogueAction()) { + getMutableRogueAction().mergeFrom(other.rogueAction); + } + return this; + } + + @Override + public RogueCommonPendingAction clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + gLFDHAJPJDF = 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_ + && (!hasGLFDHAJPJDF() || gLFDHAJPJDF == other.gLFDHAJPJDF) + && (!hasRogueAction() || rogueAction.equals(other.rogueAction)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(gLFDHAJPJDF); + } + 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.computeUInt32SizeNoTag(gLFDHAJPJDF); + } + 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 24: { + // gLFDHAJPJDF + gLFDHAJPJDF = input.readUInt32(); + 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.writeUInt32(FieldNames.gLFDHAJPJDF, gLFDHAJPJDF); + } + 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 1202020394: { + if (input.isAtField(FieldNames.gLFDHAJPJDF)) { + if (!input.trySkipNullValue()) { + gLFDHAJPJDF = 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 gLFDHAJPJDF = FieldName.forField("GLFDHAJPJDF"); + + static final FieldName rogueAction = FieldName.forField("rogueAction", "rogue_action"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueCurrentInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueCurrentInfoOuterClass.java index 5e2dff1..46cbcec 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueCurrentInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RogueCurrentInfoOuterClass.java @@ -19,29 +19,53 @@ public final class RogueCurrentInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional .RogueStatus status = 14; + * optional .RogueStatus status = 9; */ private int status; /** - * optional .RogueMapInfo room_map = 4; - */ - private final RogueMapInfoOuterClass.RogueMapInfo roomMap = RogueMapInfoOuterClass.RogueMapInfo.newInstance(); - - /** - * optional .RogueBuffInfo rogue_buff_info = 6; + * optional .RogueBuffInfo rogue_buff_info = 1; */ private final RogueBuffInfoOuterClass.RogueBuffInfo rogueBuffInfo = RogueBuffInfoOuterClass.RogueBuffInfo.newInstance(); /** - * optional .RogueMiracleInfo rogue_miracle_info = 10; + * optional .RogueVirtualItem rogue_virtual_item = 2; + */ + private final RogueVirtualItemOuterClass.RogueVirtualItem rogueVirtualItem = RogueVirtualItemOuterClass.RogueVirtualItem.newInstance(); + + /** + * optional .RogueAeon rogue_aeon = 4; + */ + private final RogueAeonOuterClass.RogueAeon rogueAeon = RogueAeonOuterClass.RogueAeon.newInstance(); + + /** + * optional .RogueCommonPendingAction pending_action = 7; + */ + private final RogueCommonPendingActionOuterClass.RogueCommonPendingAction pendingAction = RogueCommonPendingActionOuterClass.RogueCommonPendingAction.newInstance(); + + /** + * optional .RogueAvatarInfo rogue_avatar_info = 8; + */ + private final RogueAvatarInfoOuterClass.RogueAvatarInfo rogueAvatarInfo = RogueAvatarInfoOuterClass.RogueAvatarInfo.newInstance(); + + /** + * optional .RogueMapInfo room_map = 10; + */ + private final RogueMapInfoOuterClass.RogueMapInfo roomMap = RogueMapInfoOuterClass.RogueMapInfo.newInstance(); + + /** + *
+     *  miracle
+     * 
+ * + * optional .RogueMiracleInfo rogue_miracle_info = 12; */ private final RogueMiracleInfoOuterClass.RogueMiracleInfo rogueMiracleInfo = RogueMiracleInfoOuterClass.RogueMiracleInfo.newInstance(); /** - * optional .RogueAvatarInfo rogue_avatar_info = 15; + * optional .LMDFPHAHJGL LBKELDKEMLF = 14; */ - private final RogueAvatarInfoOuterClass.RogueAvatarInfo rogueAvatarInfo = RogueAvatarInfoOuterClass.RogueAvatarInfo.newInstance(); + private final LMDFPHAHJGLOuterClass.LMDFPHAHJGL lBKELDKEMLF = LMDFPHAHJGLOuterClass.LMDFPHAHJGL.newInstance(); private RogueCurrentInfo() { } @@ -54,7 +78,7 @@ public final class RogueCurrentInfoOuterClass { } /** - * optional .RogueStatus status = 14; + * optional .RogueStatus status = 9; * @return whether the status field is set */ public boolean hasStatus() { @@ -62,7 +86,7 @@ public final class RogueCurrentInfoOuterClass { } /** - * optional .RogueStatus status = 14; + * optional .RogueStatus status = 9; * @return this */ public RogueCurrentInfo clearStatus() { @@ -72,7 +96,7 @@ public final class RogueCurrentInfoOuterClass { } /** - * optional .RogueStatus status = 14; + * optional .RogueStatus status = 9; * @return the status */ public RogueStatusOuterClass.RogueStatus getStatus() { @@ -105,7 +129,7 @@ public final class RogueCurrentInfoOuterClass { } /** - * optional .RogueStatus status = 14; + * optional .RogueStatus status = 9; * @param value the status to set * @return this */ @@ -116,82 +140,25 @@ public final class RogueCurrentInfoOuterClass { } /** - * optional .RogueMapInfo room_map = 4; - * @return whether the roomMap field is set + * optional .RogueBuffInfo rogue_buff_info = 1; + * @return whether the rogueBuffInfo field is set */ - public boolean hasRoomMap() { + public boolean hasRogueBuffInfo() { return (bitField0_ & 0x00000002) != 0; } /** - * optional .RogueMapInfo room_map = 4; - * @return this - */ - public RogueCurrentInfo clearRoomMap() { - bitField0_ &= ~0x00000002; - roomMap.clear(); - return this; - } - - /** - * optional .RogueMapInfo room_map = 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 #getMutableRoomMap()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueMapInfoOuterClass.RogueMapInfo getRoomMap() { - return roomMap; - } - - /** - * optional .RogueMapInfo room_map = 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 RogueMapInfoOuterClass.RogueMapInfo getMutableRoomMap() { - bitField0_ |= 0x00000002; - return roomMap; - } - - /** - * optional .RogueMapInfo room_map = 4; - * @param value the roomMap to set - * @return this - */ - public RogueCurrentInfo setRoomMap(final RogueMapInfoOuterClass.RogueMapInfo value) { - bitField0_ |= 0x00000002; - roomMap.copyFrom(value); - return this; - } - - /** - * optional .RogueBuffInfo rogue_buff_info = 6; - * @return whether the rogueBuffInfo field is set - */ - public boolean hasRogueBuffInfo() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional .RogueBuffInfo rogue_buff_info = 6; + * optional .RogueBuffInfo rogue_buff_info = 1; * @return this */ public RogueCurrentInfo clearRogueBuffInfo() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; rogueBuffInfo.clear(); return this; } /** - * optional .RogueBuffInfo rogue_buff_info = 6; + * optional .RogueBuffInfo rogue_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. @@ -205,7 +172,7 @@ public final class RogueCurrentInfoOuterClass { } /** - * optional .RogueBuffInfo rogue_buff_info = 6; + * optional .RogueBuffInfo rogue_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 @@ -214,55 +181,55 @@ public final class RogueCurrentInfoOuterClass { * @return internal storage object for modifications */ public RogueBuffInfoOuterClass.RogueBuffInfo getMutableRogueBuffInfo() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; return rogueBuffInfo; } /** - * optional .RogueBuffInfo rogue_buff_info = 6; + * optional .RogueBuffInfo rogue_buff_info = 1; * @param value the rogueBuffInfo to set * @return this */ public RogueCurrentInfo setRogueBuffInfo(final RogueBuffInfoOuterClass.RogueBuffInfo value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; rogueBuffInfo.copyFrom(value); return this; } /** - * optional .RogueMiracleInfo rogue_miracle_info = 10; - * @return whether the rogueMiracleInfo field is set + * optional .RogueVirtualItem rogue_virtual_item = 2; + * @return whether the rogueVirtualItem field is set */ - public boolean hasRogueMiracleInfo() { - return (bitField0_ & 0x00000008) != 0; + public boolean hasRogueVirtualItem() { + return (bitField0_ & 0x00000004) != 0; } /** - * optional .RogueMiracleInfo rogue_miracle_info = 10; + * optional .RogueVirtualItem rogue_virtual_item = 2; * @return this */ - public RogueCurrentInfo clearRogueMiracleInfo() { - bitField0_ &= ~0x00000008; - rogueMiracleInfo.clear(); + public RogueCurrentInfo clearRogueVirtualItem() { + bitField0_ &= ~0x00000004; + rogueVirtualItem.clear(); return this; } /** - * optional .RogueMiracleInfo rogue_miracle_info = 10; + * optional .RogueVirtualItem rogue_virtual_item = 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 #getMutableRogueMiracleInfo()} if you want to modify it. + * Use {@link #getMutableRogueVirtualItem()} if you want to modify it. * * @return internal storage object for reading */ - public RogueMiracleInfoOuterClass.RogueMiracleInfo getRogueMiracleInfo() { - return rogueMiracleInfo; + public RogueVirtualItemOuterClass.RogueVirtualItem getRogueVirtualItem() { + return rogueVirtualItem; } /** - * optional .RogueMiracleInfo rogue_miracle_info = 10; + * optional .RogueVirtualItem rogue_virtual_item = 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 @@ -270,43 +237,158 @@ public final class RogueCurrentInfoOuterClass { * * @return internal storage object for modifications */ - public RogueMiracleInfoOuterClass.RogueMiracleInfo getMutableRogueMiracleInfo() { - bitField0_ |= 0x00000008; - return rogueMiracleInfo; + public RogueVirtualItemOuterClass.RogueVirtualItem getMutableRogueVirtualItem() { + bitField0_ |= 0x00000004; + return rogueVirtualItem; } /** - * optional .RogueMiracleInfo rogue_miracle_info = 10; - * @param value the rogueMiracleInfo to set + * optional .RogueVirtualItem rogue_virtual_item = 2; + * @param value the rogueVirtualItem to set * @return this */ - public RogueCurrentInfo setRogueMiracleInfo( - final RogueMiracleInfoOuterClass.RogueMiracleInfo value) { - bitField0_ |= 0x00000008; - rogueMiracleInfo.copyFrom(value); + public RogueCurrentInfo setRogueVirtualItem( + final RogueVirtualItemOuterClass.RogueVirtualItem value) { + bitField0_ |= 0x00000004; + rogueVirtualItem.copyFrom(value); return this; } /** - * optional .RogueAvatarInfo rogue_avatar_info = 15; - * @return whether the rogueAvatarInfo field is set + * optional .RogueAeon rogue_aeon = 4; + * @return whether the rogueAeon field is set */ - public boolean hasRogueAvatarInfo() { + public boolean hasRogueAeon() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .RogueAeon rogue_aeon = 4; + * @return this + */ + public RogueCurrentInfo clearRogueAeon() { + bitField0_ &= ~0x00000008; + rogueAeon.clear(); + return this; + } + + /** + * optional .RogueAeon rogue_aeon = 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 #getMutableRogueAeon()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueAeonOuterClass.RogueAeon getRogueAeon() { + return rogueAeon; + } + + /** + * optional .RogueAeon rogue_aeon = 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 RogueAeonOuterClass.RogueAeon getMutableRogueAeon() { + bitField0_ |= 0x00000008; + return rogueAeon; + } + + /** + * optional .RogueAeon rogue_aeon = 4; + * @param value the rogueAeon to set + * @return this + */ + public RogueCurrentInfo setRogueAeon(final RogueAeonOuterClass.RogueAeon value) { + bitField0_ |= 0x00000008; + rogueAeon.copyFrom(value); + return this; + } + + /** + * optional .RogueCommonPendingAction pending_action = 7; + * @return whether the pendingAction field is set + */ + public boolean hasPendingAction() { return (bitField0_ & 0x00000010) != 0; } /** - * optional .RogueAvatarInfo rogue_avatar_info = 15; + * optional .RogueCommonPendingAction pending_action = 7; + * @return this + */ + public RogueCurrentInfo clearPendingAction() { + bitField0_ &= ~0x00000010; + pendingAction.clear(); + return this; + } + + /** + * optional .RogueCommonPendingAction pending_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 #getMutablePendingAction()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueCommonPendingActionOuterClass.RogueCommonPendingAction getPendingAction() { + return pendingAction; + } + + /** + * optional .RogueCommonPendingAction pending_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 RogueCommonPendingActionOuterClass.RogueCommonPendingAction getMutablePendingAction() { + bitField0_ |= 0x00000010; + return pendingAction; + } + + /** + * optional .RogueCommonPendingAction pending_action = 7; + * @param value the pendingAction to set + * @return this + */ + public RogueCurrentInfo setPendingAction( + final RogueCommonPendingActionOuterClass.RogueCommonPendingAction value) { + bitField0_ |= 0x00000010; + pendingAction.copyFrom(value); + return this; + } + + /** + * optional .RogueAvatarInfo rogue_avatar_info = 8; + * @return whether the rogueAvatarInfo field is set + */ + public boolean hasRogueAvatarInfo() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional .RogueAvatarInfo rogue_avatar_info = 8; * @return this */ public RogueCurrentInfo clearRogueAvatarInfo() { - bitField0_ &= ~0x00000010; + bitField0_ &= ~0x00000020; rogueAvatarInfo.clear(); return this; } /** - * optional .RogueAvatarInfo rogue_avatar_info = 15; + * 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. @@ -320,7 +402,7 @@ public final class RogueCurrentInfoOuterClass { } /** - * optional .RogueAvatarInfo rogue_avatar_info = 15; + * 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 @@ -329,32 +411,228 @@ public final class RogueCurrentInfoOuterClass { * @return internal storage object for modifications */ public RogueAvatarInfoOuterClass.RogueAvatarInfo getMutableRogueAvatarInfo() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; return rogueAvatarInfo; } /** - * optional .RogueAvatarInfo rogue_avatar_info = 15; + * optional .RogueAvatarInfo rogue_avatar_info = 8; * @param value the rogueAvatarInfo to set * @return this */ public RogueCurrentInfo setRogueAvatarInfo( final RogueAvatarInfoOuterClass.RogueAvatarInfo value) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; rogueAvatarInfo.copyFrom(value); return this; } + /** + * optional .RogueMapInfo room_map = 10; + * @return whether the roomMap field is set + */ + public boolean hasRoomMap() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional .RogueMapInfo room_map = 10; + * @return this + */ + public RogueCurrentInfo clearRoomMap() { + bitField0_ &= ~0x00000040; + roomMap.clear(); + return this; + } + + /** + * optional .RogueMapInfo room_map = 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 #getMutableRoomMap()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueMapInfoOuterClass.RogueMapInfo getRoomMap() { + return roomMap; + } + + /** + * optional .RogueMapInfo room_map = 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 RogueMapInfoOuterClass.RogueMapInfo getMutableRoomMap() { + bitField0_ |= 0x00000040; + return roomMap; + } + + /** + * optional .RogueMapInfo room_map = 10; + * @param value the roomMap to set + * @return this + */ + public RogueCurrentInfo setRoomMap(final RogueMapInfoOuterClass.RogueMapInfo value) { + bitField0_ |= 0x00000040; + roomMap.copyFrom(value); + return this; + } + + /** + *
+     *  miracle
+     * 
+ * + * optional .RogueMiracleInfo rogue_miracle_info = 12; + * @return whether the rogueMiracleInfo field is set + */ + public boolean hasRogueMiracleInfo() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + *
+     *  miracle
+     * 
+ * + * optional .RogueMiracleInfo rogue_miracle_info = 12; + * @return this + */ + public RogueCurrentInfo clearRogueMiracleInfo() { + bitField0_ &= ~0x00000080; + rogueMiracleInfo.clear(); + return this; + } + + /** + *
+     *  miracle
+     * 
+ * + * optional .RogueMiracleInfo rogue_miracle_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 #getMutableRogueMiracleInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueMiracleInfoOuterClass.RogueMiracleInfo getRogueMiracleInfo() { + return rogueMiracleInfo; + } + + /** + *
+     *  miracle
+     * 
+ * + * optional .RogueMiracleInfo rogue_miracle_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 RogueMiracleInfoOuterClass.RogueMiracleInfo getMutableRogueMiracleInfo() { + bitField0_ |= 0x00000080; + return rogueMiracleInfo; + } + + /** + *
+     *  miracle
+     * 
+ * + * optional .RogueMiracleInfo rogue_miracle_info = 12; + * @param value the rogueMiracleInfo to set + * @return this + */ + public RogueCurrentInfo setRogueMiracleInfo( + final RogueMiracleInfoOuterClass.RogueMiracleInfo value) { + bitField0_ |= 0x00000080; + rogueMiracleInfo.copyFrom(value); + return this; + } + + /** + * optional .LMDFPHAHJGL LBKELDKEMLF = 14; + * @return whether the lBKELDKEMLF field is set + */ + public boolean hasLBKELDKEMLF() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + * optional .LMDFPHAHJGL LBKELDKEMLF = 14; + * @return this + */ + public RogueCurrentInfo clearLBKELDKEMLF() { + bitField0_ &= ~0x00000100; + lBKELDKEMLF.clear(); + return this; + } + + /** + * optional .LMDFPHAHJGL LBKELDKEMLF = 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 #getMutableLBKELDKEMLF()} if you want to modify it. + * + * @return internal storage object for reading + */ + public LMDFPHAHJGLOuterClass.LMDFPHAHJGL getLBKELDKEMLF() { + return lBKELDKEMLF; + } + + /** + * optional .LMDFPHAHJGL LBKELDKEMLF = 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 LMDFPHAHJGLOuterClass.LMDFPHAHJGL getMutableLBKELDKEMLF() { + bitField0_ |= 0x00000100; + return lBKELDKEMLF; + } + + /** + * optional .LMDFPHAHJGL LBKELDKEMLF = 14; + * @param value the lBKELDKEMLF to set + * @return this + */ + public RogueCurrentInfo setLBKELDKEMLF(final LMDFPHAHJGLOuterClass.LMDFPHAHJGL value) { + bitField0_ |= 0x00000100; + lBKELDKEMLF.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; - roomMap.copyFrom(other.roomMap); rogueBuffInfo.copyFrom(other.rogueBuffInfo); - rogueMiracleInfo.copyFrom(other.rogueMiracleInfo); + rogueVirtualItem.copyFrom(other.rogueVirtualItem); + rogueAeon.copyFrom(other.rogueAeon); + pendingAction.copyFrom(other.pendingAction); rogueAvatarInfo.copyFrom(other.rogueAvatarInfo); + roomMap.copyFrom(other.roomMap); + rogueMiracleInfo.copyFrom(other.rogueMiracleInfo); + lBKELDKEMLF.copyFrom(other.lBKELDKEMLF); } return this; } @@ -368,17 +646,29 @@ public final class RogueCurrentInfoOuterClass { if (other.hasStatus()) { setStatusValue(other.status); } - if (other.hasRoomMap()) { - getMutableRoomMap().mergeFrom(other.roomMap); - } if (other.hasRogueBuffInfo()) { getMutableRogueBuffInfo().mergeFrom(other.rogueBuffInfo); } + if (other.hasRogueVirtualItem()) { + getMutableRogueVirtualItem().mergeFrom(other.rogueVirtualItem); + } + if (other.hasRogueAeon()) { + getMutableRogueAeon().mergeFrom(other.rogueAeon); + } + if (other.hasPendingAction()) { + getMutablePendingAction().mergeFrom(other.pendingAction); + } + if (other.hasRogueAvatarInfo()) { + getMutableRogueAvatarInfo().mergeFrom(other.rogueAvatarInfo); + } + if (other.hasRoomMap()) { + getMutableRoomMap().mergeFrom(other.roomMap); + } if (other.hasRogueMiracleInfo()) { getMutableRogueMiracleInfo().mergeFrom(other.rogueMiracleInfo); } - if (other.hasRogueAvatarInfo()) { - getMutableRogueAvatarInfo().mergeFrom(other.rogueAvatarInfo); + if (other.hasLBKELDKEMLF()) { + getMutableLBKELDKEMLF().mergeFrom(other.lBKELDKEMLF); } return this; } @@ -391,10 +681,14 @@ public final class RogueCurrentInfoOuterClass { cachedSize = -1; bitField0_ = 0; status = 0; - roomMap.clear(); rogueBuffInfo.clear(); - rogueMiracleInfo.clear(); + rogueVirtualItem.clear(); + rogueAeon.clear(); + pendingAction.clear(); rogueAvatarInfo.clear(); + roomMap.clear(); + rogueMiracleInfo.clear(); + lBKELDKEMLF.clear(); return this; } @@ -405,10 +699,14 @@ public final class RogueCurrentInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - roomMap.clearQuick(); rogueBuffInfo.clearQuick(); - rogueMiracleInfo.clearQuick(); + rogueVirtualItem.clearQuick(); + rogueAeon.clearQuick(); + pendingAction.clearQuick(); rogueAvatarInfo.clearQuick(); + roomMap.clearQuick(); + rogueMiracleInfo.clearQuick(); + lBKELDKEMLF.clearQuick(); return this; } @@ -423,34 +721,54 @@ public final class RogueCurrentInfoOuterClass { RogueCurrentInfo other = (RogueCurrentInfo) o; return bitField0_ == other.bitField0_ && (!hasStatus() || status == other.status) - && (!hasRoomMap() || roomMap.equals(other.roomMap)) && (!hasRogueBuffInfo() || rogueBuffInfo.equals(other.rogueBuffInfo)) + && (!hasRogueVirtualItem() || rogueVirtualItem.equals(other.rogueVirtualItem)) + && (!hasRogueAeon() || rogueAeon.equals(other.rogueAeon)) + && (!hasPendingAction() || pendingAction.equals(other.pendingAction)) + && (!hasRogueAvatarInfo() || rogueAvatarInfo.equals(other.rogueAvatarInfo)) + && (!hasRoomMap() || roomMap.equals(other.roomMap)) && (!hasRogueMiracleInfo() || rogueMiracleInfo.equals(other.rogueMiracleInfo)) - && (!hasRogueAvatarInfo() || rogueAvatarInfo.equals(other.rogueAvatarInfo)); + && (!hasLBKELDKEMLF() || lBKELDKEMLF.equals(other.lBKELDKEMLF)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 72); output.writeEnumNoTag(status); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 34); - output.writeMessageNoTag(roomMap); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 50); + output.writeRawByte((byte) 10); output.writeMessageNoTag(rogueBuffInfo); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(rogueVirtualItem); + } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 82); - output.writeMessageNoTag(rogueMiracleInfo); + output.writeRawByte((byte) 34); + output.writeMessageNoTag(rogueAeon); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 122); + output.writeRawByte((byte) 58); + output.writeMessageNoTag(pendingAction); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 66); output.writeMessageNoTag(rogueAvatarInfo); } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 82); + output.writeMessageNoTag(roomMap); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRawByte((byte) 98); + output.writeMessageNoTag(rogueMiracleInfo); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeRawByte((byte) 114); + output.writeMessageNoTag(lBKELDKEMLF); + } } @Override @@ -460,17 +778,29 @@ public final class RogueCurrentInfoOuterClass { size += 1 + ProtoSink.computeEnumSizeNoTag(status); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(roomMap); - } - if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(rogueBuffInfo); } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(rogueVirtualItem); + } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(rogueMiracleInfo); + size += 1 + ProtoSink.computeMessageSizeNoTag(rogueAeon); } if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(pendingAction); + } + if ((bitField0_ & 0x00000020) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(rogueAvatarInfo); } + if ((bitField0_ & 0x00000040) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(roomMap); + } + if ((bitField0_ & 0x00000080) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(rogueMiracleInfo); + } + if ((bitField0_ & 0x00000100) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(lBKELDKEMLF); + } return size; } @@ -481,7 +811,7 @@ public final class RogueCurrentInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 112: { + case 72: { // status final int value = input.readInt32(); if (RogueStatusOuterClass.RogueStatus.forNumber(value) != null) { @@ -489,41 +819,77 @@ public final class RogueCurrentInfoOuterClass { bitField0_ |= 0x00000001; } tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // rogueBuffInfo + input.readMessage(rogueBuffInfo); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // rogueVirtualItem + input.readMessage(rogueVirtualItem); + bitField0_ |= 0x00000004; + tag = input.readTag(); if (tag != 34) { break; } } case 34: { - // roomMap - input.readMessage(roomMap); - bitField0_ |= 0x00000002; + // rogueAeon + input.readMessage(rogueAeon); + bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 50) { + if (tag != 58) { break; } } - case 50: { - // rogueBuffInfo - input.readMessage(rogueBuffInfo); - bitField0_ |= 0x00000004; + case 58: { + // pendingAction + input.readMessage(pendingAction); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 66) { + break; + } + } + case 66: { + // rogueAvatarInfo + input.readMessage(rogueAvatarInfo); + bitField0_ |= 0x00000020; tag = input.readTag(); if (tag != 82) { break; } } case 82: { - // rogueMiracleInfo - input.readMessage(rogueMiracleInfo); - bitField0_ |= 0x00000008; + // roomMap + input.readMessage(roomMap); + bitField0_ |= 0x00000040; tag = input.readTag(); - if (tag != 122) { + if (tag != 98) { break; } } - case 122: { - // rogueAvatarInfo - input.readMessage(rogueAvatarInfo); - bitField0_ |= 0x00000010; + case 98: { + // rogueMiracleInfo + input.readMessage(rogueMiracleInfo); + bitField0_ |= 0x00000080; + tag = input.readTag(); + if (tag != 114) { + break; + } + } + case 114: { + // lBKELDKEMLF + input.readMessage(lBKELDKEMLF); + bitField0_ |= 0x00000100; tag = input.readTag(); if (tag != 0) { break; @@ -550,17 +916,29 @@ public final class RogueCurrentInfoOuterClass { output.writeEnum(FieldNames.status, status, RogueStatusOuterClass.RogueStatus.converter()); } if ((bitField0_ & 0x00000002) != 0) { - output.writeMessage(FieldNames.roomMap, roomMap); - } - if ((bitField0_ & 0x00000004) != 0) { output.writeMessage(FieldNames.rogueBuffInfo, rogueBuffInfo); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.rogueVirtualItem, rogueVirtualItem); + } if ((bitField0_ & 0x00000008) != 0) { - output.writeMessage(FieldNames.rogueMiracleInfo, rogueMiracleInfo); + output.writeMessage(FieldNames.rogueAeon, rogueAeon); } if ((bitField0_ & 0x00000010) != 0) { + output.writeMessage(FieldNames.pendingAction, pendingAction); + } + if ((bitField0_ & 0x00000020) != 0) { output.writeMessage(FieldNames.rogueAvatarInfo, rogueAvatarInfo); } + if ((bitField0_ & 0x00000040) != 0) { + output.writeMessage(FieldNames.roomMap, roomMap); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeMessage(FieldNames.rogueMiracleInfo, rogueMiracleInfo); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeMessage(FieldNames.lBKELDKEMLF, lBKELDKEMLF); + } output.endObject(); } @@ -587,11 +965,11 @@ public final class RogueCurrentInfoOuterClass { } break; } - case 1379875457: - case -172986376: { - if (input.isAtField(FieldNames.roomMap)) { + case 1107898267: + case -694847243: { + if (input.isAtField(FieldNames.rogueBuffInfo)) { if (!input.trySkipNullValue()) { - input.readMessage(roomMap); + input.readMessage(rogueBuffInfo); bitField0_ |= 0x00000002; } } else { @@ -599,11 +977,11 @@ public final class RogueCurrentInfoOuterClass { } break; } - case 1107898267: - case -694847243: { - if (input.isAtField(FieldNames.rogueBuffInfo)) { + case 2090167940: + case -856063476: { + if (input.isAtField(FieldNames.rogueVirtualItem)) { if (!input.trySkipNullValue()) { - input.readMessage(rogueBuffInfo); + input.readMessage(rogueVirtualItem); bitField0_ |= 0x00000004; } } else { @@ -611,11 +989,11 @@ public final class RogueCurrentInfoOuterClass { } break; } - case -452511099: - case 1925436929: { - if (input.isAtField(FieldNames.rogueMiracleInfo)) { + case 655562237: + case -1124830136: { + if (input.isAtField(FieldNames.rogueAeon)) { if (!input.trySkipNullValue()) { - input.readMessage(rogueMiracleInfo); + input.readMessage(rogueAeon); bitField0_ |= 0x00000008; } } else { @@ -623,12 +1001,59 @@ public final class RogueCurrentInfoOuterClass { } break; } + case -110680403: + case 1646545374: { + if (input.isAtField(FieldNames.pendingAction)) { + if (!input.trySkipNullValue()) { + input.readMessage(pendingAction); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } case -1966631135: case 667955439: { if (input.isAtField(FieldNames.rogueAvatarInfo)) { if (!input.trySkipNullValue()) { input.readMessage(rogueAvatarInfo); - bitField0_ |= 0x00000010; + 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 -452511099: + case 1925436929: { + if (input.isAtField(FieldNames.rogueMiracleInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(rogueMiracleInfo); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + case -885627611: { + if (input.isAtField(FieldNames.lBKELDKEMLF)) { + if (!input.trySkipNullValue()) { + input.readMessage(lBKELDKEMLF); + bitField0_ |= 0x00000100; } } else { input.skipUnknownField(); @@ -690,13 +1115,21 @@ public final class RogueCurrentInfoOuterClass { static class FieldNames { static final FieldName status = FieldName.forField("status"); - static final FieldName roomMap = FieldName.forField("roomMap", "room_map"); - static final FieldName rogueBuffInfo = FieldName.forField("rogueBuffInfo", "rogue_buff_info"); + static final FieldName rogueVirtualItem = FieldName.forField("rogueVirtualItem", "rogue_virtual_item"); + + static final FieldName rogueAeon = FieldName.forField("rogueAeon", "rogue_aeon"); + + static final FieldName pendingAction = FieldName.forField("pendingAction", "pending_action"); + + static final FieldName rogueAvatarInfo = FieldName.forField("rogueAvatarInfo", "rogue_avatar_info"); + + static final FieldName roomMap = FieldName.forField("roomMap", "room_map"); + static final FieldName rogueMiracleInfo = FieldName.forField("rogueMiracleInfo", "rogue_miracle_info"); - static final FieldName rogueAvatarInfo = FieldName.forField("rogueAvatarInfo", "rogue_avatar_info"); + static final FieldName lBKELDKEMLF = FieldName.forField("LBKELDKEMLF"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/RogueDialogueEventOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueDialogueEventOuterClass.java new file mode 100644 index 0000000..17bd8ee --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueDialogueEventOuterClass.java @@ -0,0 +1,741 @@ +// 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 GBMDBBBMBEJ = 6; + */ + private int gBMDBBBMBEJ; + + /** + * optional uint32 INJPFALMDHJ = 7; + */ + private int iNJPFALMDHJ; + + /** + * optional uint32 game_mode_type = 13; + */ + private int gameModeType; + + /** + * repeated uint32 NNOHLEAOJPP = 8; + */ + private final RepeatedInt nNOHLEAOJPP = RepeatedInt.newEmptyInstance(); + + /** + * repeated .RogueDialogueEventParam rogue_dialogue_event_param = 15; + */ + 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 GBMDBBBMBEJ = 6; + * @return whether the gBMDBBBMBEJ field is set + */ + public boolean hasGBMDBBBMBEJ() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 GBMDBBBMBEJ = 6; + * @return this + */ + public RogueDialogueEvent clearGBMDBBBMBEJ() { + bitField0_ &= ~0x00000002; + gBMDBBBMBEJ = 0; + return this; + } + + /** + * optional uint32 GBMDBBBMBEJ = 6; + * @return the gBMDBBBMBEJ + */ + public int getGBMDBBBMBEJ() { + return gBMDBBBMBEJ; + } + + /** + * optional uint32 GBMDBBBMBEJ = 6; + * @param value the gBMDBBBMBEJ to set + * @return this + */ + public RogueDialogueEvent setGBMDBBBMBEJ(final int value) { + bitField0_ |= 0x00000002; + gBMDBBBMBEJ = value; + return this; + } + + /** + * optional uint32 INJPFALMDHJ = 7; + * @return whether the iNJPFALMDHJ field is set + */ + public boolean hasINJPFALMDHJ() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 INJPFALMDHJ = 7; + * @return this + */ + public RogueDialogueEvent clearINJPFALMDHJ() { + bitField0_ &= ~0x00000004; + iNJPFALMDHJ = 0; + return this; + } + + /** + * optional uint32 INJPFALMDHJ = 7; + * @return the iNJPFALMDHJ + */ + public int getINJPFALMDHJ() { + return iNJPFALMDHJ; + } + + /** + * optional uint32 INJPFALMDHJ = 7; + * @param value the iNJPFALMDHJ to set + * @return this + */ + public RogueDialogueEvent setINJPFALMDHJ(final int value) { + bitField0_ |= 0x00000004; + iNJPFALMDHJ = value; + return this; + } + + /** + * optional uint32 game_mode_type = 13; + * @return whether the gameModeType field is set + */ + public boolean hasGameModeType() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 game_mode_type = 13; + * @return this + */ + public RogueDialogueEvent clearGameModeType() { + bitField0_ &= ~0x00000008; + gameModeType = 0; + return this; + } + + /** + * optional uint32 game_mode_type = 13; + * @return the gameModeType + */ + public int getGameModeType() { + return gameModeType; + } + + /** + * optional uint32 game_mode_type = 13; + * @param value the gameModeType to set + * @return this + */ + public RogueDialogueEvent setGameModeType(final int value) { + bitField0_ |= 0x00000008; + gameModeType = value; + return this; + } + + /** + * repeated uint32 NNOHLEAOJPP = 8; + * @return whether the nNOHLEAOJPP field is set + */ + public boolean hasNNOHLEAOJPP() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * repeated uint32 NNOHLEAOJPP = 8; + * @return this + */ + public RogueDialogueEvent clearNNOHLEAOJPP() { + bitField0_ &= ~0x00000010; + nNOHLEAOJPP.clear(); + return this; + } + + /** + * repeated uint32 NNOHLEAOJPP = 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 #getMutableNNOHLEAOJPP()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getNNOHLEAOJPP() { + return nNOHLEAOJPP; + } + + /** + * repeated uint32 NNOHLEAOJPP = 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 getMutableNNOHLEAOJPP() { + bitField0_ |= 0x00000010; + return nNOHLEAOJPP; + } + + /** + * repeated uint32 NNOHLEAOJPP = 8; + * @param value the nNOHLEAOJPP to add + * @return this + */ + public RogueDialogueEvent addNNOHLEAOJPP(final int value) { + bitField0_ |= 0x00000010; + nNOHLEAOJPP.add(value); + return this; + } + + /** + * repeated uint32 NNOHLEAOJPP = 8; + * @param values the nNOHLEAOJPP to add + * @return this + */ + public RogueDialogueEvent addAllNNOHLEAOJPP(final int... values) { + bitField0_ |= 0x00000010; + nNOHLEAOJPP.addAll(values); + return this; + } + + /** + * repeated .RogueDialogueEventParam rogue_dialogue_event_param = 15; + * @return whether the rogueDialogueEventParam field is set + */ + public boolean hasRogueDialogueEventParam() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * repeated .RogueDialogueEventParam rogue_dialogue_event_param = 15; + * @return this + */ + public RogueDialogueEvent clearRogueDialogueEventParam() { + bitField0_ &= ~0x00000020; + rogueDialogueEventParam.clear(); + return this; + } + + /** + * repeated .RogueDialogueEventParam rogue_dialogue_event_param = 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 #getMutableRogueDialogueEventParam()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getRogueDialogueEventParam( + ) { + return rogueDialogueEventParam; + } + + /** + * repeated .RogueDialogueEventParam rogue_dialogue_event_param = 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 getMutableRogueDialogueEventParam( + ) { + bitField0_ |= 0x00000020; + return rogueDialogueEventParam; + } + + /** + * repeated .RogueDialogueEventParam rogue_dialogue_event_param = 15; + * @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 = 15; + * @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; + gBMDBBBMBEJ = other.gBMDBBBMBEJ; + iNJPFALMDHJ = other.iNJPFALMDHJ; + gameModeType = other.gameModeType; + nNOHLEAOJPP.copyFrom(other.nNOHLEAOJPP); + 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.hasGBMDBBBMBEJ()) { + setGBMDBBBMBEJ(other.gBMDBBBMBEJ); + } + if (other.hasINJPFALMDHJ()) { + setINJPFALMDHJ(other.iNJPFALMDHJ); + } + if (other.hasGameModeType()) { + setGameModeType(other.gameModeType); + } + if (other.hasNNOHLEAOJPP()) { + getMutableNNOHLEAOJPP().addAll(other.nNOHLEAOJPP); + } + if (other.hasRogueDialogueEventParam()) { + getMutableRogueDialogueEventParam().addAll(other.rogueDialogueEventParam); + } + return this; + } + + @Override + public RogueDialogueEvent clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + npcId = 0; + gBMDBBBMBEJ = 0; + iNJPFALMDHJ = 0; + gameModeType = 0; + nNOHLEAOJPP.clear(); + rogueDialogueEventParam.clear(); + return this; + } + + @Override + public RogueDialogueEvent clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nNOHLEAOJPP.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) + && (!hasGBMDBBBMBEJ() || gBMDBBBMBEJ == other.gBMDBBBMBEJ) + && (!hasINJPFALMDHJ() || iNJPFALMDHJ == other.iNJPFALMDHJ) + && (!hasGameModeType() || gameModeType == other.gameModeType) + && (!hasNNOHLEAOJPP() || nNOHLEAOJPP.equals(other.nNOHLEAOJPP)) + && (!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) 48); + output.writeUInt32NoTag(gBMDBBBMBEJ); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(iNJPFALMDHJ); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(gameModeType); + } + if ((bitField0_ & 0x00000010) != 0) { + for (int i = 0; i < nNOHLEAOJPP.length(); i++) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(nNOHLEAOJPP.array()[i]); + } + } + if ((bitField0_ & 0x00000020) != 0) { + for (int i = 0; i < rogueDialogueEventParam.length(); i++) { + output.writeRawByte((byte) 122); + 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(gBMDBBBMBEJ); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(iNJPFALMDHJ); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(gameModeType); + } + if ((bitField0_ & 0x00000010) != 0) { + size += (1 * nNOHLEAOJPP.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(nNOHLEAOJPP); + } + 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 != 48) { + break; + } + } + case 48: { + // gBMDBBBMBEJ + gBMDBBBMBEJ = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // iNJPFALMDHJ + iNJPFALMDHJ = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // gameModeType + gameModeType = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 66) { + break; + } + } + case 66: { + // nNOHLEAOJPP [packed=true] + input.readPackedUInt32(nNOHLEAOJPP, tag); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 122) { + break; + } + } + case 122: { + // 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 64: { + // nNOHLEAOJPP [packed=false] + tag = input.readRepeatedUInt32(nNOHLEAOJPP, 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.gBMDBBBMBEJ, gBMDBBBMBEJ); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.iNJPFALMDHJ, iNJPFALMDHJ); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.gameModeType, gameModeType); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRepeatedUInt32(FieldNames.nNOHLEAOJPP, nNOHLEAOJPP); + } + 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 -1904002038: { + if (input.isAtField(FieldNames.gBMDBBBMBEJ)) { + if (!input.trySkipNullValue()) { + gBMDBBBMBEJ = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 535806911: { + if (input.isAtField(FieldNames.iNJPFALMDHJ)) { + if (!input.trySkipNullValue()) { + iNJPFALMDHJ = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -464498289: + case 1937775689: { + if (input.isAtField(FieldNames.gameModeType)) { + if (!input.trySkipNullValue()) { + gameModeType = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -229455542: { + if (input.isAtField(FieldNames.nNOHLEAOJPP)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(nNOHLEAOJPP); + 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 gBMDBBBMBEJ = FieldName.forField("GBMDBBBMBEJ"); + + static final FieldName iNJPFALMDHJ = FieldName.forField("INJPFALMDHJ"); + + static final FieldName gameModeType = FieldName.forField("gameModeType", "game_mode_type"); + + static final FieldName nNOHLEAOJPP = FieldName.forField("NNOHLEAOJPP"); + + 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 new file mode 100644 index 0000000..89c6969 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueDialogueEventParamOuterClass.java @@ -0,0 +1,584 @@ +// 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 = 13; + */ + private float ratio; + + /** + * optional uint32 dialogue_event_id = 3; + */ + private int dialogueEventId; + + /** + * optional uint32 arg_id = 9; + */ + private int argId; + + /** + * optional sint32 int_value = 4; + */ + private int intValue; + + /** + * optional bool is_valid = 1; + */ + private boolean isValid; + + private RogueDialogueEventParam() { + } + + /** + * @return a new empty instance of {@code RogueDialogueEventParam} + */ + public static RogueDialogueEventParam newInstance() { + return new RogueDialogueEventParam(); + } + + /** + * optional float ratio = 13; + * @return whether the ratio field is set + */ + public boolean hasRatio() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional float ratio = 13; + * @return this + */ + public RogueDialogueEventParam clearRatio() { + bitField0_ &= ~0x00000001; + ratio = 0F; + return this; + } + + /** + * optional float ratio = 13; + * @return the ratio + */ + public float getRatio() { + return ratio; + } + + /** + * optional float ratio = 13; + * @param value the ratio to set + * @return this + */ + public RogueDialogueEventParam setRatio(final float value) { + bitField0_ |= 0x00000001; + ratio = value; + return this; + } + + /** + * optional uint32 dialogue_event_id = 3; + * @return whether the dialogueEventId field is set + */ + public boolean hasDialogueEventId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 dialogue_event_id = 3; + * @return this + */ + public RogueDialogueEventParam clearDialogueEventId() { + bitField0_ &= ~0x00000002; + dialogueEventId = 0; + return this; + } + + /** + * optional uint32 dialogue_event_id = 3; + * @return the dialogueEventId + */ + public int getDialogueEventId() { + return dialogueEventId; + } + + /** + * optional uint32 dialogue_event_id = 3; + * @param value the dialogueEventId to set + * @return this + */ + public RogueDialogueEventParam setDialogueEventId(final int value) { + bitField0_ |= 0x00000002; + dialogueEventId = value; + return this; + } + + /** + * optional uint32 arg_id = 9; + * @return whether the argId field is set + */ + public boolean hasArgId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 arg_id = 9; + * @return this + */ + public RogueDialogueEventParam clearArgId() { + bitField0_ &= ~0x00000004; + argId = 0; + return this; + } + + /** + * optional uint32 arg_id = 9; + * @return the argId + */ + public int getArgId() { + return argId; + } + + /** + * optional uint32 arg_id = 9; + * @param value the argId to set + * @return this + */ + public RogueDialogueEventParam setArgId(final int value) { + bitField0_ |= 0x00000004; + argId = value; + return this; + } + + /** + * optional sint32 int_value = 4; + * @return whether the intValue field is set + */ + public boolean hasIntValue() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional sint32 int_value = 4; + * @return this + */ + public RogueDialogueEventParam clearIntValue() { + bitField0_ &= ~0x00000008; + intValue = 0; + return this; + } + + /** + * optional sint32 int_value = 4; + * @return the intValue + */ + public int getIntValue() { + return intValue; + } + + /** + * optional sint32 int_value = 4; + * @param value the intValue to set + * @return this + */ + public RogueDialogueEventParam setIntValue(final int value) { + bitField0_ |= 0x00000008; + intValue = value; + return this; + } + + /** + * optional bool is_valid = 1; + * @return whether the isValid field is set + */ + public boolean hasIsValid() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional bool is_valid = 1; + * @return this + */ + public RogueDialogueEventParam clearIsValid() { + bitField0_ &= ~0x00000010; + isValid = false; + return this; + } + + /** + * optional bool is_valid = 1; + * @return the isValid + */ + public boolean getIsValid() { + return isValid; + } + + /** + * optional bool is_valid = 1; + * @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; + dialogueEventId = other.dialogueEventId; + argId = other.argId; + 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.hasDialogueEventId()) { + setDialogueEventId(other.dialogueEventId); + } + if (other.hasArgId()) { + setArgId(other.argId); + } + 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; + dialogueEventId = 0; + argId = 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)) + && (!hasDialogueEventId() || dialogueEventId == other.dialogueEventId) + && (!hasArgId() || argId == other.argId) + && (!hasIntValue() || intValue == other.intValue) + && (!hasIsValid() || isValid == other.isValid); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 109); + output.writeFloatNoTag(ratio); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(dialogueEventId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(argId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 32); + output.writeSInt32NoTag(intValue); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 8); + output.writeBoolNoTag(isValid); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 5; + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(dialogueEventId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(argId); + } + 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 109: { + // ratio + ratio = input.readFloat(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // dialogueEventId + dialogueEventId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // argId + argId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // intValue + intValue = input.readSInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 8) { + break; + } + } + case 8: { + // 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.dialogueEventId, dialogueEventId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.argId, argId); + } + 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 88389725: + case 1671736167: { + if (input.isAtField(FieldNames.dialogueEventId)) { + if (!input.trySkipNullValue()) { + dialogueEventId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 93079057: + case -1409495132: { + if (input.isAtField(FieldNames.argId)) { + if (!input.trySkipNullValue()) { + argId = 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 dialogueEventId = FieldName.forField("dialogueEventId", "dialogue_event_id"); + + static final FieldName argId = FieldName.forField("argId", "arg_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 index a12d271..b31b520 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueFinishInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RogueFinishInfoOuterClass.java @@ -19,52 +19,85 @@ public final class RogueFinishInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 pass_room_count = 4; - */ - private int passRoomCount; - - /** - * optional uint32 talent_coin = 8; - */ - private int talentCoin; - - /** - * optional uint32 total_score = 10; + * optional uint32 total_score = 1; */ private int totalScore; /** - * optional uint32 room_score = 11; + * optional uint32 ANBFGOKNEIA = 4; */ - private int roomScore; + private int aNBFGOKNEIA; /** - * optional uint32 area_first_pass_score = 14; + * optional uint32 taken_score = 6; */ - private int areaFirstPassScore; + private int takenScore; /** - * optional uint32 reach_room_count = 1056; + * optional uint32 BCKPHBOPCCN = 8; */ - private int reachRoomCount; + private int bCKPHBOPCCN; /** - * optional uint32 area_id = 1731; + * optional uint32 pass_room_count = 12; + */ + private int passRoomCount; + + /** + * optional uint32 area_id = 260; */ private int areaId; /** - * optional bool is_win = 15; + *
+     * HNNAOBNKFLO LAOLNLHIECJ = 7;
+     * 
+ * + * optional uint32 reach_room_count = 271; + */ + private int reachRoomCount; + + /** + * optional bool BFCBHPCPAOI = 2; + */ + private boolean bFCBHPCPAOI; + + /** + * optional bool is_win = 9; */ private boolean isWin; /** - * optional .ItemList finish_reward_list = 1; + * optional .ItemList ICOCLPBLFNN = 3; */ - private final ItemListOuterClass.ItemList finishRewardList = ItemListOuterClass.ItemList.newInstance(); + private final ItemListOuterClass.ItemList iCOCLPBLFNN = ItemListOuterClass.ItemList.newInstance(); /** - * optional .RogueRecordInfo record_info = 7; + * optional .RogueScoreRewardInfo score_reward_info = 5; + */ + private final RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo scoreRewardInfo = RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo.newInstance(); + + /** + * optional .RogueScoreRewardInfo cur_score_reward_info = 10; + */ + private final RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo curScoreRewardInfo = RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo.newInstance(); + + /** + * optional .ItemList LBLELCPPLCI = 13; + */ + private final ItemListOuterClass.ItemList lBLELCPPLCI = ItemListOuterClass.ItemList.newInstance(); + + /** + *
+     * MMOCIHBBOMA LDFFDAMFFFO = 11;
+     * 
+ * + * optional .ItemList IPNGMMIOJJB = 14; + */ + private final ItemListOuterClass.ItemList iPNGMMIOJJB = ItemListOuterClass.ItemList.newInstance(); + + /** + * optional .RogueRecordInfo record_info = 15; */ private final RogueRecordInfoOuterClass.RogueRecordInfo recordInfo = RogueRecordInfoOuterClass.RogueRecordInfo.newInstance(); @@ -79,99 +112,25 @@ public final class RogueFinishInfoOuterClass { } /** - * optional uint32 pass_room_count = 4; - * @return whether the passRoomCount field is set + * optional uint32 total_score = 1; + * @return whether the totalScore field is set */ - public boolean hasPassRoomCount() { + public boolean hasTotalScore() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 pass_room_count = 4; - * @return this - */ - public RogueFinishInfo clearPassRoomCount() { - bitField0_ &= ~0x00000001; - passRoomCount = 0; - return this; - } - - /** - * optional uint32 pass_room_count = 4; - * @return the passRoomCount - */ - public int getPassRoomCount() { - return passRoomCount; - } - - /** - * optional uint32 pass_room_count = 4; - * @param value the passRoomCount to set - * @return this - */ - public RogueFinishInfo setPassRoomCount(final int value) { - bitField0_ |= 0x00000001; - passRoomCount = value; - return this; - } - - /** - * optional uint32 talent_coin = 8; - * @return whether the talentCoin field is set - */ - public boolean hasTalentCoin() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 talent_coin = 8; - * @return this - */ - public RogueFinishInfo clearTalentCoin() { - bitField0_ &= ~0x00000002; - talentCoin = 0; - return this; - } - - /** - * optional uint32 talent_coin = 8; - * @return the talentCoin - */ - public int getTalentCoin() { - return talentCoin; - } - - /** - * optional uint32 talent_coin = 8; - * @param value the talentCoin to set - * @return this - */ - public RogueFinishInfo setTalentCoin(final int value) { - bitField0_ |= 0x00000002; - talentCoin = value; - return this; - } - - /** - * optional uint32 total_score = 10; - * @return whether the totalScore field is set - */ - public boolean hasTotalScore() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 total_score = 10; + * optional uint32 total_score = 1; * @return this */ public RogueFinishInfo clearTotalScore() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000001; totalScore = 0; return this; } /** - * optional uint32 total_score = 10; + * optional uint32 total_score = 1; * @return the totalScore */ public int getTotalScore() { @@ -179,147 +138,184 @@ public final class RogueFinishInfoOuterClass { } /** - * optional uint32 total_score = 10; + * optional uint32 total_score = 1; * @param value the totalScore to set * @return this */ public RogueFinishInfo setTotalScore(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; totalScore = value; return this; } /** - * optional uint32 room_score = 11; - * @return whether the roomScore field is set + * optional uint32 ANBFGOKNEIA = 4; + * @return whether the aNBFGOKNEIA field is set */ - public boolean hasRoomScore() { + public boolean hasANBFGOKNEIA() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 ANBFGOKNEIA = 4; + * @return this + */ + public RogueFinishInfo clearANBFGOKNEIA() { + bitField0_ &= ~0x00000002; + aNBFGOKNEIA = 0; + return this; + } + + /** + * optional uint32 ANBFGOKNEIA = 4; + * @return the aNBFGOKNEIA + */ + public int getANBFGOKNEIA() { + return aNBFGOKNEIA; + } + + /** + * optional uint32 ANBFGOKNEIA = 4; + * @param value the aNBFGOKNEIA to set + * @return this + */ + public RogueFinishInfo setANBFGOKNEIA(final int value) { + bitField0_ |= 0x00000002; + aNBFGOKNEIA = value; + return this; + } + + /** + * optional uint32 taken_score = 6; + * @return whether the takenScore field is set + */ + public boolean hasTakenScore() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 taken_score = 6; + * @return this + */ + public RogueFinishInfo clearTakenScore() { + bitField0_ &= ~0x00000004; + takenScore = 0; + return this; + } + + /** + * optional uint32 taken_score = 6; + * @return the takenScore + */ + public int getTakenScore() { + return takenScore; + } + + /** + * optional uint32 taken_score = 6; + * @param value the takenScore to set + * @return this + */ + public RogueFinishInfo setTakenScore(final int value) { + bitField0_ |= 0x00000004; + takenScore = value; + return this; + } + + /** + * optional uint32 BCKPHBOPCCN = 8; + * @return whether the bCKPHBOPCCN field is set + */ + public boolean hasBCKPHBOPCCN() { return (bitField0_ & 0x00000008) != 0; } /** - * optional uint32 room_score = 11; + * optional uint32 BCKPHBOPCCN = 8; * @return this */ - public RogueFinishInfo clearRoomScore() { + public RogueFinishInfo clearBCKPHBOPCCN() { bitField0_ &= ~0x00000008; - roomScore = 0; + bCKPHBOPCCN = 0; return this; } /** - * optional uint32 room_score = 11; - * @return the roomScore + * optional uint32 BCKPHBOPCCN = 8; + * @return the bCKPHBOPCCN */ - public int getRoomScore() { - return roomScore; + public int getBCKPHBOPCCN() { + return bCKPHBOPCCN; } /** - * optional uint32 room_score = 11; - * @param value the roomScore to set + * optional uint32 BCKPHBOPCCN = 8; + * @param value the bCKPHBOPCCN to set * @return this */ - public RogueFinishInfo setRoomScore(final int value) { + public RogueFinishInfo setBCKPHBOPCCN(final int value) { bitField0_ |= 0x00000008; - roomScore = value; + bCKPHBOPCCN = value; return this; } /** - * optional uint32 area_first_pass_score = 14; - * @return whether the areaFirstPassScore field is set + * optional uint32 pass_room_count = 12; + * @return whether the passRoomCount field is set */ - public boolean hasAreaFirstPassScore() { + public boolean hasPassRoomCount() { return (bitField0_ & 0x00000010) != 0; } /** - * optional uint32 area_first_pass_score = 14; + * optional uint32 pass_room_count = 12; * @return this */ - public RogueFinishInfo clearAreaFirstPassScore() { + public RogueFinishInfo clearPassRoomCount() { bitField0_ &= ~0x00000010; - areaFirstPassScore = 0; + passRoomCount = 0; return this; } /** - * optional uint32 area_first_pass_score = 14; - * @return the areaFirstPassScore + * optional uint32 pass_room_count = 12; + * @return the passRoomCount */ - public int getAreaFirstPassScore() { - return areaFirstPassScore; + public int getPassRoomCount() { + return passRoomCount; } /** - * optional uint32 area_first_pass_score = 14; - * @param value the areaFirstPassScore to set + * optional uint32 pass_room_count = 12; + * @param value the passRoomCount to set * @return this */ - public RogueFinishInfo setAreaFirstPassScore(final int value) { + public RogueFinishInfo setPassRoomCount(final int value) { bitField0_ |= 0x00000010; - areaFirstPassScore = value; + passRoomCount = value; return this; } /** - * optional uint32 reach_room_count = 1056; - * @return whether the reachRoomCount field is set + * optional uint32 area_id = 260; + * @return whether the areaId field is set */ - public boolean hasReachRoomCount() { + public boolean hasAreaId() { return (bitField0_ & 0x00000020) != 0; } /** - * optional uint32 reach_room_count = 1056; - * @return this - */ - public RogueFinishInfo clearReachRoomCount() { - bitField0_ &= ~0x00000020; - reachRoomCount = 0; - return this; - } - - /** - * optional uint32 reach_room_count = 1056; - * @return the reachRoomCount - */ - public int getReachRoomCount() { - return reachRoomCount; - } - - /** - * optional uint32 reach_room_count = 1056; - * @param value the reachRoomCount to set - * @return this - */ - public RogueFinishInfo setReachRoomCount(final int value) { - bitField0_ |= 0x00000020; - reachRoomCount = value; - return this; - } - - /** - * optional uint32 area_id = 1731; - * @return whether the areaId field is set - */ - public boolean hasAreaId() { - return (bitField0_ & 0x00000040) != 0; - } - - /** - * optional uint32 area_id = 1731; + * optional uint32 area_id = 260; * @return this */ public RogueFinishInfo clearAreaId() { - bitField0_ &= ~0x00000040; + bitField0_ &= ~0x00000020; areaId = 0; return this; } /** - * optional uint32 area_id = 1731; + * optional uint32 area_id = 260; * @return the areaId */ public int getAreaId() { @@ -327,36 +323,126 @@ public final class RogueFinishInfoOuterClass { } /** - * optional uint32 area_id = 1731; + * optional uint32 area_id = 260; * @param value the areaId to set * @return this */ public RogueFinishInfo setAreaId(final int value) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000020; areaId = value; return this; } /** - * optional bool is_win = 15; - * @return whether the isWin field is set + *
+     * HNNAOBNKFLO LAOLNLHIECJ = 7;
+     * 
+ * + * optional uint32 reach_room_count = 271; + * @return whether the reachRoomCount field is set */ - public boolean hasIsWin() { + public boolean hasReachRoomCount() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + *
+     * HNNAOBNKFLO LAOLNLHIECJ = 7;
+     * 
+ * + * optional uint32 reach_room_count = 271; + * @return this + */ + public RogueFinishInfo clearReachRoomCount() { + bitField0_ &= ~0x00000040; + reachRoomCount = 0; + return this; + } + + /** + *
+     * HNNAOBNKFLO LAOLNLHIECJ = 7;
+     * 
+ * + * optional uint32 reach_room_count = 271; + * @return the reachRoomCount + */ + public int getReachRoomCount() { + return reachRoomCount; + } + + /** + *
+     * HNNAOBNKFLO LAOLNLHIECJ = 7;
+     * 
+ * + * optional uint32 reach_room_count = 271; + * @param value the reachRoomCount to set + * @return this + */ + public RogueFinishInfo setReachRoomCount(final int value) { + bitField0_ |= 0x00000040; + reachRoomCount = value; + return this; + } + + /** + * optional bool BFCBHPCPAOI = 2; + * @return whether the bFCBHPCPAOI field is set + */ + public boolean hasBFCBHPCPAOI() { return (bitField0_ & 0x00000080) != 0; } /** - * optional bool is_win = 15; + * optional bool BFCBHPCPAOI = 2; + * @return this + */ + public RogueFinishInfo clearBFCBHPCPAOI() { + bitField0_ &= ~0x00000080; + bFCBHPCPAOI = false; + return this; + } + + /** + * optional bool BFCBHPCPAOI = 2; + * @return the bFCBHPCPAOI + */ + public boolean getBFCBHPCPAOI() { + return bFCBHPCPAOI; + } + + /** + * optional bool BFCBHPCPAOI = 2; + * @param value the bFCBHPCPAOI to set + * @return this + */ + public RogueFinishInfo setBFCBHPCPAOI(final boolean value) { + bitField0_ |= 0x00000080; + bFCBHPCPAOI = value; + return this; + } + + /** + * optional bool is_win = 9; + * @return whether the isWin field is set + */ + public boolean hasIsWin() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + * optional bool is_win = 9; * @return this */ public RogueFinishInfo clearIsWin() { - bitField0_ &= ~0x00000080; + bitField0_ &= ~0x00000100; isWin = false; return this; } /** - * optional bool is_win = 15; + * optional bool is_win = 9; * @return the isWin */ public boolean getIsWin() { @@ -364,50 +450,50 @@ public final class RogueFinishInfoOuterClass { } /** - * optional bool is_win = 15; + * optional bool is_win = 9; * @param value the isWin to set * @return this */ public RogueFinishInfo setIsWin(final boolean value) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; isWin = value; return this; } /** - * optional .ItemList finish_reward_list = 1; - * @return whether the finishRewardList field is set + * optional .ItemList ICOCLPBLFNN = 3; + * @return whether the iCOCLPBLFNN field is set */ - public boolean hasFinishRewardList() { - return (bitField0_ & 0x00000100) != 0; + public boolean hasICOCLPBLFNN() { + return (bitField0_ & 0x00000200) != 0; } /** - * optional .ItemList finish_reward_list = 1; + * optional .ItemList ICOCLPBLFNN = 3; * @return this */ - public RogueFinishInfo clearFinishRewardList() { - bitField0_ &= ~0x00000100; - finishRewardList.clear(); + public RogueFinishInfo clearICOCLPBLFNN() { + bitField0_ &= ~0x00000200; + iCOCLPBLFNN.clear(); return this; } /** - * optional .ItemList finish_reward_list = 1; + * optional .ItemList ICOCLPBLFNN = 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 #getMutableFinishRewardList()} if you want to modify it. + * Use {@link #getMutableICOCLPBLFNN()} if you want to modify it. * * @return internal storage object for reading */ - public ItemListOuterClass.ItemList getFinishRewardList() { - return finishRewardList; + public ItemListOuterClass.ItemList getICOCLPBLFNN() { + return iCOCLPBLFNN; } /** - * optional .ItemList finish_reward_list = 1; + * optional .ItemList ICOCLPBLFNN = 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 @@ -415,42 +501,292 @@ public final class RogueFinishInfoOuterClass { * * @return internal storage object for modifications */ - public ItemListOuterClass.ItemList getMutableFinishRewardList() { - bitField0_ |= 0x00000100; - return finishRewardList; + public ItemListOuterClass.ItemList getMutableICOCLPBLFNN() { + bitField0_ |= 0x00000200; + return iCOCLPBLFNN; } /** - * optional .ItemList finish_reward_list = 1; - * @param value the finishRewardList to set + * optional .ItemList ICOCLPBLFNN = 3; + * @param value the iCOCLPBLFNN to set * @return this */ - public RogueFinishInfo setFinishRewardList(final ItemListOuterClass.ItemList value) { - bitField0_ |= 0x00000100; - finishRewardList.copyFrom(value); + public RogueFinishInfo setICOCLPBLFNN(final ItemListOuterClass.ItemList value) { + bitField0_ |= 0x00000200; + iCOCLPBLFNN.copyFrom(value); return this; } /** - * optional .RogueRecordInfo record_info = 7; - * @return whether the recordInfo field is set + * optional .RogueScoreRewardInfo score_reward_info = 5; + * @return whether the scoreRewardInfo field is set */ - public boolean hasRecordInfo() { - return (bitField0_ & 0x00000200) != 0; + public boolean hasScoreRewardInfo() { + return (bitField0_ & 0x00000400) != 0; } /** - * optional .RogueRecordInfo record_info = 7; + * optional .RogueScoreRewardInfo score_reward_info = 5; + * @return this + */ + public RogueFinishInfo clearScoreRewardInfo() { + bitField0_ &= ~0x00000400; + scoreRewardInfo.clear(); + return this; + } + + /** + * optional .RogueScoreRewardInfo score_reward_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 #getMutableScoreRewardInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo getScoreRewardInfo() { + return scoreRewardInfo; + } + + /** + * optional .RogueScoreRewardInfo score_reward_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 RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo getMutableScoreRewardInfo() { + bitField0_ |= 0x00000400; + return scoreRewardInfo; + } + + /** + * optional .RogueScoreRewardInfo score_reward_info = 5; + * @param value the scoreRewardInfo to set + * @return this + */ + public RogueFinishInfo setScoreRewardInfo( + final RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo value) { + bitField0_ |= 0x00000400; + scoreRewardInfo.copyFrom(value); + return this; + } + + /** + * optional .RogueScoreRewardInfo cur_score_reward_info = 10; + * @return whether the curScoreRewardInfo field is set + */ + public boolean hasCurScoreRewardInfo() { + return (bitField0_ & 0x00000800) != 0; + } + + /** + * optional .RogueScoreRewardInfo cur_score_reward_info = 10; + * @return this + */ + public RogueFinishInfo clearCurScoreRewardInfo() { + bitField0_ &= ~0x00000800; + curScoreRewardInfo.clear(); + return this; + } + + /** + * optional .RogueScoreRewardInfo cur_score_reward_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 #getMutableCurScoreRewardInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo getCurScoreRewardInfo() { + return curScoreRewardInfo; + } + + /** + * optional .RogueScoreRewardInfo cur_score_reward_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 RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo getMutableCurScoreRewardInfo() { + bitField0_ |= 0x00000800; + return curScoreRewardInfo; + } + + /** + * optional .RogueScoreRewardInfo cur_score_reward_info = 10; + * @param value the curScoreRewardInfo to set + * @return this + */ + public RogueFinishInfo setCurScoreRewardInfo( + final RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo value) { + bitField0_ |= 0x00000800; + curScoreRewardInfo.copyFrom(value); + return this; + } + + /** + * optional .ItemList LBLELCPPLCI = 13; + * @return whether the lBLELCPPLCI field is set + */ + public boolean hasLBLELCPPLCI() { + return (bitField0_ & 0x00001000) != 0; + } + + /** + * optional .ItemList LBLELCPPLCI = 13; + * @return this + */ + public RogueFinishInfo clearLBLELCPPLCI() { + bitField0_ &= ~0x00001000; + lBLELCPPLCI.clear(); + return this; + } + + /** + * optional .ItemList LBLELCPPLCI = 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 #getMutableLBLELCPPLCI()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ItemListOuterClass.ItemList getLBLELCPPLCI() { + return lBLELCPPLCI; + } + + /** + * optional .ItemList LBLELCPPLCI = 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 ItemListOuterClass.ItemList getMutableLBLELCPPLCI() { + bitField0_ |= 0x00001000; + return lBLELCPPLCI; + } + + /** + * optional .ItemList LBLELCPPLCI = 13; + * @param value the lBLELCPPLCI to set + * @return this + */ + public RogueFinishInfo setLBLELCPPLCI(final ItemListOuterClass.ItemList value) { + bitField0_ |= 0x00001000; + lBLELCPPLCI.copyFrom(value); + return this; + } + + /** + *
+     * MMOCIHBBOMA LDFFDAMFFFO = 11;
+     * 
+ * + * optional .ItemList IPNGMMIOJJB = 14; + * @return whether the iPNGMMIOJJB field is set + */ + public boolean hasIPNGMMIOJJB() { + return (bitField0_ & 0x00002000) != 0; + } + + /** + *
+     * MMOCIHBBOMA LDFFDAMFFFO = 11;
+     * 
+ * + * optional .ItemList IPNGMMIOJJB = 14; + * @return this + */ + public RogueFinishInfo clearIPNGMMIOJJB() { + bitField0_ &= ~0x00002000; + iPNGMMIOJJB.clear(); + return this; + } + + /** + *
+     * MMOCIHBBOMA LDFFDAMFFFO = 11;
+     * 
+ * + * optional .ItemList IPNGMMIOJJB = 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 #getMutableIPNGMMIOJJB()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ItemListOuterClass.ItemList getIPNGMMIOJJB() { + return iPNGMMIOJJB; + } + + /** + *
+     * MMOCIHBBOMA LDFFDAMFFFO = 11;
+     * 
+ * + * optional .ItemList IPNGMMIOJJB = 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 ItemListOuterClass.ItemList getMutableIPNGMMIOJJB() { + bitField0_ |= 0x00002000; + return iPNGMMIOJJB; + } + + /** + *
+     * MMOCIHBBOMA LDFFDAMFFFO = 11;
+     * 
+ * + * optional .ItemList IPNGMMIOJJB = 14; + * @param value the iPNGMMIOJJB to set + * @return this + */ + public RogueFinishInfo setIPNGMMIOJJB(final ItemListOuterClass.ItemList value) { + bitField0_ |= 0x00002000; + iPNGMMIOJJB.copyFrom(value); + return this; + } + + /** + * optional .RogueRecordInfo record_info = 15; + * @return whether the recordInfo field is set + */ + public boolean hasRecordInfo() { + return (bitField0_ & 0x00004000) != 0; + } + + /** + * optional .RogueRecordInfo record_info = 15; * @return this */ public RogueFinishInfo clearRecordInfo() { - bitField0_ &= ~0x00000200; + bitField0_ &= ~0x00004000; recordInfo.clear(); return this; } /** - * optional .RogueRecordInfo record_info = 7; + * optional .RogueRecordInfo record_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. @@ -464,7 +800,7 @@ public final class RogueFinishInfoOuterClass { } /** - * optional .RogueRecordInfo record_info = 7; + * optional .RogueRecordInfo record_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 @@ -473,17 +809,17 @@ public final class RogueFinishInfoOuterClass { * @return internal storage object for modifications */ public RogueRecordInfoOuterClass.RogueRecordInfo getMutableRecordInfo() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00004000; return recordInfo; } /** - * optional .RogueRecordInfo record_info = 7; + * optional .RogueRecordInfo record_info = 15; * @param value the recordInfo to set * @return this */ public RogueFinishInfo setRecordInfo(final RogueRecordInfoOuterClass.RogueRecordInfo value) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00004000; recordInfo.copyFrom(value); return this; } @@ -493,15 +829,20 @@ public final class RogueFinishInfoOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - passRoomCount = other.passRoomCount; - talentCoin = other.talentCoin; totalScore = other.totalScore; - roomScore = other.roomScore; - areaFirstPassScore = other.areaFirstPassScore; - reachRoomCount = other.reachRoomCount; + aNBFGOKNEIA = other.aNBFGOKNEIA; + takenScore = other.takenScore; + bCKPHBOPCCN = other.bCKPHBOPCCN; + passRoomCount = other.passRoomCount; areaId = other.areaId; + reachRoomCount = other.reachRoomCount; + bFCBHPCPAOI = other.bFCBHPCPAOI; isWin = other.isWin; - finishRewardList.copyFrom(other.finishRewardList); + iCOCLPBLFNN.copyFrom(other.iCOCLPBLFNN); + scoreRewardInfo.copyFrom(other.scoreRewardInfo); + curScoreRewardInfo.copyFrom(other.curScoreRewardInfo); + lBLELCPPLCI.copyFrom(other.lBLELCPPLCI); + iPNGMMIOJJB.copyFrom(other.iPNGMMIOJJB); recordInfo.copyFrom(other.recordInfo); } return this; @@ -513,32 +854,47 @@ public final class RogueFinishInfoOuterClass { return this; } cachedSize = -1; - if (other.hasPassRoomCount()) { - setPassRoomCount(other.passRoomCount); - } - if (other.hasTalentCoin()) { - setTalentCoin(other.talentCoin); - } if (other.hasTotalScore()) { setTotalScore(other.totalScore); } - if (other.hasRoomScore()) { - setRoomScore(other.roomScore); + if (other.hasANBFGOKNEIA()) { + setANBFGOKNEIA(other.aNBFGOKNEIA); } - if (other.hasAreaFirstPassScore()) { - setAreaFirstPassScore(other.areaFirstPassScore); + if (other.hasTakenScore()) { + setTakenScore(other.takenScore); } - if (other.hasReachRoomCount()) { - setReachRoomCount(other.reachRoomCount); + if (other.hasBCKPHBOPCCN()) { + setBCKPHBOPCCN(other.bCKPHBOPCCN); + } + if (other.hasPassRoomCount()) { + setPassRoomCount(other.passRoomCount); } if (other.hasAreaId()) { setAreaId(other.areaId); } + if (other.hasReachRoomCount()) { + setReachRoomCount(other.reachRoomCount); + } + if (other.hasBFCBHPCPAOI()) { + setBFCBHPCPAOI(other.bFCBHPCPAOI); + } if (other.hasIsWin()) { setIsWin(other.isWin); } - if (other.hasFinishRewardList()) { - getMutableFinishRewardList().mergeFrom(other.finishRewardList); + if (other.hasICOCLPBLFNN()) { + getMutableICOCLPBLFNN().mergeFrom(other.iCOCLPBLFNN); + } + if (other.hasScoreRewardInfo()) { + getMutableScoreRewardInfo().mergeFrom(other.scoreRewardInfo); + } + if (other.hasCurScoreRewardInfo()) { + getMutableCurScoreRewardInfo().mergeFrom(other.curScoreRewardInfo); + } + if (other.hasLBLELCPPLCI()) { + getMutableLBLELCPPLCI().mergeFrom(other.lBLELCPPLCI); + } + if (other.hasIPNGMMIOJJB()) { + getMutableIPNGMMIOJJB().mergeFrom(other.iPNGMMIOJJB); } if (other.hasRecordInfo()) { getMutableRecordInfo().mergeFrom(other.recordInfo); @@ -553,15 +909,20 @@ public final class RogueFinishInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - passRoomCount = 0; - talentCoin = 0; totalScore = 0; - roomScore = 0; - areaFirstPassScore = 0; - reachRoomCount = 0; + aNBFGOKNEIA = 0; + takenScore = 0; + bCKPHBOPCCN = 0; + passRoomCount = 0; areaId = 0; + reachRoomCount = 0; + bFCBHPCPAOI = false; isWin = false; - finishRewardList.clear(); + iCOCLPBLFNN.clear(); + scoreRewardInfo.clear(); + curScoreRewardInfo.clear(); + lBLELCPPLCI.clear(); + iPNGMMIOJJB.clear(); recordInfo.clear(); return this; } @@ -573,7 +934,11 @@ public final class RogueFinishInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - finishRewardList.clearQuick(); + iCOCLPBLFNN.clearQuick(); + scoreRewardInfo.clearQuick(); + curScoreRewardInfo.clearQuick(); + lBLELCPPLCI.clearQuick(); + iPNGMMIOJJB.clearQuick(); recordInfo.clearQuick(); return this; } @@ -588,58 +953,83 @@ public final class RogueFinishInfoOuterClass { } RogueFinishInfo other = (RogueFinishInfo) o; return bitField0_ == other.bitField0_ - && (!hasPassRoomCount() || passRoomCount == other.passRoomCount) - && (!hasTalentCoin() || talentCoin == other.talentCoin) && (!hasTotalScore() || totalScore == other.totalScore) - && (!hasRoomScore() || roomScore == other.roomScore) - && (!hasAreaFirstPassScore() || areaFirstPassScore == other.areaFirstPassScore) - && (!hasReachRoomCount() || reachRoomCount == other.reachRoomCount) + && (!hasANBFGOKNEIA() || aNBFGOKNEIA == other.aNBFGOKNEIA) + && (!hasTakenScore() || takenScore == other.takenScore) + && (!hasBCKPHBOPCCN() || bCKPHBOPCCN == other.bCKPHBOPCCN) + && (!hasPassRoomCount() || passRoomCount == other.passRoomCount) && (!hasAreaId() || areaId == other.areaId) + && (!hasReachRoomCount() || reachRoomCount == other.reachRoomCount) + && (!hasBFCBHPCPAOI() || bFCBHPCPAOI == other.bFCBHPCPAOI) && (!hasIsWin() || isWin == other.isWin) - && (!hasFinishRewardList() || finishRewardList.equals(other.finishRewardList)) + && (!hasICOCLPBLFNN() || iCOCLPBLFNN.equals(other.iCOCLPBLFNN)) + && (!hasScoreRewardInfo() || scoreRewardInfo.equals(other.scoreRewardInfo)) + && (!hasCurScoreRewardInfo() || curScoreRewardInfo.equals(other.curScoreRewardInfo)) + && (!hasLBLELCPPLCI() || lBLELCPPLCI.equals(other.lBLELCPPLCI)) + && (!hasIPNGMMIOJJB() || iPNGMMIOJJB.equals(other.iPNGMMIOJJB)) && (!hasRecordInfo() || recordInfo.equals(other.recordInfo)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 32); - output.writeUInt32NoTag(passRoomCount); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(talentCoin); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(totalScore); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(aNBFGOKNEIA); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(takenScore); + } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 88); - output.writeUInt32NoTag(roomScore); + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(bCKPHBOPCCN); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 112); - output.writeUInt32NoTag(areaFirstPassScore); + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(passRoomCount); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRawLittleEndian16((short) 17024); - output.writeUInt32NoTag(reachRoomCount); - } - if ((bitField0_ & 0x00000040) != 0) { - output.writeRawLittleEndian16((short) 27800); + output.writeRawLittleEndian16((short) 4256); output.writeUInt32NoTag(areaId); } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawLittleEndian16((short) 4344); + output.writeUInt32NoTag(reachRoomCount); + } if ((bitField0_ & 0x00000080) != 0) { - output.writeRawByte((byte) 120); - output.writeBoolNoTag(isWin); + output.writeRawByte((byte) 16); + output.writeBoolNoTag(bFCBHPCPAOI); } if ((bitField0_ & 0x00000100) != 0) { - output.writeRawByte((byte) 10); - output.writeMessageNoTag(finishRewardList); + output.writeRawByte((byte) 72); + output.writeBoolNoTag(isWin); } if ((bitField0_ & 0x00000200) != 0) { - output.writeRawByte((byte) 58); + output.writeRawByte((byte) 26); + output.writeMessageNoTag(iCOCLPBLFNN); + } + if ((bitField0_ & 0x00000400) != 0) { + output.writeRawByte((byte) 42); + output.writeMessageNoTag(scoreRewardInfo); + } + if ((bitField0_ & 0x00000800) != 0) { + output.writeRawByte((byte) 82); + output.writeMessageNoTag(curScoreRewardInfo); + } + if ((bitField0_ & 0x00001000) != 0) { + output.writeRawByte((byte) 106); + output.writeMessageNoTag(lBLELCPPLCI); + } + if ((bitField0_ & 0x00002000) != 0) { + output.writeRawByte((byte) 114); + output.writeMessageNoTag(iPNGMMIOJJB); + } + if ((bitField0_ & 0x00004000) != 0) { + output.writeRawByte((byte) 122); output.writeMessageNoTag(recordInfo); } } @@ -648,33 +1038,48 @@ public final class RogueFinishInfoOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(passRoomCount); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(talentCoin); - } - if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(totalScore); } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(aNBFGOKNEIA); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(takenScore); + } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(roomScore); + size += 1 + ProtoSink.computeUInt32SizeNoTag(bCKPHBOPCCN); } if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(areaFirstPassScore); + size += 1 + ProtoSink.computeUInt32SizeNoTag(passRoomCount); } if ((bitField0_ & 0x00000020) != 0) { - size += 2 + ProtoSink.computeUInt32SizeNoTag(reachRoomCount); + size += 2 + ProtoSink.computeUInt32SizeNoTag(areaId); } if ((bitField0_ & 0x00000040) != 0) { - size += 2 + ProtoSink.computeUInt32SizeNoTag(areaId); + size += 2 + ProtoSink.computeUInt32SizeNoTag(reachRoomCount); } if ((bitField0_ & 0x00000080) != 0) { size += 2; } if ((bitField0_ & 0x00000100) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(finishRewardList); + size += 2; } if ((bitField0_ & 0x00000200) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(iCOCLPBLFNN); + } + if ((bitField0_ & 0x00000400) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(scoreRewardInfo); + } + if ((bitField0_ & 0x00000800) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(curScoreRewardInfo); + } + if ((bitField0_ & 0x00001000) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(lBLELCPPLCI); + } + if ((bitField0_ & 0x00002000) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(iPNGMMIOJJB); + } + if ((bitField0_ & 0x00004000) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(recordInfo); } return size; @@ -687,91 +1092,136 @@ public final class RogueFinishInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 32: { - // passRoomCount - passRoomCount = input.readUInt32(); + case 8: { + // totalScore + totalScore = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // aNBFGOKNEIA + aNBFGOKNEIA = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // takenScore + takenScore = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); if (tag != 64) { break; } } case 64: { - // talentCoin - talentCoin = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 80) { - break; - } - } - case 80: { - // totalScore - totalScore = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 88) { - break; - } - } - case 88: { - // roomScore - roomScore = input.readUInt32(); + // bCKPHBOPCCN + bCKPHBOPCCN = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 112) { + if (tag != 96) { break; } } - case 112: { - // areaFirstPassScore - areaFirstPassScore = input.readUInt32(); + case 96: { + // passRoomCount + passRoomCount = input.readUInt32(); bitField0_ |= 0x00000010; tag = input.readTag(); - if (tag != 8448) { + if (tag != 2080) { break; } } - case 8448: { - // reachRoomCount - reachRoomCount = input.readUInt32(); - bitField0_ |= 0x00000020; - tag = input.readTag(); - if (tag != 13848) { - break; - } - } - case 13848: { + case 2080: { // areaId areaId = input.readUInt32(); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 2168) { + break; + } + } + case 2168: { + // reachRoomCount + reachRoomCount = input.readUInt32(); bitField0_ |= 0x00000040; tag = input.readTag(); - if (tag != 120) { + if (tag != 16) { break; } } - case 120: { - // isWin - isWin = input.readBool(); + case 16: { + // bFCBHPCPAOI + bFCBHPCPAOI = input.readBool(); bitField0_ |= 0x00000080; tag = input.readTag(); - if (tag != 10) { + if (tag != 72) { break; } } - case 10: { - // finishRewardList - input.readMessage(finishRewardList); + case 72: { + // isWin + isWin = input.readBool(); bitField0_ |= 0x00000100; tag = input.readTag(); - if (tag != 58) { + if (tag != 26) { break; } } - case 58: { + case 26: { + // iCOCLPBLFNN + input.readMessage(iCOCLPBLFNN); + bitField0_ |= 0x00000200; + tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { + // scoreRewardInfo + input.readMessage(scoreRewardInfo); + bitField0_ |= 0x00000400; + tag = input.readTag(); + if (tag != 82) { + break; + } + } + case 82: { + // curScoreRewardInfo + input.readMessage(curScoreRewardInfo); + bitField0_ |= 0x00000800; + tag = input.readTag(); + if (tag != 106) { + break; + } + } + case 106: { + // lBLELCPPLCI + input.readMessage(lBLELCPPLCI); + bitField0_ |= 0x00001000; + tag = input.readTag(); + if (tag != 114) { + break; + } + } + case 114: { + // iPNGMMIOJJB + input.readMessage(iPNGMMIOJJB); + bitField0_ |= 0x00002000; + tag = input.readTag(); + if (tag != 122) { + break; + } + } + case 122: { // recordInfo input.readMessage(recordInfo); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00004000; tag = input.readTag(); if (tag != 0) { break; @@ -795,33 +1245,48 @@ public final class RogueFinishInfoOuterClass { 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.talentCoin, talentCoin); - } - if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.totalScore, totalScore); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.aNBFGOKNEIA, aNBFGOKNEIA); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.takenScore, takenScore); + } if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.roomScore, roomScore); + output.writeUInt32(FieldNames.bCKPHBOPCCN, bCKPHBOPCCN); } if ((bitField0_ & 0x00000010) != 0) { - output.writeUInt32(FieldNames.areaFirstPassScore, areaFirstPassScore); + output.writeUInt32(FieldNames.passRoomCount, passRoomCount); } if ((bitField0_ & 0x00000020) != 0) { - output.writeUInt32(FieldNames.reachRoomCount, reachRoomCount); - } - if ((bitField0_ & 0x00000040) != 0) { output.writeUInt32(FieldNames.areaId, areaId); } + if ((bitField0_ & 0x00000040) != 0) { + output.writeUInt32(FieldNames.reachRoomCount, reachRoomCount); + } if ((bitField0_ & 0x00000080) != 0) { - output.writeBool(FieldNames.isWin, isWin); + output.writeBool(FieldNames.bFCBHPCPAOI, bFCBHPCPAOI); } if ((bitField0_ & 0x00000100) != 0) { - output.writeMessage(FieldNames.finishRewardList, finishRewardList); + output.writeBool(FieldNames.isWin, isWin); } if ((bitField0_ & 0x00000200) != 0) { + output.writeMessage(FieldNames.iCOCLPBLFNN, iCOCLPBLFNN); + } + if ((bitField0_ & 0x00000400) != 0) { + output.writeMessage(FieldNames.scoreRewardInfo, scoreRewardInfo); + } + if ((bitField0_ & 0x00000800) != 0) { + output.writeMessage(FieldNames.curScoreRewardInfo, curScoreRewardInfo); + } + if ((bitField0_ & 0x00001000) != 0) { + output.writeMessage(FieldNames.lBLELCPPLCI, lBLELCPPLCI); + } + if ((bitField0_ & 0x00002000) != 0) { + output.writeMessage(FieldNames.iPNGMMIOJJB, iPNGMMIOJJB); + } + if ((bitField0_ & 0x00004000) != 0) { output.writeMessage(FieldNames.recordInfo, recordInfo); } output.endObject(); @@ -834,11 +1299,11 @@ public final class RogueFinishInfoOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 430108643: - case 173887897: { - if (input.isAtField(FieldNames.passRoomCount)) { + case -716972626: + case -393348649: { + if (input.isAtField(FieldNames.totalScore)) { if (!input.trySkipNullValue()) { - passRoomCount = input.readUInt32(); + totalScore = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -846,11 +1311,10 @@ public final class RogueFinishInfoOuterClass { } break; } - case 1396800925: - case 376662532: { - if (input.isAtField(FieldNames.talentCoin)) { + case 345467297: { + if (input.isAtField(FieldNames.aNBFGOKNEIA)) { if (!input.trySkipNullValue()) { - talentCoin = input.readUInt32(); + aNBFGOKNEIA = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -858,11 +1322,11 @@ public final class RogueFinishInfoOuterClass { } break; } - case -716972626: - case -393348649: { - if (input.isAtField(FieldNames.totalScore)) { + case -375532021: + case 1601375514: { + if (input.isAtField(FieldNames.takenScore)) { if (!input.trySkipNullValue()) { - totalScore = input.readUInt32(); + takenScore = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -870,11 +1334,10 @@ public final class RogueFinishInfoOuterClass { } break; } - case -1078976905: - case 1269420590: { - if (input.isAtField(FieldNames.roomScore)) { + case -1904713331: { + if (input.isAtField(FieldNames.bCKPHBOPCCN)) { if (!input.trySkipNullValue()) { - roomScore = input.readUInt32(); + bCKPHBOPCCN = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -882,11 +1345,11 @@ public final class RogueFinishInfoOuterClass { } break; } - case 1195131422: - case -789838011: { - if (input.isAtField(FieldNames.areaFirstPassScore)) { + case 430108643: + case 173887897: { + if (input.isAtField(FieldNames.passRoomCount)) { if (!input.trySkipNullValue()) { - areaFirstPassScore = input.readUInt32(); + passRoomCount = input.readUInt32(); bitField0_ |= 0x00000010; } } else { @@ -894,23 +1357,23 @@ public final class RogueFinishInfoOuterClass { } break; } - case -1588434751: - case 1678904055: { - if (input.isAtField(FieldNames.reachRoomCount)) { - if (!input.trySkipNullValue()) { - reachRoomCount = input.readUInt32(); - bitField0_ |= 0x00000020; - } - } else { - input.skipUnknownField(); - } - break; - } case -1409553784: case -746472947: { if (input.isAtField(FieldNames.areaId)) { if (!input.trySkipNullValue()) { areaId = input.readUInt32(); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1588434751: + case 1678904055: { + if (input.isAtField(FieldNames.reachRoomCount)) { + if (!input.trySkipNullValue()) { + reachRoomCount = input.readUInt32(); bitField0_ |= 0x00000040; } } else { @@ -918,24 +1381,80 @@ public final class RogueFinishInfoOuterClass { } break; } + case 840663363: { + if (input.isAtField(FieldNames.bFCBHPCPAOI)) { + if (!input.trySkipNullValue()) { + bFCBHPCPAOI = input.readBool(); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } case 100482642: case -1179753657: { if (input.isAtField(FieldNames.isWin)) { if (!input.trySkipNullValue()) { isWin = input.readBool(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; } } else { input.skipUnknownField(); } break; } - case 1769558368: - case -1681136126: { - if (input.isAtField(FieldNames.finishRewardList)) { + case -1776318262: { + if (input.isAtField(FieldNames.iCOCLPBLFNN)) { if (!input.trySkipNullValue()) { - input.readMessage(finishRewardList); - bitField0_ |= 0x00000100; + input.readMessage(iCOCLPBLFNN); + bitField0_ |= 0x00000200; + } + } else { + input.skipUnknownField(); + } + break; + } + case 672564399: + case 751191441: { + if (input.isAtField(FieldNames.scoreRewardInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(scoreRewardInfo); + bitField0_ |= 0x00000400; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1101722191: + case 1894162770: { + if (input.isAtField(FieldNames.curScoreRewardInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(curScoreRewardInfo); + bitField0_ |= 0x00000800; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1578200140: { + if (input.isAtField(FieldNames.lBLELCPPLCI)) { + if (!input.trySkipNullValue()) { + input.readMessage(lBLELCPPLCI); + bitField0_ |= 0x00001000; + } + } else { + input.skipUnknownField(); + } + break; + } + case 960908636: { + if (input.isAtField(FieldNames.iPNGMMIOJJB)) { + if (!input.trySkipNullValue()) { + input.readMessage(iPNGMMIOJJB); + bitField0_ |= 0x00002000; } } else { input.skipUnknownField(); @@ -947,7 +1466,7 @@ public final class RogueFinishInfoOuterClass { if (input.isAtField(FieldNames.recordInfo)) { if (!input.trySkipNullValue()) { input.readMessage(recordInfo); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00004000; } } else { input.skipUnknownField(); @@ -1007,23 +1526,33 @@ public final class RogueFinishInfoOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName passRoomCount = FieldName.forField("passRoomCount", "pass_room_count"); - - static final FieldName talentCoin = FieldName.forField("talentCoin", "talent_coin"); - static final FieldName totalScore = FieldName.forField("totalScore", "total_score"); - static final FieldName roomScore = FieldName.forField("roomScore", "room_score"); + static final FieldName aNBFGOKNEIA = FieldName.forField("ANBFGOKNEIA"); - static final FieldName areaFirstPassScore = FieldName.forField("areaFirstPassScore", "area_first_pass_score"); + static final FieldName takenScore = FieldName.forField("takenScore", "taken_score"); - static final FieldName reachRoomCount = FieldName.forField("reachRoomCount", "reach_room_count"); + static final FieldName bCKPHBOPCCN = FieldName.forField("BCKPHBOPCCN"); + + static final FieldName passRoomCount = FieldName.forField("passRoomCount", "pass_room_count"); static final FieldName areaId = FieldName.forField("areaId", "area_id"); + static final FieldName reachRoomCount = FieldName.forField("reachRoomCount", "reach_room_count"); + + static final FieldName bFCBHPCPAOI = FieldName.forField("BFCBHPCPAOI"); + static final FieldName isWin = FieldName.forField("isWin", "is_win"); - static final FieldName finishRewardList = FieldName.forField("finishRewardList", "finish_reward_list"); + static final FieldName iCOCLPBLFNN = FieldName.forField("ICOCLPBLFNN"); + + static final FieldName scoreRewardInfo = FieldName.forField("scoreRewardInfo", "score_reward_info"); + + static final FieldName curScoreRewardInfo = FieldName.forField("curScoreRewardInfo", "cur_score_reward_info"); + + static final FieldName lBLELCPPLCI = FieldName.forField("LBLELCPPLCI"); + + static final FieldName iPNGMMIOJJB = FieldName.forField("IPNGMMIOJJB"); static final FieldName recordInfo = FieldName.forField("recordInfo", "record_info"); } diff --git a/src/generated/main/emu/lunarcore/proto/RogueHandbookBuffOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueHandbookBuffOuterClass.java new file mode 100644 index 0000000..2b11682 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueHandbookBuffOuterClass.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 RogueHandbookBuffOuterClass { + /** + * Protobuf type {@code RogueHandbookBuff} + */ + public static final class RogueHandbookBuff extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 buff_id = 8; + */ + private int buffId; + + private RogueHandbookBuff() { + } + + /** + * @return a new empty instance of {@code RogueHandbookBuff} + */ + public static RogueHandbookBuff newInstance() { + return new RogueHandbookBuff(); + } + + /** + * optional uint32 buff_id = 8; + * @return whether the buffId field is set + */ + public boolean hasBuffId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 buff_id = 8; + * @return this + */ + public RogueHandbookBuff clearBuffId() { + bitField0_ &= ~0x00000001; + 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 RogueHandbookBuff setBuffId(final int value) { + bitField0_ |= 0x00000001; + buffId = value; + return this; + } + + @Override + public RogueHandbookBuff copyFrom(final RogueHandbookBuff other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + buffId = other.buffId; + } + return this; + } + + @Override + public RogueHandbookBuff mergeFrom(final RogueHandbookBuff other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBuffId()) { + setBuffId(other.buffId); + } + return this; + } + + @Override + public RogueHandbookBuff clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + buffId = 0; + return this; + } + + @Override + public RogueHandbookBuff 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 RogueHandbookBuff)) { + return false; + } + RogueHandbookBuff other = (RogueHandbookBuff) 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) 64); + 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 RogueHandbookBuff mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 64: { + // 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 RogueHandbookBuff 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 RogueHandbookBuff clone() { + return new RogueHandbookBuff().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueHandbookBuff parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueHandbookBuff(), data).checkInitialized(); + } + + public static RogueHandbookBuff parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueHandbookBuff(), input).checkInitialized(); + } + + public static RogueHandbookBuff parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueHandbookBuff(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueHandbookBuff messages + */ + public static MessageFactory getFactory() { + return RogueHandbookBuffFactory.INSTANCE; + } + + private enum RogueHandbookBuffFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueHandbookBuff create() { + return RogueHandbookBuff.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/RogueHandbookDataOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueHandbookDataOuterClass.java index 0496d53..0fb76ac 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueHandbookDataOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RogueHandbookDataOuterClass.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.RepeatedMessage; public final class RogueHandbookDataOuterClass { /** @@ -19,14 +20,23 @@ public final class RogueHandbookDataOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 rogue_current_version = 4; + * repeated .RogueHandbookEvent rogue_event = 2; */ - private int rogueCurrentVersion; + private final RepeatedMessage rogueEvent = RepeatedMessage.newEmptyInstance(RogueHandbookEventOuterClass.RogueHandbookEvent.getFactory()); /** - * optional bool is_miracle_unlock = 10; + *
+     * repeated LDIFLJKIBPN NJOOMMNBEBP = 3;
+     * 
+ * + * repeated .RogueHandbookBuff buff_list = 13; */ - private boolean isMiracleUnlock; + private final RepeatedMessage buffList = RepeatedMessage.newEmptyInstance(RogueHandbookBuffOuterClass.RogueHandbookBuff.getFactory()); + + /** + * repeated .RogueHandbookMiracle miracle_list = 15; + */ + private final RepeatedMessage miracleList = RepeatedMessage.newEmptyInstance(RogueHandbookMiracleOuterClass.RogueHandbookMiracle.getFactory()); private RogueHandbookData() { } @@ -39,76 +49,237 @@ public final class RogueHandbookDataOuterClass { } /** - * optional uint32 rogue_current_version = 4; - * @return whether the rogueCurrentVersion field is set + * repeated .RogueHandbookEvent rogue_event = 2; + * @return whether the rogueEvent field is set */ - public boolean hasRogueCurrentVersion() { + public boolean hasRogueEvent() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 rogue_current_version = 4; + * repeated .RogueHandbookEvent rogue_event = 2; * @return this */ - public RogueHandbookData clearRogueCurrentVersion() { + public RogueHandbookData clearRogueEvent() { bitField0_ &= ~0x00000001; - rogueCurrentVersion = 0; + rogueEvent.clear(); return this; } /** - * optional uint32 rogue_current_version = 4; - * @return the rogueCurrentVersion + * repeated .RogueHandbookEvent rogue_event = 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 #getMutableRogueEvent()} if you want to modify it. + * + * @return internal storage object for reading */ - public int getRogueCurrentVersion() { - return rogueCurrentVersion; + public RepeatedMessage getRogueEvent() { + return rogueEvent; } /** - * optional uint32 rogue_current_version = 4; - * @param value the rogueCurrentVersion to set + * repeated .RogueHandbookEvent rogue_event = 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 getMutableRogueEvent() { + bitField0_ |= 0x00000001; + return rogueEvent; + } + + /** + * repeated .RogueHandbookEvent rogue_event = 2; + * @param value the rogueEvent to add * @return this */ - public RogueHandbookData setRogueCurrentVersion(final int value) { + public RogueHandbookData addRogueEvent( + final RogueHandbookEventOuterClass.RogueHandbookEvent value) { bitField0_ |= 0x00000001; - rogueCurrentVersion = value; + rogueEvent.add(value); return this; } /** - * optional bool is_miracle_unlock = 10; - * @return whether the isMiracleUnlock field is set + * repeated .RogueHandbookEvent rogue_event = 2; + * @param values the rogueEvent to add + * @return this */ - public boolean hasIsMiracleUnlock() { + public RogueHandbookData addAllRogueEvent( + final RogueHandbookEventOuterClass.RogueHandbookEvent... values) { + bitField0_ |= 0x00000001; + rogueEvent.addAll(values); + return this; + } + + /** + *
+     * repeated LDIFLJKIBPN NJOOMMNBEBP = 3;
+     * 
+ * + * repeated .RogueHandbookBuff buff_list = 13; + * @return whether the buffList field is set + */ + public boolean hasBuffList() { return (bitField0_ & 0x00000002) != 0; } /** - * optional bool is_miracle_unlock = 10; + *
+     * repeated LDIFLJKIBPN NJOOMMNBEBP = 3;
+     * 
+ * + * repeated .RogueHandbookBuff buff_list = 13; * @return this */ - public RogueHandbookData clearIsMiracleUnlock() { + public RogueHandbookData clearBuffList() { bitField0_ &= ~0x00000002; - isMiracleUnlock = false; + buffList.clear(); return this; } /** - * optional bool is_miracle_unlock = 10; - * @return the isMiracleUnlock + *
+     * repeated LDIFLJKIBPN NJOOMMNBEBP = 3;
+     * 
+ * + * repeated .RogueHandbookBuff 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 boolean getIsMiracleUnlock() { - return isMiracleUnlock; + public RepeatedMessage getBuffList() { + return buffList; } /** - * optional bool is_miracle_unlock = 10; - * @param value the isMiracleUnlock to set + *
+     * repeated LDIFLJKIBPN NJOOMMNBEBP = 3;
+     * 
+ * + * repeated .RogueHandbookBuff 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_ |= 0x00000002; + return buffList; + } + + /** + *
+     * repeated LDIFLJKIBPN NJOOMMNBEBP = 3;
+     * 
+ * + * repeated .RogueHandbookBuff buff_list = 13; + * @param value the buffList to add * @return this */ - public RogueHandbookData setIsMiracleUnlock(final boolean value) { + public RogueHandbookData addBuffList( + final RogueHandbookBuffOuterClass.RogueHandbookBuff value) { bitField0_ |= 0x00000002; - isMiracleUnlock = value; + buffList.add(value); + return this; + } + + /** + *
+     * repeated LDIFLJKIBPN NJOOMMNBEBP = 3;
+     * 
+ * + * repeated .RogueHandbookBuff buff_list = 13; + * @param values the buffList to add + * @return this + */ + public RogueHandbookData addAllBuffList( + final RogueHandbookBuffOuterClass.RogueHandbookBuff... values) { + bitField0_ |= 0x00000002; + buffList.addAll(values); + return this; + } + + /** + * repeated .RogueHandbookMiracle miracle_list = 15; + * @return whether the miracleList field is set + */ + public boolean hasMiracleList() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated .RogueHandbookMiracle miracle_list = 15; + * @return this + */ + public RogueHandbookData clearMiracleList() { + bitField0_ &= ~0x00000004; + miracleList.clear(); + return this; + } + + /** + * repeated .RogueHandbookMiracle miracle_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 #getMutableMiracleList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getMiracleList() { + return miracleList; + } + + /** + * repeated .RogueHandbookMiracle miracle_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 getMutableMiracleList( + ) { + bitField0_ |= 0x00000004; + return miracleList; + } + + /** + * repeated .RogueHandbookMiracle miracle_list = 15; + * @param value the miracleList to add + * @return this + */ + public RogueHandbookData addMiracleList( + final RogueHandbookMiracleOuterClass.RogueHandbookMiracle value) { + bitField0_ |= 0x00000004; + miracleList.add(value); + return this; + } + + /** + * repeated .RogueHandbookMiracle miracle_list = 15; + * @param values the miracleList to add + * @return this + */ + public RogueHandbookData addAllMiracleList( + final RogueHandbookMiracleOuterClass.RogueHandbookMiracle... values) { + bitField0_ |= 0x00000004; + miracleList.addAll(values); return this; } @@ -117,8 +288,9 @@ public final class RogueHandbookDataOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - rogueCurrentVersion = other.rogueCurrentVersion; - isMiracleUnlock = other.isMiracleUnlock; + rogueEvent.copyFrom(other.rogueEvent); + buffList.copyFrom(other.buffList); + miracleList.copyFrom(other.miracleList); } return this; } @@ -129,11 +301,14 @@ public final class RogueHandbookDataOuterClass { return this; } cachedSize = -1; - if (other.hasRogueCurrentVersion()) { - setRogueCurrentVersion(other.rogueCurrentVersion); + if (other.hasRogueEvent()) { + getMutableRogueEvent().addAll(other.rogueEvent); } - if (other.hasIsMiracleUnlock()) { - setIsMiracleUnlock(other.isMiracleUnlock); + if (other.hasBuffList()) { + getMutableBuffList().addAll(other.buffList); + } + if (other.hasMiracleList()) { + getMutableMiracleList().addAll(other.miracleList); } return this; } @@ -145,8 +320,9 @@ public final class RogueHandbookDataOuterClass { } cachedSize = -1; bitField0_ = 0; - rogueCurrentVersion = 0; - isMiracleUnlock = false; + rogueEvent.clear(); + buffList.clear(); + miracleList.clear(); return this; } @@ -157,6 +333,9 @@ public final class RogueHandbookDataOuterClass { } cachedSize = -1; bitField0_ = 0; + rogueEvent.clearQuick(); + buffList.clearQuick(); + miracleList.clearQuick(); return this; } @@ -170,19 +349,30 @@ public final class RogueHandbookDataOuterClass { } RogueHandbookData other = (RogueHandbookData) o; return bitField0_ == other.bitField0_ - && (!hasRogueCurrentVersion() || rogueCurrentVersion == other.rogueCurrentVersion) - && (!hasIsMiracleUnlock() || isMiracleUnlock == other.isMiracleUnlock); + && (!hasRogueEvent() || rogueEvent.equals(other.rogueEvent)) + && (!hasBuffList() || buffList.equals(other.buffList)) + && (!hasMiracleList() || miracleList.equals(other.miracleList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 32); - output.writeUInt32NoTag(rogueCurrentVersion); + for (int i = 0; i < rogueEvent.length(); i++) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(rogueEvent.get(i)); + } } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 80); - output.writeBoolNoTag(isMiracleUnlock); + for (int i = 0; i < buffList.length(); i++) { + output.writeRawByte((byte) 106); + output.writeMessageNoTag(buffList.get(i)); + } + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < miracleList.length(); i++) { + output.writeRawByte((byte) 122); + output.writeMessageNoTag(miracleList.get(i)); + } } } @@ -190,10 +380,13 @@ public final class RogueHandbookDataOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(rogueCurrentVersion); + size += (1 * rogueEvent.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(rogueEvent); } if ((bitField0_ & 0x00000002) != 0) { - size += 2; + size += (1 * buffList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(buffList); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * miracleList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(miracleList); } return size; } @@ -205,20 +398,26 @@ public final class RogueHandbookDataOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 32: { - // rogueCurrentVersion - rogueCurrentVersion = input.readUInt32(); + case 18: { + // rogueEvent + tag = input.readRepeatedMessage(rogueEvent, tag); bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 80) { + if (tag != 106) { break; } } - case 80: { - // isMiracleUnlock - isMiracleUnlock = input.readBool(); + case 106: { + // buffList + tag = input.readRepeatedMessage(buffList, tag); bitField0_ |= 0x00000002; - tag = input.readTag(); + if (tag != 122) { + break; + } + } + case 122: { + // miracleList + tag = input.readRepeatedMessage(miracleList, tag); + bitField0_ |= 0x00000004; if (tag != 0) { break; } @@ -241,10 +440,13 @@ public final class RogueHandbookDataOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.rogueCurrentVersion, rogueCurrentVersion); + output.writeRepeatedMessage(FieldNames.rogueEvent, rogueEvent); } if ((bitField0_ & 0x00000002) != 0) { - output.writeBool(FieldNames.isMiracleUnlock, isMiracleUnlock); + output.writeRepeatedMessage(FieldNames.buffList, buffList); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedMessage(FieldNames.miracleList, miracleList); } output.endObject(); } @@ -256,11 +458,11 @@ public final class RogueHandbookDataOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1261212057: - case 1302648749: { - if (input.isAtField(FieldNames.rogueCurrentVersion)) { + case -1148216096: + case -505804811: { + if (input.isAtField(FieldNames.rogueEvent)) { if (!input.trySkipNullValue()) { - rogueCurrentVersion = input.readUInt32(); + input.readRepeatedMessage(rogueEvent); bitField0_ |= 0x00000001; } } else { @@ -268,11 +470,11 @@ public final class RogueHandbookDataOuterClass { } break; } - case -1272353269: - case 167980679: { - if (input.isAtField(FieldNames.isMiracleUnlock)) { + case -1522789487: + case 55792906: { + if (input.isAtField(FieldNames.buffList)) { if (!input.trySkipNullValue()) { - isMiracleUnlock = input.readBool(); + input.readRepeatedMessage(buffList); bitField0_ |= 0x00000002; } } else { @@ -280,6 +482,18 @@ public final class RogueHandbookDataOuterClass { } 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; @@ -333,9 +547,11 @@ public final class RogueHandbookDataOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName rogueCurrentVersion = FieldName.forField("rogueCurrentVersion", "rogue_current_version"); + static final FieldName rogueEvent = FieldName.forField("rogueEvent", "rogue_event"); - static final FieldName isMiracleUnlock = FieldName.forField("isMiracleUnlock", "is_miracle_unlock"); + static final FieldName buffList = FieldName.forField("buffList", "buff_list"); + + static final FieldName miracleList = FieldName.forField("miracleList", "miracle_list"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/RogueHandbookEventOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueHandbookEventOuterClass.java new file mode 100644 index 0000000..071d6f2 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueHandbookEventOuterClass.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 RogueHandbookEventOuterClass { + /** + * Protobuf type {@code RogueHandbookEvent} + */ + public static final class RogueHandbookEvent extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 event_id = 6; + */ + private int eventId; + + /** + * optional bool is_unlocked = 13; + */ + private boolean isUnlocked; + + /** + * repeated uint32 MPFGCHIBGMO = 3; + */ + private final RepeatedInt mPFGCHIBGMO = RepeatedInt.newEmptyInstance(); + + private RogueHandbookEvent() { + } + + /** + * @return a new empty instance of {@code RogueHandbookEvent} + */ + public static RogueHandbookEvent newInstance() { + return new RogueHandbookEvent(); + } + + /** + * optional uint32 event_id = 6; + * @return whether the eventId field is set + */ + public boolean hasEventId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 event_id = 6; + * @return this + */ + public RogueHandbookEvent clearEventId() { + bitField0_ &= ~0x00000001; + eventId = 0; + return this; + } + + /** + * optional uint32 event_id = 6; + * @return the eventId + */ + public int getEventId() { + return eventId; + } + + /** + * optional uint32 event_id = 6; + * @param value the eventId to set + * @return this + */ + public RogueHandbookEvent setEventId(final int value) { + bitField0_ |= 0x00000001; + eventId = value; + return this; + } + + /** + * optional bool is_unlocked = 13; + * @return whether the isUnlocked field is set + */ + public boolean hasIsUnlocked() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bool is_unlocked = 13; + * @return this + */ + public RogueHandbookEvent clearIsUnlocked() { + bitField0_ &= ~0x00000002; + isUnlocked = false; + return this; + } + + /** + * optional bool is_unlocked = 13; + * @return the isUnlocked + */ + public boolean getIsUnlocked() { + return isUnlocked; + } + + /** + * optional bool is_unlocked = 13; + * @param value the isUnlocked to set + * @return this + */ + public RogueHandbookEvent setIsUnlocked(final boolean value) { + bitField0_ |= 0x00000002; + isUnlocked = value; + return this; + } + + /** + * repeated uint32 MPFGCHIBGMO = 3; + * @return whether the mPFGCHIBGMO field is set + */ + public boolean hasMPFGCHIBGMO() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated uint32 MPFGCHIBGMO = 3; + * @return this + */ + public RogueHandbookEvent clearMPFGCHIBGMO() { + bitField0_ &= ~0x00000004; + mPFGCHIBGMO.clear(); + return this; + } + + /** + * repeated uint32 MPFGCHIBGMO = 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 #getMutableMPFGCHIBGMO()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getMPFGCHIBGMO() { + return mPFGCHIBGMO; + } + + /** + * repeated uint32 MPFGCHIBGMO = 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 getMutableMPFGCHIBGMO() { + bitField0_ |= 0x00000004; + return mPFGCHIBGMO; + } + + /** + * repeated uint32 MPFGCHIBGMO = 3; + * @param value the mPFGCHIBGMO to add + * @return this + */ + public RogueHandbookEvent addMPFGCHIBGMO(final int value) { + bitField0_ |= 0x00000004; + mPFGCHIBGMO.add(value); + return this; + } + + /** + * repeated uint32 MPFGCHIBGMO = 3; + * @param values the mPFGCHIBGMO to add + * @return this + */ + public RogueHandbookEvent addAllMPFGCHIBGMO(final int... values) { + bitField0_ |= 0x00000004; + mPFGCHIBGMO.addAll(values); + return this; + } + + @Override + public RogueHandbookEvent copyFrom(final RogueHandbookEvent other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + eventId = other.eventId; + isUnlocked = other.isUnlocked; + mPFGCHIBGMO.copyFrom(other.mPFGCHIBGMO); + } + return this; + } + + @Override + public RogueHandbookEvent mergeFrom(final RogueHandbookEvent other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasEventId()) { + setEventId(other.eventId); + } + if (other.hasIsUnlocked()) { + setIsUnlocked(other.isUnlocked); + } + if (other.hasMPFGCHIBGMO()) { + getMutableMPFGCHIBGMO().addAll(other.mPFGCHIBGMO); + } + return this; + } + + @Override + public RogueHandbookEvent clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + eventId = 0; + isUnlocked = false; + mPFGCHIBGMO.clear(); + return this; + } + + @Override + public RogueHandbookEvent clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + mPFGCHIBGMO.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueHandbookEvent)) { + return false; + } + RogueHandbookEvent other = (RogueHandbookEvent) o; + return bitField0_ == other.bitField0_ + && (!hasEventId() || eventId == other.eventId) + && (!hasIsUnlocked() || isUnlocked == other.isUnlocked) + && (!hasMPFGCHIBGMO() || mPFGCHIBGMO.equals(other.mPFGCHIBGMO)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(eventId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 104); + output.writeBoolNoTag(isUnlocked); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < mPFGCHIBGMO.length(); i++) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(mPFGCHIBGMO.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(eventId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * mPFGCHIBGMO.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(mPFGCHIBGMO); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueHandbookEvent mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 48: { + // eventId + eventId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // isUnlocked + isUnlocked = input.readBool(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // mPFGCHIBGMO [packed=true] + input.readPackedUInt32(mPFGCHIBGMO, 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 24: { + // mPFGCHIBGMO [packed=false] + tag = input.readRepeatedUInt32(mPFGCHIBGMO, tag); + bitField0_ |= 0x00000004; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.eventId, eventId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBool(FieldNames.isUnlocked, isUnlocked); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedUInt32(FieldNames.mPFGCHIBGMO, mPFGCHIBGMO); + } + output.endObject(); + } + + @Override + public RogueHandbookEvent 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)) { + if (!input.trySkipNullValue()) { + eventId = 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; + } + case -785833721: { + if (input.isAtField(FieldNames.mPFGCHIBGMO)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(mPFGCHIBGMO); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueHandbookEvent clone() { + return new RogueHandbookEvent().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueHandbookEvent parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueHandbookEvent(), data).checkInitialized(); + } + + public static RogueHandbookEvent parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueHandbookEvent(), input).checkInitialized(); + } + + public static RogueHandbookEvent parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueHandbookEvent(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueHandbookEvent messages + */ + public static MessageFactory getFactory() { + return RogueHandbookEventFactory.INSTANCE; + } + + private enum RogueHandbookEventFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueHandbookEvent create() { + return RogueHandbookEvent.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName eventId = FieldName.forField("eventId", "event_id"); + + static final FieldName isUnlocked = FieldName.forField("isUnlocked", "is_unlocked"); + + static final FieldName mPFGCHIBGMO = FieldName.forField("MPFGCHIBGMO"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueHandbookMiracleOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueHandbookMiracleOuterClass.java new file mode 100644 index 0000000..c69ef93 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueHandbookMiracleOuterClass.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 RogueHandbookMiracleOuterClass { + /** + * Protobuf type {@code RogueHandbookMiracle} + */ + public static final class RogueHandbookMiracle extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 miracle_id = 10; + */ + private int miracleId; + + /** + * optional bool is_unlocked = 4; + */ + private boolean isUnlocked; + + private RogueHandbookMiracle() { + } + + /** + * @return a new empty instance of {@code RogueHandbookMiracle} + */ + public static RogueHandbookMiracle newInstance() { + return new RogueHandbookMiracle(); + } + + /** + * optional uint32 miracle_id = 10; + * @return whether the miracleId field is set + */ + public boolean hasMiracleId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 miracle_id = 10; + * @return this + */ + public RogueHandbookMiracle clearMiracleId() { + bitField0_ &= ~0x00000001; + miracleId = 0; + return this; + } + + /** + * optional uint32 miracle_id = 10; + * @return the miracleId + */ + public int getMiracleId() { + return miracleId; + } + + /** + * optional uint32 miracle_id = 10; + * @param value the miracleId to set + * @return this + */ + public RogueHandbookMiracle setMiracleId(final int value) { + bitField0_ |= 0x00000001; + miracleId = value; + return this; + } + + /** + * optional bool is_unlocked = 4; + * @return whether the isUnlocked field is set + */ + public boolean hasIsUnlocked() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bool is_unlocked = 4; + * @return this + */ + public RogueHandbookMiracle clearIsUnlocked() { + bitField0_ &= ~0x00000002; + isUnlocked = false; + return this; + } + + /** + * optional bool is_unlocked = 4; + * @return the isUnlocked + */ + public boolean getIsUnlocked() { + return isUnlocked; + } + + /** + * optional bool is_unlocked = 4; + * @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) 80); + output.writeUInt32NoTag(miracleId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 32); + 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 80: { + // miracleId + miracleId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // 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 index 10043ea..46342f2 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueInfoDataOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RogueInfoDataOuterClass.java @@ -19,15 +19,30 @@ public final class RogueInfoDataOuterClass { private static final long serialVersionUID = 0L; /** - * optional .RogueSeasonInfo rogue_season_info = 6; + * optional .RogueSeasonInfo rogue_season_info = 3; */ private final RogueSeasonInfoOuterClass.RogueSeasonInfo rogueSeasonInfo = RogueSeasonInfoOuterClass.RogueSeasonInfo.newInstance(); /** - * optional .RogueScoreRewardInfo rogue_score_info = 15; + * optional .RogueScoreRewardInfo rogue_score_info = 4; */ private final RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo rogueScoreInfo = RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo.newInstance(); + /** + * optional .RogueAreaInfo rogue_area_info = 7; + */ + private final RogueAreaInfoOuterClass.RogueAreaInfo rogueAreaInfo = RogueAreaInfoOuterClass.RogueAreaInfo.newInstance(); + + /** + * optional .DMBBFODODOF EEFGNNFCDNJ = 10; + */ + private final DMBBFODODOFOuterClass.DMBBFODODOF eEFGNNFCDNJ = DMBBFODODOFOuterClass.DMBBFODODOF.newInstance(); + + /** + * optional .RogueAeonInfo rogue_aeon_info = 11; + */ + private final RogueAeonInfoOuterClass.RogueAeonInfo rogueAeonInfo = RogueAeonInfoOuterClass.RogueAeonInfo.newInstance(); + private RogueInfoData() { } @@ -39,7 +54,7 @@ public final class RogueInfoDataOuterClass { } /** - * optional .RogueSeasonInfo rogue_season_info = 6; + * optional .RogueSeasonInfo rogue_season_info = 3; * @return whether the rogueSeasonInfo field is set */ public boolean hasRogueSeasonInfo() { @@ -47,7 +62,7 @@ public final class RogueInfoDataOuterClass { } /** - * optional .RogueSeasonInfo rogue_season_info = 6; + * optional .RogueSeasonInfo rogue_season_info = 3; * @return this */ public RogueInfoData clearRogueSeasonInfo() { @@ -57,7 +72,7 @@ public final class RogueInfoDataOuterClass { } /** - * optional .RogueSeasonInfo rogue_season_info = 6; + * optional .RogueSeasonInfo rogue_season_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. @@ -71,7 +86,7 @@ public final class RogueInfoDataOuterClass { } /** - * optional .RogueSeasonInfo rogue_season_info = 6; + * optional .RogueSeasonInfo rogue_season_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 @@ -85,7 +100,7 @@ public final class RogueInfoDataOuterClass { } /** - * optional .RogueSeasonInfo rogue_season_info = 6; + * optional .RogueSeasonInfo rogue_season_info = 3; * @param value the rogueSeasonInfo to set * @return this */ @@ -96,7 +111,7 @@ public final class RogueInfoDataOuterClass { } /** - * optional .RogueScoreRewardInfo rogue_score_info = 15; + * optional .RogueScoreRewardInfo rogue_score_info = 4; * @return whether the rogueScoreInfo field is set */ public boolean hasRogueScoreInfo() { @@ -104,7 +119,7 @@ public final class RogueInfoDataOuterClass { } /** - * optional .RogueScoreRewardInfo rogue_score_info = 15; + * optional .RogueScoreRewardInfo rogue_score_info = 4; * @return this */ public RogueInfoData clearRogueScoreInfo() { @@ -114,7 +129,7 @@ public final class RogueInfoDataOuterClass { } /** - * optional .RogueScoreRewardInfo rogue_score_info = 15; + * optional .RogueScoreRewardInfo rogue_score_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. @@ -128,7 +143,7 @@ public final class RogueInfoDataOuterClass { } /** - * optional .RogueScoreRewardInfo rogue_score_info = 15; + * optional .RogueScoreRewardInfo rogue_score_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 @@ -142,7 +157,7 @@ public final class RogueInfoDataOuterClass { } /** - * optional .RogueScoreRewardInfo rogue_score_info = 15; + * optional .RogueScoreRewardInfo rogue_score_info = 4; * @param value the rogueScoreInfo to set * @return this */ @@ -153,6 +168,177 @@ public final class RogueInfoDataOuterClass { return this; } + /** + * optional .RogueAreaInfo rogue_area_info = 7; + * @return whether the rogueAreaInfo field is set + */ + public boolean hasRogueAreaInfo() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .RogueAreaInfo rogue_area_info = 7; + * @return this + */ + public RogueInfoData clearRogueAreaInfo() { + bitField0_ &= ~0x00000004; + rogueAreaInfo.clear(); + return this; + } + + /** + * optional .RogueAreaInfo rogue_area_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 #getMutableRogueAreaInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueAreaInfoOuterClass.RogueAreaInfo getRogueAreaInfo() { + return rogueAreaInfo; + } + + /** + * optional .RogueAreaInfo rogue_area_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 RogueAreaInfoOuterClass.RogueAreaInfo getMutableRogueAreaInfo() { + bitField0_ |= 0x00000004; + return rogueAreaInfo; + } + + /** + * optional .RogueAreaInfo rogue_area_info = 7; + * @param value the rogueAreaInfo to set + * @return this + */ + public RogueInfoData setRogueAreaInfo(final RogueAreaInfoOuterClass.RogueAreaInfo value) { + bitField0_ |= 0x00000004; + rogueAreaInfo.copyFrom(value); + return this; + } + + /** + * optional .DMBBFODODOF EEFGNNFCDNJ = 10; + * @return whether the eEFGNNFCDNJ field is set + */ + public boolean hasEEFGNNFCDNJ() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .DMBBFODODOF EEFGNNFCDNJ = 10; + * @return this + */ + public RogueInfoData clearEEFGNNFCDNJ() { + bitField0_ &= ~0x00000008; + eEFGNNFCDNJ.clear(); + return this; + } + + /** + * optional .DMBBFODODOF EEFGNNFCDNJ = 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 #getMutableEEFGNNFCDNJ()} if you want to modify it. + * + * @return internal storage object for reading + */ + public DMBBFODODOFOuterClass.DMBBFODODOF getEEFGNNFCDNJ() { + return eEFGNNFCDNJ; + } + + /** + * optional .DMBBFODODOF EEFGNNFCDNJ = 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 DMBBFODODOFOuterClass.DMBBFODODOF getMutableEEFGNNFCDNJ() { + bitField0_ |= 0x00000008; + return eEFGNNFCDNJ; + } + + /** + * optional .DMBBFODODOF EEFGNNFCDNJ = 10; + * @param value the eEFGNNFCDNJ to set + * @return this + */ + public RogueInfoData setEEFGNNFCDNJ(final DMBBFODODOFOuterClass.DMBBFODODOF value) { + bitField0_ |= 0x00000008; + eEFGNNFCDNJ.copyFrom(value); + return this; + } + + /** + * optional .RogueAeonInfo rogue_aeon_info = 11; + * @return whether the rogueAeonInfo field is set + */ + public boolean hasRogueAeonInfo() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional .RogueAeonInfo rogue_aeon_info = 11; + * @return this + */ + public RogueInfoData clearRogueAeonInfo() { + bitField0_ &= ~0x00000010; + rogueAeonInfo.clear(); + return this; + } + + /** + * optional .RogueAeonInfo rogue_aeon_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 #getMutableRogueAeonInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueAeonInfoOuterClass.RogueAeonInfo getRogueAeonInfo() { + return rogueAeonInfo; + } + + /** + * optional .RogueAeonInfo rogue_aeon_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 RogueAeonInfoOuterClass.RogueAeonInfo getMutableRogueAeonInfo() { + bitField0_ |= 0x00000010; + return rogueAeonInfo; + } + + /** + * optional .RogueAeonInfo rogue_aeon_info = 11; + * @param value the rogueAeonInfo to set + * @return this + */ + public RogueInfoData setRogueAeonInfo(final RogueAeonInfoOuterClass.RogueAeonInfo value) { + bitField0_ |= 0x00000010; + rogueAeonInfo.copyFrom(value); + return this; + } + @Override public RogueInfoData copyFrom(final RogueInfoData other) { cachedSize = other.cachedSize; @@ -160,6 +346,9 @@ public final class RogueInfoDataOuterClass { bitField0_ = other.bitField0_; rogueSeasonInfo.copyFrom(other.rogueSeasonInfo); rogueScoreInfo.copyFrom(other.rogueScoreInfo); + rogueAreaInfo.copyFrom(other.rogueAreaInfo); + eEFGNNFCDNJ.copyFrom(other.eEFGNNFCDNJ); + rogueAeonInfo.copyFrom(other.rogueAeonInfo); } return this; } @@ -176,6 +365,15 @@ public final class RogueInfoDataOuterClass { if (other.hasRogueScoreInfo()) { getMutableRogueScoreInfo().mergeFrom(other.rogueScoreInfo); } + if (other.hasRogueAreaInfo()) { + getMutableRogueAreaInfo().mergeFrom(other.rogueAreaInfo); + } + if (other.hasEEFGNNFCDNJ()) { + getMutableEEFGNNFCDNJ().mergeFrom(other.eEFGNNFCDNJ); + } + if (other.hasRogueAeonInfo()) { + getMutableRogueAeonInfo().mergeFrom(other.rogueAeonInfo); + } return this; } @@ -188,6 +386,9 @@ public final class RogueInfoDataOuterClass { bitField0_ = 0; rogueSeasonInfo.clear(); rogueScoreInfo.clear(); + rogueAreaInfo.clear(); + eEFGNNFCDNJ.clear(); + rogueAeonInfo.clear(); return this; } @@ -200,6 +401,9 @@ public final class RogueInfoDataOuterClass { bitField0_ = 0; rogueSeasonInfo.clearQuick(); rogueScoreInfo.clearQuick(); + rogueAreaInfo.clearQuick(); + eEFGNNFCDNJ.clearQuick(); + rogueAeonInfo.clearQuick(); return this; } @@ -214,19 +418,34 @@ public final class RogueInfoDataOuterClass { RogueInfoData other = (RogueInfoData) o; return bitField0_ == other.bitField0_ && (!hasRogueSeasonInfo() || rogueSeasonInfo.equals(other.rogueSeasonInfo)) - && (!hasRogueScoreInfo() || rogueScoreInfo.equals(other.rogueScoreInfo)); + && (!hasRogueScoreInfo() || rogueScoreInfo.equals(other.rogueScoreInfo)) + && (!hasRogueAreaInfo() || rogueAreaInfo.equals(other.rogueAreaInfo)) + && (!hasEEFGNNFCDNJ() || eEFGNNFCDNJ.equals(other.eEFGNNFCDNJ)) + && (!hasRogueAeonInfo() || rogueAeonInfo.equals(other.rogueAeonInfo)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 50); + output.writeRawByte((byte) 26); output.writeMessageNoTag(rogueSeasonInfo); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 122); + output.writeRawByte((byte) 34); output.writeMessageNoTag(rogueScoreInfo); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 58); + output.writeMessageNoTag(rogueAreaInfo); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 82); + output.writeMessageNoTag(eEFGNNFCDNJ); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 90); + output.writeMessageNoTag(rogueAeonInfo); + } } @Override @@ -238,6 +457,15 @@ public final class RogueInfoDataOuterClass { if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(rogueScoreInfo); } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(rogueAreaInfo); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(eEFGNNFCDNJ); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(rogueAeonInfo); + } return size; } @@ -248,20 +476,47 @@ public final class RogueInfoDataOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 50: { + case 26: { // rogueSeasonInfo input.readMessage(rogueSeasonInfo); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 122) { + if (tag != 34) { break; } } - case 122: { + case 34: { // rogueScoreInfo input.readMessage(rogueScoreInfo); bitField0_ |= 0x00000002; tag = input.readTag(); + if (tag != 58) { + break; + } + } + case 58: { + // rogueAreaInfo + input.readMessage(rogueAreaInfo); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 82) { + break; + } + } + case 82: { + // eEFGNNFCDNJ + input.readMessage(eEFGNNFCDNJ); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 90) { + break; + } + } + case 90: { + // rogueAeonInfo + input.readMessage(rogueAeonInfo); + bitField0_ |= 0x00000010; + tag = input.readTag(); if (tag != 0) { break; } @@ -289,6 +544,15 @@ public final class RogueInfoDataOuterClass { if ((bitField0_ & 0x00000002) != 0) { output.writeMessage(FieldNames.rogueScoreInfo, rogueScoreInfo); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.rogueAreaInfo, rogueAreaInfo); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeMessage(FieldNames.eEFGNNFCDNJ, eEFGNNFCDNJ); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeMessage(FieldNames.rogueAeonInfo, rogueAeonInfo); + } output.endObject(); } @@ -323,6 +587,41 @@ public final class RogueInfoDataOuterClass { } break; } + case 964297429: + case -851505925: { + if (input.isAtField(FieldNames.rogueAreaInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(rogueAreaInfo); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -86806302: { + if (input.isAtField(FieldNames.eEFGNNFCDNJ)) { + if (!input.trySkipNullValue()) { + input.readMessage(eEFGNNFCDNJ); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1685018549: + case -1375922619: { + if (input.isAtField(FieldNames.rogueAeonInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(rogueAeonInfo); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } default: { input.skipUnknownField(); break; @@ -378,6 +677,12 @@ public final class RogueInfoDataOuterClass { static final FieldName rogueSeasonInfo = FieldName.forField("rogueSeasonInfo", "rogue_season_info"); static final FieldName rogueScoreInfo = FieldName.forField("rogueScoreInfo", "rogue_score_info"); + + static final FieldName rogueAreaInfo = FieldName.forField("rogueAreaInfo", "rogue_area_info"); + + static final FieldName eEFGNNFCDNJ = FieldName.forField("EEFGNNFCDNJ"); + + static final FieldName rogueAeonInfo = FieldName.forField("rogueAeonInfo", "rogue_aeon_info"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/RogueInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueInfoOuterClass.java index de390fa..ecbb40d 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RogueInfoOuterClass.java @@ -10,8 +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 RogueInfoOuterClass { /** @@ -21,69 +19,14 @@ public final class RogueInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional int64 begin_time = 6; + * optional .RogueInfoData rogue_info_data = 342; */ - private long beginTime; + private final RogueInfoDataOuterClass.RogueInfoData rogueInfoData = RogueInfoDataOuterClass.RogueInfoData.newInstance(); /** - * optional int64 end_time = 8; + * optional .RogueCurrentInfo rogue_current_info = 1466; */ - private long endTime; - - /** - * optional uint32 season_id = 1; - */ - private int seasonId; - - /** - * optional uint32 rogue_coin = 7; - */ - private int rogueCoin; - - /** - * optional .RogueStatus status = 4; - */ - private int status; - - /** - * optional .RogueVirtualItemInfo rogue_virtual_item_info = 2; - */ - private final RogueVirtualItemInfoOuterClass.RogueVirtualItemInfo rogueVirtualItemInfo = RogueVirtualItemInfoOuterClass.RogueVirtualItemInfo.newInstance(); - - /** - * optional .RogueScoreRewardInfo rogue_score_info = 1307; - */ - private final RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo rogueScoreInfo = RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo.newInstance(); - - /** - * optional .RogueCurrentInfo rogue_progress = 1483; - */ - private final RogueCurrentInfoOuterClass.RogueCurrentInfo rogueProgress = RogueCurrentInfoOuterClass.RogueCurrentInfo.newInstance(); - - /** - * optional .RogueMapInfo room_map = 1536; - */ - private final RogueMapInfoOuterClass.RogueMapInfo roomMap = RogueMapInfoOuterClass.RogueMapInfo.newInstance(); - - /** - * optional .RogueInfoData rogue_data = 2013; - */ - private final RogueInfoDataOuterClass.RogueInfoData rogueData = RogueInfoDataOuterClass.RogueInfoData.newInstance(); - - /** - * optional .RogueAeonInfo rogue_aeon_info = 2019; - */ - private final RogueAeonInfoOuterClass.RogueAeonInfo rogueAeonInfo = RogueAeonInfoOuterClass.RogueAeonInfo.newInstance(); - - /** - * repeated uint32 base_avatar_id_list = 14; - */ - private final RepeatedInt baseAvatarIdList = RepeatedInt.newEmptyInstance(); - - /** - * repeated .RogueArea rogue_area_list = 2009; - */ - private final RepeatedMessage rogueAreaList = RepeatedMessage.newEmptyInstance(RogueAreaOuterClass.RogueArea.getFactory()); + private final RogueCurrentInfoOuterClass.RogueCurrentInfo rogueCurrentInfo = RogueCurrentInfoOuterClass.RogueCurrentInfo.newInstance(); private RogueInfo() { } @@ -96,692 +39,116 @@ public final class RogueInfoOuterClass { } /** - * optional int64 begin_time = 6; - * @return whether the beginTime field is set + * optional .RogueInfoData rogue_info_data = 342; + * @return whether the rogueInfoData field is set */ - public boolean hasBeginTime() { + public boolean hasRogueInfoData() { return (bitField0_ & 0x00000001) != 0; } /** - * optional int64 begin_time = 6; + * optional .RogueInfoData rogue_info_data = 342; * @return this */ - public RogueInfo clearBeginTime() { + public RogueInfo clearRogueInfoData() { bitField0_ &= ~0x00000001; - beginTime = 0L; + rogueInfoData.clear(); return this; } /** - * optional int64 begin_time = 6; - * @return the beginTime + * optional .RogueInfoData rogue_info_data = 342; + * + * This method returns 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 long getBeginTime() { - return beginTime; + public RogueInfoDataOuterClass.RogueInfoData getRogueInfoData() { + return rogueInfoData; } /** - * optional int64 begin_time = 6; - * @param value the beginTime to set + * optional .RogueInfoData rogue_info_data = 342; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of 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 = 342; + * @param value the rogueInfoData to set * @return this */ - public RogueInfo setBeginTime(final long value) { + public RogueInfo setRogueInfoData(final RogueInfoDataOuterClass.RogueInfoData value) { bitField0_ |= 0x00000001; - beginTime = value; + rogueInfoData.copyFrom(value); return this; } /** - * optional int64 end_time = 8; - * @return whether the endTime field is set + * optional .RogueCurrentInfo rogue_current_info = 1466; + * @return whether the rogueCurrentInfo field is set */ - public boolean hasEndTime() { + public boolean hasRogueCurrentInfo() { return (bitField0_ & 0x00000002) != 0; } /** - * optional int64 end_time = 8; + * optional .RogueCurrentInfo rogue_current_info = 1466; * @return this */ - public RogueInfo clearEndTime() { + public RogueInfo clearRogueCurrentInfo() { bitField0_ &= ~0x00000002; - endTime = 0L; + rogueCurrentInfo.clear(); return this; } /** - * optional int64 end_time = 8; - * @return the endTime + * optional .RogueCurrentInfo rogue_current_info = 1466; + * + * This method returns 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 long getEndTime() { - return endTime; + public RogueCurrentInfoOuterClass.RogueCurrentInfo getRogueCurrentInfo() { + return rogueCurrentInfo; } /** - * optional int64 end_time = 8; - * @param value the endTime to set - * @return this + * optional .RogueCurrentInfo rogue_current_info = 1466; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications */ - public RogueInfo setEndTime(final long value) { + public RogueCurrentInfoOuterClass.RogueCurrentInfo getMutableRogueCurrentInfo() { bitField0_ |= 0x00000002; - endTime = value; - return this; + return rogueCurrentInfo; } /** - * optional uint32 season_id = 1; - * @return whether the seasonId field is set - */ - public boolean hasSeasonId() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 season_id = 1; + * optional .RogueCurrentInfo rogue_current_info = 1466; + * @param value the rogueCurrentInfo to set * @return this */ - public RogueInfo clearSeasonId() { - bitField0_ &= ~0x00000004; - seasonId = 0; - return this; - } - - /** - * optional uint32 season_id = 1; - * @return the seasonId - */ - public int getSeasonId() { - return seasonId; - } - - /** - * optional uint32 season_id = 1; - * @param value the seasonId to set - * @return this - */ - public RogueInfo setSeasonId(final int value) { - bitField0_ |= 0x00000004; - seasonId = value; - return this; - } - - /** - * optional uint32 rogue_coin = 7; - * @return whether the rogueCoin field is set - */ - public boolean hasRogueCoin() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional uint32 rogue_coin = 7; - * @return this - */ - public RogueInfo clearRogueCoin() { - bitField0_ &= ~0x00000008; - rogueCoin = 0; - return this; - } - - /** - * optional uint32 rogue_coin = 7; - * @return the rogueCoin - */ - public int getRogueCoin() { - return rogueCoin; - } - - /** - * optional uint32 rogue_coin = 7; - * @param value the rogueCoin to set - * @return this - */ - public RogueInfo setRogueCoin(final int value) { - bitField0_ |= 0x00000008; - rogueCoin = value; - return this; - } - - /** - * optional .RogueStatus status = 4; - * @return whether the status field is set - */ - public boolean hasStatus() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - * optional .RogueStatus status = 4; - * @return this - */ - public RogueInfo clearStatus() { - bitField0_ &= ~0x00000010; - status = 0; - return this; - } - - /** - * optional .RogueStatus status = 4; - * @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 RogueInfo#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 RogueInfo#getStatus()} to return null - * - * @param value the numeric wire value to set - * @return this - */ - public RogueInfo setStatusValue(final int value) { - bitField0_ |= 0x00000010; - status = value; - return this; - } - - /** - * optional .RogueStatus status = 4; - * @param value the status to set - * @return this - */ - public RogueInfo setStatus(final RogueStatusOuterClass.RogueStatus value) { - bitField0_ |= 0x00000010; - status = value.getNumber(); - return this; - } - - /** - * optional .RogueVirtualItemInfo rogue_virtual_item_info = 2; - * @return whether the rogueVirtualItemInfo field is set - */ - public boolean hasRogueVirtualItemInfo() { - return (bitField0_ & 0x00000020) != 0; - } - - /** - * optional .RogueVirtualItemInfo rogue_virtual_item_info = 2; - * @return this - */ - public RogueInfo clearRogueVirtualItemInfo() { - bitField0_ &= ~0x00000020; - rogueVirtualItemInfo.clear(); - return this; - } - - /** - * optional .RogueVirtualItemInfo rogue_virtual_item_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 #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 = 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 RogueVirtualItemInfoOuterClass.RogueVirtualItemInfo getMutableRogueVirtualItemInfo() { - bitField0_ |= 0x00000020; - return rogueVirtualItemInfo; - } - - /** - * optional .RogueVirtualItemInfo rogue_virtual_item_info = 2; - * @param value the rogueVirtualItemInfo to set - * @return this - */ - public RogueInfo setRogueVirtualItemInfo( - final RogueVirtualItemInfoOuterClass.RogueVirtualItemInfo value) { - bitField0_ |= 0x00000020; - rogueVirtualItemInfo.copyFrom(value); - return this; - } - - /** - * optional .RogueScoreRewardInfo rogue_score_info = 1307; - * @return whether the rogueScoreInfo field is set - */ - public boolean hasRogueScoreInfo() { - return (bitField0_ & 0x00000040) != 0; - } - - /** - * optional .RogueScoreRewardInfo rogue_score_info = 1307; - * @return this - */ - public RogueInfo clearRogueScoreInfo() { - bitField0_ &= ~0x00000040; - rogueScoreInfo.clear(); - return this; - } - - /** - * optional .RogueScoreRewardInfo rogue_score_info = 1307; - * - * This method returns 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 = 1307; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of 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_ |= 0x00000040; - return rogueScoreInfo; - } - - /** - * optional .RogueScoreRewardInfo rogue_score_info = 1307; - * @param value the rogueScoreInfo to set - * @return this - */ - public RogueInfo setRogueScoreInfo( - final RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo value) { - bitField0_ |= 0x00000040; - rogueScoreInfo.copyFrom(value); - return this; - } - - /** - * optional .RogueCurrentInfo rogue_progress = 1483; - * @return whether the rogueProgress field is set - */ - public boolean hasRogueProgress() { - return (bitField0_ & 0x00000080) != 0; - } - - /** - * optional .RogueCurrentInfo rogue_progress = 1483; - * @return this - */ - public RogueInfo clearRogueProgress() { - bitField0_ &= ~0x00000080; - rogueProgress.clear(); - return this; - } - - /** - * optional .RogueCurrentInfo rogue_progress = 1483; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableRogueProgress()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueCurrentInfoOuterClass.RogueCurrentInfo getRogueProgress() { - return rogueProgress; - } - - /** - * optional .RogueCurrentInfo rogue_progress = 1483; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of 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 getMutableRogueProgress() { - bitField0_ |= 0x00000080; - return rogueProgress; - } - - /** - * optional .RogueCurrentInfo rogue_progress = 1483; - * @param value the rogueProgress to set - * @return this - */ - public RogueInfo setRogueProgress(final RogueCurrentInfoOuterClass.RogueCurrentInfo value) { - bitField0_ |= 0x00000080; - rogueProgress.copyFrom(value); - return this; - } - - /** - * optional .RogueMapInfo room_map = 1536; - * @return whether the roomMap field is set - */ - public boolean hasRoomMap() { - return (bitField0_ & 0x00000100) != 0; - } - - /** - * optional .RogueMapInfo room_map = 1536; - * @return this - */ - public RogueInfo clearRoomMap() { - bitField0_ &= ~0x00000100; - roomMap.clear(); - return this; - } - - /** - * optional .RogueMapInfo room_map = 1536; - * - * This method returns 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; - } - - /** - * optional .RogueMapInfo room_map = 1536; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of 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_ |= 0x00000100; - return roomMap; - } - - /** - * optional .RogueMapInfo room_map = 1536; - * @param value the roomMap to set - * @return this - */ - public RogueInfo setRoomMap(final RogueMapInfoOuterClass.RogueMapInfo value) { - bitField0_ |= 0x00000100; - roomMap.copyFrom(value); - return this; - } - - /** - * optional .RogueInfoData rogue_data = 2013; - * @return whether the rogueData field is set - */ - public boolean hasRogueData() { - return (bitField0_ & 0x00000200) != 0; - } - - /** - * optional .RogueInfoData rogue_data = 2013; - * @return this - */ - public RogueInfo clearRogueData() { - bitField0_ &= ~0x00000200; - rogueData.clear(); - return this; - } - - /** - * optional .RogueInfoData rogue_data = 2013; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableRogueData()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueInfoDataOuterClass.RogueInfoData getRogueData() { - return rogueData; - } - - /** - * optional .RogueInfoData rogue_data = 2013; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of 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 getMutableRogueData() { - bitField0_ |= 0x00000200; - return rogueData; - } - - /** - * optional .RogueInfoData rogue_data = 2013; - * @param value the rogueData to set - * @return this - */ - public RogueInfo setRogueData(final RogueInfoDataOuterClass.RogueInfoData value) { - bitField0_ |= 0x00000200; - rogueData.copyFrom(value); - return this; - } - - /** - * optional .RogueAeonInfo rogue_aeon_info = 2019; - * @return whether the rogueAeonInfo field is set - */ - public boolean hasRogueAeonInfo() { - return (bitField0_ & 0x00000400) != 0; - } - - /** - * optional .RogueAeonInfo rogue_aeon_info = 2019; - * @return this - */ - public RogueInfo clearRogueAeonInfo() { - bitField0_ &= ~0x00000400; - rogueAeonInfo.clear(); - return this; - } - - /** - * optional .RogueAeonInfo rogue_aeon_info = 2019; - * - * This method returns 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 = 2019; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of 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_ |= 0x00000400; - return rogueAeonInfo; - } - - /** - * optional .RogueAeonInfo rogue_aeon_info = 2019; - * @param value the rogueAeonInfo to set - * @return this - */ - public RogueInfo setRogueAeonInfo(final RogueAeonInfoOuterClass.RogueAeonInfo value) { - bitField0_ |= 0x00000400; - rogueAeonInfo.copyFrom(value); - return this; - } - - /** - * repeated uint32 base_avatar_id_list = 14; - * @return whether the baseAvatarIdList field is set - */ - public boolean hasBaseAvatarIdList() { - return (bitField0_ & 0x00000800) != 0; - } - - /** - * repeated uint32 base_avatar_id_list = 14; - * @return this - */ - public RogueInfo clearBaseAvatarIdList() { - bitField0_ &= ~0x00000800; - baseAvatarIdList.clear(); - return this; - } - - /** - * repeated uint32 base_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 #getMutableBaseAvatarIdList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getBaseAvatarIdList() { - return baseAvatarIdList; - } - - /** - * repeated uint32 base_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 getMutableBaseAvatarIdList() { - bitField0_ |= 0x00000800; - return baseAvatarIdList; - } - - /** - * repeated uint32 base_avatar_id_list = 14; - * @param value the baseAvatarIdList to add - * @return this - */ - public RogueInfo addBaseAvatarIdList(final int value) { - bitField0_ |= 0x00000800; - baseAvatarIdList.add(value); - return this; - } - - /** - * repeated uint32 base_avatar_id_list = 14; - * @param values the baseAvatarIdList to add - * @return this - */ - public RogueInfo addAllBaseAvatarIdList(final int... values) { - bitField0_ |= 0x00000800; - baseAvatarIdList.addAll(values); - return this; - } - - /** - * repeated .RogueArea rogue_area_list = 2009; - * @return whether the rogueAreaList field is set - */ - public boolean hasRogueAreaList() { - return (bitField0_ & 0x00001000) != 0; - } - - /** - * repeated .RogueArea rogue_area_list = 2009; - * @return this - */ - public RogueInfo clearRogueAreaList() { - bitField0_ &= ~0x00001000; - rogueAreaList.clear(); - return this; - } - - /** - * repeated .RogueArea rogue_area_list = 2009; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableRogueAreaList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getRogueAreaList() { - return rogueAreaList; - } - - /** - * repeated .RogueArea rogue_area_list = 2009; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of 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 getMutableRogueAreaList() { - bitField0_ |= 0x00001000; - return rogueAreaList; - } - - /** - * repeated .RogueArea rogue_area_list = 2009; - * @param value the rogueAreaList to add - * @return this - */ - public RogueInfo addRogueAreaList(final RogueAreaOuterClass.RogueArea value) { - bitField0_ |= 0x00001000; - rogueAreaList.add(value); - return this; - } - - /** - * repeated .RogueArea rogue_area_list = 2009; - * @param values the rogueAreaList to add - * @return this - */ - public RogueInfo addAllRogueAreaList(final RogueAreaOuterClass.RogueArea... values) { - bitField0_ |= 0x00001000; - rogueAreaList.addAll(values); + public RogueInfo setRogueCurrentInfo(final RogueCurrentInfoOuterClass.RogueCurrentInfo value) { + bitField0_ |= 0x00000002; + rogueCurrentInfo.copyFrom(value); return this; } @@ -790,19 +157,8 @@ public final class RogueInfoOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - beginTime = other.beginTime; - endTime = other.endTime; - seasonId = other.seasonId; - rogueCoin = other.rogueCoin; - status = other.status; - rogueVirtualItemInfo.copyFrom(other.rogueVirtualItemInfo); - rogueScoreInfo.copyFrom(other.rogueScoreInfo); - rogueProgress.copyFrom(other.rogueProgress); - roomMap.copyFrom(other.roomMap); - rogueData.copyFrom(other.rogueData); - rogueAeonInfo.copyFrom(other.rogueAeonInfo); - baseAvatarIdList.copyFrom(other.baseAvatarIdList); - rogueAreaList.copyFrom(other.rogueAreaList); + rogueInfoData.copyFrom(other.rogueInfoData); + rogueCurrentInfo.copyFrom(other.rogueCurrentInfo); } return this; } @@ -813,44 +169,11 @@ public final class RogueInfoOuterClass { return this; } cachedSize = -1; - if (other.hasBeginTime()) { - setBeginTime(other.beginTime); + if (other.hasRogueInfoData()) { + getMutableRogueInfoData().mergeFrom(other.rogueInfoData); } - if (other.hasEndTime()) { - setEndTime(other.endTime); - } - if (other.hasSeasonId()) { - setSeasonId(other.seasonId); - } - if (other.hasRogueCoin()) { - setRogueCoin(other.rogueCoin); - } - if (other.hasStatus()) { - setStatusValue(other.status); - } - if (other.hasRogueVirtualItemInfo()) { - getMutableRogueVirtualItemInfo().mergeFrom(other.rogueVirtualItemInfo); - } - if (other.hasRogueScoreInfo()) { - getMutableRogueScoreInfo().mergeFrom(other.rogueScoreInfo); - } - if (other.hasRogueProgress()) { - getMutableRogueProgress().mergeFrom(other.rogueProgress); - } - if (other.hasRoomMap()) { - getMutableRoomMap().mergeFrom(other.roomMap); - } - if (other.hasRogueData()) { - getMutableRogueData().mergeFrom(other.rogueData); - } - if (other.hasRogueAeonInfo()) { - getMutableRogueAeonInfo().mergeFrom(other.rogueAeonInfo); - } - if (other.hasBaseAvatarIdList()) { - getMutableBaseAvatarIdList().addAll(other.baseAvatarIdList); - } - if (other.hasRogueAreaList()) { - getMutableRogueAreaList().addAll(other.rogueAreaList); + if (other.hasRogueCurrentInfo()) { + getMutableRogueCurrentInfo().mergeFrom(other.rogueCurrentInfo); } return this; } @@ -862,19 +185,8 @@ public final class RogueInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - beginTime = 0L; - endTime = 0L; - seasonId = 0; - rogueCoin = 0; - status = 0; - rogueVirtualItemInfo.clear(); - rogueScoreInfo.clear(); - rogueProgress.clear(); - roomMap.clear(); - rogueData.clear(); - rogueAeonInfo.clear(); - baseAvatarIdList.clear(); - rogueAreaList.clear(); + rogueInfoData.clear(); + rogueCurrentInfo.clear(); return this; } @@ -885,14 +197,8 @@ public final class RogueInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - rogueVirtualItemInfo.clearQuick(); - rogueScoreInfo.clearQuick(); - rogueProgress.clearQuick(); - roomMap.clearQuick(); - rogueData.clearQuick(); - rogueAeonInfo.clearQuick(); - baseAvatarIdList.clear(); - rogueAreaList.clearQuick(); + rogueInfoData.clearQuick(); + rogueCurrentInfo.clearQuick(); return this; } @@ -906,78 +212,19 @@ public final class RogueInfoOuterClass { } RogueInfo other = (RogueInfo) o; return bitField0_ == other.bitField0_ - && (!hasBeginTime() || beginTime == other.beginTime) - && (!hasEndTime() || endTime == other.endTime) - && (!hasSeasonId() || seasonId == other.seasonId) - && (!hasRogueCoin() || rogueCoin == other.rogueCoin) - && (!hasStatus() || status == other.status) - && (!hasRogueVirtualItemInfo() || rogueVirtualItemInfo.equals(other.rogueVirtualItemInfo)) - && (!hasRogueScoreInfo() || rogueScoreInfo.equals(other.rogueScoreInfo)) - && (!hasRogueProgress() || rogueProgress.equals(other.rogueProgress)) - && (!hasRoomMap() || roomMap.equals(other.roomMap)) - && (!hasRogueData() || rogueData.equals(other.rogueData)) - && (!hasRogueAeonInfo() || rogueAeonInfo.equals(other.rogueAeonInfo)) - && (!hasBaseAvatarIdList() || baseAvatarIdList.equals(other.baseAvatarIdList)) - && (!hasRogueAreaList() || rogueAreaList.equals(other.rogueAreaList)); + && (!hasRogueInfoData() || rogueInfoData.equals(other.rogueInfoData)) + && (!hasRogueCurrentInfo() || rogueCurrentInfo.equals(other.rogueCurrentInfo)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 48); - output.writeInt64NoTag(beginTime); + output.writeRawLittleEndian16((short) 5554); + output.writeMessageNoTag(rogueInfoData); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 64); - output.writeInt64NoTag(endTime); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(seasonId); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 56); - output.writeUInt32NoTag(rogueCoin); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 32); - output.writeEnumNoTag(status); - } - if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 18); - output.writeMessageNoTag(rogueVirtualItemInfo); - } - if ((bitField0_ & 0x00000040) != 0) { - output.writeRawLittleEndian16((short) 20954); - output.writeMessageNoTag(rogueScoreInfo); - } - if ((bitField0_ & 0x00000080) != 0) { - output.writeRawLittleEndian16((short) 23770); - output.writeMessageNoTag(rogueProgress); - } - if ((bitField0_ & 0x00000100) != 0) { - output.writeRawLittleEndian16((short) 24706); - output.writeMessageNoTag(roomMap); - } - if ((bitField0_ & 0x00000200) != 0) { - output.writeRawLittleEndian16((short) 32234); - output.writeMessageNoTag(rogueData); - } - if ((bitField0_ & 0x00000400) != 0) { - output.writeRawLittleEndian16((short) 32410); - output.writeMessageNoTag(rogueAeonInfo); - } - if ((bitField0_ & 0x00000800) != 0) { - for (int i = 0; i < baseAvatarIdList.length(); i++) { - output.writeRawByte((byte) 112); - output.writeUInt32NoTag(baseAvatarIdList.array()[i]); - } - } - if ((bitField0_ & 0x00001000) != 0) { - for (int i = 0; i < rogueAreaList.length(); i++) { - output.writeRawLittleEndian16((short) 32202); - output.writeMessageNoTag(rogueAreaList.get(i)); - } + output.writeRawLittleEndian16((short) 23506); + output.writeMessageNoTag(rogueCurrentInfo); } } @@ -985,43 +232,10 @@ public final class RogueInfoOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeInt64SizeNoTag(beginTime); + size += 2 + ProtoSink.computeMessageSizeNoTag(rogueInfoData); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeInt64SizeNoTag(endTime); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(seasonId); - } - if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(rogueCoin); - } - if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeEnumSizeNoTag(status); - } - if ((bitField0_ & 0x00000020) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(rogueVirtualItemInfo); - } - if ((bitField0_ & 0x00000040) != 0) { - size += 2 + ProtoSink.computeMessageSizeNoTag(rogueScoreInfo); - } - if ((bitField0_ & 0x00000080) != 0) { - size += 2 + ProtoSink.computeMessageSizeNoTag(rogueProgress); - } - if ((bitField0_ & 0x00000100) != 0) { - size += 2 + ProtoSink.computeMessageSizeNoTag(roomMap); - } - if ((bitField0_ & 0x00000200) != 0) { - size += 2 + ProtoSink.computeMessageSizeNoTag(rogueData); - } - if ((bitField0_ & 0x00000400) != 0) { - size += 2 + ProtoSink.computeMessageSizeNoTag(rogueAeonInfo); - } - if ((bitField0_ & 0x00000800) != 0) { - size += (1 * baseAvatarIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(baseAvatarIdList); - } - if ((bitField0_ & 0x00001000) != 0) { - size += (2 * rogueAreaList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(rogueAreaList); + size += 2 + ProtoSink.computeMessageSizeNoTag(rogueCurrentInfo); } return size; } @@ -1033,121 +247,20 @@ public final class RogueInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 48: { - // beginTime - beginTime = input.readInt64(); + case 2738: { + // rogueInfoData + input.readMessage(rogueInfoData); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 64) { + if (tag != 11730) { break; } } - case 64: { - // endTime - endTime = input.readInt64(); + case 11730: { + // rogueCurrentInfo + input.readMessage(rogueCurrentInfo); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 8) { - break; - } - } - case 8: { - // seasonId - seasonId = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 56) { - break; - } - } - case 56: { - // rogueCoin - rogueCoin = input.readUInt32(); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 32) { - break; - } - } - case 32: { - // status - final int value = input.readInt32(); - if (RogueStatusOuterClass.RogueStatus.forNumber(value) != null) { - status = value; - bitField0_ |= 0x00000010; - } - tag = input.readTag(); - if (tag != 18) { - break; - } - } - case 18: { - // rogueVirtualItemInfo - input.readMessage(rogueVirtualItemInfo); - bitField0_ |= 0x00000020; - tag = input.readTag(); - if (tag != 10458) { - break; - } - } - case 10458: { - // rogueScoreInfo - input.readMessage(rogueScoreInfo); - bitField0_ |= 0x00000040; - tag = input.readTag(); - if (tag != 11866) { - break; - } - } - case 11866: { - // rogueProgress - input.readMessage(rogueProgress); - bitField0_ |= 0x00000080; - tag = input.readTag(); - if (tag != 12290) { - break; - } - } - case 12290: { - // roomMap - input.readMessage(roomMap); - bitField0_ |= 0x00000100; - tag = input.readTag(); - if (tag != 16106) { - break; - } - } - case 16106: { - // rogueData - input.readMessage(rogueData); - bitField0_ |= 0x00000200; - tag = input.readTag(); - if (tag != 16154) { - break; - } - } - case 16154: { - // rogueAeonInfo - input.readMessage(rogueAeonInfo); - bitField0_ |= 0x00000400; - tag = input.readTag(); - if (tag != 114) { - break; - } - } - case 114: { - // baseAvatarIdList [packed=true] - input.readPackedUInt32(baseAvatarIdList, tag); - bitField0_ |= 0x00000800; - tag = input.readTag(); - if (tag != 16074) { - break; - } - } - case 16074: { - // rogueAreaList - tag = input.readRepeatedMessage(rogueAreaList, tag); - bitField0_ |= 0x00001000; if (tag != 0) { break; } @@ -1162,12 +275,6 @@ public final class RogueInfoOuterClass { tag = input.readTag(); break; } - case 112: { - // baseAvatarIdList [packed=false] - tag = input.readRepeatedUInt32(baseAvatarIdList, tag); - bitField0_ |= 0x00000800; - break; - } } } } @@ -1176,43 +283,10 @@ public final class RogueInfoOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeInt64(FieldNames.beginTime, beginTime); + output.writeMessage(FieldNames.rogueInfoData, rogueInfoData); } if ((bitField0_ & 0x00000002) != 0) { - output.writeInt64(FieldNames.endTime, endTime); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.seasonId, seasonId); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.rogueCoin, rogueCoin); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeEnum(FieldNames.status, status, RogueStatusOuterClass.RogueStatus.converter()); - } - if ((bitField0_ & 0x00000020) != 0) { - output.writeMessage(FieldNames.rogueVirtualItemInfo, rogueVirtualItemInfo); - } - if ((bitField0_ & 0x00000040) != 0) { - output.writeMessage(FieldNames.rogueScoreInfo, rogueScoreInfo); - } - if ((bitField0_ & 0x00000080) != 0) { - output.writeMessage(FieldNames.rogueProgress, rogueProgress); - } - if ((bitField0_ & 0x00000100) != 0) { - output.writeMessage(FieldNames.roomMap, roomMap); - } - if ((bitField0_ & 0x00000200) != 0) { - output.writeMessage(FieldNames.rogueData, rogueData); - } - if ((bitField0_ & 0x00000400) != 0) { - output.writeMessage(FieldNames.rogueAeonInfo, rogueAeonInfo); - } - if ((bitField0_ & 0x00000800) != 0) { - output.writeRepeatedUInt32(FieldNames.baseAvatarIdList, baseAvatarIdList); - } - if ((bitField0_ & 0x00001000) != 0) { - output.writeRepeatedMessage(FieldNames.rogueAreaList, rogueAreaList); + output.writeMessage(FieldNames.rogueCurrentInfo, rogueCurrentInfo); } output.endObject(); } @@ -1224,11 +298,11 @@ public final class RogueInfoOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -1072839914: - case 1112183971: { - if (input.isAtField(FieldNames.beginTime)) { + case -1486739086: + case 480604278: { + if (input.isAtField(FieldNames.rogueInfoData)) { if (!input.trySkipNullValue()) { - beginTime = input.readInt64(); + input.readMessage(rogueInfoData); bitField0_ |= 0x00000001; } } else { @@ -1236,11 +310,11 @@ public final class RogueInfoOuterClass { } break; } - case -1607243192: - case 1725551537: { - if (input.isAtField(FieldNames.endTime)) { + case -611905651: + case 1279173113: { + if (input.isAtField(FieldNames.rogueCurrentInfo)) { if (!input.trySkipNullValue()) { - endTime = input.readInt64(); + input.readMessage(rogueCurrentInfo); bitField0_ |= 0x00000002; } } else { @@ -1248,142 +322,6 @@ public final class RogueInfoOuterClass { } break; } - case 889931614: - case 1818097655: { - if (input.isAtField(FieldNames.seasonId)) { - if (!input.trySkipNullValue()) { - seasonId = input.readUInt32(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case 655631243: - case -1124761130: { - if (input.isAtField(FieldNames.rogueCoin)) { - if (!input.trySkipNullValue()) { - rogueCoin = input.readUInt32(); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } - 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_ |= 0x00000010; - } else { - input.skipUnknownEnumValue(); - } - } - } else { - input.skipUnknownField(); - } - break; - } - case 1066755410: - case 1452147457: { - if (input.isAtField(FieldNames.rogueVirtualItemInfo)) { - if (!input.trySkipNullValue()) { - input.readMessage(rogueVirtualItemInfo); - bitField0_ |= 0x00000020; - } - } else { - input.skipUnknownField(); - } - break; - } - case 2078217638: - case -208816704: { - if (input.isAtField(FieldNames.rogueScoreInfo)) { - if (!input.trySkipNullValue()) { - input.readMessage(rogueScoreInfo); - bitField0_ |= 0x00000040; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1629694503: - case 1330014962: { - if (input.isAtField(FieldNames.rogueProgress)) { - if (!input.trySkipNullValue()) { - input.readMessage(rogueProgress); - bitField0_ |= 0x00000080; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1379875457: - case -172986376: { - if (input.isAtField(FieldNames.roomMap)) { - if (!input.trySkipNullValue()) { - input.readMessage(roomMap); - bitField0_ |= 0x00000100; - } - } else { - input.skipUnknownField(); - } - break; - } - case 655647908: - case -1124744465: { - if (input.isAtField(FieldNames.rogueData)) { - if (!input.trySkipNullValue()) { - input.readMessage(rogueData); - bitField0_ |= 0x00000200; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1685018549: - case -1375922619: { - if (input.isAtField(FieldNames.rogueAeonInfo)) { - if (!input.trySkipNullValue()) { - input.readMessage(rogueAeonInfo); - bitField0_ |= 0x00000400; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1212654461: - case 914628490: { - if (input.isAtField(FieldNames.baseAvatarIdList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(baseAvatarIdList); - bitField0_ |= 0x00000800; - } - } else { - input.skipUnknownField(); - } - break; - } - case 964382405: - case -851420949: { - if (input.isAtField(FieldNames.rogueAreaList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(rogueAreaList); - bitField0_ |= 0x00001000; - } - } else { - input.skipUnknownField(); - } - break; - } default: { input.skipUnknownField(); break; @@ -1436,31 +374,9 @@ public final class RogueInfoOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName beginTime = FieldName.forField("beginTime", "begin_time"); + static final FieldName rogueInfoData = FieldName.forField("rogueInfoData", "rogue_info_data"); - static final FieldName endTime = FieldName.forField("endTime", "end_time"); - - static final FieldName seasonId = FieldName.forField("seasonId", "season_id"); - - static final FieldName rogueCoin = FieldName.forField("rogueCoin", "rogue_coin"); - - static final FieldName status = FieldName.forField("status"); - - static final FieldName rogueVirtualItemInfo = FieldName.forField("rogueVirtualItemInfo", "rogue_virtual_item_info"); - - static final FieldName rogueScoreInfo = FieldName.forField("rogueScoreInfo", "rogue_score_info"); - - static final FieldName rogueProgress = FieldName.forField("rogueProgress", "rogue_progress"); - - static final FieldName roomMap = FieldName.forField("roomMap", "room_map"); - - static final FieldName rogueData = FieldName.forField("rogueData", "rogue_data"); - - static final FieldName rogueAeonInfo = FieldName.forField("rogueAeonInfo", "rogue_aeon_info"); - - static final FieldName baseAvatarIdList = FieldName.forField("baseAvatarIdList", "base_avatar_id_list"); - - static final FieldName rogueAreaList = FieldName.forField("rogueAreaList", "rogue_area_list"); + 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 index 5a4409b..162ff4a 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueMapInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RogueMapInfoOuterClass.java @@ -20,27 +20,27 @@ public final class RogueMapInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 map_id = 2; - */ - private int mapId; - - /** - * optional uint32 cur_room_id = 6; - */ - private int curRoomId; - - /** - * optional uint32 area_id = 7; + * optional uint32 area_id = 2; */ private int areaId; /** - * optional uint32 cur_site_id = 10; + * optional uint32 map_id = 6; + */ + private int mapId; + + /** + * optional uint32 cur_room_id = 11; + */ + private int curRoomId; + + /** + * optional uint32 cur_site_id = 12; */ private int curSiteId; /** - * repeated .RogueRoom room_list = 8; + * repeated .RogueRoom room_list = 14; */ private final RepeatedMessage roomList = RepeatedMessage.newEmptyInstance(RogueRoomOuterClass.RogueRoom.getFactory()); @@ -55,99 +55,25 @@ public final class RogueMapInfoOuterClass { } /** - * optional uint32 map_id = 2; - * @return whether the mapId field is set + * optional uint32 area_id = 2; + * @return whether the areaId field is set */ - public boolean hasMapId() { + public boolean hasAreaId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 map_id = 2; - * @return this - */ - public RogueMapInfo clearMapId() { - bitField0_ &= ~0x00000001; - mapId = 0; - return this; - } - - /** - * optional uint32 map_id = 2; - * @return the mapId - */ - public int getMapId() { - return mapId; - } - - /** - * optional uint32 map_id = 2; - * @param value the mapId to set - * @return this - */ - public RogueMapInfo setMapId(final int value) { - bitField0_ |= 0x00000001; - mapId = value; - return this; - } - - /** - * optional uint32 cur_room_id = 6; - * @return whether the curRoomId field is set - */ - public boolean hasCurRoomId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 cur_room_id = 6; - * @return this - */ - public RogueMapInfo clearCurRoomId() { - bitField0_ &= ~0x00000002; - curRoomId = 0; - return this; - } - - /** - * optional uint32 cur_room_id = 6; - * @return the curRoomId - */ - public int getCurRoomId() { - return curRoomId; - } - - /** - * optional uint32 cur_room_id = 6; - * @param value the curRoomId to set - * @return this - */ - public RogueMapInfo setCurRoomId(final int value) { - bitField0_ |= 0x00000002; - curRoomId = value; - return this; - } - - /** - * optional uint32 area_id = 7; - * @return whether the areaId field is set - */ - public boolean hasAreaId() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 area_id = 7; + * optional uint32 area_id = 2; * @return this */ public RogueMapInfo clearAreaId() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000001; areaId = 0; return this; } /** - * optional uint32 area_id = 7; + * optional uint32 area_id = 2; * @return the areaId */ public int getAreaId() { @@ -155,18 +81,92 @@ public final class RogueMapInfoOuterClass { } /** - * optional uint32 area_id = 7; + * optional uint32 area_id = 2; * @param value the areaId to set * @return this */ public RogueMapInfo setAreaId(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; areaId = value; return this; } /** - * optional uint32 cur_site_id = 10; + * optional uint32 map_id = 6; + * @return whether the mapId field is set + */ + public boolean hasMapId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 map_id = 6; + * @return this + */ + public RogueMapInfo clearMapId() { + bitField0_ &= ~0x00000002; + mapId = 0; + return this; + } + + /** + * optional uint32 map_id = 6; + * @return the mapId + */ + public int getMapId() { + return mapId; + } + + /** + * optional uint32 map_id = 6; + * @param value the mapId to set + * @return this + */ + public RogueMapInfo setMapId(final int value) { + bitField0_ |= 0x00000002; + mapId = value; + return this; + } + + /** + * optional uint32 cur_room_id = 11; + * @return whether the curRoomId field is set + */ + public boolean hasCurRoomId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 cur_room_id = 11; + * @return this + */ + public RogueMapInfo clearCurRoomId() { + bitField0_ &= ~0x00000004; + curRoomId = 0; + return this; + } + + /** + * optional uint32 cur_room_id = 11; + * @return the curRoomId + */ + public int getCurRoomId() { + return curRoomId; + } + + /** + * optional uint32 cur_room_id = 11; + * @param value the curRoomId to set + * @return this + */ + public RogueMapInfo setCurRoomId(final int value) { + bitField0_ |= 0x00000004; + curRoomId = value; + return this; + } + + /** + * optional uint32 cur_site_id = 12; * @return whether the curSiteId field is set */ public boolean hasCurSiteId() { @@ -174,7 +174,7 @@ public final class RogueMapInfoOuterClass { } /** - * optional uint32 cur_site_id = 10; + * optional uint32 cur_site_id = 12; * @return this */ public RogueMapInfo clearCurSiteId() { @@ -184,7 +184,7 @@ public final class RogueMapInfoOuterClass { } /** - * optional uint32 cur_site_id = 10; + * optional uint32 cur_site_id = 12; * @return the curSiteId */ public int getCurSiteId() { @@ -192,7 +192,7 @@ public final class RogueMapInfoOuterClass { } /** - * optional uint32 cur_site_id = 10; + * optional uint32 cur_site_id = 12; * @param value the curSiteId to set * @return this */ @@ -203,7 +203,7 @@ public final class RogueMapInfoOuterClass { } /** - * repeated .RogueRoom room_list = 8; + * repeated .RogueRoom room_list = 14; * @return whether the roomList field is set */ public boolean hasRoomList() { @@ -211,7 +211,7 @@ public final class RogueMapInfoOuterClass { } /** - * repeated .RogueRoom room_list = 8; + * repeated .RogueRoom room_list = 14; * @return this */ public RogueMapInfo clearRoomList() { @@ -221,7 +221,7 @@ public final class RogueMapInfoOuterClass { } /** - * repeated .RogueRoom room_list = 8; + * repeated .RogueRoom room_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. @@ -235,7 +235,7 @@ public final class RogueMapInfoOuterClass { } /** - * repeated .RogueRoom room_list = 8; + * repeated .RogueRoom room_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 @@ -249,7 +249,7 @@ public final class RogueMapInfoOuterClass { } /** - * repeated .RogueRoom room_list = 8; + * repeated .RogueRoom room_list = 14; * @param value the roomList to add * @return this */ @@ -260,7 +260,7 @@ public final class RogueMapInfoOuterClass { } /** - * repeated .RogueRoom room_list = 8; + * repeated .RogueRoom room_list = 14; * @param values the roomList to add * @return this */ @@ -275,9 +275,9 @@ public final class RogueMapInfoOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; + areaId = other.areaId; mapId = other.mapId; curRoomId = other.curRoomId; - areaId = other.areaId; curSiteId = other.curSiteId; roomList.copyFrom(other.roomList); } @@ -290,15 +290,15 @@ public final class RogueMapInfoOuterClass { return this; } cachedSize = -1; + if (other.hasAreaId()) { + setAreaId(other.areaId); + } if (other.hasMapId()) { setMapId(other.mapId); } if (other.hasCurRoomId()) { setCurRoomId(other.curRoomId); } - if (other.hasAreaId()) { - setAreaId(other.areaId); - } if (other.hasCurSiteId()) { setCurSiteId(other.curSiteId); } @@ -315,9 +315,9 @@ public final class RogueMapInfoOuterClass { } cachedSize = -1; bitField0_ = 0; + areaId = 0; mapId = 0; curRoomId = 0; - areaId = 0; curSiteId = 0; roomList.clear(); return this; @@ -344,9 +344,9 @@ public final class RogueMapInfoOuterClass { } RogueMapInfo other = (RogueMapInfo) o; return bitField0_ == other.bitField0_ + && (!hasAreaId() || areaId == other.areaId) && (!hasMapId() || mapId == other.mapId) && (!hasCurRoomId() || curRoomId == other.curRoomId) - && (!hasAreaId() || areaId == other.areaId) && (!hasCurSiteId() || curSiteId == other.curSiteId) && (!hasRoomList() || roomList.equals(other.roomList)); } @@ -355,23 +355,23 @@ public final class RogueMapInfoOuterClass { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { output.writeRawByte((byte) 16); - output.writeUInt32NoTag(mapId); + output.writeUInt32NoTag(areaId); } if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 48); - output.writeUInt32NoTag(curRoomId); + output.writeUInt32NoTag(mapId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 56); - output.writeUInt32NoTag(areaId); + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(curRoomId); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 96); output.writeUInt32NoTag(curSiteId); } if ((bitField0_ & 0x00000010) != 0) { for (int i = 0; i < roomList.length(); i++) { - output.writeRawByte((byte) 66); + output.writeRawByte((byte) 114); output.writeMessageNoTag(roomList.get(i)); } } @@ -381,13 +381,13 @@ public final class RogueMapInfoOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(mapId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(areaId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(curRoomId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(mapId); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(areaId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(curRoomId); } if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(curSiteId); @@ -406,8 +406,8 @@ public final class RogueMapInfoOuterClass { while (true) { switch (tag) { case 16: { - // mapId - mapId = input.readUInt32(); + // areaId + areaId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 48) { @@ -415,33 +415,33 @@ public final class RogueMapInfoOuterClass { } } case 48: { - // curRoomId - curRoomId = input.readUInt32(); + // mapId + mapId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 56) { + if (tag != 88) { break; } } - case 56: { - // areaId - areaId = input.readUInt32(); + case 88: { + // curRoomId + curRoomId = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 80) { + if (tag != 96) { break; } } - case 80: { + case 96: { // curSiteId curSiteId = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 66) { + if (tag != 114) { break; } } - case 66: { + case 114: { // roomList tag = input.readRepeatedMessage(roomList, tag); bitField0_ |= 0x00000010; @@ -467,13 +467,13 @@ public final class RogueMapInfoOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.mapId, mapId); + output.writeUInt32(FieldNames.areaId, areaId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.curRoomId, curRoomId); + output.writeUInt32(FieldNames.mapId, mapId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.areaId, areaId); + output.writeUInt32(FieldNames.curRoomId, curRoomId); } if ((bitField0_ & 0x00000008) != 0) { output.writeUInt32(FieldNames.curSiteId, curSiteId); @@ -491,12 +491,24 @@ public final class RogueMapInfoOuterClass { } 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 103663511: case -1081377058: { if (input.isAtField(FieldNames.mapId)) { if (!input.trySkipNullValue()) { mapId = input.readUInt32(); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } else { input.skipUnknownField(); @@ -508,18 +520,6 @@ public final class RogueMapInfoOuterClass { if (input.isAtField(FieldNames.curRoomId)) { if (!input.trySkipNullValue()) { curRoomId = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1409553784: - case -746472947: { - if (input.isAtField(FieldNames.areaId)) { - if (!input.trySkipNullValue()) { - areaId = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -603,12 +603,12 @@ public final class RogueMapInfoOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { + static final FieldName areaId = FieldName.forField("areaId", "area_id"); + static final FieldName mapId = FieldName.forField("mapId", "map_id"); static final FieldName curRoomId = FieldName.forField("curRoomId", "cur_room_id"); - static final FieldName areaId = FieldName.forField("areaId", "area_id"); - static final FieldName curSiteId = FieldName.forField("curSiteId", "cur_site_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 new file mode 100644 index 0000000..8d2caa3 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueMiracleDataInfoOuterClass.java @@ -0,0 +1,939 @@ +// 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 LHCJBLAECHK = 1; + */ + private int lHCJBLAECHK; + + /** + * optional uint32 miracle_id = 4; + */ + private int miracleId; + + /** + * optional uint32 FFLMCOJAJAI = 7; + */ + private int fFLMCOJAJAI; + + /** + * optional uint32 CNFMGJHFABD = 13; + */ + private int cNFMGJHFABD; + + /** + * repeated .RogueMiracleDataInfo.HIFKDHKJGACEntry HIFKDHKJGAC = 3; + */ + private final RepeatedMessage hIFKDHKJGAC = RepeatedMessage.newEmptyInstance(HIFKDHKJGACEntry.getFactory()); + + private RogueMiracleDataInfo() { + } + + /** + * @return a new empty instance of {@code RogueMiracleDataInfo} + */ + public static RogueMiracleDataInfo newInstance() { + return new RogueMiracleDataInfo(); + } + + /** + * optional uint32 LHCJBLAECHK = 1; + * @return whether the lHCJBLAECHK field is set + */ + public boolean hasLHCJBLAECHK() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 LHCJBLAECHK = 1; + * @return this + */ + public RogueMiracleDataInfo clearLHCJBLAECHK() { + bitField0_ &= ~0x00000001; + lHCJBLAECHK = 0; + return this; + } + + /** + * optional uint32 LHCJBLAECHK = 1; + * @return the lHCJBLAECHK + */ + public int getLHCJBLAECHK() { + return lHCJBLAECHK; + } + + /** + * optional uint32 LHCJBLAECHK = 1; + * @param value the lHCJBLAECHK to set + * @return this + */ + public RogueMiracleDataInfo setLHCJBLAECHK(final int value) { + bitField0_ |= 0x00000001; + lHCJBLAECHK = value; + return this; + } + + /** + * optional uint32 miracle_id = 4; + * @return whether the miracleId field is set + */ + public boolean hasMiracleId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 miracle_id = 4; + * @return this + */ + public RogueMiracleDataInfo clearMiracleId() { + bitField0_ &= ~0x00000002; + miracleId = 0; + return this; + } + + /** + * optional uint32 miracle_id = 4; + * @return the miracleId + */ + public int getMiracleId() { + return miracleId; + } + + /** + * optional uint32 miracle_id = 4; + * @param value the miracleId to set + * @return this + */ + public RogueMiracleDataInfo setMiracleId(final int value) { + bitField0_ |= 0x00000002; + miracleId = value; + return this; + } + + /** + * optional uint32 FFLMCOJAJAI = 7; + * @return whether the fFLMCOJAJAI field is set + */ + public boolean hasFFLMCOJAJAI() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 FFLMCOJAJAI = 7; + * @return this + */ + public RogueMiracleDataInfo clearFFLMCOJAJAI() { + bitField0_ &= ~0x00000004; + fFLMCOJAJAI = 0; + return this; + } + + /** + * optional uint32 FFLMCOJAJAI = 7; + * @return the fFLMCOJAJAI + */ + public int getFFLMCOJAJAI() { + return fFLMCOJAJAI; + } + + /** + * optional uint32 FFLMCOJAJAI = 7; + * @param value the fFLMCOJAJAI to set + * @return this + */ + public RogueMiracleDataInfo setFFLMCOJAJAI(final int value) { + bitField0_ |= 0x00000004; + fFLMCOJAJAI = value; + return this; + } + + /** + * optional uint32 CNFMGJHFABD = 13; + * @return whether the cNFMGJHFABD field is set + */ + public boolean hasCNFMGJHFABD() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 CNFMGJHFABD = 13; + * @return this + */ + public RogueMiracleDataInfo clearCNFMGJHFABD() { + bitField0_ &= ~0x00000008; + cNFMGJHFABD = 0; + return this; + } + + /** + * optional uint32 CNFMGJHFABD = 13; + * @return the cNFMGJHFABD + */ + public int getCNFMGJHFABD() { + return cNFMGJHFABD; + } + + /** + * optional uint32 CNFMGJHFABD = 13; + * @param value the cNFMGJHFABD to set + * @return this + */ + public RogueMiracleDataInfo setCNFMGJHFABD(final int value) { + bitField0_ |= 0x00000008; + cNFMGJHFABD = value; + return this; + } + + /** + * repeated .RogueMiracleDataInfo.HIFKDHKJGACEntry HIFKDHKJGAC = 3; + * @return whether the hIFKDHKJGAC field is set + */ + public boolean hasHIFKDHKJGAC() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * repeated .RogueMiracleDataInfo.HIFKDHKJGACEntry HIFKDHKJGAC = 3; + * @return this + */ + public RogueMiracleDataInfo clearHIFKDHKJGAC() { + bitField0_ &= ~0x00000010; + hIFKDHKJGAC.clear(); + return this; + } + + /** + * repeated .RogueMiracleDataInfo.HIFKDHKJGACEntry HIFKDHKJGAC = 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 #getMutableHIFKDHKJGAC()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getHIFKDHKJGAC() { + return hIFKDHKJGAC; + } + + /** + * repeated .RogueMiracleDataInfo.HIFKDHKJGACEntry HIFKDHKJGAC = 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 getMutableHIFKDHKJGAC() { + bitField0_ |= 0x00000010; + return hIFKDHKJGAC; + } + + /** + * repeated .RogueMiracleDataInfo.HIFKDHKJGACEntry HIFKDHKJGAC = 3; + * @param value the hIFKDHKJGAC to add + * @return this + */ + public RogueMiracleDataInfo addHIFKDHKJGAC(final HIFKDHKJGACEntry value) { + bitField0_ |= 0x00000010; + hIFKDHKJGAC.add(value); + return this; + } + + /** + * repeated .RogueMiracleDataInfo.HIFKDHKJGACEntry HIFKDHKJGAC = 3; + * @param values the hIFKDHKJGAC to add + * @return this + */ + public RogueMiracleDataInfo addAllHIFKDHKJGAC(final HIFKDHKJGACEntry... values) { + bitField0_ |= 0x00000010; + hIFKDHKJGAC.addAll(values); + return this; + } + + @Override + public RogueMiracleDataInfo copyFrom(final RogueMiracleDataInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + lHCJBLAECHK = other.lHCJBLAECHK; + miracleId = other.miracleId; + fFLMCOJAJAI = other.fFLMCOJAJAI; + cNFMGJHFABD = other.cNFMGJHFABD; + hIFKDHKJGAC.copyFrom(other.hIFKDHKJGAC); + } + return this; + } + + @Override + public RogueMiracleDataInfo mergeFrom(final RogueMiracleDataInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasLHCJBLAECHK()) { + setLHCJBLAECHK(other.lHCJBLAECHK); + } + if (other.hasMiracleId()) { + setMiracleId(other.miracleId); + } + if (other.hasFFLMCOJAJAI()) { + setFFLMCOJAJAI(other.fFLMCOJAJAI); + } + if (other.hasCNFMGJHFABD()) { + setCNFMGJHFABD(other.cNFMGJHFABD); + } + if (other.hasHIFKDHKJGAC()) { + getMutableHIFKDHKJGAC().addAll(other.hIFKDHKJGAC); + } + return this; + } + + @Override + public RogueMiracleDataInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + lHCJBLAECHK = 0; + miracleId = 0; + fFLMCOJAJAI = 0; + cNFMGJHFABD = 0; + hIFKDHKJGAC.clear(); + return this; + } + + @Override + public RogueMiracleDataInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + hIFKDHKJGAC.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_ + && (!hasLHCJBLAECHK() || lHCJBLAECHK == other.lHCJBLAECHK) + && (!hasMiracleId() || miracleId == other.miracleId) + && (!hasFFLMCOJAJAI() || fFLMCOJAJAI == other.fFLMCOJAJAI) + && (!hasCNFMGJHFABD() || cNFMGJHFABD == other.cNFMGJHFABD) + && (!hasHIFKDHKJGAC() || hIFKDHKJGAC.equals(other.hIFKDHKJGAC)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(lHCJBLAECHK); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(miracleId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(fFLMCOJAJAI); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(cNFMGJHFABD); + } + if ((bitField0_ & 0x00000010) != 0) { + for (int i = 0; i < hIFKDHKJGAC.length(); i++) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(hIFKDHKJGAC.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(lHCJBLAECHK); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(miracleId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(fFLMCOJAJAI); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(cNFMGJHFABD); + } + if ((bitField0_ & 0x00000010) != 0) { + size += (1 * hIFKDHKJGAC.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(hIFKDHKJGAC); + } + 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 8: { + // lHCJBLAECHK + lHCJBLAECHK = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // miracleId + miracleId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // fFLMCOJAJAI + fFLMCOJAJAI = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // cNFMGJHFABD + cNFMGJHFABD = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // hIFKDHKJGAC + tag = input.readRepeatedMessage(hIFKDHKJGAC, 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.lHCJBLAECHK, lHCJBLAECHK); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.miracleId, miracleId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.fFLMCOJAJAI, fFLMCOJAJAI); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.cNFMGJHFABD, cNFMGJHFABD); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRepeatedMessage(FieldNames.hIFKDHKJGAC, hIFKDHKJGAC); + } + output.endObject(); + } + + @Override + public RogueMiracleDataInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -431171691: { + if (input.isAtField(FieldNames.lHCJBLAECHK)) { + if (!input.trySkipNullValue()) { + lHCJBLAECHK = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -164571796: + case -806736983: { + if (input.isAtField(FieldNames.miracleId)) { + if (!input.trySkipNullValue()) { + miracleId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 686494478: { + if (input.isAtField(FieldNames.fFLMCOJAJAI)) { + if (!input.trySkipNullValue()) { + fFLMCOJAJAI = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1575260368: { + if (input.isAtField(FieldNames.cNFMGJHFABD)) { + if (!input.trySkipNullValue()) { + cNFMGJHFABD = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 255478432: { + if (input.isAtField(FieldNames.hIFKDHKJGAC)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(hIFKDHKJGAC); + 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 HIFKDHKJGACEntry} + */ + public static final class HIFKDHKJGACEntry 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 HIFKDHKJGACEntry() { + } + + /** + * @return a new empty instance of {@code HIFKDHKJGACEntry} + */ + public static HIFKDHKJGACEntry newInstance() { + return new HIFKDHKJGACEntry(); + } + + /** + * 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 HIFKDHKJGACEntry 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 HIFKDHKJGACEntry 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 HIFKDHKJGACEntry 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 HIFKDHKJGACEntry setValue(final int value) { + bitField0_ |= 0x00000002; + value_ = value; + return this; + } + + @Override + public HIFKDHKJGACEntry copyFrom(final HIFKDHKJGACEntry other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + key = other.key; + value_ = other.value_; + } + return this; + } + + @Override + public HIFKDHKJGACEntry mergeFrom(final HIFKDHKJGACEntry other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasKey()) { + setKey(other.key); + } + if (other.hasValue()) { + setValue(other.value_); + } + return this; + } + + @Override + public HIFKDHKJGACEntry clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + key = 0; + value_ = 0; + return this; + } + + @Override + public HIFKDHKJGACEntry 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 HIFKDHKJGACEntry)) { + return false; + } + HIFKDHKJGACEntry other = (HIFKDHKJGACEntry) 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 HIFKDHKJGACEntry 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 HIFKDHKJGACEntry 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 HIFKDHKJGACEntry clone() { + return new HIFKDHKJGACEntry().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static HIFKDHKJGACEntry parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new HIFKDHKJGACEntry(), data).checkInitialized(); + } + + public static HIFKDHKJGACEntry parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new HIFKDHKJGACEntry(), input).checkInitialized(); + } + + public static HIFKDHKJGACEntry parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new HIFKDHKJGACEntry(), input).checkInitialized(); + } + + /** + * @return factory for creating HIFKDHKJGACEntry messages + */ + public static MessageFactory getFactory() { + return HIFKDHKJGACEntryFactory.INSTANCE; + } + + private enum HIFKDHKJGACEntryFactory implements MessageFactory { + INSTANCE; + + @Override + public HIFKDHKJGACEntry create() { + return HIFKDHKJGACEntry.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 lHCJBLAECHK = FieldName.forField("LHCJBLAECHK"); + + static final FieldName miracleId = FieldName.forField("miracleId", "miracle_id"); + + static final FieldName fFLMCOJAJAI = FieldName.forField("FFLMCOJAJAI"); + + static final FieldName cNFMGJHFABD = FieldName.forField("CNFMGJHFABD"); + + static final FieldName hIFKDHKJGAC = FieldName.forField("HIFKDHKJGAC"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueMiracleDataOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueMiracleDataOuterClass.java new file mode 100644 index 0000000..6f65257 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueMiracleDataOuterClass.java @@ -0,0 +1,281 @@ +// 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 = 13; + */ + 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 = 13; + * @return whether the rogueMiracle field is set + */ + public boolean hasRogueMiracle() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .RogueMiracle rogue_miracle = 13; + * @return this + */ + public RogueMiracleData clearRogueMiracle() { + bitField0_ &= ~0x00000001; + rogueMiracle.clear(); + return this; + } + + /** + * optional .RogueMiracle rogue_miracle = 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 #getMutableRogueMiracle()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueMiracleOuterClass.RogueMiracle getRogueMiracle() { + return rogueMiracle; + } + + /** + * optional .RogueMiracle rogue_miracle = 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 RogueMiracleOuterClass.RogueMiracle getMutableRogueMiracle() { + bitField0_ |= 0x00000001; + return rogueMiracle; + } + + /** + * optional .RogueMiracle rogue_miracle = 13; + * @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) 106); + 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 106: { + // 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 new file mode 100644 index 0000000..1982a73 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueMiracleInfoDataOuterClass.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 RogueMiracleInfoDataOuterClass { + /** + * Protobuf type {@code RogueMiracleInfoData} + */ + public static final class RogueMiracleInfoData extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 EGCFBOPLHKJ = 4; + */ + private int eGCFBOPLHKJ; + + /** + * optional uint32 JPDGMALBBAB = 7; + */ + private int jPDGMALBBAB; + + /** + * repeated .RogueMiracleDataInfo rogue_miracle_list = 1; + */ + 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 EGCFBOPLHKJ = 4; + * @return whether the eGCFBOPLHKJ field is set + */ + public boolean hasEGCFBOPLHKJ() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 EGCFBOPLHKJ = 4; + * @return this + */ + public RogueMiracleInfoData clearEGCFBOPLHKJ() { + bitField0_ &= ~0x00000001; + eGCFBOPLHKJ = 0; + return this; + } + + /** + * optional uint32 EGCFBOPLHKJ = 4; + * @return the eGCFBOPLHKJ + */ + public int getEGCFBOPLHKJ() { + return eGCFBOPLHKJ; + } + + /** + * optional uint32 EGCFBOPLHKJ = 4; + * @param value the eGCFBOPLHKJ to set + * @return this + */ + public RogueMiracleInfoData setEGCFBOPLHKJ(final int value) { + bitField0_ |= 0x00000001; + eGCFBOPLHKJ = value; + return this; + } + + /** + * optional uint32 JPDGMALBBAB = 7; + * @return whether the jPDGMALBBAB field is set + */ + public boolean hasJPDGMALBBAB() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 JPDGMALBBAB = 7; + * @return this + */ + public RogueMiracleInfoData clearJPDGMALBBAB() { + bitField0_ &= ~0x00000002; + jPDGMALBBAB = 0; + return this; + } + + /** + * optional uint32 JPDGMALBBAB = 7; + * @return the jPDGMALBBAB + */ + public int getJPDGMALBBAB() { + return jPDGMALBBAB; + } + + /** + * optional uint32 JPDGMALBBAB = 7; + * @param value the jPDGMALBBAB to set + * @return this + */ + public RogueMiracleInfoData setJPDGMALBBAB(final int value) { + bitField0_ |= 0x00000002; + jPDGMALBBAB = value; + return this; + } + + /** + * repeated .RogueMiracleDataInfo rogue_miracle_list = 1; + * @return whether the rogueMiracleList field is set + */ + public boolean hasRogueMiracleList() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated .RogueMiracleDataInfo rogue_miracle_list = 1; + * @return this + */ + public RogueMiracleInfoData clearRogueMiracleList() { + bitField0_ &= ~0x00000004; + rogueMiracleList.clear(); + return this; + } + + /** + * repeated .RogueMiracleDataInfo rogue_miracle_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 #getMutableRogueMiracleList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getRogueMiracleList( + ) { + return rogueMiracleList; + } + + /** + * repeated .RogueMiracleDataInfo rogue_miracle_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 getMutableRogueMiracleList( + ) { + bitField0_ |= 0x00000004; + return rogueMiracleList; + } + + /** + * repeated .RogueMiracleDataInfo rogue_miracle_list = 1; + * @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 = 1; + * @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_; + eGCFBOPLHKJ = other.eGCFBOPLHKJ; + jPDGMALBBAB = other.jPDGMALBBAB; + rogueMiracleList.copyFrom(other.rogueMiracleList); + } + return this; + } + + @Override + public RogueMiracleInfoData mergeFrom(final RogueMiracleInfoData other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasEGCFBOPLHKJ()) { + setEGCFBOPLHKJ(other.eGCFBOPLHKJ); + } + if (other.hasJPDGMALBBAB()) { + setJPDGMALBBAB(other.jPDGMALBBAB); + } + if (other.hasRogueMiracleList()) { + getMutableRogueMiracleList().addAll(other.rogueMiracleList); + } + return this; + } + + @Override + public RogueMiracleInfoData clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + eGCFBOPLHKJ = 0; + jPDGMALBBAB = 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_ + && (!hasEGCFBOPLHKJ() || eGCFBOPLHKJ == other.eGCFBOPLHKJ) + && (!hasJPDGMALBBAB() || jPDGMALBBAB == other.jPDGMALBBAB) + && (!hasRogueMiracleList() || rogueMiracleList.equals(other.rogueMiracleList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(eGCFBOPLHKJ); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(jPDGMALBBAB); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < rogueMiracleList.length(); i++) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(rogueMiracleList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(eGCFBOPLHKJ); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(jPDGMALBBAB); + } + 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 32: { + // eGCFBOPLHKJ + eGCFBOPLHKJ = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // jPDGMALBBAB + jPDGMALBBAB = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // 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.eGCFBOPLHKJ, eGCFBOPLHKJ); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.jPDGMALBBAB, jPDGMALBBAB); + } + 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 1177746393: { + if (input.isAtField(FieldNames.eGCFBOPLHKJ)) { + if (!input.trySkipNullValue()) { + eGCFBOPLHKJ = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -282541776: { + if (input.isAtField(FieldNames.jPDGMALBBAB)) { + if (!input.trySkipNullValue()) { + jPDGMALBBAB = 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 eGCFBOPLHKJ = FieldName.forField("EGCFBOPLHKJ"); + + static final FieldName jPDGMALBBAB = FieldName.forField("JPDGMALBBAB"); + + 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 index bdc37b6..e33b4f4 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueMiracleInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RogueMiracleInfoOuterClass.java @@ -19,14 +19,9 @@ public final class RogueMiracleInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional .RogueAchivedMiracleInfo rogue_miracle_info = 2; + * optional .RogueMiracleInfoData rogue_miracle_info = 4; */ - private final RogueAchivedMiracleInfoOuterClass.RogueAchivedMiracleInfo rogueMiracleInfo = RogueAchivedMiracleInfoOuterClass.RogueAchivedMiracleInfo.newInstance(); - - /** - * optional .RogueMiracleSelectInfo miracle_select_info = 3; - */ - private final RogueMiracleSelectInfoOuterClass.RogueMiracleSelectInfo miracleSelectInfo = RogueMiracleSelectInfoOuterClass.RogueMiracleSelectInfo.newInstance(); + private final RogueMiracleInfoDataOuterClass.RogueMiracleInfoData rogueMiracleInfo = RogueMiracleInfoDataOuterClass.RogueMiracleInfoData.newInstance(); private RogueMiracleInfo() { } @@ -39,7 +34,7 @@ public final class RogueMiracleInfoOuterClass { } /** - * optional .RogueAchivedMiracleInfo rogue_miracle_info = 2; + * optional .RogueMiracleInfoData rogue_miracle_info = 4; * @return whether the rogueMiracleInfo field is set */ public boolean hasRogueMiracleInfo() { @@ -47,7 +42,7 @@ public final class RogueMiracleInfoOuterClass { } /** - * optional .RogueAchivedMiracleInfo rogue_miracle_info = 2; + * optional .RogueMiracleInfoData rogue_miracle_info = 4; * @return this */ public RogueMiracleInfo clearRogueMiracleInfo() { @@ -57,7 +52,7 @@ public final class RogueMiracleInfoOuterClass { } /** - * optional .RogueAchivedMiracleInfo rogue_miracle_info = 2; + * optional .RogueMiracleInfoData rogue_miracle_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. @@ -66,12 +61,12 @@ public final class RogueMiracleInfoOuterClass { * * @return internal storage object for reading */ - public RogueAchivedMiracleInfoOuterClass.RogueAchivedMiracleInfo getRogueMiracleInfo() { + public RogueMiracleInfoDataOuterClass.RogueMiracleInfoData getRogueMiracleInfo() { return rogueMiracleInfo; } /** - * optional .RogueAchivedMiracleInfo rogue_miracle_info = 2; + * optional .RogueMiracleInfoData rogue_miracle_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 @@ -79,88 +74,29 @@ public final class RogueMiracleInfoOuterClass { * * @return internal storage object for modifications */ - public RogueAchivedMiracleInfoOuterClass.RogueAchivedMiracleInfo getMutableRogueMiracleInfo() { + public RogueMiracleInfoDataOuterClass.RogueMiracleInfoData getMutableRogueMiracleInfo() { bitField0_ |= 0x00000001; return rogueMiracleInfo; } /** - * optional .RogueAchivedMiracleInfo rogue_miracle_info = 2; + * optional .RogueMiracleInfoData rogue_miracle_info = 4; * @param value the rogueMiracleInfo to set * @return this */ public RogueMiracleInfo setRogueMiracleInfo( - final RogueAchivedMiracleInfoOuterClass.RogueAchivedMiracleInfo value) { + final RogueMiracleInfoDataOuterClass.RogueMiracleInfoData value) { bitField0_ |= 0x00000001; rogueMiracleInfo.copyFrom(value); return this; } - /** - * optional .RogueMiracleSelectInfo miracle_select_info = 3; - * @return whether the miracleSelectInfo field is set - */ - public boolean hasMiracleSelectInfo() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional .RogueMiracleSelectInfo miracle_select_info = 3; - * @return this - */ - public RogueMiracleInfo clearMiracleSelectInfo() { - bitField0_ &= ~0x00000002; - miracleSelectInfo.clear(); - return this; - } - - /** - * optional .RogueMiracleSelectInfo miracle_select_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 #getMutableMiracleSelectInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueMiracleSelectInfoOuterClass.RogueMiracleSelectInfo getMiracleSelectInfo() { - return miracleSelectInfo; - } - - /** - * optional .RogueMiracleSelectInfo miracle_select_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 RogueMiracleSelectInfoOuterClass.RogueMiracleSelectInfo getMutableMiracleSelectInfo() { - bitField0_ |= 0x00000002; - return miracleSelectInfo; - } - - /** - * optional .RogueMiracleSelectInfo miracle_select_info = 3; - * @param value the miracleSelectInfo to set - * @return this - */ - public RogueMiracleInfo setMiracleSelectInfo( - final RogueMiracleSelectInfoOuterClass.RogueMiracleSelectInfo value) { - bitField0_ |= 0x00000002; - miracleSelectInfo.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); - miracleSelectInfo.copyFrom(other.miracleSelectInfo); } return this; } @@ -174,9 +110,6 @@ public final class RogueMiracleInfoOuterClass { if (other.hasRogueMiracleInfo()) { getMutableRogueMiracleInfo().mergeFrom(other.rogueMiracleInfo); } - if (other.hasMiracleSelectInfo()) { - getMutableMiracleSelectInfo().mergeFrom(other.miracleSelectInfo); - } return this; } @@ -188,7 +121,6 @@ public final class RogueMiracleInfoOuterClass { cachedSize = -1; bitField0_ = 0; rogueMiracleInfo.clear(); - miracleSelectInfo.clear(); return this; } @@ -200,7 +132,6 @@ public final class RogueMiracleInfoOuterClass { cachedSize = -1; bitField0_ = 0; rogueMiracleInfo.clearQuick(); - miracleSelectInfo.clearQuick(); return this; } @@ -214,20 +145,15 @@ public final class RogueMiracleInfoOuterClass { } RogueMiracleInfo other = (RogueMiracleInfo) o; return bitField0_ == other.bitField0_ - && (!hasRogueMiracleInfo() || rogueMiracleInfo.equals(other.rogueMiracleInfo)) - && (!hasMiracleSelectInfo() || miracleSelectInfo.equals(other.miracleSelectInfo)); + && (!hasRogueMiracleInfo() || rogueMiracleInfo.equals(other.rogueMiracleInfo)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 18); + output.writeRawByte((byte) 34); output.writeMessageNoTag(rogueMiracleInfo); } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 26); - output.writeMessageNoTag(miracleSelectInfo); - } } @Override @@ -236,9 +162,6 @@ public final class RogueMiracleInfoOuterClass { if ((bitField0_ & 0x00000001) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(rogueMiracleInfo); } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(miracleSelectInfo); - } return size; } @@ -249,20 +172,11 @@ public final class RogueMiracleInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 18: { + case 34: { // rogueMiracleInfo input.readMessage(rogueMiracleInfo); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 26) { - break; - } - } - case 26: { - // miracleSelectInfo - input.readMessage(miracleSelectInfo); - bitField0_ |= 0x00000002; - tag = input.readTag(); if (tag != 0) { break; } @@ -287,9 +201,6 @@ public final class RogueMiracleInfoOuterClass { if ((bitField0_ & 0x00000001) != 0) { output.writeMessage(FieldNames.rogueMiracleInfo, rogueMiracleInfo); } - if ((bitField0_ & 0x00000002) != 0) { - output.writeMessage(FieldNames.miracleSelectInfo, miracleSelectInfo); - } output.endObject(); } @@ -312,18 +223,6 @@ public final class RogueMiracleInfoOuterClass { } break; } - case -1009314021: - case -1608054973: { - if (input.isAtField(FieldNames.miracleSelectInfo)) { - if (!input.trySkipNullValue()) { - input.readMessage(miracleSelectInfo); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } default: { input.skipUnknownField(); break; @@ -378,8 +277,6 @@ public final class RogueMiracleInfoOuterClass { */ static class FieldNames { static final FieldName rogueMiracleInfo = FieldName.forField("rogueMiracleInfo", "rogue_miracle_info"); - - static final FieldName miracleSelectInfo = FieldName.forField("miracleSelectInfo", "miracle_select_info"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/RogueMiracleOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueMiracleOuterClass.java index a6009d0..5e17ce5 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueMiracleOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RogueMiracleOuterClass.java @@ -20,24 +20,24 @@ public final class RogueMiracleOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 total_count = 2; + * optional uint32 CNFMGJHFABD = 8; */ - private int totalCount; + private int cNFMGJHFABD; /** - * optional uint32 miracle_id = 6; + * optional uint32 FFLMCOJAJAI = 10; + */ + private int fFLMCOJAJAI; + + /** + * optional uint32 miracle_id = 12; */ private int miracleId; /** - * optional uint32 use_count = 12; + * repeated .RogueMiracle.HIFKDHKJGACEntry HIFKDHKJGAC = 15; */ - private int useCount; - - /** - * repeated .RogueMiracle.EffectCountEntry effect_count = 11; - */ - private final RepeatedMessage effectCount = RepeatedMessage.newEmptyInstance(EffectCountEntry.getFactory()); + private final RepeatedMessage hIFKDHKJGAC = RepeatedMessage.newEmptyInstance(HIFKDHKJGACEntry.getFactory()); private RogueMiracle() { } @@ -50,62 +50,99 @@ public final class RogueMiracleOuterClass { } /** - * optional uint32 total_count = 2; - * @return whether the totalCount field is set + * optional uint32 CNFMGJHFABD = 8; + * @return whether the cNFMGJHFABD field is set */ - public boolean hasTotalCount() { + public boolean hasCNFMGJHFABD() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 total_count = 2; + * optional uint32 CNFMGJHFABD = 8; * @return this */ - public RogueMiracle clearTotalCount() { + public RogueMiracle clearCNFMGJHFABD() { bitField0_ &= ~0x00000001; - totalCount = 0; + cNFMGJHFABD = 0; return this; } /** - * optional uint32 total_count = 2; - * @return the totalCount + * optional uint32 CNFMGJHFABD = 8; + * @return the cNFMGJHFABD */ - public int getTotalCount() { - return totalCount; + public int getCNFMGJHFABD() { + return cNFMGJHFABD; } /** - * optional uint32 total_count = 2; - * @param value the totalCount to set + * optional uint32 CNFMGJHFABD = 8; + * @param value the cNFMGJHFABD to set * @return this */ - public RogueMiracle setTotalCount(final int value) { + public RogueMiracle setCNFMGJHFABD(final int value) { bitField0_ |= 0x00000001; - totalCount = value; + cNFMGJHFABD = value; return this; } /** - * optional uint32 miracle_id = 6; - * @return whether the miracleId field is set + * optional uint32 FFLMCOJAJAI = 10; + * @return whether the fFLMCOJAJAI field is set */ - public boolean hasMiracleId() { + public boolean hasFFLMCOJAJAI() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 miracle_id = 6; + * optional uint32 FFLMCOJAJAI = 10; + * @return this + */ + public RogueMiracle clearFFLMCOJAJAI() { + bitField0_ &= ~0x00000002; + fFLMCOJAJAI = 0; + return this; + } + + /** + * optional uint32 FFLMCOJAJAI = 10; + * @return the fFLMCOJAJAI + */ + public int getFFLMCOJAJAI() { + return fFLMCOJAJAI; + } + + /** + * optional uint32 FFLMCOJAJAI = 10; + * @param value the fFLMCOJAJAI to set + * @return this + */ + public RogueMiracle setFFLMCOJAJAI(final int value) { + bitField0_ |= 0x00000002; + fFLMCOJAJAI = 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_ &= ~0x00000002; + bitField0_ &= ~0x00000004; miracleId = 0; return this; } /** - * optional uint32 miracle_id = 6; + * optional uint32 miracle_id = 12; * @return the miracleId */ public int getMiracleId() { @@ -113,87 +150,50 @@ public final class RogueMiracleOuterClass { } /** - * optional uint32 miracle_id = 6; + * optional uint32 miracle_id = 12; * @param value the miracleId to set * @return this */ public RogueMiracle setMiracleId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; miracleId = value; return this; } /** - * optional uint32 use_count = 12; - * @return whether the useCount field is set + * repeated .RogueMiracle.HIFKDHKJGACEntry HIFKDHKJGAC = 15; + * @return whether the hIFKDHKJGAC field is set */ - public boolean hasUseCount() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 use_count = 12; - * @return this - */ - public RogueMiracle clearUseCount() { - bitField0_ &= ~0x00000004; - useCount = 0; - return this; - } - - /** - * optional uint32 use_count = 12; - * @return the useCount - */ - public int getUseCount() { - return useCount; - } - - /** - * optional uint32 use_count = 12; - * @param value the useCount to set - * @return this - */ - public RogueMiracle setUseCount(final int value) { - bitField0_ |= 0x00000004; - useCount = value; - return this; - } - - /** - * repeated .RogueMiracle.EffectCountEntry effect_count = 11; - * @return whether the effectCount field is set - */ - public boolean hasEffectCount() { + public boolean hasHIFKDHKJGAC() { return (bitField0_ & 0x00000008) != 0; } /** - * repeated .RogueMiracle.EffectCountEntry effect_count = 11; + * repeated .RogueMiracle.HIFKDHKJGACEntry HIFKDHKJGAC = 15; * @return this */ - public RogueMiracle clearEffectCount() { + public RogueMiracle clearHIFKDHKJGAC() { bitField0_ &= ~0x00000008; - effectCount.clear(); + hIFKDHKJGAC.clear(); return this; } /** - * repeated .RogueMiracle.EffectCountEntry effect_count = 11; + * repeated .RogueMiracle.HIFKDHKJGACEntry HIFKDHKJGAC = 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 #getMutableEffectCount()} if you want to modify it. + * Use {@link #getMutableHIFKDHKJGAC()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedMessage getEffectCount() { - return effectCount; + public RepeatedMessage getHIFKDHKJGAC() { + return hIFKDHKJGAC; } /** - * repeated .RogueMiracle.EffectCountEntry effect_count = 11; + * repeated .RogueMiracle.HIFKDHKJGACEntry HIFKDHKJGAC = 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 @@ -201,30 +201,30 @@ public final class RogueMiracleOuterClass { * * @return internal storage object for modifications */ - public RepeatedMessage getMutableEffectCount() { + public RepeatedMessage getMutableHIFKDHKJGAC() { bitField0_ |= 0x00000008; - return effectCount; + return hIFKDHKJGAC; } /** - * repeated .RogueMiracle.EffectCountEntry effect_count = 11; - * @param value the effectCount to add + * repeated .RogueMiracle.HIFKDHKJGACEntry HIFKDHKJGAC = 15; + * @param value the hIFKDHKJGAC to add * @return this */ - public RogueMiracle addEffectCount(final EffectCountEntry value) { + public RogueMiracle addHIFKDHKJGAC(final HIFKDHKJGACEntry value) { bitField0_ |= 0x00000008; - effectCount.add(value); + hIFKDHKJGAC.add(value); return this; } /** - * repeated .RogueMiracle.EffectCountEntry effect_count = 11; - * @param values the effectCount to add + * repeated .RogueMiracle.HIFKDHKJGACEntry HIFKDHKJGAC = 15; + * @param values the hIFKDHKJGAC to add * @return this */ - public RogueMiracle addAllEffectCount(final EffectCountEntry... values) { + public RogueMiracle addAllHIFKDHKJGAC(final HIFKDHKJGACEntry... values) { bitField0_ |= 0x00000008; - effectCount.addAll(values); + hIFKDHKJGAC.addAll(values); return this; } @@ -233,10 +233,10 @@ public final class RogueMiracleOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - totalCount = other.totalCount; + cNFMGJHFABD = other.cNFMGJHFABD; + fFLMCOJAJAI = other.fFLMCOJAJAI; miracleId = other.miracleId; - useCount = other.useCount; - effectCount.copyFrom(other.effectCount); + hIFKDHKJGAC.copyFrom(other.hIFKDHKJGAC); } return this; } @@ -247,17 +247,17 @@ public final class RogueMiracleOuterClass { return this; } cachedSize = -1; - if (other.hasTotalCount()) { - setTotalCount(other.totalCount); + if (other.hasCNFMGJHFABD()) { + setCNFMGJHFABD(other.cNFMGJHFABD); + } + if (other.hasFFLMCOJAJAI()) { + setFFLMCOJAJAI(other.fFLMCOJAJAI); } if (other.hasMiracleId()) { setMiracleId(other.miracleId); } - if (other.hasUseCount()) { - setUseCount(other.useCount); - } - if (other.hasEffectCount()) { - getMutableEffectCount().addAll(other.effectCount); + if (other.hasHIFKDHKJGAC()) { + getMutableHIFKDHKJGAC().addAll(other.hIFKDHKJGAC); } return this; } @@ -269,10 +269,10 @@ public final class RogueMiracleOuterClass { } cachedSize = -1; bitField0_ = 0; - totalCount = 0; + cNFMGJHFABD = 0; + fFLMCOJAJAI = 0; miracleId = 0; - useCount = 0; - effectCount.clear(); + hIFKDHKJGAC.clear(); return this; } @@ -283,7 +283,7 @@ public final class RogueMiracleOuterClass { } cachedSize = -1; bitField0_ = 0; - effectCount.clearQuick(); + hIFKDHKJGAC.clearQuick(); return this; } @@ -297,30 +297,30 @@ public final class RogueMiracleOuterClass { } RogueMiracle other = (RogueMiracle) o; return bitField0_ == other.bitField0_ - && (!hasTotalCount() || totalCount == other.totalCount) + && (!hasCNFMGJHFABD() || cNFMGJHFABD == other.cNFMGJHFABD) + && (!hasFFLMCOJAJAI() || fFLMCOJAJAI == other.fFLMCOJAJAI) && (!hasMiracleId() || miracleId == other.miracleId) - && (!hasUseCount() || useCount == other.useCount) - && (!hasEffectCount() || effectCount.equals(other.effectCount)); + && (!hasHIFKDHKJGAC() || hIFKDHKJGAC.equals(other.hIFKDHKJGAC)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(totalCount); + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(cNFMGJHFABD); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 48); - output.writeUInt32NoTag(miracleId); + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(fFLMCOJAJAI); } if ((bitField0_ & 0x00000004) != 0) { output.writeRawByte((byte) 96); - output.writeUInt32NoTag(useCount); + output.writeUInt32NoTag(miracleId); } if ((bitField0_ & 0x00000008) != 0) { - for (int i = 0; i < effectCount.length(); i++) { - output.writeRawByte((byte) 90); - output.writeMessageNoTag(effectCount.get(i)); + for (int i = 0; i < hIFKDHKJGAC.length(); i++) { + output.writeRawByte((byte) 122); + output.writeMessageNoTag(hIFKDHKJGAC.get(i)); } } } @@ -329,16 +329,16 @@ public final class RogueMiracleOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(totalCount); + size += 1 + ProtoSink.computeUInt32SizeNoTag(cNFMGJHFABD); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(miracleId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(fFLMCOJAJAI); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(useCount); + size += 1 + ProtoSink.computeUInt32SizeNoTag(miracleId); } if ((bitField0_ & 0x00000008) != 0) { - size += (1 * effectCount.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(effectCount); + size += (1 * hIFKDHKJGAC.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(hIFKDHKJGAC); } return size; } @@ -350,18 +350,18 @@ public final class RogueMiracleOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { - // totalCount - totalCount = input.readUInt32(); + case 64: { + // cNFMGJHFABD + cNFMGJHFABD = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 48) { + if (tag != 80) { break; } } - case 48: { - // miracleId - miracleId = input.readUInt32(); + case 80: { + // fFLMCOJAJAI + fFLMCOJAJAI = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 96) { @@ -369,17 +369,17 @@ public final class RogueMiracleOuterClass { } } case 96: { - // useCount - useCount = input.readUInt32(); + // miracleId + miracleId = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 90) { + if (tag != 122) { break; } } - case 90: { - // effectCount - tag = input.readRepeatedMessage(effectCount, tag); + case 122: { + // hIFKDHKJGAC + tag = input.readRepeatedMessage(hIFKDHKJGAC, tag); bitField0_ |= 0x00000008; if (tag != 0) { break; @@ -403,16 +403,16 @@ public final class RogueMiracleOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.totalCount, totalCount); + output.writeUInt32(FieldNames.cNFMGJHFABD, cNFMGJHFABD); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.miracleId, miracleId); + output.writeUInt32(FieldNames.fFLMCOJAJAI, fFLMCOJAJAI); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.useCount, useCount); + output.writeUInt32(FieldNames.miracleId, miracleId); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRepeatedMessage(FieldNames.effectCount, effectCount); + output.writeRepeatedMessage(FieldNames.hIFKDHKJGAC, hIFKDHKJGAC); } output.endObject(); } @@ -424,11 +424,10 @@ public final class RogueMiracleOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -731385813: - case -407761836: { - if (input.isAtField(FieldNames.totalCount)) { + case 1575260368: { + if (input.isAtField(FieldNames.cNFMGJHFABD)) { if (!input.trySkipNullValue()) { - totalCount = input.readUInt32(); + cNFMGJHFABD = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -436,23 +435,22 @@ public final class RogueMiracleOuterClass { } break; } + case 686494478: { + if (input.isAtField(FieldNames.fFLMCOJAJAI)) { + if (!input.trySkipNullValue()) { + fFLMCOJAJAI = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } case -164571796: case -806736983: { if (input.isAtField(FieldNames.miracleId)) { if (!input.trySkipNullValue()) { miracleId = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case -309069880: - case -200869801: { - if (input.isAtField(FieldNames.useCount)) { - if (!input.trySkipNullValue()) { - useCount = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -460,11 +458,10 @@ public final class RogueMiracleOuterClass { } break; } - case 1635252734: - case -56410911: { - if (input.isAtField(FieldNames.effectCount)) { + case 255478432: { + if (input.isAtField(FieldNames.hIFKDHKJGAC)) { if (!input.trySkipNullValue()) { - input.readRepeatedMessage(effectCount); + input.readRepeatedMessage(hIFKDHKJGAC); bitField0_ |= 0x00000008; } } else { @@ -512,9 +509,9 @@ public final class RogueMiracleOuterClass { } /** - * Protobuf type {@code EffectCountEntry} + * Protobuf type {@code HIFKDHKJGACEntry} */ - public static final class EffectCountEntry extends ProtoMessage implements Cloneable { + public static final class HIFKDHKJGACEntry extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** @@ -527,14 +524,14 @@ public final class RogueMiracleOuterClass { */ private int value_; - private EffectCountEntry() { + private HIFKDHKJGACEntry() { } /** - * @return a new empty instance of {@code EffectCountEntry} + * @return a new empty instance of {@code HIFKDHKJGACEntry} */ - public static EffectCountEntry newInstance() { - return new EffectCountEntry(); + public static HIFKDHKJGACEntry newInstance() { + return new HIFKDHKJGACEntry(); } /** @@ -549,7 +546,7 @@ public final class RogueMiracleOuterClass { * optional uint32 key = 1; * @return this */ - public EffectCountEntry clearKey() { + public HIFKDHKJGACEntry clearKey() { bitField0_ &= ~0x00000001; key = 0; return this; @@ -568,7 +565,7 @@ public final class RogueMiracleOuterClass { * @param value the key to set * @return this */ - public EffectCountEntry setKey(final int value) { + public HIFKDHKJGACEntry setKey(final int value) { bitField0_ |= 0x00000001; key = value; return this; @@ -586,7 +583,7 @@ public final class RogueMiracleOuterClass { * optional uint32 value = 2; * @return this */ - public EffectCountEntry clearValue() { + public HIFKDHKJGACEntry clearValue() { bitField0_ &= ~0x00000002; value_ = 0; return this; @@ -605,14 +602,14 @@ public final class RogueMiracleOuterClass { * @param value the value_ to set * @return this */ - public EffectCountEntry setValue(final int value) { + public HIFKDHKJGACEntry setValue(final int value) { bitField0_ |= 0x00000002; value_ = value; return this; } @Override - public EffectCountEntry copyFrom(final EffectCountEntry other) { + public HIFKDHKJGACEntry copyFrom(final HIFKDHKJGACEntry other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; @@ -623,7 +620,7 @@ public final class RogueMiracleOuterClass { } @Override - public EffectCountEntry mergeFrom(final EffectCountEntry other) { + public HIFKDHKJGACEntry mergeFrom(final HIFKDHKJGACEntry other) { if (other.isEmpty()) { return this; } @@ -638,7 +635,7 @@ public final class RogueMiracleOuterClass { } @Override - public EffectCountEntry clear() { + public HIFKDHKJGACEntry clear() { if (isEmpty()) { return this; } @@ -650,7 +647,7 @@ public final class RogueMiracleOuterClass { } @Override - public EffectCountEntry clearQuick() { + public HIFKDHKJGACEntry clearQuick() { if (isEmpty()) { return this; } @@ -664,10 +661,10 @@ public final class RogueMiracleOuterClass { if (o == this) { return true; } - if (!(o instanceof EffectCountEntry)) { + if (!(o instanceof HIFKDHKJGACEntry)) { return false; } - EffectCountEntry other = (EffectCountEntry) o; + HIFKDHKJGACEntry other = (HIFKDHKJGACEntry) o; return bitField0_ == other.bitField0_ && (!hasKey() || key == other.key) && (!hasValue() || value_ == other.value_); @@ -699,7 +696,7 @@ public final class RogueMiracleOuterClass { @Override @SuppressWarnings("fallthrough") - public EffectCountEntry mergeFrom(final ProtoSource input) throws IOException { + public HIFKDHKJGACEntry mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { @@ -749,7 +746,7 @@ public final class RogueMiracleOuterClass { } @Override - public EffectCountEntry mergeFrom(final JsonSource input) throws IOException { + public HIFKDHKJGACEntry mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } @@ -788,8 +785,8 @@ public final class RogueMiracleOuterClass { } @Override - public EffectCountEntry clone() { - return new EffectCountEntry().copyFrom(this); + public HIFKDHKJGACEntry clone() { + return new HIFKDHKJGACEntry().copyFrom(this); } @Override @@ -797,32 +794,32 @@ public final class RogueMiracleOuterClass { return ((bitField0_) == 0); } - public static EffectCountEntry parseFrom(final byte[] data) throws + public static HIFKDHKJGACEntry parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new EffectCountEntry(), data).checkInitialized(); + return ProtoMessage.mergeFrom(new HIFKDHKJGACEntry(), data).checkInitialized(); } - public static EffectCountEntry parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new EffectCountEntry(), input).checkInitialized(); + public static HIFKDHKJGACEntry parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new HIFKDHKJGACEntry(), input).checkInitialized(); } - public static EffectCountEntry parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new EffectCountEntry(), input).checkInitialized(); + public static HIFKDHKJGACEntry parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new HIFKDHKJGACEntry(), input).checkInitialized(); } /** - * @return factory for creating EffectCountEntry messages + * @return factory for creating HIFKDHKJGACEntry messages */ - public static MessageFactory getFactory() { - return EffectCountEntryFactory.INSTANCE; + public static MessageFactory getFactory() { + return HIFKDHKJGACEntryFactory.INSTANCE; } - private enum EffectCountEntryFactory implements MessageFactory { + private enum HIFKDHKJGACEntryFactory implements MessageFactory { INSTANCE; @Override - public EffectCountEntry create() { - return EffectCountEntry.newInstance(); + public HIFKDHKJGACEntry create() { + return HIFKDHKJGACEntry.newInstance(); } } @@ -849,13 +846,13 @@ public final class RogueMiracleOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName totalCount = FieldName.forField("totalCount", "total_count"); + static final FieldName cNFMGJHFABD = FieldName.forField("CNFMGJHFABD"); + + static final FieldName fFLMCOJAJAI = FieldName.forField("FFLMCOJAJAI"); static final FieldName miracleId = FieldName.forField("miracleId", "miracle_id"); - static final FieldName useCount = FieldName.forField("useCount", "use_count"); - - static final FieldName effectCount = FieldName.forField("effectCount", "effect_count"); + static final FieldName hIFKDHKJGAC = FieldName.forField("HIFKDHKJGAC"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/RogueMiracleSelectInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueMiracleSelectInfoOuterClass.java index e2256c2..ba0e9d3 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueMiracleSelectInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RogueMiracleSelectInfoOuterClass.java @@ -20,19 +20,32 @@ public final class RogueMiracleSelectInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional bool show_handbook_hint = 7; + *
+     *  idk
+     * 
+ * + * optional uint32 MMHMDBDONIA = 2; */ - private boolean showHandbookHint; + private int mMHMDBDONIA; /** - * optional .RogueAchivedMiracleInfo rogue_miracle_info = 13; + *
+     *  idk guess source
+     * 
+ * + * optional uint32 OJOMBNGGHFI = 8; */ - private final RogueAchivedMiracleInfoOuterClass.RogueAchivedMiracleInfo rogueMiracleInfo = RogueAchivedMiracleInfoOuterClass.RogueAchivedMiracleInfo.newInstance(); + private int oJOMBNGGHFI; /** - * repeated uint32 miracle_id_list = 12; + * repeated uint32 miracle_info = 5; */ - private final RepeatedInt miracleIdList = RepeatedInt.newEmptyInstance(); + private final RepeatedInt miracleInfo = RepeatedInt.newEmptyInstance(); + + /** + * repeated uint32 miracle_info_remote = 13; + */ + private final RepeatedInt miracleInfoRemote = RepeatedInt.newEmptyInstance(); private RogueMiracleSelectInfo() { } @@ -45,134 +58,145 @@ public final class RogueMiracleSelectInfoOuterClass { } /** - * optional bool show_handbook_hint = 7; - * @return whether the showHandbookHint field is set + *
+     *  idk
+     * 
+ * + * optional uint32 MMHMDBDONIA = 2; + * @return whether the mMHMDBDONIA field is set */ - public boolean hasShowHandbookHint() { + public boolean hasMMHMDBDONIA() { return (bitField0_ & 0x00000001) != 0; } /** - * optional bool show_handbook_hint = 7; + *
+     *  idk
+     * 
+ * + * optional uint32 MMHMDBDONIA = 2; * @return this */ - public RogueMiracleSelectInfo clearShowHandbookHint() { + public RogueMiracleSelectInfo clearMMHMDBDONIA() { bitField0_ &= ~0x00000001; - showHandbookHint = false; + mMHMDBDONIA = 0; return this; } /** - * optional bool show_handbook_hint = 7; - * @return the showHandbookHint + *
+     *  idk
+     * 
+ * + * optional uint32 MMHMDBDONIA = 2; + * @return the mMHMDBDONIA */ - public boolean getShowHandbookHint() { - return showHandbookHint; + public int getMMHMDBDONIA() { + return mMHMDBDONIA; } /** - * optional bool show_handbook_hint = 7; - * @param value the showHandbookHint to set + *
+     *  idk
+     * 
+ * + * optional uint32 MMHMDBDONIA = 2; + * @param value the mMHMDBDONIA to set * @return this */ - public RogueMiracleSelectInfo setShowHandbookHint(final boolean value) { + public RogueMiracleSelectInfo setMMHMDBDONIA(final int value) { bitField0_ |= 0x00000001; - showHandbookHint = value; + mMHMDBDONIA = value; return this; } /** - * optional .RogueAchivedMiracleInfo rogue_miracle_info = 13; - * @return whether the rogueMiracleInfo field is set + *
+     *  idk guess source
+     * 
+ * + * optional uint32 OJOMBNGGHFI = 8; + * @return whether the oJOMBNGGHFI field is set */ - public boolean hasRogueMiracleInfo() { + public boolean hasOJOMBNGGHFI() { return (bitField0_ & 0x00000002) != 0; } /** - * optional .RogueAchivedMiracleInfo rogue_miracle_info = 13; + *
+     *  idk guess source
+     * 
+ * + * optional uint32 OJOMBNGGHFI = 8; * @return this */ - public RogueMiracleSelectInfo clearRogueMiracleInfo() { + public RogueMiracleSelectInfo clearOJOMBNGGHFI() { bitField0_ &= ~0x00000002; - rogueMiracleInfo.clear(); + oJOMBNGGHFI = 0; return this; } /** - * optional .RogueAchivedMiracleInfo rogue_miracle_info = 13; + *
+     *  idk guess source
+     * 
* - * This method returns 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 + * optional uint32 OJOMBNGGHFI = 8; + * @return the oJOMBNGGHFI */ - public RogueAchivedMiracleInfoOuterClass.RogueAchivedMiracleInfo getRogueMiracleInfo() { - return rogueMiracleInfo; + public int getOJOMBNGGHFI() { + return oJOMBNGGHFI; } /** - * optional .RogueAchivedMiracleInfo rogue_miracle_info = 13; + *
+     *  idk guess source
+     * 
* - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueAchivedMiracleInfoOuterClass.RogueAchivedMiracleInfo getMutableRogueMiracleInfo() { - bitField0_ |= 0x00000002; - return rogueMiracleInfo; - } - - /** - * optional .RogueAchivedMiracleInfo rogue_miracle_info = 13; - * @param value the rogueMiracleInfo to set + * optional uint32 OJOMBNGGHFI = 8; + * @param value the oJOMBNGGHFI to set * @return this */ - public RogueMiracleSelectInfo setRogueMiracleInfo( - final RogueAchivedMiracleInfoOuterClass.RogueAchivedMiracleInfo value) { + public RogueMiracleSelectInfo setOJOMBNGGHFI(final int value) { bitField0_ |= 0x00000002; - rogueMiracleInfo.copyFrom(value); + oJOMBNGGHFI = value; return this; } /** - * repeated uint32 miracle_id_list = 12; - * @return whether the miracleIdList field is set + * repeated uint32 miracle_info = 5; + * @return whether the miracleInfo field is set */ - public boolean hasMiracleIdList() { + public boolean hasMiracleInfo() { return (bitField0_ & 0x00000004) != 0; } /** - * repeated uint32 miracle_id_list = 12; + * repeated uint32 miracle_info = 5; * @return this */ - public RogueMiracleSelectInfo clearMiracleIdList() { + public RogueMiracleSelectInfo clearMiracleInfo() { bitField0_ &= ~0x00000004; - miracleIdList.clear(); + miracleInfo.clear(); return this; } /** - * repeated uint32 miracle_id_list = 12; + * repeated uint32 miracle_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 #getMutableMiracleIdList()} if you want to modify it. + * Use {@link #getMutableMiracleInfo()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedInt getMiracleIdList() { - return miracleIdList; + public RepeatedInt getMiracleInfo() { + return miracleInfo; } /** - * repeated uint32 miracle_id_list = 12; + * repeated uint32 miracle_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 @@ -180,30 +204,98 @@ public final class RogueMiracleSelectInfoOuterClass { * * @return internal storage object for modifications */ - public RepeatedInt getMutableMiracleIdList() { + public RepeatedInt getMutableMiracleInfo() { bitField0_ |= 0x00000004; - return miracleIdList; + return miracleInfo; } /** - * repeated uint32 miracle_id_list = 12; - * @param value the miracleIdList to add + * repeated uint32 miracle_info = 5; + * @param value the miracleInfo to add * @return this */ - public RogueMiracleSelectInfo addMiracleIdList(final int value) { + public RogueMiracleSelectInfo addMiracleInfo(final int value) { bitField0_ |= 0x00000004; - miracleIdList.add(value); + miracleInfo.add(value); return this; } /** - * repeated uint32 miracle_id_list = 12; - * @param values the miracleIdList to add + * repeated uint32 miracle_info = 5; + * @param values the miracleInfo to add * @return this */ - public RogueMiracleSelectInfo addAllMiracleIdList(final int... values) { + public RogueMiracleSelectInfo addAllMiracleInfo(final int... values) { bitField0_ |= 0x00000004; - miracleIdList.addAll(values); + miracleInfo.addAll(values); + return this; + } + + /** + * repeated uint32 miracle_info_remote = 13; + * @return whether the miracleInfoRemote field is set + */ + public boolean hasMiracleInfoRemote() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated uint32 miracle_info_remote = 13; + * @return this + */ + public RogueMiracleSelectInfo clearMiracleInfoRemote() { + bitField0_ &= ~0x00000008; + miracleInfoRemote.clear(); + return this; + } + + /** + * repeated uint32 miracle_info_remote = 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 #getMutableMiracleInfoRemote()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getMiracleInfoRemote() { + return miracleInfoRemote; + } + + /** + * repeated uint32 miracle_info_remote = 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 getMutableMiracleInfoRemote() { + bitField0_ |= 0x00000008; + return miracleInfoRemote; + } + + /** + * repeated uint32 miracle_info_remote = 13; + * @param value the miracleInfoRemote to add + * @return this + */ + public RogueMiracleSelectInfo addMiracleInfoRemote(final int value) { + bitField0_ |= 0x00000008; + miracleInfoRemote.add(value); + return this; + } + + /** + * repeated uint32 miracle_info_remote = 13; + * @param values the miracleInfoRemote to add + * @return this + */ + public RogueMiracleSelectInfo addAllMiracleInfoRemote(final int... values) { + bitField0_ |= 0x00000008; + miracleInfoRemote.addAll(values); return this; } @@ -212,9 +304,10 @@ public final class RogueMiracleSelectInfoOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - showHandbookHint = other.showHandbookHint; - rogueMiracleInfo.copyFrom(other.rogueMiracleInfo); - miracleIdList.copyFrom(other.miracleIdList); + mMHMDBDONIA = other.mMHMDBDONIA; + oJOMBNGGHFI = other.oJOMBNGGHFI; + miracleInfo.copyFrom(other.miracleInfo); + miracleInfoRemote.copyFrom(other.miracleInfoRemote); } return this; } @@ -225,14 +318,17 @@ public final class RogueMiracleSelectInfoOuterClass { return this; } cachedSize = -1; - if (other.hasShowHandbookHint()) { - setShowHandbookHint(other.showHandbookHint); + if (other.hasMMHMDBDONIA()) { + setMMHMDBDONIA(other.mMHMDBDONIA); } - if (other.hasRogueMiracleInfo()) { - getMutableRogueMiracleInfo().mergeFrom(other.rogueMiracleInfo); + if (other.hasOJOMBNGGHFI()) { + setOJOMBNGGHFI(other.oJOMBNGGHFI); } - if (other.hasMiracleIdList()) { - getMutableMiracleIdList().addAll(other.miracleIdList); + if (other.hasMiracleInfo()) { + getMutableMiracleInfo().addAll(other.miracleInfo); + } + if (other.hasMiracleInfoRemote()) { + getMutableMiracleInfoRemote().addAll(other.miracleInfoRemote); } return this; } @@ -244,9 +340,10 @@ public final class RogueMiracleSelectInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - showHandbookHint = false; - rogueMiracleInfo.clear(); - miracleIdList.clear(); + mMHMDBDONIA = 0; + oJOMBNGGHFI = 0; + miracleInfo.clear(); + miracleInfoRemote.clear(); return this; } @@ -257,8 +354,8 @@ public final class RogueMiracleSelectInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - rogueMiracleInfo.clearQuick(); - miracleIdList.clear(); + miracleInfo.clear(); + miracleInfoRemote.clear(); return this; } @@ -272,25 +369,32 @@ public final class RogueMiracleSelectInfoOuterClass { } RogueMiracleSelectInfo other = (RogueMiracleSelectInfo) o; return bitField0_ == other.bitField0_ - && (!hasShowHandbookHint() || showHandbookHint == other.showHandbookHint) - && (!hasRogueMiracleInfo() || rogueMiracleInfo.equals(other.rogueMiracleInfo)) - && (!hasMiracleIdList() || miracleIdList.equals(other.miracleIdList)); + && (!hasMMHMDBDONIA() || mMHMDBDONIA == other.mMHMDBDONIA) + && (!hasOJOMBNGGHFI() || oJOMBNGGHFI == other.oJOMBNGGHFI) + && (!hasMiracleInfo() || miracleInfo.equals(other.miracleInfo)) + && (!hasMiracleInfoRemote() || miracleInfoRemote.equals(other.miracleInfoRemote)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); - output.writeBoolNoTag(showHandbookHint); + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(mMHMDBDONIA); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 106); - output.writeMessageNoTag(rogueMiracleInfo); + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(oJOMBNGGHFI); } if ((bitField0_ & 0x00000004) != 0) { - for (int i = 0; i < miracleIdList.length(); i++) { - output.writeRawByte((byte) 96); - output.writeUInt32NoTag(miracleIdList.array()[i]); + for (int i = 0; i < miracleInfo.length(); i++) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(miracleInfo.array()[i]); + } + } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < miracleInfoRemote.length(); i++) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(miracleInfoRemote.array()[i]); } } } @@ -299,13 +403,16 @@ public final class RogueMiracleSelectInfoOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 2; + size += 1 + ProtoSink.computeUInt32SizeNoTag(mMHMDBDONIA); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(rogueMiracleInfo); + size += 1 + ProtoSink.computeUInt32SizeNoTag(oJOMBNGGHFI); } if ((bitField0_ & 0x00000004) != 0) { - size += (1 * miracleIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(miracleIdList); + size += (1 * miracleInfo.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(miracleInfo); + } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * miracleInfoRemote.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(miracleInfoRemote); } return size; } @@ -317,28 +424,37 @@ public final class RogueMiracleSelectInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 56: { - // showHandbookHint - showHandbookHint = input.readBool(); + case 16: { + // mMHMDBDONIA + mMHMDBDONIA = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { + // oJOMBNGGHFI + oJOMBNGGHFI = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { + // miracleInfo [packed=true] + input.readPackedUInt32(miracleInfo, tag); + bitField0_ |= 0x00000004; + tag = input.readTag(); if (tag != 106) { break; } } case 106: { - // rogueMiracleInfo - input.readMessage(rogueMiracleInfo); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 98) { - break; - } - } - case 98: { - // miracleIdList [packed=true] - input.readPackedUInt32(miracleIdList, tag); - bitField0_ |= 0x00000004; + // miracleInfoRemote [packed=true] + input.readPackedUInt32(miracleInfoRemote, tag); + bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 0) { break; @@ -354,12 +470,18 @@ public final class RogueMiracleSelectInfoOuterClass { tag = input.readTag(); break; } - case 96: { - // miracleIdList [packed=false] - tag = input.readRepeatedUInt32(miracleIdList, tag); + case 40: { + // miracleInfo [packed=false] + tag = input.readRepeatedUInt32(miracleInfo, tag); bitField0_ |= 0x00000004; break; } + case 104: { + // miracleInfoRemote [packed=false] + tag = input.readRepeatedUInt32(miracleInfoRemote, tag); + bitField0_ |= 0x00000008; + break; + } } } } @@ -368,13 +490,16 @@ public final class RogueMiracleSelectInfoOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeBool(FieldNames.showHandbookHint, showHandbookHint); + output.writeUInt32(FieldNames.mMHMDBDONIA, mMHMDBDONIA); } if ((bitField0_ & 0x00000002) != 0) { - output.writeMessage(FieldNames.rogueMiracleInfo, rogueMiracleInfo); + output.writeUInt32(FieldNames.oJOMBNGGHFI, oJOMBNGGHFI); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRepeatedUInt32(FieldNames.miracleIdList, miracleIdList); + output.writeRepeatedUInt32(FieldNames.miracleInfo, miracleInfo); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedUInt32(FieldNames.miracleInfoRemote, miracleInfoRemote); } output.endObject(); } @@ -386,11 +511,10 @@ public final class RogueMiracleSelectInfoOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -1843696100: - case 641745100: { - if (input.isAtField(FieldNames.showHandbookHint)) { + case -1232769672: { + if (input.isAtField(FieldNames.mMHMDBDONIA)) { if (!input.trySkipNullValue()) { - showHandbookHint = input.readBool(); + mMHMDBDONIA = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -398,11 +522,10 @@ public final class RogueMiracleSelectInfoOuterClass { } break; } - case -452511099: - case 1925436929: { - if (input.isAtField(FieldNames.rogueMiracleInfo)) { + case -1138375098: { + if (input.isAtField(FieldNames.oJOMBNGGHFI)) { if (!input.trySkipNullValue()) { - input.readMessage(rogueMiracleInfo); + oJOMBNGGHFI = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -410,11 +533,11 @@ public final class RogueMiracleSelectInfoOuterClass { } break; } - case 500458538: - case 411639668: { - if (input.isAtField(FieldNames.miracleIdList)) { + case 760306879: + case 2114852796: { + if (input.isAtField(FieldNames.miracleInfo)) { if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(miracleIdList); + input.readRepeatedUInt32(miracleInfo); bitField0_ |= 0x00000004; } } else { @@ -422,6 +545,18 @@ public final class RogueMiracleSelectInfoOuterClass { } break; } + case -212699675: + case 609350185: { + if (input.isAtField(FieldNames.miracleInfoRemote)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(miracleInfoRemote); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } default: { input.skipUnknownField(); break; @@ -475,11 +610,13 @@ public final class RogueMiracleSelectInfoOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName showHandbookHint = FieldName.forField("showHandbookHint", "show_handbook_hint"); + static final FieldName mMHMDBDONIA = FieldName.forField("MMHMDBDONIA"); - static final FieldName rogueMiracleInfo = FieldName.forField("rogueMiracleInfo", "rogue_miracle_info"); + static final FieldName oJOMBNGGHFI = FieldName.forField("OJOMBNGGHFI"); - static final FieldName miracleIdList = FieldName.forField("miracleIdList", "miracle_id_list"); + static final FieldName miracleInfo = FieldName.forField("miracleInfo", "miracle_info"); + + static final FieldName miracleInfoRemote = FieldName.forField("miracleInfoRemote", "miracle_info_remote"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/RogueMiracleSelectOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueMiracleSelectOuterClass.java new file mode 100644 index 0000000..938003b --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueMiracleSelectOuterClass.java @@ -0,0 +1,174 @@ +// 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 RogueMiracleSelectOuterClass { + /** + * Protobuf type {@code RogueMiracleSelect} + */ + public static final class RogueMiracleSelect extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + private RogueMiracleSelect() { + } + + /** + * @return a new empty instance of {@code RogueMiracleSelect} + */ + public static RogueMiracleSelect newInstance() { + return new RogueMiracleSelect(); + } + + @Override + public RogueMiracleSelect copyFrom(final RogueMiracleSelect other) { + cachedSize = other.cachedSize; + return this; + } + + @Override + public RogueMiracleSelect mergeFrom(final RogueMiracleSelect other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public RogueMiracleSelect clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public RogueMiracleSelect clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueMiracleSelect)) { + return false; + } + RogueMiracleSelect other = (RogueMiracleSelect) 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 RogueMiracleSelect 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 RogueMiracleSelect 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 RogueMiracleSelect clone() { + return new RogueMiracleSelect().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueMiracleSelect parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueMiracleSelect(), data).checkInitialized(); + } + + public static RogueMiracleSelect parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueMiracleSelect(), input).checkInitialized(); + } + + public static RogueMiracleSelect parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueMiracleSelect(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueMiracleSelect messages + */ + public static MessageFactory getFactory() { + return RogueMiracleSelectFactory.INSTANCE; + } + + private enum RogueMiracleSelectFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueMiracleSelect create() { + return RogueMiracleSelect.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueMiracleSelectResultOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueMiracleSelectResultOuterClass.java new file mode 100644 index 0000000..5b1360e --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueMiracleSelectResultOuterClass.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 RogueMiracleSelectResultOuterClass { + /** + * Protobuf type {@code RogueMiracleSelectResult} + */ + public static final class RogueMiracleSelectResult extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 miracle_id = 6; + */ + private int miracleId; + + private RogueMiracleSelectResult() { + } + + /** + * @return a new empty instance of {@code RogueMiracleSelectResult} + */ + public static RogueMiracleSelectResult newInstance() { + return new RogueMiracleSelectResult(); + } + + /** + * optional uint32 miracle_id = 6; + * @return whether the miracleId field is set + */ + public boolean hasMiracleId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 miracle_id = 6; + * @return this + */ + public RogueMiracleSelectResult clearMiracleId() { + bitField0_ &= ~0x00000001; + miracleId = 0; + return this; + } + + /** + * optional uint32 miracle_id = 6; + * @return the miracleId + */ + public int getMiracleId() { + return miracleId; + } + + /** + * optional uint32 miracle_id = 6; + * @param value the miracleId to set + * @return this + */ + public RogueMiracleSelectResult setMiracleId(final int value) { + bitField0_ |= 0x00000001; + miracleId = value; + return this; + } + + @Override + public RogueMiracleSelectResult copyFrom(final RogueMiracleSelectResult other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + miracleId = other.miracleId; + } + return this; + } + + @Override + public RogueMiracleSelectResult mergeFrom(final RogueMiracleSelectResult other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasMiracleId()) { + setMiracleId(other.miracleId); + } + return this; + } + + @Override + public RogueMiracleSelectResult clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + miracleId = 0; + return this; + } + + @Override + public RogueMiracleSelectResult 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 RogueMiracleSelectResult)) { + return false; + } + RogueMiracleSelectResult other = (RogueMiracleSelectResult) o; + return bitField0_ == other.bitField0_ + && (!hasMiracleId() || miracleId == other.miracleId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(miracleId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(miracleId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueMiracleSelectResult mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 48: { + // miracleId + miracleId = 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.miracleId, miracleId); + } + output.endObject(); + } + + @Override + public RogueMiracleSelectResult 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; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueMiracleSelectResult clone() { + return new RogueMiracleSelectResult().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueMiracleSelectResult parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueMiracleSelectResult(), data).checkInitialized(); + } + + public static RogueMiracleSelectResult parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueMiracleSelectResult(), input).checkInitialized(); + } + + public static RogueMiracleSelectResult parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueMiracleSelectResult(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueMiracleSelectResult messages + */ + public static MessageFactory getFactory() { + return RogueMiracleSelectResultFactory.INSTANCE; + } + + private enum RogueMiracleSelectResultFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueMiracleSelectResult create() { + return RogueMiracleSelectResult.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName miracleId = FieldName.forField("miracleId", "miracle_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueQueryOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueQueryOuterClass.java new file mode 100644 index 0000000..f4f0ce7 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueQueryOuterClass.java @@ -0,0 +1,299 @@ +// 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 RogueQueryOuterClass { + /** + * Protobuf type {@code RogueQuery} + */ + public static final class RogueQuery extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * repeated uint32 FFJHNGIINMN = 13; + */ + private final RepeatedInt fFJHNGIINMN = RepeatedInt.newEmptyInstance(); + + private RogueQuery() { + } + + /** + * @return a new empty instance of {@code RogueQuery} + */ + public static RogueQuery newInstance() { + return new RogueQuery(); + } + + /** + * repeated uint32 FFJHNGIINMN = 13; + * @return whether the fFJHNGIINMN field is set + */ + public boolean hasFFJHNGIINMN() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * repeated uint32 FFJHNGIINMN = 13; + * @return this + */ + public RogueQuery clearFFJHNGIINMN() { + bitField0_ &= ~0x00000001; + fFJHNGIINMN.clear(); + return this; + } + + /** + * repeated uint32 FFJHNGIINMN = 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 #getMutableFFJHNGIINMN()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getFFJHNGIINMN() { + return fFJHNGIINMN; + } + + /** + * repeated uint32 FFJHNGIINMN = 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 getMutableFFJHNGIINMN() { + bitField0_ |= 0x00000001; + return fFJHNGIINMN; + } + + /** + * repeated uint32 FFJHNGIINMN = 13; + * @param value the fFJHNGIINMN to add + * @return this + */ + public RogueQuery addFFJHNGIINMN(final int value) { + bitField0_ |= 0x00000001; + fFJHNGIINMN.add(value); + return this; + } + + /** + * repeated uint32 FFJHNGIINMN = 13; + * @param values the fFJHNGIINMN to add + * @return this + */ + public RogueQuery addAllFFJHNGIINMN(final int... values) { + bitField0_ |= 0x00000001; + fFJHNGIINMN.addAll(values); + return this; + } + + @Override + public RogueQuery copyFrom(final RogueQuery other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + fFJHNGIINMN.copyFrom(other.fFJHNGIINMN); + } + return this; + } + + @Override + public RogueQuery mergeFrom(final RogueQuery other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasFFJHNGIINMN()) { + getMutableFFJHNGIINMN().addAll(other.fFJHNGIINMN); + } + return this; + } + + @Override + public RogueQuery clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + fFJHNGIINMN.clear(); + return this; + } + + @Override + public RogueQuery clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + fFJHNGIINMN.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueQuery)) { + return false; + } + RogueQuery other = (RogueQuery) o; + return bitField0_ == other.bitField0_ + && (!hasFFJHNGIINMN() || fFJHNGIINMN.equals(other.fFJHNGIINMN)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + for (int i = 0; i < fFJHNGIINMN.length(); i++) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(fFJHNGIINMN.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += (1 * fFJHNGIINMN.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(fFJHNGIINMN); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueQuery mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 106: { + // fFJHNGIINMN [packed=true] + input.readPackedUInt32(fFJHNGIINMN, 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 104: { + // fFJHNGIINMN [packed=false] + tag = input.readRepeatedUInt32(fFJHNGIINMN, tag); + bitField0_ |= 0x00000001; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeRepeatedUInt32(FieldNames.fFJHNGIINMN, fFJHNGIINMN); + } + output.endObject(); + } + + @Override + public RogueQuery mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 825210744: { + if (input.isAtField(FieldNames.fFJHNGIINMN)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(fFJHNGIINMN); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueQuery clone() { + return new RogueQuery().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueQuery parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueQuery(), data).checkInitialized(); + } + + public static RogueQuery parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueQuery(), input).checkInitialized(); + } + + public static RogueQuery parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueQuery(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueQuery messages + */ + public static MessageFactory getFactory() { + return RogueQueryFactory.INSTANCE; + } + + private enum RogueQueryFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueQuery create() { + return RogueQuery.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName fFJHNGIINMN = FieldName.forField("FFJHNGIINMN"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueRecordAvatarOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueRecordAvatarOuterClass.java index 95a372d..2f7070f 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueRecordAvatarOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RogueRecordAvatarOuterClass.java @@ -19,17 +19,17 @@ public final class RogueRecordAvatarOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 slot = 8; - */ - private int slot; - - /** - * optional uint32 id = 13; + * optional uint32 id = 6; */ private int id; /** - * optional .AvatarType avatar_type = 6; + * optional uint32 slot = 11; + */ + private int slot; + + /** + * optional .AvatarType avatar_type = 5; */ private int avatarType; @@ -44,62 +44,25 @@ public final class RogueRecordAvatarOuterClass { } /** - * optional uint32 slot = 8; - * @return whether the slot field is set + * optional uint32 id = 6; + * @return whether the id field is set */ - public boolean hasSlot() { + public boolean hasId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 slot = 8; - * @return this - */ - public RogueRecordAvatar clearSlot() { - bitField0_ &= ~0x00000001; - slot = 0; - return this; - } - - /** - * optional uint32 slot = 8; - * @return the slot - */ - public int getSlot() { - return slot; - } - - /** - * optional uint32 slot = 8; - * @param value the slot to set - * @return this - */ - public RogueRecordAvatar setSlot(final int value) { - bitField0_ |= 0x00000001; - slot = 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 = 6; * @return this */ public RogueRecordAvatar clearId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; id = 0; return this; } /** - * optional uint32 id = 13; + * optional uint32 id = 6; * @return the id */ public int getId() { @@ -107,18 +70,55 @@ public final class RogueRecordAvatarOuterClass { } /** - * optional uint32 id = 13; + * optional uint32 id = 6; * @param value the id to set * @return this */ public RogueRecordAvatar setId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; id = value; return this; } /** - * optional .AvatarType avatar_type = 6; + * optional uint32 slot = 11; + * @return whether the slot field is set + */ + public boolean hasSlot() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 slot = 11; + * @return this + */ + public RogueRecordAvatar clearSlot() { + bitField0_ &= ~0x00000002; + slot = 0; + return this; + } + + /** + * optional uint32 slot = 11; + * @return the slot + */ + public int getSlot() { + return slot; + } + + /** + * optional uint32 slot = 11; + * @param value the slot to set + * @return this + */ + public RogueRecordAvatar setSlot(final int value) { + bitField0_ |= 0x00000002; + slot = value; + return this; + } + + /** + * optional .AvatarType avatar_type = 5; * @return whether the avatarType field is set */ public boolean hasAvatarType() { @@ -126,7 +126,7 @@ public final class RogueRecordAvatarOuterClass { } /** - * optional .AvatarType avatar_type = 6; + * optional .AvatarType avatar_type = 5; * @return this */ public RogueRecordAvatar clearAvatarType() { @@ -136,7 +136,7 @@ public final class RogueRecordAvatarOuterClass { } /** - * optional .AvatarType avatar_type = 6; + * optional .AvatarType avatar_type = 5; * @return the avatarType */ public AvatarTypeOuterClass.AvatarType getAvatarType() { @@ -169,7 +169,7 @@ public final class RogueRecordAvatarOuterClass { } /** - * optional .AvatarType avatar_type = 6; + * optional .AvatarType avatar_type = 5; * @param value the avatarType to set * @return this */ @@ -184,8 +184,8 @@ public final class RogueRecordAvatarOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - slot = other.slot; id = other.id; + slot = other.slot; avatarType = other.avatarType; } return this; @@ -197,12 +197,12 @@ public final class RogueRecordAvatarOuterClass { return this; } cachedSize = -1; - if (other.hasSlot()) { - setSlot(other.slot); - } if (other.hasId()) { setId(other.id); } + if (other.hasSlot()) { + setSlot(other.slot); + } if (other.hasAvatarType()) { setAvatarTypeValue(other.avatarType); } @@ -216,8 +216,8 @@ public final class RogueRecordAvatarOuterClass { } cachedSize = -1; bitField0_ = 0; - slot = 0; id = 0; + slot = 0; avatarType = 0; return this; } @@ -242,23 +242,23 @@ public final class RogueRecordAvatarOuterClass { } RogueRecordAvatar other = (RogueRecordAvatar) o; return bitField0_ == other.bitField0_ - && (!hasSlot() || slot == other.slot) && (!hasId() || id == other.id) + && (!hasSlot() || slot == other.slot) && (!hasAvatarType() || avatarType == other.avatarType); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(slot); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 48); output.writeUInt32NoTag(id); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(slot); + } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 40); output.writeEnumNoTag(avatarType); } } @@ -267,10 +267,10 @@ public final class RogueRecordAvatarOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(slot); + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + size += 1 + ProtoSink.computeUInt32SizeNoTag(slot); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeEnumSizeNoTag(avatarType); @@ -285,25 +285,25 @@ public final class RogueRecordAvatarOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 64: { - // slot - slot = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 104) { - break; - } - } - case 104: { + case 48: { // id id = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 48) { + if (tag != 88) { break; } } - case 48: { + case 88: { + // slot + slot = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { // avatarType final int value = input.readInt32(); if (AvatarTypeOuterClass.AvatarType.forNumber(value) != null) { @@ -333,10 +333,10 @@ public final class RogueRecordAvatarOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.slot, slot); + output.writeUInt32(FieldNames.id, id); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.id, id); + output.writeUInt32(FieldNames.slot, slot); } if ((bitField0_ & 0x00000004) != 0) { output.writeEnum(FieldNames.avatarType, avatarType, AvatarTypeOuterClass.AvatarType.converter()); @@ -351,10 +351,10 @@ public final class RogueRecordAvatarOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 3533310: { - if (input.isAtField(FieldNames.slot)) { + case 3355: { + if (input.isAtField(FieldNames.id)) { if (!input.trySkipNullValue()) { - slot = input.readUInt32(); + id = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -362,10 +362,10 @@ public final class RogueRecordAvatarOuterClass { } break; } - case 3355: { - if (input.isAtField(FieldNames.id)) { + case 3533310: { + if (input.isAtField(FieldNames.slot)) { if (!input.trySkipNullValue()) { - id = input.readUInt32(); + slot = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -443,10 +443,10 @@ public final class RogueRecordAvatarOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName slot = FieldName.forField("slot"); - static final FieldName id = FieldName.forField("id"); + static final FieldName slot = FieldName.forField("slot"); + static final FieldName avatarType = FieldName.forField("avatarType", "avatar_type"); } } diff --git a/src/generated/main/emu/lunarcore/proto/RogueRecordInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueRecordInfoOuterClass.java index 80aeb53..a68e528 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueRecordInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RogueRecordInfoOuterClass.java @@ -21,20 +21,20 @@ public final class RogueRecordInfoOuterClass { private static final long serialVersionUID = 0L; /** - * repeated uint32 rogue_miracle_list = 8; + * repeated uint32 rogue_miracle_list = 5; */ private final RepeatedInt rogueMiracleList = RepeatedInt.newEmptyInstance(); /** - * repeated .RogueBuff buff_list = 6; - */ - private final RepeatedMessage buffList = RepeatedMessage.newEmptyInstance(RogueBuffOuterClass.RogueBuff.getFactory()); - - /** - * repeated .RogueRecordAvatar avatar_list = 7; + * repeated .RogueRecordAvatar avatar_list = 4; */ private final RepeatedMessage avatarList = RepeatedMessage.newEmptyInstance(RogueRecordAvatarOuterClass.RogueRecordAvatar.getFactory()); + /** + * repeated .RogueBuff buff_list = 13; + */ + private final RepeatedMessage buffList = RepeatedMessage.newEmptyInstance(RogueBuffOuterClass.RogueBuff.getFactory()); + private RogueRecordInfo() { } @@ -46,7 +46,7 @@ public final class RogueRecordInfoOuterClass { } /** - * repeated uint32 rogue_miracle_list = 8; + * repeated uint32 rogue_miracle_list = 5; * @return whether the rogueMiracleList field is set */ public boolean hasRogueMiracleList() { @@ -54,7 +54,7 @@ public final class RogueRecordInfoOuterClass { } /** - * repeated uint32 rogue_miracle_list = 8; + * repeated uint32 rogue_miracle_list = 5; * @return this */ public RogueRecordInfo clearRogueMiracleList() { @@ -64,7 +64,7 @@ public final class RogueRecordInfoOuterClass { } /** - * repeated uint32 rogue_miracle_list = 8; + * repeated uint32 rogue_miracle_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. @@ -78,7 +78,7 @@ public final class RogueRecordInfoOuterClass { } /** - * repeated uint32 rogue_miracle_list = 8; + * repeated uint32 rogue_miracle_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 @@ -92,7 +92,7 @@ public final class RogueRecordInfoOuterClass { } /** - * repeated uint32 rogue_miracle_list = 8; + * repeated uint32 rogue_miracle_list = 5; * @param value the rogueMiracleList to add * @return this */ @@ -103,7 +103,7 @@ public final class RogueRecordInfoOuterClass { } /** - * repeated uint32 rogue_miracle_list = 8; + * repeated uint32 rogue_miracle_list = 5; * @param values the rogueMiracleList to add * @return this */ @@ -114,93 +114,25 @@ public final class RogueRecordInfoOuterClass { } /** - * repeated .RogueBuff buff_list = 6; - * @return whether the buffList field is set + * repeated .RogueRecordAvatar avatar_list = 4; + * @return whether the avatarList field is set */ - public boolean hasBuffList() { + public boolean hasAvatarList() { return (bitField0_ & 0x00000002) != 0; } /** - * repeated .RogueBuff buff_list = 6; - * @return this - */ - public RogueRecordInfo clearBuffList() { - bitField0_ &= ~0x00000002; - buffList.clear(); - return this; - } - - /** - * repeated .RogueBuff buff_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 #getMutableBuffList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getBuffList() { - return buffList; - } - - /** - * repeated .RogueBuff buff_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 getMutableBuffList() { - bitField0_ |= 0x00000002; - return buffList; - } - - /** - * repeated .RogueBuff buff_list = 6; - * @param value the buffList to add - * @return this - */ - public RogueRecordInfo addBuffList(final RogueBuffOuterClass.RogueBuff value) { - bitField0_ |= 0x00000002; - buffList.add(value); - return this; - } - - /** - * repeated .RogueBuff buff_list = 6; - * @param values the buffList to add - * @return this - */ - public RogueRecordInfo addAllBuffList(final RogueBuffOuterClass.RogueBuff... values) { - bitField0_ |= 0x00000002; - buffList.addAll(values); - return this; - } - - /** - * repeated .RogueRecordAvatar avatar_list = 7; - * @return whether the avatarList field is set - */ - public boolean hasAvatarList() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * repeated .RogueRecordAvatar avatar_list = 7; + * repeated .RogueRecordAvatar avatar_list = 4; * @return this */ public RogueRecordInfo clearAvatarList() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; avatarList.clear(); return this; } /** - * repeated .RogueRecordAvatar avatar_list = 7; + * repeated .RogueRecordAvatar avatar_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. @@ -214,7 +146,7 @@ public final class RogueRecordInfoOuterClass { } /** - * repeated .RogueRecordAvatar avatar_list = 7; + * repeated .RogueRecordAvatar avatar_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 @@ -223,42 +155,110 @@ public final class RogueRecordInfoOuterClass { * @return internal storage object for modifications */ public RepeatedMessage getMutableAvatarList() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; return avatarList; } /** - * repeated .RogueRecordAvatar avatar_list = 7; + * repeated .RogueRecordAvatar avatar_list = 4; * @param value the avatarList to add * @return this */ public RogueRecordInfo addAvatarList( final RogueRecordAvatarOuterClass.RogueRecordAvatar value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; avatarList.add(value); return this; } /** - * repeated .RogueRecordAvatar avatar_list = 7; + * repeated .RogueRecordAvatar avatar_list = 4; * @param values the avatarList to add * @return this */ public RogueRecordInfo addAllAvatarList( final RogueRecordAvatarOuterClass.RogueRecordAvatar... values) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; avatarList.addAll(values); return this; } + /** + * repeated .RogueBuff buff_list = 13; + * @return whether the buffList field is set + */ + public boolean hasBuffList() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated .RogueBuff buff_list = 13; + * @return this + */ + public RogueRecordInfo clearBuffList() { + bitField0_ &= ~0x00000004; + buffList.clear(); + return this; + } + + /** + * repeated .RogueBuff 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 .RogueBuff 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_ |= 0x00000004; + return buffList; + } + + /** + * repeated .RogueBuff buff_list = 13; + * @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 = 13; + * @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); - buffList.copyFrom(other.buffList); avatarList.copyFrom(other.avatarList); + buffList.copyFrom(other.buffList); } return this; } @@ -272,12 +272,12 @@ public final class RogueRecordInfoOuterClass { if (other.hasRogueMiracleList()) { getMutableRogueMiracleList().addAll(other.rogueMiracleList); } - if (other.hasBuffList()) { - getMutableBuffList().addAll(other.buffList); - } if (other.hasAvatarList()) { getMutableAvatarList().addAll(other.avatarList); } + if (other.hasBuffList()) { + getMutableBuffList().addAll(other.buffList); + } return this; } @@ -289,8 +289,8 @@ public final class RogueRecordInfoOuterClass { cachedSize = -1; bitField0_ = 0; rogueMiracleList.clear(); - buffList.clear(); avatarList.clear(); + buffList.clear(); return this; } @@ -302,8 +302,8 @@ public final class RogueRecordInfoOuterClass { cachedSize = -1; bitField0_ = 0; rogueMiracleList.clear(); - buffList.clearQuick(); avatarList.clearQuick(); + buffList.clearQuick(); return this; } @@ -318,28 +318,28 @@ public final class RogueRecordInfoOuterClass { RogueRecordInfo other = (RogueRecordInfo) o; return bitField0_ == other.bitField0_ && (!hasRogueMiracleList() || rogueMiracleList.equals(other.rogueMiracleList)) - && (!hasBuffList() || buffList.equals(other.buffList)) - && (!hasAvatarList() || avatarList.equals(other.avatarList)); + && (!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.writeRawByte((byte) 40); output.writeUInt32NoTag(rogueMiracleList.array()[i]); } } if ((bitField0_ & 0x00000002) != 0) { - for (int i = 0; i < buffList.length(); i++) { - output.writeRawByte((byte) 50); - output.writeMessageNoTag(buffList.get(i)); + for (int i = 0; i < avatarList.length(); i++) { + output.writeRawByte((byte) 34); + output.writeMessageNoTag(avatarList.get(i)); } } if ((bitField0_ & 0x00000004) != 0) { - for (int i = 0; i < avatarList.length(); i++) { - output.writeRawByte((byte) 58); - output.writeMessageNoTag(avatarList.get(i)); + for (int i = 0; i < buffList.length(); i++) { + output.writeRawByte((byte) 106); + output.writeMessageNoTag(buffList.get(i)); } } } @@ -351,10 +351,10 @@ public final class RogueRecordInfoOuterClass { size += (1 * rogueMiracleList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(rogueMiracleList); } if ((bitField0_ & 0x00000002) != 0) { - size += (1 * buffList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(buffList); + size += (1 * avatarList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(avatarList); } if ((bitField0_ & 0x00000004) != 0) { - size += (1 * avatarList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(avatarList); + size += (1 * buffList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(buffList); } return size; } @@ -366,26 +366,26 @@ public final class RogueRecordInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 66: { + case 42: { // rogueMiracleList [packed=true] input.readPackedUInt32(rogueMiracleList, tag); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 50) { + if (tag != 34) { break; } } - case 50: { - // buffList - tag = input.readRepeatedMessage(buffList, tag); - bitField0_ |= 0x00000002; - if (tag != 58) { - break; - } - } - case 58: { + case 34: { // avatarList tag = input.readRepeatedMessage(avatarList, tag); + bitField0_ |= 0x00000002; + if (tag != 106) { + break; + } + } + case 106: { + // buffList + tag = input.readRepeatedMessage(buffList, tag); bitField0_ |= 0x00000004; if (tag != 0) { break; @@ -401,7 +401,7 @@ public final class RogueRecordInfoOuterClass { tag = input.readTag(); break; } - case 64: { + case 40: { // rogueMiracleList [packed=false] tag = input.readRepeatedUInt32(rogueMiracleList, tag); bitField0_ |= 0x00000001; @@ -418,10 +418,10 @@ public final class RogueRecordInfoOuterClass { output.writeRepeatedUInt32(FieldNames.rogueMiracleList, rogueMiracleList); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRepeatedMessage(FieldNames.buffList, buffList); + output.writeRepeatedMessage(FieldNames.avatarList, avatarList); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRepeatedMessage(FieldNames.avatarList, avatarList); + output.writeRepeatedMessage(FieldNames.buffList, buffList); } output.endObject(); } @@ -445,11 +445,11 @@ public final class RogueRecordInfoOuterClass { } break; } - case -1522789487: - case 55792906: { - if (input.isAtField(FieldNames.buffList)) { + case -403402345: + case 397055940: { + if (input.isAtField(FieldNames.avatarList)) { if (!input.trySkipNullValue()) { - input.readRepeatedMessage(buffList); + input.readRepeatedMessage(avatarList); bitField0_ |= 0x00000002; } } else { @@ -457,11 +457,11 @@ public final class RogueRecordInfoOuterClass { } break; } - case -403402345: - case 397055940: { - if (input.isAtField(FieldNames.avatarList)) { + case -1522789487: + case 55792906: { + if (input.isAtField(FieldNames.buffList)) { if (!input.trySkipNullValue()) { - input.readRepeatedMessage(avatarList); + input.readRepeatedMessage(buffList); bitField0_ |= 0x00000004; } } else { @@ -524,9 +524,9 @@ public final class RogueRecordInfoOuterClass { static class FieldNames { static final FieldName rogueMiracleList = FieldName.forField("rogueMiracleList", "rogue_miracle_list"); - static final FieldName buffList = FieldName.forField("buffList", "buff_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 new file mode 100644 index 0000000..81247b6 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueRerollBuffOuterClass.java @@ -0,0 +1,283 @@ +// 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 = 11; + */ + 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 = 11; + * @return whether the buffSelectInfo field is set + */ + public boolean hasBuffSelectInfo() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .RogueCommonBuffSelectInfo buff_select_info = 11; + * @return this + */ + public RogueRerollBuff clearBuffSelectInfo() { + bitField0_ &= ~0x00000001; + buffSelectInfo.clear(); + return this; + } + + /** + * optional .RogueCommonBuffSelectInfo buff_select_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 #getMutableBuffSelectInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueCommonBuffSelectInfoOuterClass.RogueCommonBuffSelectInfo getBuffSelectInfo() { + return buffSelectInfo; + } + + /** + * optional .RogueCommonBuffSelectInfo buff_select_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 RogueCommonBuffSelectInfoOuterClass.RogueCommonBuffSelectInfo getMutableBuffSelectInfo( + ) { + bitField0_ |= 0x00000001; + return buffSelectInfo; + } + + /** + * optional .RogueCommonBuffSelectInfo buff_select_info = 11; + * @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) 90); + 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 90: { + // 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/RogueRoomInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueRoomInfoOuterClass.java new file mode 100644 index 0000000..b418ef0 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueRoomInfoOuterClass.java @@ -0,0 +1,494 @@ +// 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 RogueRoomInfoOuterClass { + /** + * Protobuf type {@code RogueRoomInfo} + */ + public static final class RogueRoomInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 site_id = 12; + */ + private int siteId; + + /** + *
+     * uint32 BNKNFOGGPMG = 6;
+     * 
+ * + * optional uint32 room_id = 15; + */ + private int roomId; + + /** + *
+     * IOLBGHALAHK MHIHFPAFLDO = 8;
+     * 
+ * + * optional .RogueRoomStatus room_status = 13; + */ + private int roomStatus; + + private RogueRoomInfo() { + } + + /** + * @return a new empty instance of {@code RogueRoomInfo} + */ + public static RogueRoomInfo newInstance() { + return new RogueRoomInfo(); + } + + /** + * optional uint32 site_id = 12; + * @return whether the siteId field is set + */ + public boolean hasSiteId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 site_id = 12; + * @return this + */ + public RogueRoomInfo clearSiteId() { + bitField0_ &= ~0x00000001; + 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 RogueRoomInfo setSiteId(final int value) { + bitField0_ |= 0x00000001; + siteId = value; + return this; + } + + /** + *
+     * uint32 BNKNFOGGPMG = 6;
+     * 
+ * + * optional uint32 room_id = 15; + * @return whether the roomId field is set + */ + public boolean hasRoomId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + *
+     * uint32 BNKNFOGGPMG = 6;
+     * 
+ * + * optional uint32 room_id = 15; + * @return this + */ + public RogueRoomInfo clearRoomId() { + bitField0_ &= ~0x00000002; + roomId = 0; + return this; + } + + /** + *
+     * uint32 BNKNFOGGPMG = 6;
+     * 
+ * + * optional uint32 room_id = 15; + * @return the roomId + */ + public int getRoomId() { + return roomId; + } + + /** + *
+     * uint32 BNKNFOGGPMG = 6;
+     * 
+ * + * optional uint32 room_id = 15; + * @param value the roomId to set + * @return this + */ + public RogueRoomInfo setRoomId(final int value) { + bitField0_ |= 0x00000002; + roomId = value; + return this; + } + + /** + *
+     * IOLBGHALAHK MHIHFPAFLDO = 8;
+     * 
+ * + * optional .RogueRoomStatus room_status = 13; + * @return whether the roomStatus field is set + */ + public boolean hasRoomStatus() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + *
+     * IOLBGHALAHK MHIHFPAFLDO = 8;
+     * 
+ * + * optional .RogueRoomStatus room_status = 13; + * @return this + */ + public RogueRoomInfo clearRoomStatus() { + bitField0_ &= ~0x00000004; + roomStatus = 0; + return this; + } + + /** + *
+     * IOLBGHALAHK MHIHFPAFLDO = 8;
+     * 
+ * + * optional .RogueRoomStatus room_status = 13; + * @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 RogueRoomInfo#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 RogueRoomInfo#getRoomStatus()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public RogueRoomInfo setRoomStatusValue(final int value) { + bitField0_ |= 0x00000004; + roomStatus = value; + return this; + } + + /** + *
+     * IOLBGHALAHK MHIHFPAFLDO = 8;
+     * 
+ * + * optional .RogueRoomStatus room_status = 13; + * @param value the roomStatus to set + * @return this + */ + public RogueRoomInfo setRoomStatus(final RogueRoomStatusOuterClass.RogueRoomStatus value) { + bitField0_ |= 0x00000004; + roomStatus = value.getNumber(); + return this; + } + + @Override + public RogueRoomInfo copyFrom(final RogueRoomInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + siteId = other.siteId; + roomId = other.roomId; + roomStatus = other.roomStatus; + } + return this; + } + + @Override + public RogueRoomInfo mergeFrom(final RogueRoomInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasSiteId()) { + setSiteId(other.siteId); + } + if (other.hasRoomId()) { + setRoomId(other.roomId); + } + if (other.hasRoomStatus()) { + setRoomStatusValue(other.roomStatus); + } + return this; + } + + @Override + public RogueRoomInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + siteId = 0; + roomId = 0; + roomStatus = 0; + return this; + } + + @Override + public RogueRoomInfo 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 RogueRoomInfo)) { + return false; + } + RogueRoomInfo other = (RogueRoomInfo) o; + return bitField0_ == other.bitField0_ + && (!hasSiteId() || siteId == other.siteId) + && (!hasRoomId() || roomId == other.roomId) + && (!hasRoomStatus() || roomStatus == other.roomStatus); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(siteId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(roomId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 104); + output.writeEnumNoTag(roomStatus); + } + } + + @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); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(roomStatus); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueRoomInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 96: { + // siteId + siteId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // roomId + roomId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // 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.siteId, siteId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.roomId, roomId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeEnum(FieldNames.roomStatus, roomStatus, RogueRoomStatusOuterClass.RogueRoomStatus.converter()); + } + output.endObject(); + } + + @Override + public RogueRoomInfo 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; + } + 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 RogueRoomInfo clone() { + return new RogueRoomInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueRoomInfo parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueRoomInfo(), data).checkInitialized(); + } + + public static RogueRoomInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueRoomInfo(), input).checkInitialized(); + } + + public static RogueRoomInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueRoomInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueRoomInfo messages + */ + public static MessageFactory getFactory() { + return RogueRoomInfoFactory.INSTANCE; + } + + private enum RogueRoomInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueRoomInfo create() { + return RogueRoomInfo.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"); + + static final FieldName roomStatus = FieldName.forField("roomStatus", "room_status"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueRoomOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueRoomOuterClass.java index 6a5dd3c..e279cb5 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueRoomOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RogueRoomOuterClass.java @@ -19,17 +19,25 @@ public final class RogueRoomOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 room_id = 7; - */ - private int roomId; - - /** - * optional uint32 site_id = 14; + * optional uint32 site_id = 12; */ private int siteId; /** - * optional .RogueRoomStatus room_status = 2; + *
+     * uint32 BNKNFOGGPMG = 6;
+     * 
+ * + * optional uint32 room_id = 15; + */ + private int roomId; + + /** + *
+     * IOLBGHALAHK MHIHFPAFLDO = 8;
+     * 
+ * + * optional .RogueRoomStatus room_status = 13; */ private int roomStatus; @@ -44,62 +52,25 @@ public final class RogueRoomOuterClass { } /** - * optional uint32 room_id = 7; - * @return whether the roomId field is set + * optional uint32 site_id = 12; + * @return whether the siteId field is set */ - public boolean hasRoomId() { + public boolean hasSiteId() { 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 = 14; - * @return whether the siteId field is set - */ - public boolean hasSiteId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 site_id = 14; + * optional uint32 site_id = 12; * @return this */ public RogueRoom clearSiteId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; siteId = 0; return this; } /** - * optional uint32 site_id = 14; + * optional uint32 site_id = 12; * @return the siteId */ public int getSiteId() { @@ -107,18 +78,75 @@ public final class RogueRoomOuterClass { } /** - * optional uint32 site_id = 14; + * optional uint32 site_id = 12; * @param value the siteId to set * @return this */ public RogueRoom setSiteId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; siteId = value; return this; } /** - * optional .RogueRoomStatus room_status = 2; + *
+     * uint32 BNKNFOGGPMG = 6;
+     * 
+ * + * optional uint32 room_id = 15; + * @return whether the roomId field is set + */ + public boolean hasRoomId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + *
+     * uint32 BNKNFOGGPMG = 6;
+     * 
+ * + * optional uint32 room_id = 15; + * @return this + */ + public RogueRoom clearRoomId() { + bitField0_ &= ~0x00000002; + roomId = 0; + return this; + } + + /** + *
+     * uint32 BNKNFOGGPMG = 6;
+     * 
+ * + * optional uint32 room_id = 15; + * @return the roomId + */ + public int getRoomId() { + return roomId; + } + + /** + *
+     * uint32 BNKNFOGGPMG = 6;
+     * 
+ * + * optional uint32 room_id = 15; + * @param value the roomId to set + * @return this + */ + public RogueRoom setRoomId(final int value) { + bitField0_ |= 0x00000002; + roomId = value; + return this; + } + + /** + *
+     * IOLBGHALAHK MHIHFPAFLDO = 8;
+     * 
+ * + * optional .RogueRoomStatus room_status = 13; * @return whether the roomStatus field is set */ public boolean hasRoomStatus() { @@ -126,7 +154,11 @@ public final class RogueRoomOuterClass { } /** - * optional .RogueRoomStatus room_status = 2; + *
+     * IOLBGHALAHK MHIHFPAFLDO = 8;
+     * 
+ * + * optional .RogueRoomStatus room_status = 13; * @return this */ public RogueRoom clearRoomStatus() { @@ -136,7 +168,11 @@ public final class RogueRoomOuterClass { } /** - * optional .RogueRoomStatus room_status = 2; + *
+     * IOLBGHALAHK MHIHFPAFLDO = 8;
+     * 
+ * + * optional .RogueRoomStatus room_status = 13; * @return the roomStatus */ public RogueRoomStatusOuterClass.RogueRoomStatus getRoomStatus() { @@ -169,7 +205,11 @@ public final class RogueRoomOuterClass { } /** - * optional .RogueRoomStatus room_status = 2; + *
+     * IOLBGHALAHK MHIHFPAFLDO = 8;
+     * 
+ * + * optional .RogueRoomStatus room_status = 13; * @param value the roomStatus to set * @return this */ @@ -184,8 +224,8 @@ public final class RogueRoomOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - roomId = other.roomId; siteId = other.siteId; + roomId = other.roomId; roomStatus = other.roomStatus; } return this; @@ -197,12 +237,12 @@ public final class RogueRoomOuterClass { return this; } cachedSize = -1; - if (other.hasRoomId()) { - setRoomId(other.roomId); - } if (other.hasSiteId()) { setSiteId(other.siteId); } + if (other.hasRoomId()) { + setRoomId(other.roomId); + } if (other.hasRoomStatus()) { setRoomStatusValue(other.roomStatus); } @@ -216,8 +256,8 @@ public final class RogueRoomOuterClass { } cachedSize = -1; bitField0_ = 0; - roomId = 0; siteId = 0; + roomId = 0; roomStatus = 0; return this; } @@ -242,23 +282,23 @@ public final class RogueRoomOuterClass { } RogueRoom other = (RogueRoom) o; return bitField0_ == other.bitField0_ - && (!hasRoomId() || roomId == other.roomId) && (!hasSiteId() || siteId == other.siteId) + && (!hasRoomId() || roomId == other.roomId) && (!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) 112); + output.writeRawByte((byte) 96); output.writeUInt32NoTag(siteId); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(roomId); + } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 104); output.writeEnumNoTag(roomStatus); } } @@ -267,10 +307,10 @@ public final class RogueRoomOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(roomId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(siteId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(siteId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(roomId); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeEnumSizeNoTag(roomStatus); @@ -285,25 +325,25 @@ public final class RogueRoomOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 56: { - // roomId - roomId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 112) { - break; - } - } - case 112: { + case 96: { // siteId siteId = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 16) { + if (tag != 120) { break; } } - case 16: { + case 120: { + // roomId + roomId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { // roomStatus final int value = input.readInt32(); if (RogueRoomStatusOuterClass.RogueRoomStatus.forNumber(value) != null) { @@ -333,10 +373,10 @@ public final class RogueRoomOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.roomId, roomId); + output.writeUInt32(FieldNames.siteId, siteId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.siteId, siteId); + output.writeUInt32(FieldNames.roomId, roomId); } if ((bitField0_ & 0x00000004) != 0) { output.writeEnum(FieldNames.roomStatus, roomStatus, RogueRoomStatusOuterClass.RogueRoomStatus.converter()); @@ -351,11 +391,11 @@ public final class RogueRoomOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -925319338: - case 1379892991: { - if (input.isAtField(FieldNames.roomId)) { + case -902090046: + case 2100001043: { + if (input.isAtField(FieldNames.siteId)) { if (!input.trySkipNullValue()) { - roomId = input.readUInt32(); + siteId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -363,11 +403,11 @@ public final class RogueRoomOuterClass { } break; } - case -902090046: - case 2100001043: { - if (input.isAtField(FieldNames.siteId)) { + case -925319338: + case 1379892991: { + if (input.isAtField(FieldNames.roomId)) { if (!input.trySkipNullValue()) { - siteId = input.readUInt32(); + roomId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -444,10 +484,10 @@ public final class RogueRoomOuterClass { * 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 roomId = FieldName.forField("roomId", "room_id"); + static final FieldName roomStatus = FieldName.forField("roomStatus", "room_status"); } } diff --git a/src/generated/main/emu/lunarcore/proto/RogueScoreRewardInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueScoreRewardInfoOuterClass.java index 9a2100d..0319a4c 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueScoreRewardInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RogueScoreRewardInfoOuterClass.java @@ -19,6 +19,16 @@ public final class RogueScoreRewardInfoOuterClass { public static final class RogueScoreRewardInfo extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; + /** + * optional int64 begin_time = 2; + */ + private long beginTime; + + /** + * optional int64 end_time = 15; + */ + private long endTime; + /** * optional uint32 score = 8; */ @@ -40,9 +50,13 @@ public final class RogueScoreRewardInfoOuterClass { private boolean poolRefreshed; /** - * repeated uint32 taken_score_reward_list = 1; + *
+     *  guess
+     * 
+ * + * repeated uint32 has_taken_reward = 1; */ - private final RepeatedInt takenScoreRewardList = RepeatedInt.newEmptyInstance(); + private final RepeatedInt hasTakenReward = RepeatedInt.newEmptyInstance(); private RogueScoreRewardInfo() { } @@ -54,12 +68,86 @@ public final class RogueScoreRewardInfoOuterClass { return new RogueScoreRewardInfo(); } + /** + * optional int64 begin_time = 2; + * @return whether the beginTime field is set + */ + public boolean hasBeginTime() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional int64 begin_time = 2; + * @return this + */ + public RogueScoreRewardInfo clearBeginTime() { + bitField0_ &= ~0x00000001; + beginTime = 0L; + return this; + } + + /** + * optional int64 begin_time = 2; + * @return the beginTime + */ + public long getBeginTime() { + return beginTime; + } + + /** + * optional int64 begin_time = 2; + * @param value the beginTime to set + * @return this + */ + public RogueScoreRewardInfo setBeginTime(final long value) { + bitField0_ |= 0x00000001; + beginTime = value; + return this; + } + + /** + * optional int64 end_time = 15; + * @return whether the endTime field is set + */ + public boolean hasEndTime() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional int64 end_time = 15; + * @return this + */ + public RogueScoreRewardInfo clearEndTime() { + bitField0_ &= ~0x00000002; + endTime = 0L; + return this; + } + + /** + * optional int64 end_time = 15; + * @return the endTime + */ + public long getEndTime() { + return endTime; + } + + /** + * optional int64 end_time = 15; + * @param value the endTime to set + * @return this + */ + public RogueScoreRewardInfo setEndTime(final long value) { + bitField0_ |= 0x00000002; + endTime = value; + return this; + } + /** * optional uint32 score = 8; * @return whether the score field is set */ public boolean hasScore() { - return (bitField0_ & 0x00000001) != 0; + return (bitField0_ & 0x00000004) != 0; } /** @@ -67,7 +155,7 @@ public final class RogueScoreRewardInfoOuterClass { * @return this */ public RogueScoreRewardInfo clearScore() { - bitField0_ &= ~0x00000001; + bitField0_ &= ~0x00000004; score = 0; return this; } @@ -86,7 +174,7 @@ public final class RogueScoreRewardInfoOuterClass { * @return this */ public RogueScoreRewardInfo setScore(final int value) { - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; score = value; return this; } @@ -96,7 +184,7 @@ public final class RogueScoreRewardInfoOuterClass { * @return whether the poolId field is set */ public boolean hasPoolId() { - return (bitField0_ & 0x00000002) != 0; + return (bitField0_ & 0x00000008) != 0; } /** @@ -104,7 +192,7 @@ public final class RogueScoreRewardInfoOuterClass { * @return this */ public RogueScoreRewardInfo clearPoolId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000008; poolId = 0; return this; } @@ -123,7 +211,7 @@ public final class RogueScoreRewardInfoOuterClass { * @return this */ public RogueScoreRewardInfo setPoolId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; poolId = value; return this; } @@ -133,7 +221,7 @@ public final class RogueScoreRewardInfoOuterClass { * @return whether the hasTakenInitialScore field is set */ public boolean hasHasTakenInitialScore() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000010) != 0; } /** @@ -141,7 +229,7 @@ public final class RogueScoreRewardInfoOuterClass { * @return this */ public RogueScoreRewardInfo clearHasTakenInitialScore() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000010; hasTakenInitialScore = false; return this; } @@ -160,7 +248,7 @@ public final class RogueScoreRewardInfoOuterClass { * @return this */ public RogueScoreRewardInfo setHasTakenInitialScore(final boolean value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; hasTakenInitialScore = value; return this; } @@ -170,7 +258,7 @@ public final class RogueScoreRewardInfoOuterClass { * @return whether the poolRefreshed field is set */ public boolean hasPoolRefreshed() { - return (bitField0_ & 0x00000008) != 0; + return (bitField0_ & 0x00000020) != 0; } /** @@ -178,7 +266,7 @@ public final class RogueScoreRewardInfoOuterClass { * @return this */ public RogueScoreRewardInfo clearPoolRefreshed() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000020; poolRefreshed = false; return this; } @@ -197,45 +285,61 @@ public final class RogueScoreRewardInfoOuterClass { * @return this */ public RogueScoreRewardInfo setPoolRefreshed(final boolean value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; poolRefreshed = value; return this; } /** - * repeated uint32 taken_score_reward_list = 1; - * @return whether the takenScoreRewardList field is set + *
+     *  guess
+     * 
+ * + * repeated uint32 has_taken_reward = 1; + * @return whether the hasTakenReward field is set */ - public boolean hasTakenScoreRewardList() { - return (bitField0_ & 0x00000010) != 0; + public boolean hasHasTakenReward() { + return (bitField0_ & 0x00000040) != 0; } /** - * repeated uint32 taken_score_reward_list = 1; + *
+     *  guess
+     * 
+ * + * repeated uint32 has_taken_reward = 1; * @return this */ - public RogueScoreRewardInfo clearTakenScoreRewardList() { - bitField0_ &= ~0x00000010; - takenScoreRewardList.clear(); + public RogueScoreRewardInfo clearHasTakenReward() { + bitField0_ &= ~0x00000040; + hasTakenReward.clear(); return this; } /** - * repeated uint32 taken_score_reward_list = 1; + *
+     *  guess
+     * 
+ * + * repeated uint32 has_taken_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 #getMutableTakenScoreRewardList()} if you want to modify it. + * Use {@link #getMutableHasTakenReward()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedInt getTakenScoreRewardList() { - return takenScoreRewardList; + public RepeatedInt getHasTakenReward() { + return hasTakenReward; } /** - * repeated uint32 taken_score_reward_list = 1; + *
+     *  guess
+     * 
+ * + * repeated uint32 has_taken_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 @@ -243,30 +347,38 @@ public final class RogueScoreRewardInfoOuterClass { * * @return internal storage object for modifications */ - public RepeatedInt getMutableTakenScoreRewardList() { - bitField0_ |= 0x00000010; - return takenScoreRewardList; + public RepeatedInt getMutableHasTakenReward() { + bitField0_ |= 0x00000040; + return hasTakenReward; } /** - * repeated uint32 taken_score_reward_list = 1; - * @param value the takenScoreRewardList to add + *
+     *  guess
+     * 
+ * + * repeated uint32 has_taken_reward = 1; + * @param value the hasTakenReward to add * @return this */ - public RogueScoreRewardInfo addTakenScoreRewardList(final int value) { - bitField0_ |= 0x00000010; - takenScoreRewardList.add(value); + public RogueScoreRewardInfo addHasTakenReward(final int value) { + bitField0_ |= 0x00000040; + hasTakenReward.add(value); return this; } /** - * repeated uint32 taken_score_reward_list = 1; - * @param values the takenScoreRewardList to add + *
+     *  guess
+     * 
+ * + * repeated uint32 has_taken_reward = 1; + * @param values the hasTakenReward to add * @return this */ - public RogueScoreRewardInfo addAllTakenScoreRewardList(final int... values) { - bitField0_ |= 0x00000010; - takenScoreRewardList.addAll(values); + public RogueScoreRewardInfo addAllHasTakenReward(final int... values) { + bitField0_ |= 0x00000040; + hasTakenReward.addAll(values); return this; } @@ -275,11 +387,13 @@ public final class RogueScoreRewardInfoOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; + beginTime = other.beginTime; + endTime = other.endTime; score = other.score; poolId = other.poolId; hasTakenInitialScore = other.hasTakenInitialScore; poolRefreshed = other.poolRefreshed; - takenScoreRewardList.copyFrom(other.takenScoreRewardList); + hasTakenReward.copyFrom(other.hasTakenReward); } return this; } @@ -290,6 +404,12 @@ public final class RogueScoreRewardInfoOuterClass { return this; } cachedSize = -1; + if (other.hasBeginTime()) { + setBeginTime(other.beginTime); + } + if (other.hasEndTime()) { + setEndTime(other.endTime); + } if (other.hasScore()) { setScore(other.score); } @@ -302,8 +422,8 @@ public final class RogueScoreRewardInfoOuterClass { if (other.hasPoolRefreshed()) { setPoolRefreshed(other.poolRefreshed); } - if (other.hasTakenScoreRewardList()) { - getMutableTakenScoreRewardList().addAll(other.takenScoreRewardList); + if (other.hasHasTakenReward()) { + getMutableHasTakenReward().addAll(other.hasTakenReward); } return this; } @@ -315,11 +435,13 @@ public final class RogueScoreRewardInfoOuterClass { } cachedSize = -1; bitField0_ = 0; + beginTime = 0L; + endTime = 0L; score = 0; poolId = 0; hasTakenInitialScore = false; poolRefreshed = false; - takenScoreRewardList.clear(); + hasTakenReward.clear(); return this; } @@ -330,7 +452,7 @@ public final class RogueScoreRewardInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - takenScoreRewardList.clear(); + hasTakenReward.clear(); return this; } @@ -344,35 +466,45 @@ public final class RogueScoreRewardInfoOuterClass { } RogueScoreRewardInfo other = (RogueScoreRewardInfo) o; return bitField0_ == other.bitField0_ + && (!hasBeginTime() || beginTime == other.beginTime) + && (!hasEndTime() || endTime == other.endTime) && (!hasScore() || score == other.score) && (!hasPoolId() || poolId == other.poolId) && (!hasHasTakenInitialScore() || hasTakenInitialScore == other.hasTakenInitialScore) && (!hasPoolRefreshed() || poolRefreshed == other.poolRefreshed) - && (!hasTakenScoreRewardList() || takenScoreRewardList.equals(other.takenScoreRewardList)); + && (!hasHasTakenReward() || hasTakenReward.equals(other.hasTakenReward)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeInt64NoTag(beginTime); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 120); + output.writeInt64NoTag(endTime); + } + if ((bitField0_ & 0x00000004) != 0) { output.writeRawByte((byte) 64); output.writeUInt32NoTag(score); } - if ((bitField0_ & 0x00000002) != 0) { + if ((bitField0_ & 0x00000008) != 0) { output.writeRawByte((byte) 88); output.writeUInt32NoTag(poolId); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000010) != 0) { output.writeRawByte((byte) 32); output.writeBoolNoTag(hasTakenInitialScore); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000020) != 0) { output.writeRawByte((byte) 72); output.writeBoolNoTag(poolRefreshed); } - if ((bitField0_ & 0x00000010) != 0) { - for (int i = 0; i < takenScoreRewardList.length(); i++) { + if ((bitField0_ & 0x00000040) != 0) { + for (int i = 0; i < hasTakenReward.length(); i++) { output.writeRawByte((byte) 8); - output.writeUInt32NoTag(takenScoreRewardList.array()[i]); + output.writeUInt32NoTag(hasTakenReward.array()[i]); } } } @@ -381,19 +513,25 @@ public final class RogueScoreRewardInfoOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(score); + size += 1 + ProtoSink.computeInt64SizeNoTag(beginTime); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(poolId); + size += 1 + ProtoSink.computeInt64SizeNoTag(endTime); } if ((bitField0_ & 0x00000004) != 0) { - size += 2; + size += 1 + ProtoSink.computeUInt32SizeNoTag(score); } if ((bitField0_ & 0x00000008) != 0) { - size += 2; + size += 1 + ProtoSink.computeUInt32SizeNoTag(poolId); } if ((bitField0_ & 0x00000010) != 0) { - size += (1 * takenScoreRewardList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(takenScoreRewardList); + size += 2; + } + if ((bitField0_ & 0x00000020) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000040) != 0) { + size += (1 * hasTakenReward.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(hasTakenReward); } return size; } @@ -405,10 +543,28 @@ public final class RogueScoreRewardInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { + case 16: { + // beginTime + beginTime = input.readInt64(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // endTime + endTime = input.readInt64(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 64) { + break; + } + } case 64: { // score score = input.readUInt32(); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 88) { break; @@ -417,7 +573,7 @@ public final class RogueScoreRewardInfoOuterClass { case 88: { // poolId poolId = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 32) { break; @@ -426,7 +582,7 @@ public final class RogueScoreRewardInfoOuterClass { case 32: { // hasTakenInitialScore hasTakenInitialScore = input.readBool(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; tag = input.readTag(); if (tag != 72) { break; @@ -435,16 +591,16 @@ public final class RogueScoreRewardInfoOuterClass { case 72: { // poolRefreshed poolRefreshed = input.readBool(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; tag = input.readTag(); if (tag != 10) { break; } } case 10: { - // takenScoreRewardList [packed=true] - input.readPackedUInt32(takenScoreRewardList, tag); - bitField0_ |= 0x00000010; + // hasTakenReward [packed=true] + input.readPackedUInt32(hasTakenReward, tag); + bitField0_ |= 0x00000040; tag = input.readTag(); if (tag != 0) { break; @@ -461,9 +617,9 @@ public final class RogueScoreRewardInfoOuterClass { break; } case 8: { - // takenScoreRewardList [packed=false] - tag = input.readRepeatedUInt32(takenScoreRewardList, tag); - bitField0_ |= 0x00000010; + // hasTakenReward [packed=false] + tag = input.readRepeatedUInt32(hasTakenReward, tag); + bitField0_ |= 0x00000040; break; } } @@ -474,19 +630,25 @@ public final class RogueScoreRewardInfoOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.score, score); + output.writeInt64(FieldNames.beginTime, beginTime); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.poolId, poolId); + output.writeInt64(FieldNames.endTime, endTime); } if ((bitField0_ & 0x00000004) != 0) { - output.writeBool(FieldNames.hasTakenInitialScore, hasTakenInitialScore); + output.writeUInt32(FieldNames.score, score); } if ((bitField0_ & 0x00000008) != 0) { - output.writeBool(FieldNames.poolRefreshed, poolRefreshed); + output.writeUInt32(FieldNames.poolId, poolId); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRepeatedUInt32(FieldNames.takenScoreRewardList, takenScoreRewardList); + 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(); } @@ -498,11 +660,35 @@ public final class RogueScoreRewardInfoOuterClass { } 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 109264530: { if (input.isAtField(FieldNames.score)) { if (!input.trySkipNullValue()) { score = input.readUInt32(); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; } } else { input.skipUnknownField(); @@ -514,7 +700,7 @@ public final class RogueScoreRewardInfoOuterClass { if (input.isAtField(FieldNames.poolId)) { if (!input.trySkipNullValue()) { poolId = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; } } else { input.skipUnknownField(); @@ -526,7 +712,7 @@ public final class RogueScoreRewardInfoOuterClass { if (input.isAtField(FieldNames.hasTakenInitialScore)) { if (!input.trySkipNullValue()) { hasTakenInitialScore = input.readBool(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; } } else { input.skipUnknownField(); @@ -538,19 +724,19 @@ public final class RogueScoreRewardInfoOuterClass { if (input.isAtField(FieldNames.poolRefreshed)) { if (!input.trySkipNullValue()) { poolRefreshed = input.readBool(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; } } else { input.skipUnknownField(); } break; } - case -1204149032: - case -1139944439: { - if (input.isAtField(FieldNames.takenScoreRewardList)) { + case 1115551708: + case 905949996: { + if (input.isAtField(FieldNames.hasTakenReward)) { if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(takenScoreRewardList); - bitField0_ |= 0x00000010; + input.readRepeatedUInt32(hasTakenReward); + bitField0_ |= 0x00000040; } } else { input.skipUnknownField(); @@ -610,6 +796,10 @@ public final class RogueScoreRewardInfoOuterClass { * 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 score = FieldName.forField("score"); static final FieldName poolId = FieldName.forField("poolId", "pool_id"); @@ -618,7 +808,7 @@ public final class RogueScoreRewardInfoOuterClass { static final FieldName poolRefreshed = FieldName.forField("poolRefreshed", "pool_refreshed"); - static final FieldName takenScoreRewardList = FieldName.forField("takenScoreRewardList", "taken_score_reward_list"); + 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 index 1eeb23d..e831595 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueSeasonInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RogueSeasonInfoOuterClass.java @@ -19,17 +19,17 @@ public final class RogueSeasonInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional int64 begin_time = 9; + * optional int64 begin_time = 6; */ private long beginTime; /** - * optional int64 end_time = 14; + * optional int64 end_time = 10; */ private long endTime; /** - * optional uint32 season_id = 13; + * optional uint32 season_id = 11; */ private int seasonId; @@ -44,7 +44,7 @@ public final class RogueSeasonInfoOuterClass { } /** - * optional int64 begin_time = 9; + * optional int64 begin_time = 6; * @return whether the beginTime field is set */ public boolean hasBeginTime() { @@ -52,7 +52,7 @@ public final class RogueSeasonInfoOuterClass { } /** - * optional int64 begin_time = 9; + * optional int64 begin_time = 6; * @return this */ public RogueSeasonInfo clearBeginTime() { @@ -62,7 +62,7 @@ public final class RogueSeasonInfoOuterClass { } /** - * optional int64 begin_time = 9; + * optional int64 begin_time = 6; * @return the beginTime */ public long getBeginTime() { @@ -70,7 +70,7 @@ public final class RogueSeasonInfoOuterClass { } /** - * optional int64 begin_time = 9; + * optional int64 begin_time = 6; * @param value the beginTime to set * @return this */ @@ -81,7 +81,7 @@ public final class RogueSeasonInfoOuterClass { } /** - * optional int64 end_time = 14; + * optional int64 end_time = 10; * @return whether the endTime field is set */ public boolean hasEndTime() { @@ -89,7 +89,7 @@ public final class RogueSeasonInfoOuterClass { } /** - * optional int64 end_time = 14; + * optional int64 end_time = 10; * @return this */ public RogueSeasonInfo clearEndTime() { @@ -99,7 +99,7 @@ public final class RogueSeasonInfoOuterClass { } /** - * optional int64 end_time = 14; + * optional int64 end_time = 10; * @return the endTime */ public long getEndTime() { @@ -107,7 +107,7 @@ public final class RogueSeasonInfoOuterClass { } /** - * optional int64 end_time = 14; + * optional int64 end_time = 10; * @param value the endTime to set * @return this */ @@ -118,7 +118,7 @@ public final class RogueSeasonInfoOuterClass { } /** - * optional uint32 season_id = 13; + * optional uint32 season_id = 11; * @return whether the seasonId field is set */ public boolean hasSeasonId() { @@ -126,7 +126,7 @@ public final class RogueSeasonInfoOuterClass { } /** - * optional uint32 season_id = 13; + * optional uint32 season_id = 11; * @return this */ public RogueSeasonInfo clearSeasonId() { @@ -136,7 +136,7 @@ public final class RogueSeasonInfoOuterClass { } /** - * optional uint32 season_id = 13; + * optional uint32 season_id = 11; * @return the seasonId */ public int getSeasonId() { @@ -144,7 +144,7 @@ public final class RogueSeasonInfoOuterClass { } /** - * optional uint32 season_id = 13; + * optional uint32 season_id = 11; * @param value the seasonId to set * @return this */ @@ -225,15 +225,15 @@ public final class RogueSeasonInfoOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 72); + output.writeRawByte((byte) 48); output.writeInt64NoTag(beginTime); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 80); output.writeInt64NoTag(endTime); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 88); output.writeUInt32NoTag(seasonId); } } @@ -260,25 +260,25 @@ public final class RogueSeasonInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 72: { + case 48: { // beginTime beginTime = input.readInt64(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 112) { + if (tag != 80) { break; } } - case 112: { + case 80: { // endTime endTime = input.readInt64(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 104) { + if (tag != 88) { break; } } - case 104: { + case 88: { // seasonId seasonId = input.readUInt32(); bitField0_ |= 0x00000004; diff --git a/src/generated/main/emu/lunarcore/proto/RogueUpdateOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueUpdateOuterClass.java new file mode 100644 index 0000000..07b1434 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueUpdateOuterClass.java @@ -0,0 +1,419 @@ +// 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 RogueUpdateOuterClass { + /** + * Protobuf type {@code RogueUpdate} + */ + public static final class RogueUpdate extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 area_id = 7; + */ + private int areaId; + + /** + * optional uint32 LOKIGPFHHIN = 8; + */ + private int lOKIGPFHHIN; + + /** + * optional uint32 KPJNNFIINNB = 12; + */ + private int kPJNNFIINNB; + + private RogueUpdate() { + } + + /** + * @return a new empty instance of {@code RogueUpdate} + */ + public static RogueUpdate newInstance() { + return new RogueUpdate(); + } + + /** + * optional uint32 area_id = 7; + * @return whether the areaId field is set + */ + public boolean hasAreaId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 area_id = 7; + * @return this + */ + public RogueUpdate clearAreaId() { + bitField0_ &= ~0x00000001; + areaId = 0; + return this; + } + + /** + * optional uint32 area_id = 7; + * @return the areaId + */ + public int getAreaId() { + return areaId; + } + + /** + * optional uint32 area_id = 7; + * @param value the areaId to set + * @return this + */ + public RogueUpdate setAreaId(final int value) { + bitField0_ |= 0x00000001; + areaId = value; + return this; + } + + /** + * optional uint32 LOKIGPFHHIN = 8; + * @return whether the lOKIGPFHHIN field is set + */ + public boolean hasLOKIGPFHHIN() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 LOKIGPFHHIN = 8; + * @return this + */ + public RogueUpdate clearLOKIGPFHHIN() { + bitField0_ &= ~0x00000002; + lOKIGPFHHIN = 0; + return this; + } + + /** + * optional uint32 LOKIGPFHHIN = 8; + * @return the lOKIGPFHHIN + */ + public int getLOKIGPFHHIN() { + return lOKIGPFHHIN; + } + + /** + * optional uint32 LOKIGPFHHIN = 8; + * @param value the lOKIGPFHHIN to set + * @return this + */ + public RogueUpdate setLOKIGPFHHIN(final int value) { + bitField0_ |= 0x00000002; + lOKIGPFHHIN = value; + return this; + } + + /** + * optional uint32 KPJNNFIINNB = 12; + * @return whether the kPJNNFIINNB field is set + */ + public boolean hasKPJNNFIINNB() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 KPJNNFIINNB = 12; + * @return this + */ + public RogueUpdate clearKPJNNFIINNB() { + bitField0_ &= ~0x00000004; + kPJNNFIINNB = 0; + return this; + } + + /** + * optional uint32 KPJNNFIINNB = 12; + * @return the kPJNNFIINNB + */ + public int getKPJNNFIINNB() { + return kPJNNFIINNB; + } + + /** + * optional uint32 KPJNNFIINNB = 12; + * @param value the kPJNNFIINNB to set + * @return this + */ + public RogueUpdate setKPJNNFIINNB(final int value) { + bitField0_ |= 0x00000004; + kPJNNFIINNB = value; + return this; + } + + @Override + public RogueUpdate copyFrom(final RogueUpdate other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + areaId = other.areaId; + lOKIGPFHHIN = other.lOKIGPFHHIN; + kPJNNFIINNB = other.kPJNNFIINNB; + } + return this; + } + + @Override + public RogueUpdate mergeFrom(final RogueUpdate other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasAreaId()) { + setAreaId(other.areaId); + } + if (other.hasLOKIGPFHHIN()) { + setLOKIGPFHHIN(other.lOKIGPFHHIN); + } + if (other.hasKPJNNFIINNB()) { + setKPJNNFIINNB(other.kPJNNFIINNB); + } + return this; + } + + @Override + public RogueUpdate clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + areaId = 0; + lOKIGPFHHIN = 0; + kPJNNFIINNB = 0; + return this; + } + + @Override + public RogueUpdate 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 RogueUpdate)) { + return false; + } + RogueUpdate other = (RogueUpdate) o; + return bitField0_ == other.bitField0_ + && (!hasAreaId() || areaId == other.areaId) + && (!hasLOKIGPFHHIN() || lOKIGPFHHIN == other.lOKIGPFHHIN) + && (!hasKPJNNFIINNB() || kPJNNFIINNB == other.kPJNNFIINNB); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(areaId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(lOKIGPFHHIN); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(kPJNNFIINNB); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(areaId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(lOKIGPFHHIN); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(kPJNNFIINNB); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueUpdate mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 56: { + // areaId + areaId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { + // lOKIGPFHHIN + lOKIGPFHHIN = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // kPJNNFIINNB + kPJNNFIINNB = 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.areaId, areaId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.lOKIGPFHHIN, lOKIGPFHHIN); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.kPJNNFIINNB, kPJNNFIINNB); + } + output.endObject(); + } + + @Override + public RogueUpdate 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 -567563551: { + if (input.isAtField(FieldNames.lOKIGPFHHIN)) { + if (!input.trySkipNullValue()) { + lOKIGPFHHIN = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 303551777: { + if (input.isAtField(FieldNames.kPJNNFIINNB)) { + if (!input.trySkipNullValue()) { + kPJNNFIINNB = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueUpdate clone() { + return new RogueUpdate().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueUpdate parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueUpdate(), data).checkInitialized(); + } + + public static RogueUpdate parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueUpdate(), input).checkInitialized(); + } + + public static RogueUpdate parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueUpdate(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueUpdate messages + */ + public static MessageFactory getFactory() { + return RogueUpdateFactory.INSTANCE; + } + + private enum RogueUpdateFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueUpdate create() { + return RogueUpdate.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName areaId = FieldName.forField("areaId", "area_id"); + + static final FieldName lOKIGPFHHIN = FieldName.forField("LOKIGPFHHIN"); + + static final FieldName kPJNNFIINNB = FieldName.forField("KPJNNFIINNB"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueVirtualItemInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueVirtualItemInfoOuterClass.java index 3511425..c856168 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueVirtualItemInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RogueVirtualItemInfoOuterClass.java @@ -19,24 +19,14 @@ public final class RogueVirtualItemInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 rogue_ability_point = 7; + * optional uint32 money = 1; */ - private int rogueAbilityPoint; + private int money; /** - * optional uint32 rogue_puman_coupon = 8; + * optional uint32 X = 4; */ - private int roguePumanCoupon; - - /** - * optional uint32 rogue_coin = 10; - */ - private int rogueCoin; - - /** - * optional uint32 rogue_immersifier = 13; - */ - private int rogueImmersifier; + private int x; private RogueVirtualItemInfo() { } @@ -49,150 +39,76 @@ public final class RogueVirtualItemInfoOuterClass { } /** - * optional uint32 rogue_ability_point = 7; - * @return whether the rogueAbilityPoint field is set + * optional uint32 money = 1; + * @return whether the money field is set */ - public boolean hasRogueAbilityPoint() { + public boolean hasMoney() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 rogue_ability_point = 7; + * optional uint32 money = 1; * @return this */ - public RogueVirtualItemInfo clearRogueAbilityPoint() { + public RogueVirtualItemInfo clearMoney() { bitField0_ &= ~0x00000001; - rogueAbilityPoint = 0; + money = 0; return this; } /** - * optional uint32 rogue_ability_point = 7; - * @return the rogueAbilityPoint + * optional uint32 money = 1; + * @return the money */ - public int getRogueAbilityPoint() { - return rogueAbilityPoint; + public int getMoney() { + return money; } /** - * optional uint32 rogue_ability_point = 7; - * @param value the rogueAbilityPoint to set + * optional uint32 money = 1; + * @param value the money to set * @return this */ - public RogueVirtualItemInfo setRogueAbilityPoint(final int value) { + public RogueVirtualItemInfo setMoney(final int value) { bitField0_ |= 0x00000001; - rogueAbilityPoint = value; + money = value; return this; } /** - * optional uint32 rogue_puman_coupon = 8; - * @return whether the roguePumanCoupon field is set + * optional uint32 X = 4; + * @return whether the x field is set */ - public boolean hasRoguePumanCoupon() { + public boolean hasX() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 rogue_puman_coupon = 8; + * optional uint32 X = 4; * @return this */ - public RogueVirtualItemInfo clearRoguePumanCoupon() { + public RogueVirtualItemInfo clearX() { bitField0_ &= ~0x00000002; - roguePumanCoupon = 0; + x = 0; return this; } /** - * optional uint32 rogue_puman_coupon = 8; - * @return the roguePumanCoupon + * optional uint32 X = 4; + * @return the x */ - public int getRoguePumanCoupon() { - return roguePumanCoupon; + public int getX() { + return x; } /** - * optional uint32 rogue_puman_coupon = 8; - * @param value the roguePumanCoupon to set + * optional uint32 X = 4; + * @param value the x to set * @return this */ - public RogueVirtualItemInfo setRoguePumanCoupon(final int value) { + public RogueVirtualItemInfo setX(final int value) { bitField0_ |= 0x00000002; - roguePumanCoupon = value; - return this; - } - - /** - * optional uint32 rogue_coin = 10; - * @return whether the rogueCoin field is set - */ - public boolean hasRogueCoin() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 rogue_coin = 10; - * @return this - */ - public RogueVirtualItemInfo clearRogueCoin() { - bitField0_ &= ~0x00000004; - rogueCoin = 0; - return this; - } - - /** - * optional uint32 rogue_coin = 10; - * @return the rogueCoin - */ - public int getRogueCoin() { - return rogueCoin; - } - - /** - * optional uint32 rogue_coin = 10; - * @param value the rogueCoin to set - * @return this - */ - public RogueVirtualItemInfo setRogueCoin(final int value) { - bitField0_ |= 0x00000004; - rogueCoin = value; - return this; - } - - /** - * optional uint32 rogue_immersifier = 13; - * @return whether the rogueImmersifier field is set - */ - public boolean hasRogueImmersifier() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional uint32 rogue_immersifier = 13; - * @return this - */ - public RogueVirtualItemInfo clearRogueImmersifier() { - bitField0_ &= ~0x00000008; - rogueImmersifier = 0; - return this; - } - - /** - * optional uint32 rogue_immersifier = 13; - * @return the rogueImmersifier - */ - public int getRogueImmersifier() { - return rogueImmersifier; - } - - /** - * optional uint32 rogue_immersifier = 13; - * @param value the rogueImmersifier to set - * @return this - */ - public RogueVirtualItemInfo setRogueImmersifier(final int value) { - bitField0_ |= 0x00000008; - rogueImmersifier = value; + x = value; return this; } @@ -201,10 +117,8 @@ public final class RogueVirtualItemInfoOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - rogueAbilityPoint = other.rogueAbilityPoint; - roguePumanCoupon = other.roguePumanCoupon; - rogueCoin = other.rogueCoin; - rogueImmersifier = other.rogueImmersifier; + money = other.money; + x = other.x; } return this; } @@ -215,17 +129,11 @@ public final class RogueVirtualItemInfoOuterClass { return this; } cachedSize = -1; - if (other.hasRogueAbilityPoint()) { - setRogueAbilityPoint(other.rogueAbilityPoint); + if (other.hasMoney()) { + setMoney(other.money); } - if (other.hasRoguePumanCoupon()) { - setRoguePumanCoupon(other.roguePumanCoupon); - } - if (other.hasRogueCoin()) { - setRogueCoin(other.rogueCoin); - } - if (other.hasRogueImmersifier()) { - setRogueImmersifier(other.rogueImmersifier); + if (other.hasX()) { + setX(other.x); } return this; } @@ -237,10 +145,8 @@ public final class RogueVirtualItemInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - rogueAbilityPoint = 0; - roguePumanCoupon = 0; - rogueCoin = 0; - rogueImmersifier = 0; + money = 0; + x = 0; return this; } @@ -264,29 +170,19 @@ public final class RogueVirtualItemInfoOuterClass { } RogueVirtualItemInfo other = (RogueVirtualItemInfo) o; return bitField0_ == other.bitField0_ - && (!hasRogueAbilityPoint() || rogueAbilityPoint == other.rogueAbilityPoint) - && (!hasRoguePumanCoupon() || roguePumanCoupon == other.roguePumanCoupon) - && (!hasRogueCoin() || rogueCoin == other.rogueCoin) - && (!hasRogueImmersifier() || rogueImmersifier == other.rogueImmersifier); + && (!hasMoney() || money == other.money) + && (!hasX() || x == other.x); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); - output.writeUInt32NoTag(rogueAbilityPoint); + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(money); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(roguePumanCoupon); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 80); - output.writeUInt32NoTag(rogueCoin); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 104); - output.writeUInt32NoTag(rogueImmersifier); + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(x); } } @@ -294,16 +190,10 @@ public final class RogueVirtualItemInfoOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(rogueAbilityPoint); + size += 1 + ProtoSink.computeUInt32SizeNoTag(money); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(roguePumanCoupon); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(rogueCoin); - } - if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(rogueImmersifier); + size += 1 + ProtoSink.computeUInt32SizeNoTag(x); } return size; } @@ -315,38 +205,20 @@ public final class RogueVirtualItemInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 56: { - // rogueAbilityPoint - rogueAbilityPoint = input.readUInt32(); + case 8: { + // money + money = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 64) { + if (tag != 32) { break; } } - case 64: { - // roguePumanCoupon - roguePumanCoupon = input.readUInt32(); + case 32: { + // x + x = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 80) { - break; - } - } - case 80: { - // rogueCoin - rogueCoin = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 104) { - break; - } - } - case 104: { - // rogueImmersifier - rogueImmersifier = input.readUInt32(); - bitField0_ |= 0x00000008; - tag = input.readTag(); if (tag != 0) { break; } @@ -369,16 +241,10 @@ public final class RogueVirtualItemInfoOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.rogueAbilityPoint, rogueAbilityPoint); + output.writeUInt32(FieldNames.money, money); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.roguePumanCoupon, roguePumanCoupon); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.rogueCoin, rogueCoin); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.rogueImmersifier, rogueImmersifier); + output.writeUInt32(FieldNames.x, x); } output.endObject(); } @@ -390,11 +256,10 @@ public final class RogueVirtualItemInfoOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1319384448: - case -1613205354: { - if (input.isAtField(FieldNames.rogueAbilityPoint)) { + case 104079552: { + if (input.isAtField(FieldNames.money)) { if (!input.trySkipNullValue()) { - rogueAbilityPoint = input.readUInt32(); + money = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -402,11 +267,10 @@ public final class RogueVirtualItemInfoOuterClass { } break; } - case 845104001: - case -2086985547: { - if (input.isAtField(FieldNames.roguePumanCoupon)) { + case 88: { + if (input.isAtField(FieldNames.x)) { if (!input.trySkipNullValue()) { - roguePumanCoupon = input.readUInt32(); + x = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -414,30 +278,6 @@ public final class RogueVirtualItemInfoOuterClass { } break; } - case 655631243: - case -1124761130: { - if (input.isAtField(FieldNames.rogueCoin)) { - if (!input.trySkipNullValue()) { - rogueCoin = input.readUInt32(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1115528066: - case -1695636777: { - if (input.isAtField(FieldNames.rogueImmersifier)) { - if (!input.trySkipNullValue()) { - rogueImmersifier = input.readUInt32(); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } default: { input.skipUnknownField(); break; @@ -491,13 +331,9 @@ public final class RogueVirtualItemInfoOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName rogueAbilityPoint = FieldName.forField("rogueAbilityPoint", "rogue_ability_point"); + static final FieldName money = FieldName.forField("money"); - static final FieldName roguePumanCoupon = FieldName.forField("roguePumanCoupon", "rogue_puman_coupon"); - - static final FieldName rogueCoin = FieldName.forField("rogueCoin", "rogue_coin"); - - static final FieldName rogueImmersifier = FieldName.forField("rogueImmersifier", "rogue_immersifier"); + static final FieldName x = FieldName.forField("X"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/RogueVirtualItemOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueVirtualItemOuterClass.java new file mode 100644 index 0000000..8d11439 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueVirtualItemOuterClass.java @@ -0,0 +1,499 @@ +// 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 RogueVirtualItemOuterClass { + /** + * Protobuf type {@code RogueVirtualItem} + */ + public static final class RogueVirtualItem extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 MFOPPKIBGNJ = 8; + */ + private int mFOPPKIBGNJ; + + /** + * optional uint32 DDOPHIJMILL = 9; + */ + private int dDOPHIJMILL; + + /** + * optional uint32 ACJKANLIGBM = 10; + */ + private int aCJKANLIGBM; + + /** + * optional uint32 money = 15; + */ + private int money; + + private RogueVirtualItem() { + } + + /** + * @return a new empty instance of {@code RogueVirtualItem} + */ + public static RogueVirtualItem newInstance() { + return new RogueVirtualItem(); + } + + /** + * optional uint32 MFOPPKIBGNJ = 8; + * @return whether the mFOPPKIBGNJ field is set + */ + public boolean hasMFOPPKIBGNJ() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 MFOPPKIBGNJ = 8; + * @return this + */ + public RogueVirtualItem clearMFOPPKIBGNJ() { + bitField0_ &= ~0x00000001; + mFOPPKIBGNJ = 0; + return this; + } + + /** + * optional uint32 MFOPPKIBGNJ = 8; + * @return the mFOPPKIBGNJ + */ + public int getMFOPPKIBGNJ() { + return mFOPPKIBGNJ; + } + + /** + * optional uint32 MFOPPKIBGNJ = 8; + * @param value the mFOPPKIBGNJ to set + * @return this + */ + public RogueVirtualItem setMFOPPKIBGNJ(final int value) { + bitField0_ |= 0x00000001; + mFOPPKIBGNJ = value; + return this; + } + + /** + * optional uint32 DDOPHIJMILL = 9; + * @return whether the dDOPHIJMILL field is set + */ + public boolean hasDDOPHIJMILL() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 DDOPHIJMILL = 9; + * @return this + */ + public RogueVirtualItem clearDDOPHIJMILL() { + bitField0_ &= ~0x00000002; + dDOPHIJMILL = 0; + return this; + } + + /** + * optional uint32 DDOPHIJMILL = 9; + * @return the dDOPHIJMILL + */ + public int getDDOPHIJMILL() { + return dDOPHIJMILL; + } + + /** + * optional uint32 DDOPHIJMILL = 9; + * @param value the dDOPHIJMILL to set + * @return this + */ + public RogueVirtualItem setDDOPHIJMILL(final int value) { + bitField0_ |= 0x00000002; + dDOPHIJMILL = value; + return this; + } + + /** + * optional uint32 ACJKANLIGBM = 10; + * @return whether the aCJKANLIGBM field is set + */ + public boolean hasACJKANLIGBM() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 ACJKANLIGBM = 10; + * @return this + */ + public RogueVirtualItem clearACJKANLIGBM() { + bitField0_ &= ~0x00000004; + aCJKANLIGBM = 0; + return this; + } + + /** + * optional uint32 ACJKANLIGBM = 10; + * @return the aCJKANLIGBM + */ + public int getACJKANLIGBM() { + return aCJKANLIGBM; + } + + /** + * optional uint32 ACJKANLIGBM = 10; + * @param value the aCJKANLIGBM to set + * @return this + */ + public RogueVirtualItem setACJKANLIGBM(final int value) { + bitField0_ |= 0x00000004; + aCJKANLIGBM = value; + return this; + } + + /** + * optional uint32 money = 15; + * @return whether the money field is set + */ + public boolean hasMoney() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 money = 15; + * @return this + */ + public RogueVirtualItem clearMoney() { + bitField0_ &= ~0x00000008; + money = 0; + return this; + } + + /** + * optional uint32 money = 15; + * @return the money + */ + public int getMoney() { + return money; + } + + /** + * optional uint32 money = 15; + * @param value the money to set + * @return this + */ + public RogueVirtualItem setMoney(final int value) { + bitField0_ |= 0x00000008; + money = value; + return this; + } + + @Override + public RogueVirtualItem copyFrom(final RogueVirtualItem other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + mFOPPKIBGNJ = other.mFOPPKIBGNJ; + dDOPHIJMILL = other.dDOPHIJMILL; + aCJKANLIGBM = other.aCJKANLIGBM; + money = other.money; + } + return this; + } + + @Override + public RogueVirtualItem mergeFrom(final RogueVirtualItem other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasMFOPPKIBGNJ()) { + setMFOPPKIBGNJ(other.mFOPPKIBGNJ); + } + if (other.hasDDOPHIJMILL()) { + setDDOPHIJMILL(other.dDOPHIJMILL); + } + if (other.hasACJKANLIGBM()) { + setACJKANLIGBM(other.aCJKANLIGBM); + } + if (other.hasMoney()) { + setMoney(other.money); + } + return this; + } + + @Override + public RogueVirtualItem clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + mFOPPKIBGNJ = 0; + dDOPHIJMILL = 0; + aCJKANLIGBM = 0; + money = 0; + return this; + } + + @Override + public RogueVirtualItem 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 RogueVirtualItem)) { + return false; + } + RogueVirtualItem other = (RogueVirtualItem) o; + return bitField0_ == other.bitField0_ + && (!hasMFOPPKIBGNJ() || mFOPPKIBGNJ == other.mFOPPKIBGNJ) + && (!hasDDOPHIJMILL() || dDOPHIJMILL == other.dDOPHIJMILL) + && (!hasACJKANLIGBM() || aCJKANLIGBM == other.aCJKANLIGBM) + && (!hasMoney() || money == other.money); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(mFOPPKIBGNJ); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(dDOPHIJMILL); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(aCJKANLIGBM); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(money); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(mFOPPKIBGNJ); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(dDOPHIJMILL); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(aCJKANLIGBM); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(money); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueVirtualItem mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 64: { + // mFOPPKIBGNJ + mFOPPKIBGNJ = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // dDOPHIJMILL + dDOPHIJMILL = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // aCJKANLIGBM + aCJKANLIGBM = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // money + money = 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.mFOPPKIBGNJ, mFOPPKIBGNJ); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.dDOPHIJMILL, dDOPHIJMILL); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.aCJKANLIGBM, aCJKANLIGBM); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.money, money); + } + output.endObject(); + } + + @Override + public RogueVirtualItem mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -663962379: { + if (input.isAtField(FieldNames.mFOPPKIBGNJ)) { + if (!input.trySkipNullValue()) { + mFOPPKIBGNJ = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 155657604: { + if (input.isAtField(FieldNames.dDOPHIJMILL)) { + if (!input.trySkipNullValue()) { + dDOPHIJMILL = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1408539: { + if (input.isAtField(FieldNames.aCJKANLIGBM)) { + if (!input.trySkipNullValue()) { + aCJKANLIGBM = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 104079552: { + if (input.isAtField(FieldNames.money)) { + if (!input.trySkipNullValue()) { + money = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueVirtualItem clone() { + return new RogueVirtualItem().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueVirtualItem parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueVirtualItem(), data).checkInitialized(); + } + + public static RogueVirtualItem parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueVirtualItem(), input).checkInitialized(); + } + + public static RogueVirtualItem parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueVirtualItem(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueVirtualItem messages + */ + public static MessageFactory getFactory() { + return RogueVirtualItemFactory.INSTANCE; + } + + private enum RogueVirtualItemFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueVirtualItem create() { + return RogueVirtualItem.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName mFOPPKIBGNJ = FieldName.forField("MFOPPKIBGNJ"); + + static final FieldName dDOPHIJMILL = FieldName.forField("DDOPHIJMILL"); + + static final FieldName aCJKANLIGBM = FieldName.forField("ACJKANLIGBM"); + + static final FieldName money = FieldName.forField("money"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SelectRogueDialogueEventCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SelectRogueDialogueEventCsReqOuterClass.java index d21183f..c507090 100644 --- a/src/generated/main/emu/lunarcore/proto/SelectRogueDialogueEventCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SelectRogueDialogueEventCsReqOuterClass.java @@ -19,10 +19,15 @@ public final class SelectRogueDialogueEventCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 dialogue_event_id = 5; + * optional uint32 dialogue_event_id = 3; */ private int dialogueEventId; + /** + * optional uint32 entity_id = 6; + */ + private int entityId; + private SelectRogueDialogueEventCsReq() { } @@ -34,7 +39,7 @@ public final class SelectRogueDialogueEventCsReqOuterClass { } /** - * optional uint32 dialogue_event_id = 5; + * optional uint32 dialogue_event_id = 3; * @return whether the dialogueEventId field is set */ public boolean hasDialogueEventId() { @@ -42,7 +47,7 @@ public final class SelectRogueDialogueEventCsReqOuterClass { } /** - * optional uint32 dialogue_event_id = 5; + * optional uint32 dialogue_event_id = 3; * @return this */ public SelectRogueDialogueEventCsReq clearDialogueEventId() { @@ -52,7 +57,7 @@ public final class SelectRogueDialogueEventCsReqOuterClass { } /** - * optional uint32 dialogue_event_id = 5; + * optional uint32 dialogue_event_id = 3; * @return the dialogueEventId */ public int getDialogueEventId() { @@ -60,7 +65,7 @@ public final class SelectRogueDialogueEventCsReqOuterClass { } /** - * optional uint32 dialogue_event_id = 5; + * optional uint32 dialogue_event_id = 3; * @param value the dialogueEventId to set * @return this */ @@ -70,12 +75,50 @@ public final class SelectRogueDialogueEventCsReqOuterClass { return this; } + /** + * optional uint32 entity_id = 6; + * @return whether the entityId field is set + */ + public boolean hasEntityId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 entity_id = 6; + * @return this + */ + public SelectRogueDialogueEventCsReq clearEntityId() { + bitField0_ &= ~0x00000002; + 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_ |= 0x00000002; + entityId = value; + return this; + } + @Override public SelectRogueDialogueEventCsReq copyFrom(final SelectRogueDialogueEventCsReq other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; dialogueEventId = other.dialogueEventId; + entityId = other.entityId; } return this; } @@ -89,6 +132,9 @@ public final class SelectRogueDialogueEventCsReqOuterClass { if (other.hasDialogueEventId()) { setDialogueEventId(other.dialogueEventId); } + if (other.hasEntityId()) { + setEntityId(other.entityId); + } return this; } @@ -100,6 +146,7 @@ public final class SelectRogueDialogueEventCsReqOuterClass { cachedSize = -1; bitField0_ = 0; dialogueEventId = 0; + entityId = 0; return this; } @@ -123,15 +170,20 @@ public final class SelectRogueDialogueEventCsReqOuterClass { } SelectRogueDialogueEventCsReq other = (SelectRogueDialogueEventCsReq) o; return bitField0_ == other.bitField0_ - && (!hasDialogueEventId() || dialogueEventId == other.dialogueEventId); + && (!hasDialogueEventId() || dialogueEventId == other.dialogueEventId) + && (!hasEntityId() || entityId == other.entityId); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 24); output.writeUInt32NoTag(dialogueEventId); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(entityId); + } } @Override @@ -140,6 +192,9 @@ public final class SelectRogueDialogueEventCsReqOuterClass { if ((bitField0_ & 0x00000001) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(dialogueEventId); } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(entityId); + } return size; } @@ -150,11 +205,20 @@ public final class SelectRogueDialogueEventCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 40: { + case 24: { // dialogueEventId dialogueEventId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // entityId + entityId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); if (tag != 0) { break; } @@ -179,6 +243,9 @@ public final class SelectRogueDialogueEventCsReqOuterClass { if ((bitField0_ & 0x00000001) != 0) { output.writeUInt32(FieldNames.dialogueEventId, dialogueEventId); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.entityId, entityId); + } output.endObject(); } @@ -201,6 +268,18 @@ public final class SelectRogueDialogueEventCsReqOuterClass { } 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; @@ -257,6 +336,8 @@ public final class SelectRogueDialogueEventCsReqOuterClass { */ static class FieldNames { static final FieldName dialogueEventId = FieldName.forField("dialogueEventId", "dialogue_event_id"); + + static final FieldName entityId = FieldName.forField("entityId", "entity_id"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/SelectRogueDialogueEventScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SelectRogueDialogueEventScRspOuterClass.java index bfb6851..8b7e4d0 100644 --- a/src/generated/main/emu/lunarcore/proto/SelectRogueDialogueEventScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SelectRogueDialogueEventScRspOuterClass.java @@ -19,14 +19,23 @@ public final class SelectRogueDialogueEventScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 1; + * optional uint32 dialogue_event_id = 9; + */ + private int dialogueEventId; + + /** + * optional uint32 retcode = 15; */ private int retcode; /** - * optional uint32 dialogue_event_id = 12; + *
+     * MEMPJPLINCN LELKNNDCGJM = 6;
+     * 
+ * + * optional .RogueDialogueEvent event_data = 14; */ - private int dialogueEventId; + private final RogueDialogueEventOuterClass.RogueDialogueEvent eventData = RogueDialogueEventOuterClass.RogueDialogueEvent.newInstance(); private SelectRogueDialogueEventScRsp() { } @@ -39,62 +48,25 @@ public final class SelectRogueDialogueEventScRspOuterClass { } /** - * optional uint32 retcode = 1; - * @return whether the retcode field is set + * optional uint32 dialogue_event_id = 9; + * @return whether the dialogueEventId field is set */ - public boolean hasRetcode() { + public boolean hasDialogueEventId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 retcode = 1; - * @return this - */ - public SelectRogueDialogueEventScRsp 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 SelectRogueDialogueEventScRsp setRetcode(final int value) { - bitField0_ |= 0x00000001; - retcode = value; - return this; - } - - /** - * optional uint32 dialogue_event_id = 12; - * @return whether the dialogueEventId field is set - */ - public boolean hasDialogueEventId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 dialogue_event_id = 12; + * optional uint32 dialogue_event_id = 9; * @return this */ public SelectRogueDialogueEventScRsp clearDialogueEventId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; dialogueEventId = 0; return this; } /** - * optional uint32 dialogue_event_id = 12; + * optional uint32 dialogue_event_id = 9; * @return the dialogueEventId */ public int getDialogueEventId() { @@ -102,23 +74,139 @@ public final class SelectRogueDialogueEventScRspOuterClass { } /** - * optional uint32 dialogue_event_id = 12; + * optional uint32 dialogue_event_id = 9; * @param value the dialogueEventId to set * @return this */ public SelectRogueDialogueEventScRsp setDialogueEventId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; dialogueEventId = 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 SelectRogueDialogueEventScRsp 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 SelectRogueDialogueEventScRsp setRetcode(final int value) { + bitField0_ |= 0x00000002; + retcode = value; + return this; + } + + /** + *
+     * MEMPJPLINCN LELKNNDCGJM = 6;
+     * 
+ * + * optional .RogueDialogueEvent event_data = 14; + * @return whether the eventData field is set + */ + public boolean hasEventData() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + *
+     * MEMPJPLINCN LELKNNDCGJM = 6;
+     * 
+ * + * optional .RogueDialogueEvent event_data = 14; + * @return this + */ + public SelectRogueDialogueEventScRsp clearEventData() { + bitField0_ &= ~0x00000004; + eventData.clear(); + return this; + } + + /** + *
+     * MEMPJPLINCN LELKNNDCGJM = 6;
+     * 
+ * + * optional .RogueDialogueEvent event_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 #getMutableEventData()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueDialogueEventOuterClass.RogueDialogueEvent getEventData() { + return eventData; + } + + /** + *
+     * MEMPJPLINCN LELKNNDCGJM = 6;
+     * 
+ * + * optional .RogueDialogueEvent event_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 RogueDialogueEventOuterClass.RogueDialogueEvent getMutableEventData() { + bitField0_ |= 0x00000004; + return eventData; + } + + /** + *
+     * MEMPJPLINCN LELKNNDCGJM = 6;
+     * 
+ * + * optional .RogueDialogueEvent event_data = 14; + * @param value the eventData to set + * @return this + */ + public SelectRogueDialogueEventScRsp setEventData( + final RogueDialogueEventOuterClass.RogueDialogueEvent value) { + bitField0_ |= 0x00000004; + 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; + retcode = other.retcode; + eventData.copyFrom(other.eventData); } return this; } @@ -129,11 +217,14 @@ public final class SelectRogueDialogueEventScRspOuterClass { return this; } cachedSize = -1; + if (other.hasDialogueEventId()) { + setDialogueEventId(other.dialogueEventId); + } if (other.hasRetcode()) { setRetcode(other.retcode); } - if (other.hasDialogueEventId()) { - setDialogueEventId(other.dialogueEventId); + if (other.hasEventData()) { + getMutableEventData().mergeFrom(other.eventData); } return this; } @@ -145,8 +236,9 @@ public final class SelectRogueDialogueEventScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - retcode = 0; dialogueEventId = 0; + retcode = 0; + eventData.clear(); return this; } @@ -157,6 +249,7 @@ public final class SelectRogueDialogueEventScRspOuterClass { } cachedSize = -1; bitField0_ = 0; + eventData.clearQuick(); return this; } @@ -170,19 +263,24 @@ public final class SelectRogueDialogueEventScRspOuterClass { } SelectRogueDialogueEventScRsp other = (SelectRogueDialogueEventScRsp) o; return bitField0_ == other.bitField0_ + && (!hasDialogueEventId() || dialogueEventId == other.dialogueEventId) && (!hasRetcode() || retcode == other.retcode) - && (!hasDialogueEventId() || dialogueEventId == other.dialogueEventId); + && (!hasEventData() || eventData.equals(other.eventData)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(retcode); + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(dialogueEventId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 96); - output.writeUInt32NoTag(dialogueEventId); + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 114); + output.writeMessageNoTag(eventData); } } @@ -190,10 +288,13 @@ public final class SelectRogueDialogueEventScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(dialogueEventId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(dialogueEventId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(eventData); } return size; } @@ -205,20 +306,29 @@ public final class SelectRogueDialogueEventScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { - // retcode - retcode = input.readUInt32(); + case 72: { + // dialogueEventId + dialogueEventId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 96) { + if (tag != 120) { break; } } - case 96: { - // dialogueEventId - dialogueEventId = input.readUInt32(); + case 120: { + // retcode + retcode = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); + if (tag != 114) { + break; + } + } + case 114: { + // eventData + input.readMessage(eventData); + bitField0_ |= 0x00000004; + tag = input.readTag(); if (tag != 0) { break; } @@ -241,10 +351,13 @@ public final class SelectRogueDialogueEventScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.dialogueEventId, dialogueEventId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.dialogueEventId, dialogueEventId); + output.writeUInt32(FieldNames.retcode, retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.eventData, eventData); } output.endObject(); } @@ -256,10 +369,11 @@ public final class SelectRogueDialogueEventScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case 88389725: + case 1671736167: { + if (input.isAtField(FieldNames.dialogueEventId)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + dialogueEventId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -267,11 +381,10 @@ public final class SelectRogueDialogueEventScRspOuterClass { } break; } - case 88389725: - case 1671736167: { - if (input.isAtField(FieldNames.dialogueEventId)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - dialogueEventId = input.readUInt32(); + retcode = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -279,6 +392,18 @@ public final class SelectRogueDialogueEventScRspOuterClass { } break; } + case 30931300: + case 983877167: { + if (input.isAtField(FieldNames.eventData)) { + if (!input.trySkipNullValue()) { + input.readMessage(eventData); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } default: { input.skipUnknownField(); break; @@ -334,9 +459,11 @@ public final class SelectRogueDialogueEventScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { + static final FieldName dialogueEventId = FieldName.forField("dialogueEventId", "dialogue_event_id"); + static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName dialogueEventId = FieldName.forField("dialogueEventId", "dialogue_event_id"); + static final FieldName eventData = FieldName.forField("eventData", "event_data"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/StartRogueCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/StartRogueCsReqOuterClass.java index 853d318..3227b31 100644 --- a/src/generated/main/emu/lunarcore/proto/StartRogueCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/StartRogueCsReqOuterClass.java @@ -20,17 +20,22 @@ public final class StartRogueCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 buff_aeon_id = 6; - */ - private int buffAeonId; - - /** - * optional uint32 area_id = 12; + * optional uint32 area_id = 1; */ private int areaId; /** - * repeated uint32 base_avatar_id_list = 8; + * optional uint32 buff_aeon_id = 3; + */ + private int buffAeonId; + + /** + * optional uint32 ECJEFHHACMI = 12; + */ + private int eCJEFHHACMI; + + /** + * repeated uint32 base_avatar_id_list = 11; */ private final RepeatedInt baseAvatarIdList = RepeatedInt.newEmptyInstance(); @@ -45,62 +50,25 @@ public final class StartRogueCsReqOuterClass { } /** - * optional uint32 buff_aeon_id = 6; - * @return whether the buffAeonId field is set + * optional uint32 area_id = 1; + * @return whether the areaId field is set */ - public boolean hasBuffAeonId() { + public boolean hasAreaId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 buff_aeon_id = 6; - * @return this - */ - public StartRogueCsReq clearBuffAeonId() { - bitField0_ &= ~0x00000001; - buffAeonId = 0; - return this; - } - - /** - * optional uint32 buff_aeon_id = 6; - * @return the buffAeonId - */ - public int getBuffAeonId() { - return buffAeonId; - } - - /** - * optional uint32 buff_aeon_id = 6; - * @param value the buffAeonId to set - * @return this - */ - public StartRogueCsReq setBuffAeonId(final int value) { - bitField0_ |= 0x00000001; - buffAeonId = value; - return this; - } - - /** - * optional uint32 area_id = 12; - * @return whether the areaId field is set - */ - public boolean hasAreaId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 area_id = 12; + * optional uint32 area_id = 1; * @return this */ public StartRogueCsReq clearAreaId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; areaId = 0; return this; } /** - * optional uint32 area_id = 12; + * optional uint32 area_id = 1; * @return the areaId */ public int getAreaId() { @@ -108,36 +76,110 @@ public final class StartRogueCsReqOuterClass { } /** - * optional uint32 area_id = 12; + * optional uint32 area_id = 1; * @param value the areaId to set * @return this */ public StartRogueCsReq setAreaId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; areaId = value; return this; } /** - * repeated uint32 base_avatar_id_list = 8; - * @return whether the baseAvatarIdList field is set + * optional uint32 buff_aeon_id = 3; + * @return whether the buffAeonId field is set */ - public boolean hasBaseAvatarIdList() { + public boolean hasBuffAeonId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 buff_aeon_id = 3; + * @return this + */ + public StartRogueCsReq clearBuffAeonId() { + bitField0_ &= ~0x00000002; + buffAeonId = 0; + return this; + } + + /** + * optional uint32 buff_aeon_id = 3; + * @return the buffAeonId + */ + public int getBuffAeonId() { + return buffAeonId; + } + + /** + * optional uint32 buff_aeon_id = 3; + * @param value the buffAeonId to set + * @return this + */ + public StartRogueCsReq setBuffAeonId(final int value) { + bitField0_ |= 0x00000002; + buffAeonId = value; + return this; + } + + /** + * optional uint32 ECJEFHHACMI = 12; + * @return whether the eCJEFHHACMI field is set + */ + public boolean hasECJEFHHACMI() { return (bitField0_ & 0x00000004) != 0; } /** - * repeated uint32 base_avatar_id_list = 8; + * optional uint32 ECJEFHHACMI = 12; + * @return this + */ + public StartRogueCsReq clearECJEFHHACMI() { + bitField0_ &= ~0x00000004; + eCJEFHHACMI = 0; + return this; + } + + /** + * optional uint32 ECJEFHHACMI = 12; + * @return the eCJEFHHACMI + */ + public int getECJEFHHACMI() { + return eCJEFHHACMI; + } + + /** + * optional uint32 ECJEFHHACMI = 12; + * @param value the eCJEFHHACMI to set + * @return this + */ + public StartRogueCsReq setECJEFHHACMI(final int value) { + bitField0_ |= 0x00000004; + eCJEFHHACMI = value; + return this; + } + + /** + * repeated uint32 base_avatar_id_list = 11; + * @return whether the baseAvatarIdList field is set + */ + public boolean hasBaseAvatarIdList() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated uint32 base_avatar_id_list = 11; * @return this */ public StartRogueCsReq clearBaseAvatarIdList() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000008; baseAvatarIdList.clear(); return this; } /** - * repeated uint32 base_avatar_id_list = 8; + * repeated uint32 base_avatar_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. @@ -151,7 +193,7 @@ public final class StartRogueCsReqOuterClass { } /** - * repeated uint32 base_avatar_id_list = 8; + * repeated uint32 base_avatar_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 @@ -160,28 +202,28 @@ public final class StartRogueCsReqOuterClass { * @return internal storage object for modifications */ public RepeatedInt getMutableBaseAvatarIdList() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; return baseAvatarIdList; } /** - * repeated uint32 base_avatar_id_list = 8; + * repeated uint32 base_avatar_id_list = 11; * @param value the baseAvatarIdList to add * @return this */ public StartRogueCsReq addBaseAvatarIdList(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; baseAvatarIdList.add(value); return this; } /** - * repeated uint32 base_avatar_id_list = 8; + * repeated uint32 base_avatar_id_list = 11; * @param values the baseAvatarIdList to add * @return this */ public StartRogueCsReq addAllBaseAvatarIdList(final int... values) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; baseAvatarIdList.addAll(values); return this; } @@ -191,8 +233,9 @@ public final class StartRogueCsReqOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - buffAeonId = other.buffAeonId; areaId = other.areaId; + buffAeonId = other.buffAeonId; + eCJEFHHACMI = other.eCJEFHHACMI; baseAvatarIdList.copyFrom(other.baseAvatarIdList); } return this; @@ -204,11 +247,14 @@ public final class StartRogueCsReqOuterClass { return this; } cachedSize = -1; + if (other.hasAreaId()) { + setAreaId(other.areaId); + } if (other.hasBuffAeonId()) { setBuffAeonId(other.buffAeonId); } - if (other.hasAreaId()) { - setAreaId(other.areaId); + if (other.hasECJEFHHACMI()) { + setECJEFHHACMI(other.eCJEFHHACMI); } if (other.hasBaseAvatarIdList()) { getMutableBaseAvatarIdList().addAll(other.baseAvatarIdList); @@ -223,8 +269,9 @@ public final class StartRogueCsReqOuterClass { } cachedSize = -1; bitField0_ = 0; - buffAeonId = 0; areaId = 0; + buffAeonId = 0; + eCJEFHHACMI = 0; baseAvatarIdList.clear(); return this; } @@ -250,24 +297,29 @@ public final class StartRogueCsReqOuterClass { } StartRogueCsReq other = (StartRogueCsReq) o; return bitField0_ == other.bitField0_ - && (!hasBuffAeonId() || buffAeonId == other.buffAeonId) && (!hasAreaId() || areaId == other.areaId) + && (!hasBuffAeonId() || buffAeonId == other.buffAeonId) + && (!hasECJEFHHACMI() || eCJEFHHACMI == other.eCJEFHHACMI) && (!hasBaseAvatarIdList() || baseAvatarIdList.equals(other.baseAvatarIdList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 48); - output.writeUInt32NoTag(buffAeonId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(areaId); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(buffAeonId); + } if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(eCJEFHHACMI); + } + if ((bitField0_ & 0x00000008) != 0) { for (int i = 0; i < baseAvatarIdList.length(); i++) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 88); output.writeUInt32NoTag(baseAvatarIdList.array()[i]); } } @@ -277,12 +329,15 @@ public final class StartRogueCsReqOuterClass { 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_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(buffAeonId); + } if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(eCJEFHHACMI); + } + if ((bitField0_ & 0x00000008) != 0) { size += (1 * baseAvatarIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(baseAvatarIdList); } return size; @@ -295,28 +350,37 @@ public final class StartRogueCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 48: { + case 8: { + // areaId + areaId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { // buffAeonId buffAeonId = input.readUInt32(); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 96) { break; } } case 96: { - // areaId - areaId = input.readUInt32(); - bitField0_ |= 0x00000002; + // eCJEFHHACMI + eCJEFHHACMI = input.readUInt32(); + bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 66) { + if (tag != 90) { break; } } - case 66: { + case 90: { // baseAvatarIdList [packed=true] input.readPackedUInt32(baseAvatarIdList, tag); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 0) { break; @@ -332,10 +396,10 @@ public final class StartRogueCsReqOuterClass { tag = input.readTag(); break; } - case 64: { + case 88: { // baseAvatarIdList [packed=false] tag = input.readRepeatedUInt32(baseAvatarIdList, tag); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } } @@ -346,12 +410,15 @@ public final class StartRogueCsReqOuterClass { 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_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.buffAeonId, buffAeonId); + } if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.eCJEFHHACMI, eCJEFHHACMI); + } + if ((bitField0_ & 0x00000008) != 0) { output.writeRepeatedUInt32(FieldNames.baseAvatarIdList, baseAvatarIdList); } output.endObject(); @@ -364,11 +431,11 @@ public final class StartRogueCsReqOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 864413617: - case -1316781589: { - if (input.isAtField(FieldNames.buffAeonId)) { + case -1409553784: + case -746472947: { + if (input.isAtField(FieldNames.areaId)) { if (!input.trySkipNullValue()) { - buffAeonId = input.readUInt32(); + areaId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -376,11 +443,11 @@ public final class StartRogueCsReqOuterClass { } break; } - case -1409553784: - case -746472947: { - if (input.isAtField(FieldNames.areaId)) { + case 864413617: + case -1316781589: { + if (input.isAtField(FieldNames.buffAeonId)) { if (!input.trySkipNullValue()) { - areaId = input.readUInt32(); + buffAeonId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -388,12 +455,23 @@ public final class StartRogueCsReqOuterClass { } break; } + case -499366517: { + if (input.isAtField(FieldNames.eCJEFHHACMI)) { + if (!input.trySkipNullValue()) { + eCJEFHHACMI = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } case -1212654461: case 914628490: { if (input.isAtField(FieldNames.baseAvatarIdList)) { if (!input.trySkipNullValue()) { input.readRepeatedUInt32(baseAvatarIdList); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; } } else { input.skipUnknownField(); @@ -453,9 +531,11 @@ public final class StartRogueCsReqOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { + static final FieldName areaId = FieldName.forField("areaId", "area_id"); + static final FieldName buffAeonId = FieldName.forField("buffAeonId", "buff_aeon_id"); - static final FieldName areaId = FieldName.forField("areaId", "area_id"); + static final FieldName eCJEFHHACMI = FieldName.forField("ECJEFHHACMI"); 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 index 64af8a6..ecd64f3 100644 --- a/src/generated/main/emu/lunarcore/proto/StartRogueScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/StartRogueScRspOuterClass.java @@ -19,22 +19,22 @@ public final class StartRogueScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 2; + * optional uint32 retcode = 1; */ private int retcode; /** - * optional .SceneInfo scene = 3; - */ - private final SceneInfoOuterClass.SceneInfo scene = SceneInfoOuterClass.SceneInfo.newInstance(); - - /** - * optional .LineupInfo lineup = 12; + * optional .LineupInfo lineup = 7; */ private final LineupInfoOuterClass.LineupInfo lineup = LineupInfoOuterClass.LineupInfo.newInstance(); /** - * optional .RogueInfo rogue_info = 13; + * optional .SceneInfo scene = 8; + */ + private final SceneInfoOuterClass.SceneInfo scene = SceneInfoOuterClass.SceneInfo.newInstance(); + + /** + * optional .RogueInfo rogue_info = 12; */ private final RogueInfoOuterClass.RogueInfo rogueInfo = RogueInfoOuterClass.RogueInfo.newInstance(); @@ -49,7 +49,7 @@ public final class StartRogueScRspOuterClass { } /** - * optional uint32 retcode = 2; + * optional uint32 retcode = 1; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -57,7 +57,7 @@ public final class StartRogueScRspOuterClass { } /** - * optional uint32 retcode = 2; + * optional uint32 retcode = 1; * @return this */ public StartRogueScRsp clearRetcode() { @@ -67,7 +67,7 @@ public final class StartRogueScRspOuterClass { } /** - * optional uint32 retcode = 2; + * optional uint32 retcode = 1; * @return the retcode */ public int getRetcode() { @@ -75,7 +75,7 @@ public final class StartRogueScRspOuterClass { } /** - * optional uint32 retcode = 2; + * optional uint32 retcode = 1; * @param value the retcode to set * @return this */ @@ -86,82 +86,25 @@ public final class StartRogueScRspOuterClass { } /** - * optional .SceneInfo scene = 3; - * @return whether the scene field is set + * optional .LineupInfo lineup = 7; + * @return whether the lineup field is set */ - public boolean hasScene() { + public boolean hasLineup() { return (bitField0_ & 0x00000002) != 0; } /** - * optional .SceneInfo scene = 3; - * @return this - */ - public StartRogueScRsp clearScene() { - bitField0_ &= ~0x00000002; - 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_ |= 0x00000002; - return scene; - } - - /** - * optional .SceneInfo scene = 3; - * @param value the scene to set - * @return this - */ - public StartRogueScRsp setScene(final SceneInfoOuterClass.SceneInfo value) { - bitField0_ |= 0x00000002; - scene.copyFrom(value); - return this; - } - - /** - * optional .LineupInfo lineup = 12; - * @return whether the lineup field is set - */ - public boolean hasLineup() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional .LineupInfo lineup = 12; + * optional .LineupInfo lineup = 7; * @return this */ public StartRogueScRsp clearLineup() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; lineup.clear(); return this; } /** - * optional .LineupInfo lineup = 12; + * 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. @@ -175,7 +118,7 @@ public final class StartRogueScRspOuterClass { } /** - * optional .LineupInfo lineup = 12; + * 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 @@ -184,23 +127,80 @@ public final class StartRogueScRspOuterClass { * @return internal storage object for modifications */ public LineupInfoOuterClass.LineupInfo getMutableLineup() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; return lineup; } /** - * optional .LineupInfo lineup = 12; + * optional .LineupInfo lineup = 7; * @param value the lineup to set * @return this */ public StartRogueScRsp setLineup(final LineupInfoOuterClass.LineupInfo value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; lineup.copyFrom(value); return this; } /** - * optional .RogueInfo rogue_info = 13; + * optional .SceneInfo scene = 8; + * @return whether the scene field is set + */ + public boolean hasScene() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .SceneInfo scene = 8; + * @return this + */ + public StartRogueScRsp clearScene() { + bitField0_ &= ~0x00000004; + scene.clear(); + return this; + } + + /** + * optional .SceneInfo scene = 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 #getMutableScene()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SceneInfoOuterClass.SceneInfo getScene() { + return scene; + } + + /** + * optional .SceneInfo scene = 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 SceneInfoOuterClass.SceneInfo getMutableScene() { + bitField0_ |= 0x00000004; + return scene; + } + + /** + * optional .SceneInfo scene = 8; + * @param value the scene to set + * @return this + */ + public StartRogueScRsp setScene(final SceneInfoOuterClass.SceneInfo value) { + bitField0_ |= 0x00000004; + scene.copyFrom(value); + return this; + } + + /** + * optional .RogueInfo rogue_info = 12; * @return whether the rogueInfo field is set */ public boolean hasRogueInfo() { @@ -208,7 +208,7 @@ public final class StartRogueScRspOuterClass { } /** - * optional .RogueInfo rogue_info = 13; + * optional .RogueInfo rogue_info = 12; * @return this */ public StartRogueScRsp clearRogueInfo() { @@ -218,7 +218,7 @@ public final class StartRogueScRspOuterClass { } /** - * optional .RogueInfo rogue_info = 13; + * optional .RogueInfo rogue_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. @@ -232,7 +232,7 @@ public final class StartRogueScRspOuterClass { } /** - * optional .RogueInfo rogue_info = 13; + * optional .RogueInfo rogue_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 @@ -246,7 +246,7 @@ public final class StartRogueScRspOuterClass { } /** - * optional .RogueInfo rogue_info = 13; + * optional .RogueInfo rogue_info = 12; * @param value the rogueInfo to set * @return this */ @@ -262,8 +262,8 @@ public final class StartRogueScRspOuterClass { if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; retcode = other.retcode; - scene.copyFrom(other.scene); lineup.copyFrom(other.lineup); + scene.copyFrom(other.scene); rogueInfo.copyFrom(other.rogueInfo); } return this; @@ -278,12 +278,12 @@ public final class StartRogueScRspOuterClass { if (other.hasRetcode()) { setRetcode(other.retcode); } - if (other.hasScene()) { - getMutableScene().mergeFrom(other.scene); - } if (other.hasLineup()) { getMutableLineup().mergeFrom(other.lineup); } + if (other.hasScene()) { + getMutableScene().mergeFrom(other.scene); + } if (other.hasRogueInfo()) { getMutableRogueInfo().mergeFrom(other.rogueInfo); } @@ -298,8 +298,8 @@ public final class StartRogueScRspOuterClass { cachedSize = -1; bitField0_ = 0; retcode = 0; - scene.clear(); lineup.clear(); + scene.clear(); rogueInfo.clear(); return this; } @@ -311,8 +311,8 @@ public final class StartRogueScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - scene.clearQuick(); lineup.clearQuick(); + scene.clearQuick(); rogueInfo.clearQuick(); return this; } @@ -328,27 +328,27 @@ public final class StartRogueScRspOuterClass { StartRogueScRsp other = (StartRogueScRsp) o; return bitField0_ == other.bitField0_ && (!hasRetcode() || retcode == other.retcode) - && (!hasScene() || scene.equals(other.scene)) && (!hasLineup() || lineup.equals(other.lineup)) + && (!hasScene() || scene.equals(other.scene)) && (!hasRogueInfo() || rogueInfo.equals(other.rogueInfo)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 26); - output.writeMessageNoTag(scene); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 98); + output.writeRawByte((byte) 58); output.writeMessageNoTag(lineup); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 66); + output.writeMessageNoTag(scene); + } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 106); + output.writeRawByte((byte) 98); output.writeMessageNoTag(rogueInfo); } } @@ -360,10 +360,10 @@ public final class StartRogueScRspOuterClass { size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } 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); } if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(rogueInfo); @@ -378,34 +378,34 @@ public final class StartRogueScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { + case 8: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 26) { + if (tag != 58) { break; } } - case 26: { + case 58: { + // lineup + input.readMessage(lineup); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 66) { + break; + } + } + case 66: { // scene input.readMessage(scene); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 98) { break; } } case 98: { - // lineup - input.readMessage(lineup); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 106) { - break; - } - } - case 106: { // rogueInfo input.readMessage(rogueInfo); bitField0_ |= 0x00000008; @@ -435,10 +435,10 @@ public final class StartRogueScRspOuterClass { output.writeUInt32(FieldNames.retcode, retcode); } 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); } if ((bitField0_ & 0x00000008) != 0) { output.writeMessage(FieldNames.rogueInfo, rogueInfo); @@ -464,10 +464,10 @@ public final class StartRogueScRspOuterClass { } 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 { @@ -475,10 +475,10 @@ public final class StartRogueScRspOuterClass { } 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 { @@ -553,10 +553,10 @@ public final class StartRogueScRspOuterClass { static class FieldNames { static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName scene = FieldName.forField("scene"); - static final FieldName lineup = FieldName.forField("lineup"); + static final FieldName scene = FieldName.forField("scene"); + static final FieldName rogueInfo = FieldName.forField("rogueInfo", "rogue_info"); } } diff --git a/src/generated/main/emu/lunarcore/proto/SyncRogueCommonActionResultScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/SyncRogueCommonActionResultScNotifyOuterClass.java new file mode 100644 index 0000000..88fd98b --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SyncRogueCommonActionResultScNotifyOuterClass.java @@ -0,0 +1,387 @@ +// 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 SyncRogueCommonActionResultScNotifyOuterClass { + /** + * Protobuf type {@code SyncRogueCommonActionResultScNotify} + */ + public static final class SyncRogueCommonActionResultScNotify extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + *
+     * PBCHNCIJKNA MDBPDPDDHBC = 12;
+     * 
+ * + * optional uint32 OCPBNBPAMEN = 5; + */ + private int oCPBNBPAMEN; + + /** + * optional .RogueActionResult action = 11; + */ + private final RogueActionResultOuterClass.RogueActionResult action = RogueActionResultOuterClass.RogueActionResult.newInstance(); + + private SyncRogueCommonActionResultScNotify() { + } + + /** + * @return a new empty instance of {@code SyncRogueCommonActionResultScNotify} + */ + public static SyncRogueCommonActionResultScNotify newInstance() { + return new SyncRogueCommonActionResultScNotify(); + } + + /** + *
+     * PBCHNCIJKNA MDBPDPDDHBC = 12;
+     * 
+ * + * optional uint32 OCPBNBPAMEN = 5; + * @return whether the oCPBNBPAMEN field is set + */ + public boolean hasOCPBNBPAMEN() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + *
+     * PBCHNCIJKNA MDBPDPDDHBC = 12;
+     * 
+ * + * optional uint32 OCPBNBPAMEN = 5; + * @return this + */ + public SyncRogueCommonActionResultScNotify clearOCPBNBPAMEN() { + bitField0_ &= ~0x00000001; + oCPBNBPAMEN = 0; + return this; + } + + /** + *
+     * PBCHNCIJKNA MDBPDPDDHBC = 12;
+     * 
+ * + * optional uint32 OCPBNBPAMEN = 5; + * @return the oCPBNBPAMEN + */ + public int getOCPBNBPAMEN() { + return oCPBNBPAMEN; + } + + /** + *
+     * PBCHNCIJKNA MDBPDPDDHBC = 12;
+     * 
+ * + * optional uint32 OCPBNBPAMEN = 5; + * @param value the oCPBNBPAMEN to set + * @return this + */ + public SyncRogueCommonActionResultScNotify setOCPBNBPAMEN(final int value) { + bitField0_ |= 0x00000001; + oCPBNBPAMEN = value; + return this; + } + + /** + * optional .RogueActionResult action = 11; + * @return whether the action field is set + */ + public boolean hasAction() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .RogueActionResult action = 11; + * @return this + */ + public SyncRogueCommonActionResultScNotify clearAction() { + bitField0_ &= ~0x00000002; + action.clear(); + return this; + } + + /** + * optional .RogueActionResult 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 #getMutableAction()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueActionResultOuterClass.RogueActionResult getAction() { + return action; + } + + /** + * optional .RogueActionResult 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 RogueActionResultOuterClass.RogueActionResult getMutableAction() { + bitField0_ |= 0x00000002; + return action; + } + + /** + * optional .RogueActionResult action = 11; + * @param value the action to set + * @return this + */ + public SyncRogueCommonActionResultScNotify setAction( + final RogueActionResultOuterClass.RogueActionResult value) { + bitField0_ |= 0x00000002; + action.copyFrom(value); + return this; + } + + @Override + public SyncRogueCommonActionResultScNotify copyFrom( + final SyncRogueCommonActionResultScNotify other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + oCPBNBPAMEN = other.oCPBNBPAMEN; + action.copyFrom(other.action); + } + return this; + } + + @Override + public SyncRogueCommonActionResultScNotify mergeFrom( + final SyncRogueCommonActionResultScNotify other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasOCPBNBPAMEN()) { + setOCPBNBPAMEN(other.oCPBNBPAMEN); + } + if (other.hasAction()) { + getMutableAction().mergeFrom(other.action); + } + return this; + } + + @Override + public SyncRogueCommonActionResultScNotify clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + oCPBNBPAMEN = 0; + action.clear(); + return this; + } + + @Override + public SyncRogueCommonActionResultScNotify clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + action.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_ + && (!hasOCPBNBPAMEN() || oCPBNBPAMEN == other.oCPBNBPAMEN) + && (!hasAction() || action.equals(other.action)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(oCPBNBPAMEN); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 90); + output.writeMessageNoTag(action); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(oCPBNBPAMEN); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(action); + } + 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 40: { + // oCPBNBPAMEN + oCPBNBPAMEN = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 90) { + break; + } + } + case 90: { + // action + input.readMessage(action); + 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.oCPBNBPAMEN, oCPBNBPAMEN); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.action, action); + } + output.endObject(); + } + + @Override + public SyncRogueCommonActionResultScNotify mergeFrom(final JsonSource input) throws + IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1836582037: { + if (input.isAtField(FieldNames.oCPBNBPAMEN)) { + if (!input.trySkipNullValue()) { + oCPBNBPAMEN = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1422950858: { + if (input.isAtField(FieldNames.action)) { + if (!input.trySkipNullValue()) { + input.readMessage(action); + bitField0_ |= 0x00000002; + } + } 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 oCPBNBPAMEN = FieldName.forField("OCPBNBPAMEN"); + + static final FieldName action = FieldName.forField("action"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SyncRogueCommonPendingActionScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/SyncRogueCommonPendingActionScNotifyOuterClass.java new file mode 100644 index 0000000..1f8f50d --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SyncRogueCommonPendingActionScNotifyOuterClass.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; + +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 OCPBNBPAMEN = 9; + */ + private int oCPBNBPAMEN; + + /** + * optional .RogueCommonPendingAction rogue_common_pending_action = 4; + */ + 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 OCPBNBPAMEN = 9; + * @return whether the oCPBNBPAMEN field is set + */ + public boolean hasOCPBNBPAMEN() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 OCPBNBPAMEN = 9; + * @return this + */ + public SyncRogueCommonPendingActionScNotify clearOCPBNBPAMEN() { + bitField0_ &= ~0x00000001; + oCPBNBPAMEN = 0; + return this; + } + + /** + * optional uint32 OCPBNBPAMEN = 9; + * @return the oCPBNBPAMEN + */ + public int getOCPBNBPAMEN() { + return oCPBNBPAMEN; + } + + /** + * optional uint32 OCPBNBPAMEN = 9; + * @param value the oCPBNBPAMEN to set + * @return this + */ + public SyncRogueCommonPendingActionScNotify setOCPBNBPAMEN(final int value) { + bitField0_ |= 0x00000001; + oCPBNBPAMEN = value; + return this; + } + + /** + * optional .RogueCommonPendingAction rogue_common_pending_action = 4; + * @return whether the rogueCommonPendingAction field is set + */ + public boolean hasRogueCommonPendingAction() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .RogueCommonPendingAction rogue_common_pending_action = 4; + * @return this + */ + public SyncRogueCommonPendingActionScNotify clearRogueCommonPendingAction() { + bitField0_ &= ~0x00000002; + rogueCommonPendingAction.clear(); + return this; + } + + /** + * optional .RogueCommonPendingAction rogue_common_pending_action = 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 #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 = 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 RogueCommonPendingActionOuterClass.RogueCommonPendingAction getMutableRogueCommonPendingAction( + ) { + bitField0_ |= 0x00000002; + return rogueCommonPendingAction; + } + + /** + * optional .RogueCommonPendingAction rogue_common_pending_action = 4; + * @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_; + oCPBNBPAMEN = other.oCPBNBPAMEN; + rogueCommonPendingAction.copyFrom(other.rogueCommonPendingAction); + } + return this; + } + + @Override + public SyncRogueCommonPendingActionScNotify mergeFrom( + final SyncRogueCommonPendingActionScNotify other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasOCPBNBPAMEN()) { + setOCPBNBPAMEN(other.oCPBNBPAMEN); + } + if (other.hasRogueCommonPendingAction()) { + getMutableRogueCommonPendingAction().mergeFrom(other.rogueCommonPendingAction); + } + return this; + } + + @Override + public SyncRogueCommonPendingActionScNotify clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + oCPBNBPAMEN = 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_ + && (!hasOCPBNBPAMEN() || oCPBNBPAMEN == other.oCPBNBPAMEN) + && (!hasRogueCommonPendingAction() || rogueCommonPendingAction.equals(other.rogueCommonPendingAction)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(oCPBNBPAMEN); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 34); + output.writeMessageNoTag(rogueCommonPendingAction); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(oCPBNBPAMEN); + } + 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 72: { + // oCPBNBPAMEN + oCPBNBPAMEN = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // 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.oCPBNBPAMEN, oCPBNBPAMEN); + } + 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 -1836582037: { + if (input.isAtField(FieldNames.oCPBNBPAMEN)) { + if (!input.trySkipNullValue()) { + oCPBNBPAMEN = 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 oCPBNBPAMEN = FieldName.forField("OCPBNBPAMEN"); + + 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 new file mode 100644 index 0000000..be7355d --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SyncRogueDialogueEventDataScNotifyOuterClass.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.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 = 1; + */ + 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 = 1; + * @return whether the rogueDialogueEvent field is set + */ + public boolean hasRogueDialogueEvent() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * repeated .RogueDialogueEvent rogue_dialogue_event = 1; + * @return this + */ + public SyncRogueDialogueEventDataScNotify clearRogueDialogueEvent() { + bitField0_ &= ~0x00000001; + rogueDialogueEvent.clear(); + return this; + } + + /** + * repeated .RogueDialogueEvent rogue_dialogue_event = 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 #getMutableRogueDialogueEvent()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getRogueDialogueEvent( + ) { + return rogueDialogueEvent; + } + + /** + * repeated .RogueDialogueEvent rogue_dialogue_event = 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 getMutableRogueDialogueEvent( + ) { + bitField0_ |= 0x00000001; + return rogueDialogueEvent; + } + + /** + * repeated .RogueDialogueEvent rogue_dialogue_event = 1; + * @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 = 1; + * @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) 10); + 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 10: { + // 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/SyncRogueFinishScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/SyncRogueFinishScNotifyOuterClass.java index 8ffcdb9..e351360 100644 --- a/src/generated/main/emu/lunarcore/proto/SyncRogueFinishScNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SyncRogueFinishScNotifyOuterClass.java @@ -19,7 +19,7 @@ public final class SyncRogueFinishScNotifyOuterClass { private static final long serialVersionUID = 0L; /** - * optional .RogueFinishInfo finish_info = 11; + * optional .RogueFinishInfo finish_info = 3; */ private final RogueFinishInfoOuterClass.RogueFinishInfo finishInfo = RogueFinishInfoOuterClass.RogueFinishInfo.newInstance(); @@ -34,7 +34,7 @@ public final class SyncRogueFinishScNotifyOuterClass { } /** - * optional .RogueFinishInfo finish_info = 11; + * optional .RogueFinishInfo finish_info = 3; * @return whether the finishInfo field is set */ public boolean hasFinishInfo() { @@ -42,7 +42,7 @@ public final class SyncRogueFinishScNotifyOuterClass { } /** - * optional .RogueFinishInfo finish_info = 11; + * optional .RogueFinishInfo finish_info = 3; * @return this */ public SyncRogueFinishScNotify clearFinishInfo() { @@ -52,7 +52,7 @@ public final class SyncRogueFinishScNotifyOuterClass { } /** - * optional .RogueFinishInfo finish_info = 11; + * optional .RogueFinishInfo finish_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. @@ -66,7 +66,7 @@ public final class SyncRogueFinishScNotifyOuterClass { } /** - * optional .RogueFinishInfo finish_info = 11; + * optional .RogueFinishInfo finish_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 @@ -80,7 +80,7 @@ public final class SyncRogueFinishScNotifyOuterClass { } /** - * optional .RogueFinishInfo finish_info = 11; + * optional .RogueFinishInfo finish_info = 3; * @param value the finishInfo to set * @return this */ @@ -151,7 +151,7 @@ public final class SyncRogueFinishScNotifyOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 90); + output.writeRawByte((byte) 26); output.writeMessageNoTag(finishInfo); } } @@ -172,7 +172,7 @@ public final class SyncRogueFinishScNotifyOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 90: { + case 26: { // finishInfo input.readMessage(finishInfo); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/SyncRogueMapRoomScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/SyncRogueMapRoomScNotifyOuterClass.java index ef2dd63..6000ade 100644 --- a/src/generated/main/emu/lunarcore/proto/SyncRogueMapRoomScNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SyncRogueMapRoomScNotifyOuterClass.java @@ -19,12 +19,12 @@ public final class SyncRogueMapRoomScNotifyOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 map_id = 12; + * optional uint32 map_id = 15; */ private int mapId; /** - * optional .RogueRoom cur_room = 14; + * optional .RogueRoom cur_room = 7; */ private final RogueRoomOuterClass.RogueRoom curRoom = RogueRoomOuterClass.RogueRoom.newInstance(); @@ -39,7 +39,7 @@ public final class SyncRogueMapRoomScNotifyOuterClass { } /** - * optional uint32 map_id = 12; + * optional uint32 map_id = 15; * @return whether the mapId field is set */ public boolean hasMapId() { @@ -47,7 +47,7 @@ public final class SyncRogueMapRoomScNotifyOuterClass { } /** - * optional uint32 map_id = 12; + * optional uint32 map_id = 15; * @return this */ public SyncRogueMapRoomScNotify clearMapId() { @@ -57,7 +57,7 @@ public final class SyncRogueMapRoomScNotifyOuterClass { } /** - * optional uint32 map_id = 12; + * optional uint32 map_id = 15; * @return the mapId */ public int getMapId() { @@ -65,7 +65,7 @@ public final class SyncRogueMapRoomScNotifyOuterClass { } /** - * optional uint32 map_id = 12; + * optional uint32 map_id = 15; * @param value the mapId to set * @return this */ @@ -76,7 +76,7 @@ public final class SyncRogueMapRoomScNotifyOuterClass { } /** - * optional .RogueRoom cur_room = 14; + * optional .RogueRoom cur_room = 7; * @return whether the curRoom field is set */ public boolean hasCurRoom() { @@ -84,7 +84,7 @@ public final class SyncRogueMapRoomScNotifyOuterClass { } /** - * optional .RogueRoom cur_room = 14; + * optional .RogueRoom cur_room = 7; * @return this */ public SyncRogueMapRoomScNotify clearCurRoom() { @@ -94,7 +94,7 @@ public final class SyncRogueMapRoomScNotifyOuterClass { } /** - * optional .RogueRoom cur_room = 14; + * 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. @@ -108,7 +108,7 @@ public final class SyncRogueMapRoomScNotifyOuterClass { } /** - * optional .RogueRoom cur_room = 14; + * 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 @@ -122,7 +122,7 @@ public final class SyncRogueMapRoomScNotifyOuterClass { } /** - * optional .RogueRoom cur_room = 14; + * optional .RogueRoom cur_room = 7; * @param value the curRoom to set * @return this */ @@ -198,11 +198,11 @@ public final class SyncRogueMapRoomScNotifyOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 120); output.writeUInt32NoTag(mapId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 114); + output.writeRawByte((byte) 58); output.writeMessageNoTag(curRoom); } } @@ -226,16 +226,16 @@ public final class SyncRogueMapRoomScNotifyOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 96: { + case 120: { // mapId mapId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 114) { + if (tag != 58) { break; } } - case 114: { + case 58: { // curRoom input.readMessage(curRoom); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/SyncRogueStatusScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/SyncRogueStatusScNotifyOuterClass.java new file mode 100644 index 0000000..450b8c6 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SyncRogueStatusScNotifyOuterClass.java @@ -0,0 +1,293 @@ +// 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 = 11; + */ + private int rogueStatus; + + private SyncRogueStatusScNotify() { + } + + /** + * @return a new empty instance of {@code SyncRogueStatusScNotify} + */ + public static SyncRogueStatusScNotify newInstance() { + return new SyncRogueStatusScNotify(); + } + + /** + * optional .RogueStatus rogue_status = 11; + * @return whether the rogueStatus field is set + */ + public boolean hasRogueStatus() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .RogueStatus rogue_status = 11; + * @return this + */ + public SyncRogueStatusScNotify clearRogueStatus() { + bitField0_ &= ~0x00000001; + rogueStatus = 0; + return this; + } + + /** + * optional .RogueStatus rogue_status = 11; + * @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 = 11; + * @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) 88); + 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 88: { + // 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 index 9134ed3..e040def 100644 --- a/src/generated/main/emu/lunarcore/proto/SyncRogueVirtualItemInfoScNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SyncRogueVirtualItemInfoScNotifyOuterClass.java @@ -19,7 +19,7 @@ public final class SyncRogueVirtualItemInfoScNotifyOuterClass { private static final long serialVersionUID = 0L; /** - * optional .RogueVirtualItemInfo rogue_virtual_item_info = 14; + * optional .RogueVirtualItemInfo rogue_virtual_item_info = 4; */ private final RogueVirtualItemInfoOuterClass.RogueVirtualItemInfo rogueVirtualItemInfo = RogueVirtualItemInfoOuterClass.RogueVirtualItemInfo.newInstance(); @@ -34,7 +34,7 @@ public final class SyncRogueVirtualItemInfoScNotifyOuterClass { } /** - * optional .RogueVirtualItemInfo rogue_virtual_item_info = 14; + * optional .RogueVirtualItemInfo rogue_virtual_item_info = 4; * @return whether the rogueVirtualItemInfo field is set */ public boolean hasRogueVirtualItemInfo() { @@ -42,7 +42,7 @@ public final class SyncRogueVirtualItemInfoScNotifyOuterClass { } /** - * optional .RogueVirtualItemInfo rogue_virtual_item_info = 14; + * optional .RogueVirtualItemInfo rogue_virtual_item_info = 4; * @return this */ public SyncRogueVirtualItemInfoScNotify clearRogueVirtualItemInfo() { @@ -52,7 +52,7 @@ public final class SyncRogueVirtualItemInfoScNotifyOuterClass { } /** - * optional .RogueVirtualItemInfo rogue_virtual_item_info = 14; + * optional .RogueVirtualItemInfo rogue_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. @@ -66,7 +66,7 @@ public final class SyncRogueVirtualItemInfoScNotifyOuterClass { } /** - * optional .RogueVirtualItemInfo rogue_virtual_item_info = 14; + * optional .RogueVirtualItemInfo rogue_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 @@ -80,7 +80,7 @@ public final class SyncRogueVirtualItemInfoScNotifyOuterClass { } /** - * optional .RogueVirtualItemInfo rogue_virtual_item_info = 14; + * optional .RogueVirtualItemInfo rogue_virtual_item_info = 4; * @param value the rogueVirtualItemInfo to set * @return this */ @@ -152,7 +152,7 @@ public final class SyncRogueVirtualItemInfoScNotifyOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 114); + output.writeRawByte((byte) 34); output.writeMessageNoTag(rogueVirtualItemInfo); } } @@ -173,7 +173,7 @@ public final class SyncRogueVirtualItemInfoScNotifyOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 114: { + case 34: { // rogueVirtualItemInfo input.readMessage(rogueVirtualItemInfo); bitField0_ |= 0x00000001; diff --git a/src/main/java/emu/lunarcore/GameConstants.java b/src/main/java/emu/lunarcore/GameConstants.java index 7af8252..f526b02 100644 --- a/src/main/java/emu/lunarcore/GameConstants.java +++ b/src/main/java/emu/lunarcore/GameConstants.java @@ -54,7 +54,7 @@ public class GameConstants { public static final int CHALLENGE_STORY_ENTRANCE = 102020107; // Rogue - public static final boolean ENABLE_ROGUE = false; + public static final boolean ENABLE_ROGUE = true; public static final int ROGUE_ENTRANCE = 801120102; public static final int ROGUE_TALENT_POINT_ITEM_ID = 32; diff --git a/src/main/java/emu/lunarcore/data/GameData.java b/src/main/java/emu/lunarcore/data/GameData.java index 6ba1316..9971402 100644 --- a/src/main/java/emu/lunarcore/data/GameData.java +++ b/src/main/java/emu/lunarcore/data/GameData.java @@ -55,6 +55,7 @@ public class GameData { @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 rogueDialogueEventList = new Int2ObjectOpenHashMap<>(); private static Int2ObjectMap rogueBuffExcelMap = new Int2ObjectOpenHashMap<>(); private static Int2ObjectMap avatarPromotionExcelMap = new Int2ObjectOpenHashMap<>(); diff --git a/src/main/java/emu/lunarcore/data/GameDepot.java b/src/main/java/emu/lunarcore/data/GameDepot.java index b5b32a9..b5b16ba 100644 --- a/src/main/java/emu/lunarcore/data/GameDepot.java +++ b/src/main/java/emu/lunarcore/data/GameDepot.java @@ -26,6 +26,7 @@ public class GameDepot { @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<>(); @Getter private static List rogueRandomNpcList = new ArrayList<>(); private static Int2ObjectMap> rogueMapDepot = new Int2ObjectOpenHashMap<>(); diff --git a/src/main/java/emu/lunarcore/data/excel/DialogueEventExcel.java b/src/main/java/emu/lunarcore/data/excel/DialogueEventExcel.java new file mode 100644 index 0000000..07f8311 --- /dev/null +++ b/src/main/java/emu/lunarcore/data/excel/DialogueEventExcel.java @@ -0,0 +1,33 @@ +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.enums.DialogueEventCostType; +import emu.lunarcore.game.enums.DialogueEventType; +import emu.lunarcore.game.rogue.RogueBuffType; +import lombok.Getter; + +import java.util.List; + +@Getter +@ResourceType(name = {"DialogueEvent.json"}, loadPriority = LoadPriority.LOW) +public class DialogueEventExcel extends GameResource { + public int EventID; + public DialogueEventType RogueEffectType; + public List RogueEffectParamList; + public DialogueEventCostType CostType; + public List CostParamList; + public List 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/RogueBonusExcel.java b/src/main/java/emu/lunarcore/data/excel/RogueBonusExcel.java new file mode 100644 index 0000000..0ead589 --- /dev/null +++ b/src/main/java/emu/lunarcore/data/excel/RogueBonusExcel.java @@ -0,0 +1,25 @@ +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 index 1e571f0..28a5d24 100644 --- a/src/main/java/emu/lunarcore/data/excel/RogueBuffExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/RogueBuffExcel.java @@ -31,7 +31,7 @@ public class RogueBuffExcel extends GameResource { @Override public void onLoad() { // Add to random buff list - if (RogueBuffType >= 120 && RogueBuffType <= 126 && RogueBuffRarity >= 1 && RogueBuffRarity <= 3 && MazeBuffLevel == 1 && AeonID == 0) { + if (RogueBuffType >= 120 && RogueBuffType <= 128 && RogueBuffRarity >= 1 && RogueBuffRarity <= 3 && MazeBuffLevel == 1 && AeonID == 0) { GameDepot.getRogueRandomBuffList().add(this); } diff --git a/src/main/java/emu/lunarcore/data/excel/RogueMiracleExcel.java b/src/main/java/emu/lunarcore/data/excel/RogueMiracleExcel.java index 1e3cef0..de1e636 100644 --- a/src/main/java/emu/lunarcore/data/excel/RogueMiracleExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/RogueMiracleExcel.java @@ -19,8 +19,8 @@ public class RogueMiracleExcel extends GameResource { @Override public void onLoad() { - if (IsShow && MiracleReward > 0) { + //if (IsShow && MiracleReward > 0) { // it is always false GameDepot.getRogueRandomMiracleList().add(this); - } + //} } } diff --git a/src/main/java/emu/lunarcore/data/excel/RogueNPCExcel.java b/src/main/java/emu/lunarcore/data/excel/RogueNPCExcel.java index cb3a026..015324e 100644 --- a/src/main/java/emu/lunarcore/data/excel/RogueNPCExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/RogueNPCExcel.java @@ -18,7 +18,7 @@ public class RogueNPCExcel extends GameResource { @Override public void onLoad() { - if (NPCID == 3013) { + if (NPCID == 3013 && RogueNPCID >= 10000 && RogueNPCID <= 19999) { GameDepot.getRogueRandomNpcList().add(this); } } diff --git a/src/main/java/emu/lunarcore/game/battle/BattleService.java b/src/main/java/emu/lunarcore/game/battle/BattleService.java index f6cbb5a..c13f9a4 100644 --- a/src/main/java/emu/lunarcore/game/battle/BattleService.java +++ b/src/main/java/emu/lunarcore/game/battle/BattleService.java @@ -58,6 +58,7 @@ public class BattleService extends BaseGameService { for (int entityId : hitTargets) { if (player.getScene().getAvatarEntityIds().contains(entityId)) { isAmbushed = true; + break; } } @@ -165,6 +166,27 @@ public class BattleService extends BaseGameService { player.sendPacket(new PacketSceneCastSkillScRsp(attackedGroupId)); } + public void startBattle(Player player, int stageId) { + // Sanity check to make sure player isnt in a battle + if (player.isInBattle()) { + return; + } + + // Get stage + StageExcel stage = GameData.getStageExcelMap().get(stageId); + if (stage == null) { + player.sendPacket(new PacketSceneCastSkillScRsp()); + return; + } + + // Create new battle for player + Battle battle = new Battle(player, player.getCurrentLineup(), stage); + player.setBattle(battle); + + // Send packet + player.sendPacket(new PacketSceneCastSkillScRsp(battle, 0)); // remain to be tested + } + public void startCocoon(Player player, int cocoonId, int worldLevel, int wave) { // Sanity check to make sure player isnt in a battle if (player.isInBattle()) { diff --git a/src/main/java/emu/lunarcore/game/enums/DialogueEventCostType.java b/src/main/java/emu/lunarcore/game/enums/DialogueEventCostType.java new file mode 100644 index 0000000..da7f08b --- /dev/null +++ b/src/main/java/emu/lunarcore/game/enums/DialogueEventCostType.java @@ -0,0 +1,19 @@ +package emu.lunarcore.game.enums; + +import lombok.Getter; + +@Getter +public enum DialogueEventCostType { + None(0), + CostItemValue(1), + CostHpCurrentPercent(2), + CostItemPercent(3), + CostHpSpToPercent(4), + ; + + private int value; + + DialogueEventCostType(int value) { + this.value = value; + } +} diff --git a/src/main/java/emu/lunarcore/game/enums/DialogueEventType.java b/src/main/java/emu/lunarcore/game/enums/DialogueEventType.java new file mode 100644 index 0000000..5b902b4 --- /dev/null +++ b/src/main/java/emu/lunarcore/game/enums/DialogueEventType.java @@ -0,0 +1,59 @@ +package emu.lunarcore.game.enums; + +import lombok.Getter; + +@Getter +public enum DialogueEventType { + NONE(0), + GetItem(1), + TriggerRogueBuffSelect(2), + TriggerRogueMiracleSelect(3), + EnhanceRogueBuff(4), + TriggerRandomEventList(5), + ChangeLineupData(6), + TriggerRogueBuffReforge(8), + GetRogueMiracle(9), + TriggerDialogueEventList(10), + GetAllRogueBuffInGroup(11), + GetAllRogueBuffInGroupAndGetItem(12), + TriggerBattle(13), + TriggerRogueMiracleTrade(14), + RepeatableGamble(15), + ReplaceRogueBuffKeepLevel(16), + FinishChessRogue(17), + GetRogueBuff(21), + GetChessRogueCheatDice(18), + SetChessRogueNextStartCellAdventureRoomType(19), + ChangeChessRogueActionPoint(20), + ReplaceRogueBuff(23), + DestroyRogueMiracle(22), + TriggerRogueBuffDrop(26), + ChangeRogueMiracleToRogueCoin(24), + RemoveRogueMiracle(27), + GetItemByPercent(25), + RemoveRogueBuff(28), + TriggerRogueMiracleRepair(29), + RepairRogueMiracle(30), + ChangeRogueMiracleToRogueMiracle(31), + ChangeRogueMiracleToRogueBuff(32), + GetChessRogueRerollDice(33), + GetRogueBuffByMiracleCount(34), + ChangeNousValue(35), + ReviveAvatar(36), + TriggerDialogueEventListByCondition(37), + TriggerRogueMiracleDropWithEvent(38), + TriggerRogueBuffEnhance(39), + GetCoinByLoseCoin(40), + ChangeRogueNpcWeight(41), + GetDestroyedRogueMiracle(42), + ChangeDestroyedRogueMiracleToRogueMiracle(43), + DestroyRogueMiracleThenGetRogueMiracle(44), + TriggerDestroyedRogueMiracleSelect(45) + ; + + private final int val; + + DialogueEventType(int i) { + this.val = i; + } +} diff --git a/src/main/java/emu/lunarcore/game/player/Player.java b/src/main/java/emu/lunarcore/game/player/Player.java index 843f32b..16eaec2 100644 --- a/src/main/java/emu/lunarcore/game/player/Player.java +++ b/src/main/java/emu/lunarcore/game/player/Player.java @@ -945,8 +945,10 @@ public class Player implements Tickable { public RogueVirtualItemInfo toRogueVirtualItemsProto() { var proto = RogueVirtualItemInfo.newInstance() - .setRogueAbilityPoint(this.getTalentPoints()); - + .setX(this.getTalentPoints()); // remain to be discussed + if (this.getRogueInstance() != null) { + proto.setMoney(this.getRogueInstance().getMoney()); + } return proto; } -} \ No newline at end of file +} diff --git a/src/main/java/emu/lunarcore/game/rogue/RogueBonusData.java b/src/main/java/emu/lunarcore/game/rogue/RogueBonusData.java new file mode 100644 index 0000000..57b6bba --- /dev/null +++ b/src/main/java/emu/lunarcore/game/rogue/RogueBonusData.java @@ -0,0 +1,14 @@ +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 new file mode 100644 index 0000000..2baeb86 --- /dev/null +++ b/src/main/java/emu/lunarcore/game/rogue/RogueBonusSelectMenu.java @@ -0,0 +1,55 @@ +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 index 8cb9355..3119f60 100644 --- a/src/main/java/emu/lunarcore/game/rogue/RogueBuffData.java +++ b/src/main/java/emu/lunarcore/game/rogue/RogueBuffData.java @@ -3,7 +3,9 @@ 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 @@ -37,4 +39,20 @@ public class RogueBuffData { return proto; } + + public RogueCommonBuff toCommonProto() { + var proto = RogueCommonBuff.newInstance() + .setBuffId(this.getId()) + .setLevel(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 index 19fe862..d8f42ab 100644 --- a/src/main/java/emu/lunarcore/game/rogue/RogueBuffSelectMenu.java +++ b/src/main/java/emu/lunarcore/game/rogue/RogueBuffSelectMenu.java @@ -5,7 +5,10 @@ import java.util.List; import emu.lunarcore.data.GameDepot; import emu.lunarcore.data.excel.RogueBuffExcel; -import emu.lunarcore.proto.RogueBuffSelectInfoOuterClass.RogueBuffSelectInfo; +import emu.lunarcore.proto.ItemCostListOuterClass.ItemCostList; +import emu.lunarcore.proto.ItemCostOuterClass.ItemCost; +import emu.lunarcore.proto.ItemCostOuterClass.PileItem; +import emu.lunarcore.proto.RogueCommonBuffSelectInfoOuterClass.RogueCommonBuffSelectInfo; import emu.lunarcore.util.WeightedList; import lombok.Getter; @@ -81,6 +84,8 @@ public class RogueBuffSelectMenu { var excel = this.randomBuffs.next(); this.getBuffs().add(new RogueBuffData(excel.getMazeBuffID(), 1)); } + + this.hint += 1; } private void generateAeonBuffs() { @@ -114,9 +119,11 @@ public class RogueBuffSelectMenu { this.rogue = rogue; } - public RogueBuffSelectInfo toProto() { - var proto = RogueBuffSelectInfo.newInstance() - .setSelectBuffSourceHint(this.getHint()); + public RogueCommonBuffSelectInfo toProto() { + var proto = RogueCommonBuffSelectInfo.newInstance() + .setSelectBuffSourceHint(this.getHint()) + .setSourceCurCount(1) + .setSourceTotalCount(1); if (this.getMaxRerolls() > 0) { proto.setCanRoll(true); @@ -125,11 +132,16 @@ public class RogueBuffSelectMenu { } for (var buff : this.getBuffs()) { - proto.addMazeBuffList(buff.toProto()); + proto.addMazeBuffList(buff.toCommonProto()); + proto.addHandbookUnlockBuffIdList(buff.getId()); } // Create item list for reroll cost - proto.getMutableRollBuffsCost(); + proto.setRollBuffsCost(ItemCostList.newInstance() + .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 index 2098b8b..778d809 100644 --- a/src/main/java/emu/lunarcore/game/rogue/RogueBuffType.java +++ b/src/main/java/emu/lunarcore/game/rogue/RogueBuffType.java @@ -14,10 +14,11 @@ public enum RogueBuffType { Remembrance (121), Nihility (122), Abundance (123), - Hunt (124), + TheHunt (124), Destruction (125), Elation (126), - Propagation (127); + Propagation (127), + Erudition (128); private final int val; @Setter private int battleEventSkill; diff --git a/src/main/java/emu/lunarcore/game/rogue/RogueEntityLoader.java b/src/main/java/emu/lunarcore/game/rogue/RogueEntityLoader.java index c4cdbbe..7639d1f 100644 --- a/src/main/java/emu/lunarcore/game/rogue/RogueEntityLoader.java +++ b/src/main/java/emu/lunarcore/game/rogue/RogueEntityLoader.java @@ -1,5 +1,6 @@ package emu.lunarcore.game.rogue; +import emu.lunarcore.LunarCore; import emu.lunarcore.data.GameData; import emu.lunarcore.data.GameDepot; import emu.lunarcore.data.config.GroupInfo; @@ -17,8 +18,13 @@ 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.proto.RogueDialogueEventParamOuterClass.RogueDialogueEventParam; +import emu.lunarcore.server.packet.send.PacketSyncRogueDialogueEventDataScNotify; import emu.lunarcore.util.Utils; +import java.util.ArrayList; +import java.util.List; + public class RogueEntityLoader extends SceneEntityLoader { @Override @@ -129,6 +135,17 @@ public class RogueEntityLoader extends SceneEntityLoader { if (npc.getNpcId() == 3013) { RogueNPCExcel rogueNpcExcel = Utils.randomElement(GameDepot.getRogueRandomNpcList()); npc.setRogueNpcId(rogueNpcExcel.getId()); + var params = new ArrayList(); + var start = rogueNpcExcel.getId(); + while (true) { + var event = GameData.getRogueDialogueEventList().get(start); + if (event == null) break; + params.add(RogueDialogueEventParam.newInstance() + .setDialogueEventId(start) + .setIsValid(true)); + start++; + } + scene.getPlayer().sendPacket(new PacketSyncRogueDialogueEventDataScNotify(rogueNpcExcel.getId(), params)); } return npc; diff --git a/src/main/java/emu/lunarcore/game/rogue/RogueEventManager.java b/src/main/java/emu/lunarcore/game/rogue/RogueEventManager.java new file mode 100644 index 0000000..8ac08f5 --- /dev/null +++ b/src/main/java/emu/lunarcore/game/rogue/RogueEventManager.java @@ -0,0 +1,52 @@ +package emu.lunarcore.game.rogue; + +import emu.lunarcore.data.GameData; +import emu.lunarcore.game.player.Player; +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 void handleEvent(int eventId) { + var event = GameData.getRogueDialogueEventList().get(eventId); + if (event == null || event.getRogueEffectType() == null) return; + var param = event.getRogueEffectParamList(); + switch (event.getRogueEffectType()) { + case GetItem -> rogueInstance.setMoney(rogueInstance.getMoney() + param.get(1)); + case TriggerBattle -> rogueInstance.createBuffSelect(3); //this.getPlayer().getServer().getBattleService().startBattle(player, param.get(0)); // NOT WORKING + case TriggerRogueMiracleSelect -> this.getRogueInstance().createMiracleSelect(1); + case TriggerRogueBuffSelect -> this.getRogueInstance().createBuffSelect(1); + } + handleCost(eventId); + } + + 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.setMoney(rogueInstance.getMoney() - param.get(1)); + case CostItemPercent -> rogueInstance.setMoney(rogueInstance.getMoney() - (rogueInstance.getMoney() * param.get(1) / 100)); + case CostHpCurrentPercent -> { + var lineup = this.getPlayer().getCurrentLineup(); + lineup.forEachAvatar(avatar -> { + avatar.setCurrentHp(lineup, avatar.getCurrentHp(lineup) - (avatar.getCurrentHp(lineup) * param.get(0) / 100)); + }); + } + case CostHpSpToPercent -> { + var lineup = this.getPlayer().getCurrentLineup(); + lineup.forEachAvatar(avatar -> { + avatar.setCurrentHp(lineup, avatar.getCurrentHp(lineup) - (avatar.getCurrentHp(lineup) * param.get(0) / 100)); + avatar.setCurrentSp(lineup, avatar.getMaxSp() - (avatar.getMaxSp() * param.get(1) / 100)); + }); + } + } + } +} diff --git a/src/main/java/emu/lunarcore/game/rogue/RogueInstance.java b/src/main/java/emu/lunarcore/game/rogue/RogueInstance.java index c918414..80bda9a 100644 --- a/src/main/java/emu/lunarcore/game/rogue/RogueInstance.java +++ b/src/main/java/emu/lunarcore/game/rogue/RogueInstance.java @@ -15,26 +15,31 @@ 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.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.RogueMiracleSourceOuterClass.RogueMiracleSource; 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.RogueVirtualItemOuterClass.RogueVirtualItem; import emu.lunarcore.server.packet.send.*; import emu.lunarcore.util.Utils; 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; @@ -50,11 +55,16 @@ public class RogueInstance { private RogueBuffSelectMenu buffSelect; private int pendingMiracleSelects; private RogueMiracleSelectMenu miracleSelect; + private int pendingBonusSelects; + private RogueBonusSelectMenu bonusSelect; + private RogueCommonPendingAction pendingAction; private int baseRerolls; private int aeonId; private int aeonBuffType; private int maxAeonBuffs; + private int money; // universal debris + private int id = 2; // idk what this is for, but it's needed for the packet private int roomScore; private int earnedTalentCoin; @@ -72,6 +82,8 @@ public class RogueInstance { this.buffs = new HashMap<>(); this.miracles = new HashMap<>(); this.maxAeonBuffs = 4; + this.money = 100; + this.eventManager = new RogueEventManager(this); if (aeonExcel != null) { this.aeonId = aeonExcel.getAeonID(); @@ -160,9 +172,9 @@ public class RogueInstance { this.pendingBuffSelects += amount; RogueBuffSelectMenu buffSelect = this.updateBuffSelect(); - if (buffSelect != null) { - getPlayer().sendPacket(new PacketSyncRogueBuffSelectInfoScNotify(buffSelect)); - } +// if (buffSelect != null) { +// getPlayer().sendPacket(new PacketSyncRogueBuffSelectInfoScNotify(buffSelect)); +// } } public synchronized RogueBuffSelectMenu updateBuffSelect() { @@ -179,6 +191,13 @@ public class RogueInstance { } } + if (this.getBuffSelect() != null) { + var proto = new PacketSyncRogueCommonPendingActionScNotify(this.buffSelect.toProto(), this.id); + this.id += 2; + this.pendingAction = proto.toProto(); + this.getPlayer().sendPacket(proto); + } + return this.buffSelect; } @@ -186,9 +205,17 @@ public class RogueInstance { } public synchronized RogueBuffSelectMenu rollBuffSelect() { - if (getBuffSelect() != null && getBuffSelect().hasRerolls()) { + if (getBuffSelect() != null && getBuffSelect().hasRerolls() && money >= 30) { this.getBuffSelect().reroll(); + this.setMoney(money - 30); + this.getPlayer().sendPacket(new PacketHandleRogueCommonPendingActionScRsp(this.getBuffSelect().toProto(), this.id - 2)); + + var proto = new PacketSyncRogueCommonPendingActionScNotify(this.buffSelect.toProto(), this.id); + this.id += 2; + pendingAction = proto.toProto(); return this.getBuffSelect(); + } else { + this.getPlayer().sendPacket(new PacketHandleRogueCommonPendingActionScRsp(this.id - 2)); } return null; @@ -196,7 +223,10 @@ public class RogueInstance { public synchronized RogueBuffData selectBuff(int buffId) { // Sanity - if (this.getBuffSelect() == null) return null; + if (this.getBuffSelect() == null) { + this.getPlayer().sendPacket(new PacketHandleRogueCommonPendingActionScRsp(this.id - 2)); + return null; + } // Validate buff from buff select menu RogueBuffData buff = this.getBuffSelect().getBuffs() @@ -205,13 +235,24 @@ public class RogueInstance { .findFirst() .orElse(null); - if (buff == null) return null; + if (buff == null) { + this.getPlayer().sendPacket(new PacketHandleRogueCommonPendingActionScRsp(this.id - 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)); + //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.setTimes(this.id - 2); + this.getPlayer().sendPacket(new PacketHandleRogueCommonPendingActionScRsp(data)); return buff; } @@ -219,15 +260,19 @@ public class RogueInstance { this.pendingMiracleSelects += amount; RogueMiracleSelectMenu miracleSelect = this.updateMiracleSelect(); - if (miracleSelect != null) { - getPlayer().sendPacket(new PacketSyncRogueMiracleSelectInfoScNotify(miracleSelect)); - } +// if (miracleSelect != null) { +// getPlayer().sendPacket(new PacketSyncRogueMiracleSelectInfoScNotify(miracleSelect)); +// } } 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.id); + this.id += 2; + this.pendingAction = proto.toProto(); + this.getPlayer().sendPacket(proto); return this.miracleSelect; } @@ -235,7 +280,10 @@ public class RogueInstance { } public synchronized RogueMiracleData selectMiracle(int miracleId) { - if (this.getMiracleSelect() == null) return null; + if (this.getMiracleSelect() == null) { + this.getPlayer().sendPacket(new PacketHandleRogueCommonPendingActionScRsp(this.id - 2)); + return null; + } RogueMiracleData miracle = this.getMiracleSelect().getMiracles() .stream() @@ -243,15 +291,89 @@ public class RogueInstance { .findFirst() .orElse(null); - if (miracle == null) return null; + if (miracle == null) { + this.getPlayer().sendPacket(new PacketHandleRogueCommonPendingActionScRsp(this.id - 2)); + return null; + } this.miracleSelect = null; + this.pendingAction = null; this.getMiracles().put(miracle.getId(), miracle); - getPlayer().sendPacket(new PacketAddRogueMiracleScNotify(miracle, RogueMiracleSource.ROGUE_MIRACLE_SOURCE_TYPE_SELECT)); + //getPlayer().sendPacket(new PacketAddRogueMiracleScNotify(miracle, RogueMiracleSource.ROGUE_MIRACLE_SOURCE_TYPE_SELECT)); + this.updateMiracleSelect(); + this.getPlayer().sendPacket(new PacketSyncRogueCommonActionResultScNotify(RogueBuffSource.ROGUE_BUFF_SOURCE_TYPE_SELECT, miracle.toDataProto())); + var data = HandleRogueCommonPendingActionScRsp.newInstance(); + data.getMutableMiracleSelect(); + data.setTimes(this.id - 2); + this.getPlayer().sendPacket(new PacketHandleRogueCommonPendingActionScRsp(data)); return miracle; } + public synchronized void createBonusSelect(int amount) { + this.pendingBonusSelects += amount; + + RogueBonusSelectMenu bonusSelect = 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.id); + this.id += 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.id - 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.id - 2)); + return null; + } + + this.bonusSelect = null; + this.pendingAction = null; + // every bonus is an event + // TODO: add event + var data = HandleRogueCommonPendingActionScRsp.newInstance(); + data.getMutableBonusSelect(); + data.setTimes(this.id - 2); + this.getPlayer().sendPacket(new PacketHandleRogueCommonPendingActionScRsp(data)); + this.onSelectDialogue(bonus.getEventId()); + return bonus; + } + + public synchronized void setMoney(int money) { + this.money = money; + getPlayer().sendPacket(new PacketSyncRogueVirtualItemInfoScNotify(this.getPlayer())); + } + + 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 RogueRoomData enterRoom(int siteId) { // Set status on previous room RogueRoomData prevRoom = this.getCurrentRoom(); @@ -311,7 +433,7 @@ public class RogueInstance { // Dialogue stuff public void onSelectDialogue(int dialogueEventId) { - + this.eventManager.handleEvent(dialogueEventId); } // Battle @@ -372,8 +494,13 @@ public class RogueInstance { .setRogueAvatarInfo(this.toAvatarInfoProto()) .setRoomMap(this.toMapInfoProto()) .setRogueBuffInfo(this.toBuffInfoProto()) - .setRogueMiracleInfo(this.toMiracleInfoProto()); + .setRogueMiracleInfo(this.toMiracleInfoProto()) + .setRogueAeon(this.toAeonProto()) + .setRogueVirtualItem(this.toVirtualItemProto()); + if (pendingAction != null) { + proto.setPendingAction(pendingAction); + } return proto; } @@ -406,12 +533,6 @@ public class RogueInstance { public RogueBuffInfo toBuffInfoProto() { var proto = RogueBuffInfo.newInstance(); - if (this.getBuffSelect() != null) { - proto.setBuffSelectInfo(this.getBuffSelect().toProto()); - } else { - proto.getMutableBuffSelectInfo(); - } - for (var buff : this.getBuffs().values()) { proto.addMazeBuffList(buff.toProto()); } @@ -422,21 +543,29 @@ public class RogueInstance { public RogueMiracleInfo toMiracleInfoProto() { var proto = RogueMiracleInfo.newInstance(); - if (this.getMiracleSelect() != null) { - proto.setMiracleSelectInfo(this.getMiracleSelect().toProto()); - } else { - proto.getMutableMiracleSelectInfo(); - } - // Set flag for this so it gets serialized proto.getMutableRogueMiracleInfo(); for (var miracle : this.getMiracles().values()) { - proto.getMutableRogueMiracleInfo().addRogueMiracleList(miracle.toProto()); + proto.getMutableRogueMiracleInfo().addRogueMiracleList(miracle.toInfoProto()); } return proto; } + + public RogueAeon toAeonProto() { + var proto = RogueAeon.newInstance() + .setOFBCBEIEAEC(this.getAeonId()); + + return proto; + } + + public RogueVirtualItem toVirtualItemProto() { + var proto = RogueVirtualItem.newInstance() + .setMoney(this.getMoney()); + + return proto; + } public RogueFinishInfo toFinishInfoProto() { // Rogue record info @@ -465,7 +594,7 @@ public class RogueInstance { // Create rogue finish info var proto = RogueFinishInfo.newInstance() .setTotalScore(this.getRoomScore()) - .setTalentCoin(this.getEarnedTalentCoin()) + //.setTalentCoin(this.getEarnedTalentCoin()) .setAreaId(this.getAreaId()) .setIsWin(this.isWin()) .setPassRoomCount(this.getCurrentSiteId()) @@ -475,4 +604,4 @@ public class RogueInstance { return proto; } -} \ No newline at end of file +} diff --git a/src/main/java/emu/lunarcore/game/rogue/RogueManager.java b/src/main/java/emu/lunarcore/game/rogue/RogueManager.java index 26e4eaf..ca304c5 100644 --- a/src/main/java/emu/lunarcore/game/rogue/RogueManager.java +++ b/src/main/java/emu/lunarcore/game/rogue/RogueManager.java @@ -13,6 +13,7 @@ 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.RogueInfoDataOuterClass.RogueInfoData; @@ -98,6 +99,7 @@ public class RogueManager extends BasePlayerManager { // Get entrance id RogueInstance instance = new RogueInstance(getPlayer(), rogueAreaExcel, aeonExcel); getPlayer().setRogueInstance(instance); + instance.createBonusSelect(1); // Set starting SP boolean extraSP = this.hasTalent(32); @@ -175,55 +177,53 @@ public class RogueManager extends BasePlayerManager { var score = RogueScoreRewardInfo.newInstance() .setPoolId(20 + getPlayer().getWorldLevel()) // TODO pool ids should not change when world level changes - .setPoolRefreshed(true) - .setHasTakenInitialScore(true); + //.setPoolRefreshed(true) + .setHasTakenInitialScore(true) + .setBeginTime(beginTime) + .setEndTime(endTime); var season = RogueSeasonInfo.newInstance() .setBeginTime(beginTime) .setSeasonId(seasonId) .setEndTime(endTime); - var data = RogueInfoData.newInstance() - .setRogueScoreInfo(score) - .setRogueSeasonInfo(season); - - var proto = RogueInfo.newInstance() - .setRogueScoreInfo(score) - .setRogueData(data) - .setRogueVirtualItemInfo(getPlayer().toRogueVirtualItemsProto()) - .setSeasonId(seasonId) - .setBeginTime(beginTime) - .setEndTime(endTime); - // Path resonance var aeonInfo = RogueAeonInfo.newInstance(); - if (this.hasTalent(1)) { + aeonInfo.setIsUnlocked(false); + + if (this.hasTalent(1) || 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()); } - - proto.setRogueAeonInfo(aeonInfo); + aeonInfo.setIsUnlocked(true); + aeonInfo.setJPEBPGIEGPO(3); // guess } + + var data = RogueInfoData.newInstance() + .setRogueScoreInfo(score) + .setRogueAeonInfo(aeonInfo) + .setRogueSeasonInfo(season); // Rogue data RogueInstance instance = this.getPlayer().getRogueInstance(); - if (instance != null) { - proto.setStatus(instance.getStatus()); - proto.setRogueProgress(this.getPlayer().getRogueInstance().toProto()); - proto.setRoomMap(proto.getRogueProgress().getRoomMap()); - - for (int id : instance.getBaseAvatarIds()) { - proto.addBaseAvatarIdList(id); - } - - aeonInfo.setSelectedAeonId(instance.getAeonId()); - } +// if (instance != null) { +// proto.setStatus(instance.getStatus()); +// proto.setRogueProgress(this.getPlayer().getRogueInstance().toProto()); +// proto.setRoomMap(proto.getRogueProgress().getRoomMap()); +// +// for (int id : instance.getBaseAvatarIds()) { +// proto.addBaseAvatarIdList(id); +// } +// +// aeonInfo.setSelectedAeonId(instance.getAeonId()); +// } // 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]); @@ -231,17 +231,26 @@ public class RogueManager extends BasePlayerManager { var area = RogueArea.newInstance() .setAreaId(excel.getRogueAreaID()) - .setRogueAreaStatus(RogueAreaStatus.ROGUE_AREA_STATUS_FIRST_PASS); + .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(instance.getStatus()); + //area.setRogueStatus(instance.getStatus()); } - proto.addRogueAreaList(area); + //proto.addRogueAreaList(area); + areaInfo.addRogueArea(area); } } + data.setRogueAreaInfo(areaInfo); + + var proto = RogueInfo.newInstance() + .setRogueInfoData(data); + + if (instance != null) { + proto.setRogueCurrentInfo(instance.toProto()); + } return proto; } @@ -275,4 +284,4 @@ public class RogueManager extends BasePlayerManager { this.getTalents().add(talent.getTalentId()); }); } -} \ No newline at end of file +} diff --git a/src/main/java/emu/lunarcore/game/rogue/RogueMiracleData.java b/src/main/java/emu/lunarcore/game/rogue/RogueMiracleData.java index 70ccc77..3504877 100644 --- a/src/main/java/emu/lunarcore/game/rogue/RogueMiracleData.java +++ b/src/main/java/emu/lunarcore/game/rogue/RogueMiracleData.java @@ -1,5 +1,7 @@ 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; @@ -19,4 +21,18 @@ public class RogueMiracleData { 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 index 65c4834..d14dc7c 100644 --- a/src/main/java/emu/lunarcore/game/rogue/RogueMiracleSelectMenu.java +++ b/src/main/java/emu/lunarcore/game/rogue/RogueMiracleSelectMenu.java @@ -35,7 +35,7 @@ public class RogueMiracleSelectMenu { this.randomMiracles = new WeightedList<>(); for (var excel : GameDepot.getRogueRandomMiracleList()) { - if (rogue.getBuffs().containsKey(excel.getMiracleID())) { + if (rogue.getMiracles().containsKey(excel.getMiracleID())) { continue; } @@ -59,7 +59,7 @@ public class RogueMiracleSelectMenu { var proto = RogueMiracleSelectInfo.newInstance(); for (var miracle : this.getMiracles()) { - proto.addAllMiracleIdList(miracle.getId()); + proto.addAllMiracleInfo(miracle.getId()); } return proto; 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 02ef7cf..2cfae56 100644 --- a/src/main/java/emu/lunarcore/game/scene/entity/EntityNpc.java +++ b/src/main/java/emu/lunarcore/game/scene/entity/EntityNpc.java @@ -43,7 +43,7 @@ public class EntityNpc implements GameEntity { if (this.rogueNpcId > 0) { var rogue = NpcRogueInfo.newInstance() .setRogueNpcId(this.rogueNpcId) - .setDialogueGroupId(1); + .setBHPGGEOBJHM(false); npc.getMutableExtraInfo().setRogueInfo(rogue); } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerFinishRogueDialogueGroupCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerFinishRogueDialogueGroupCsReq.java new file mode 100644 index 0000000..268d38f --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerFinishRogueDialogueGroupCsReq.java @@ -0,0 +1,14 @@ +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.FinishRogueDialogueGroupCsReq) +public class HandlerFinishRogueDialogueGroupCsReq extends PacketHandler { + @Override + public void handle(GameSession session, byte[] data) throws Exception { + session.send(CmdId.FinishRogueDialogueGroupScRsp); + } +} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerHandleRogueCommonPendingActionCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerHandleRogueCommonPendingActionCsReq.java new file mode 100644 index 0000000..ee7a50b --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerHandleRogueCommonPendingActionCsReq.java @@ -0,0 +1,26 @@ +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/HandlerPickRogueAvatarCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerPickRogueAvatarCsReq.java new file mode 100644 index 0000000..3e3dde2 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerPickRogueAvatarCsReq.java @@ -0,0 +1,17 @@ +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/HandlerRollRogueBuffCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerRollRogueBuffCsReq.java deleted file mode 100644 index bd886be..0000000 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerRollRogueBuffCsReq.java +++ /dev/null @@ -1,24 +0,0 @@ -package emu.lunarcore.server.packet.recv; - -import emu.lunarcore.game.rogue.RogueBuffSelectMenu; -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.PacketRollRogueBuffScRsp; - -@Opcodes(CmdId.NONE) // TODO update -public class HandlerRollRogueBuffCsReq extends PacketHandler { - - @Override - public void handle(GameSession session, byte[] data) throws Exception { - RogueBuffSelectMenu selectMenu = null; - - if (session.getPlayer().getRogueInstance() != null) { - selectMenu = session.getPlayer().getRogueInstance().rollBuffSelect(); - } - - session.send(new PacketRollRogueBuffScRsp(selectMenu)); - } - -} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSelectRogueBuffCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSelectRogueBuffCsReq.java deleted file mode 100644 index e63e89b..0000000 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSelectRogueBuffCsReq.java +++ /dev/null @@ -1,30 +0,0 @@ -package emu.lunarcore.server.packet.recv; - -import emu.lunarcore.game.rogue.RogueBuffData; -import emu.lunarcore.game.rogue.RogueBuffSelectMenu; -import emu.lunarcore.proto.SelectRogueBuffCsReqOuterClass.SelectRogueBuffCsReq; -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.PacketSelectRogueBuffScRsp; - -@Opcodes(CmdId.NONE) // TODO update -public class HandlerSelectRogueBuffCsReq extends PacketHandler { - - @Override - public void handle(GameSession session, byte[] data) throws Exception { - var req = SelectRogueBuffCsReq.parseFrom(data); - - if (session.getPlayer().getRogueInstance() != null) { - RogueBuffData buff = session.getPlayer().getRogueInstance().selectBuff(req.getMazeBuffId()); - if (buff != null) { - RogueBuffSelectMenu buffSelect = session.getPlayer().getRogueInstance().updateBuffSelect(); - session.send(new PacketSelectRogueBuffScRsp(buff, buffSelect)); - } - } - - session.send(CmdId.NONE); - } - -} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSelectRogueDialogueEventCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSelectRogueDialogueEventCsReq.java index b694617..2654cd8 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSelectRogueDialogueEventCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSelectRogueDialogueEventCsReq.java @@ -18,7 +18,8 @@ public class HandlerSelectRogueDialogueEventCsReq extends PacketHandler { session.getPlayer().getRogueInstance().onSelectDialogue(req.getDialogueEventId()); } - session.send(new PacketSelectRogueDialogueEventScRsp(req.getDialogueEventId())); + session.send(new PacketSelectRogueDialogueEventScRsp(req.getDialogueEventId(), req.getEntityId(), session.getPlayer())); + session.send(CmdId.FinishRogueDialogueGroupScRsp); } } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSelectRogueMiracleCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSelectRogueMiracleCsReq.java deleted file mode 100644 index 29d2968..0000000 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSelectRogueMiracleCsReq.java +++ /dev/null @@ -1,30 +0,0 @@ -package emu.lunarcore.server.packet.recv; - -import emu.lunarcore.game.rogue.RogueMiracleData; -import emu.lunarcore.game.rogue.RogueMiracleSelectMenu; -import emu.lunarcore.proto.SelectRogueMiracleCsReqOuterClass.SelectRogueMiracleCsReq; -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.PacketSelectRogueMiracleScRsp; - -@Opcodes(CmdId.NONE) // TODO update -public class HandlerSelectRogueMiracleCsReq extends PacketHandler { - - @Override - public void handle(GameSession session, byte[] data) throws Exception { - var req = SelectRogueMiracleCsReq.parseFrom(data); - - if (session.getPlayer().getRogueInstance() != null) { - RogueMiracleData miracle = session.getPlayer().getRogueInstance().selectMiracle(req.getMiracleId()); - if (miracle != null) { - RogueMiracleSelectMenu miracleSelect = session.getPlayer().getRogueInstance().updateMiracleSelect(); - session.send(new PacketSelectRogueMiracleScRsp(miracle, miracleSelect)); - } - } - - session.send(CmdId.NONE); - } - -} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketAddRogueBuffScNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketAddRogueBuffScNotify.java deleted file mode 100644 index 2a2eff5..0000000 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketAddRogueBuffScNotify.java +++ /dev/null @@ -1,20 +0,0 @@ -package emu.lunarcore.server.packet.send; - -import emu.lunarcore.game.rogue.RogueBuffData; -import emu.lunarcore.proto.AddRogueBuffScNotifyOuterClass.AddRogueBuffScNotify; -import emu.lunarcore.proto.RogueBuffSourceOuterClass.RogueBuffSource; -import emu.lunarcore.server.packet.BasePacket; -import emu.lunarcore.server.packet.CmdId; - -public class PacketAddRogueBuffScNotify extends BasePacket { - - public PacketAddRogueBuffScNotify(RogueBuffData buff, RogueBuffSource source) { - super(CmdId.NONE); // TODO update - - var data = AddRogueBuffScNotify.newInstance() - .setMazeBuffInfo(buff.toProto()) - .setSource(source); - - this.setData(data); - } -} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketAddRogueMiracleScNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketAddRogueMiracleScNotify.java deleted file mode 100644 index a70fd06..0000000 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketAddRogueMiracleScNotify.java +++ /dev/null @@ -1,20 +0,0 @@ -package emu.lunarcore.server.packet.send; - -import emu.lunarcore.game.rogue.RogueMiracleData; -import emu.lunarcore.proto.AddRogueMiracleScNotifyOuterClass.AddRogueMiracleScNotify; -import emu.lunarcore.proto.RogueMiracleSourceOuterClass.RogueMiracleSource; -import emu.lunarcore.server.packet.BasePacket; -import emu.lunarcore.server.packet.CmdId; - -public class PacketAddRogueMiracleScNotify extends BasePacket { - - public PacketAddRogueMiracleScNotify(RogueMiracleData miracle, RogueMiracleSource rogueMiracleSource) { - super(CmdId.NONE); // TODO update - - var data = AddRogueMiracleScNotify.newInstance() - .setRogueMiracle(miracle.toProto()) - .setSource(rogueMiracleSource); - - this.setData(data); - } -} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetRogueScoreRewardInfoScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetRogueScoreRewardInfoScRsp.java index 50a3da1..3b10c50 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketGetRogueScoreRewardInfoScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketGetRogueScoreRewardInfoScRsp.java @@ -5,17 +5,24 @@ import emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreR 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(true) - .setHasTakenInitialScore(true); + //.setPoolRefreshed(true) + .setHasTakenInitialScore(true) + .setBeginTime(beginTime) + .setEndTime(endTime); 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 new file mode 100644 index 0000000..5ad6555 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketHandleRogueCommonPendingActionScRsp.java @@ -0,0 +1,31 @@ +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() + .setTimes(id)); + } + + public PacketHandleRogueCommonPendingActionScRsp(RogueRerollBuff rogueRerollBuff, int id) { + this(HandleRogueCommonPendingActionScRsp.newInstance() + .setTimes(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/PacketPickRogueAvatarScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketPickRogueAvatarScRsp.java new file mode 100644 index 0000000..02ccf5a --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketPickRogueAvatarScRsp.java @@ -0,0 +1,21 @@ +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/PacketRollRogueBuffScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketRollRogueBuffScRsp.java deleted file mode 100644 index 9e588c9..0000000 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketRollRogueBuffScRsp.java +++ /dev/null @@ -1,23 +0,0 @@ -package emu.lunarcore.server.packet.send; - -import emu.lunarcore.game.rogue.RogueBuffSelectMenu; -import emu.lunarcore.proto.RollRogueBuffScRspOuterClass.RollRogueBuffScRsp; -import emu.lunarcore.server.packet.BasePacket; -import emu.lunarcore.server.packet.CmdId; - -public class PacketRollRogueBuffScRsp extends BasePacket { - - public PacketRollRogueBuffScRsp(RogueBuffSelectMenu selectMenu) { - super(CmdId.NONE); // TODO update - - var data = RollRogueBuffScRsp.newInstance(); - - if (selectMenu != null) { - data.setBuffSelectInfo(selectMenu.toProto()); - } else { - data.setRetcode(1); - } - - this.setData(data); - } -} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSelectRogueBuffScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSelectRogueBuffScRsp.java deleted file mode 100644 index 550c8f2..0000000 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketSelectRogueBuffScRsp.java +++ /dev/null @@ -1,26 +0,0 @@ -package emu.lunarcore.server.packet.send; - -import emu.lunarcore.game.rogue.RogueBuffData; -import emu.lunarcore.game.rogue.RogueBuffSelectMenu; -import emu.lunarcore.proto.SelectRogueBuffScRspOuterClass.SelectRogueBuffScRsp; -import emu.lunarcore.server.packet.BasePacket; -import emu.lunarcore.server.packet.CmdId; - -public class PacketSelectRogueBuffScRsp extends BasePacket { - - public PacketSelectRogueBuffScRsp(RogueBuffData buff, RogueBuffSelectMenu buffSelect) { - super(CmdId.NONE); // TODO update - - var data = SelectRogueBuffScRsp.newInstance() - .setMazeBuffId(buff.getId()) - .setMazeBuffLevel(buff.getLevel()); - - if (buffSelect != null) { - data.setBuffSelectInfo(buffSelect.toProto()); - } else { - data.getMutableBuffSelectInfo(); - } - - this.setData(data); - } -} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSelectRogueDialogueEventScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSelectRogueDialogueEventScRsp.java index 6f297cc..50c4e95 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketSelectRogueDialogueEventScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketSelectRogueDialogueEventScRsp.java @@ -1,17 +1,45 @@ package emu.lunarcore.server.packet.send; +import emu.lunarcore.data.GameData; +import emu.lunarcore.data.GameDepot; +import emu.lunarcore.data.excel.RogueNPCExcel; +import emu.lunarcore.game.player.Player; +import emu.lunarcore.game.scene.entity.EntityNpc; +import emu.lunarcore.proto.RogueDialogueEventOuterClass.RogueDialogueEvent; +import emu.lunarcore.proto.RogueDialogueEventParamOuterClass.RogueDialogueEventParam; import emu.lunarcore.proto.SelectRogueDialogueEventScRspOuterClass.SelectRogueDialogueEventScRsp; import emu.lunarcore.server.packet.BasePacket; import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.util.Utils; + +import java.util.ArrayList; public class PacketSelectRogueDialogueEventScRsp extends BasePacket { - public PacketSelectRogueDialogueEventScRsp(int dialogueEventId) { + public PacketSelectRogueDialogueEventScRsp(int dialogueEventId, int entityId, Player player) { super(CmdId.SelectRogueDialogueEventScRsp); var data = SelectRogueDialogueEventScRsp.newInstance() .setDialogueEventId(dialogueEventId); + + RogueNPCExcel rogueNpcExcel = Utils.randomElement(GameDepot.getRogueRandomNpcList()); + var params = new ArrayList(); + var start = rogueNpcExcel.getId(); + while (true) { + var event = GameData.getRogueDialogueEventList().get(start); + if (event == null) break; + params.add(RogueDialogueEventParam.newInstance() + .setDialogueEventId(start) + .setIsValid(true)); + start++; + } + var event = RogueDialogueEvent.newInstance() + .setNpcId(((EntityNpc)player.getScene().getEntityById(entityId)).getRogueNpcId()) + .setGameModeType(5) + .addAllNNOHLEAOJPP(dialogueEventId) + .addAllRogueDialogueEventParam(params.toArray(RogueDialogueEventParam[]::new)); + data.setEventData(event); this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueBuffSelectInfoScNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueBuffSelectInfoScNotify.java deleted file mode 100644 index 6f4e9e3..0000000 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueBuffSelectInfoScNotify.java +++ /dev/null @@ -1,18 +0,0 @@ -package emu.lunarcore.server.packet.send; - -import emu.lunarcore.game.rogue.RogueBuffSelectMenu; -import emu.lunarcore.proto.SyncRogueBuffSelectInfoScNotifyOuterClass.SyncRogueBuffSelectInfoScNotify; -import emu.lunarcore.server.packet.BasePacket; -import emu.lunarcore.server.packet.CmdId; - -public class PacketSyncRogueBuffSelectInfoScNotify extends BasePacket { - - public PacketSyncRogueBuffSelectInfoScNotify(RogueBuffSelectMenu selectMenu) { - super(CmdId.NONE); // TODO update - - var data = SyncRogueBuffSelectInfoScNotify.newInstance() - .setBuffSelectInfo(selectMenu.toProto()); - - 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 new file mode 100644 index 0000000..d624b82 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueCommonActionResultScNotify.java @@ -0,0 +1,38 @@ +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.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(); + + proto.setAction(action); + + this.setData(proto); + } + + public PacketSyncRogueCommonActionResultScNotify(RogueBuffSource source, RogueActionResultData data) { + this(RogueActionResult.newInstance() + .setSource(source) + .setActionData(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)); + } +} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueCommonPendingActionScNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueCommonPendingActionScNotify.java new file mode 100644 index 0000000..4253a6c --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueCommonPendingActionScNotify.java @@ -0,0 +1,48 @@ +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(); + + proto.setRogueCommonPendingAction(action) + .setOCPBNBPAMEN(101); // common rogue + + this.setData(proto); + } + + public PacketSyncRogueCommonPendingActionScNotify(RogueAction action, int id) { + this(RogueCommonPendingAction.newInstance() + .setGLFDHAJPJDF(id) + .setRogueAction(action)); + } + + 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/PacketSyncRogueDialogueEventDataScNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueDialogueEventDataScNotify.java new file mode 100644 index 0000000..3cecd65 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueDialogueEventDataScNotify.java @@ -0,0 +1,27 @@ +package emu.lunarcore.server.packet.send; + +import emu.lunarcore.proto.RogueDialogueEventOuterClass.RogueDialogueEvent; +import emu.lunarcore.proto.RogueDialogueEventParamOuterClass.RogueDialogueEventParam; +import emu.lunarcore.proto.SyncRogueDialogueEventDataScNotifyOuterClass.SyncRogueDialogueEventDataScNotify; +import emu.lunarcore.server.packet.BasePacket; +import emu.lunarcore.server.packet.CmdId; + +import java.util.List; + +public class PacketSyncRogueDialogueEventDataScNotify extends BasePacket { + public PacketSyncRogueDialogueEventDataScNotify(RogueDialogueEvent event) { + super(CmdId.SyncRogueDialogueEventDataScNotify); + + var proto = SyncRogueDialogueEventDataScNotify.newInstance() + .addRogueDialogueEvent(event); + + this.setData(proto); + } + + public PacketSyncRogueDialogueEventDataScNotify(int rogueNpcId, List params) { + this(RogueDialogueEvent.newInstance() + .setGameModeType(5) // rogue explore + .setNpcId(rogueNpcId) + .addAllRogueDialogueEventParam(params.toArray(RogueDialogueEventParam[]::new))); + } +}