From 87c5b678f23998d3f6dc58ac9ac9f27c6cb8d2bf Mon Sep 17 00:00:00 2001 From: Melledy <121644117+Melledy@users.noreply.github.com> Date: Sun, 22 Oct 2023 18:03:15 -0700 Subject: [PATCH] Implement rogue entry --- data/RogueMapGen.json | 19 + .../proto/QuitRogueScRspOuterClass.java | 463 ++++++ .../proto/RogueCurrentInfoOuterClass.java | 394 +++++ .../proto/RogueFinishInfoOuterClass.java | 1458 +++++++++++++++++ .../lunarcore/proto/RogueInfoOuterClass.java | 399 +++-- .../proto/RogueMapInfoOuterClass.java | 617 +++++++ .../lunarcore/proto/RogueRoomOuterClass.java | 647 ++++++++ .../proto/RogueRoomStatusOuterClass.java | 158 ++ .../proto/RogueSeasonInfoOuterClass.java | 62 +- .../proto/SceneGroupStateOuterClass.java | 421 +++++ .../lunarcore/proto/SceneInfoOuterClass.java | 272 ++- .../proto/StartRogueCsReqOuterClass.java | 663 ++++++++ .../proto/StartRogueScRspOuterClass.java | 563 +++++++ .../SyncRogueMapRoomScNotifyOuterClass.java | 362 ++++ .../java/emu/lunarcore/data/GameData.java | 5 +- .../java/emu/lunarcore/data/GameDepot.java | 11 + .../emu/lunarcore/data/ResourceLoader.java | 20 + .../lunarcore/data/excel/MazePlaneExcel.java | 8 +- .../lunarcore/data/excel/RogueAreaExcel.java | 18 +- .../lunarcore/data/excel/RogueMapExcel.java | 27 + .../lunarcore/data/excel/RogueRoomExcel.java | 24 + .../lunarcore/game/enums/GameModeType.java | 30 - .../emu/lunarcore/game/enums/PlaneType.java | 22 + .../emu/lunarcore/game/player/Player.java | 2 + .../emu/lunarcore/game/rogue/RogueData.java | 86 + .../lunarcore/game/rogue/RogueManager.java | 109 +- .../lunarcore/game/rogue/RogueRoomData.java | 50 + .../lunarcore/game/rogue/RogueRoomType.java | 23 + .../java/emu/lunarcore/game/scene/Scene.java | 38 +- .../packet/recv/HandlerLeaveRogueCsReq.java | 16 + .../packet/recv/HandlerQuitRogueCsReq.java | 16 + .../packet/recv/HandlerStartRogueCsReq.java | 5 +- .../packet/send/PacketStartRogueScRsp.java | 31 + .../send/PacketSyncRogueMapRoomScNotify.java | 22 + 34 files changed, 6866 insertions(+), 195 deletions(-) create mode 100644 data/RogueMapGen.json create mode 100644 src/generated/main/emu/lunarcore/proto/QuitRogueScRspOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/RogueCurrentInfoOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/RogueFinishInfoOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/RogueMapInfoOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/RogueRoomOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/RogueRoomStatusOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/SceneGroupStateOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/StartRogueCsReqOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/StartRogueScRspOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/SyncRogueMapRoomScNotifyOuterClass.java create mode 100644 src/main/java/emu/lunarcore/data/excel/RogueMapExcel.java create mode 100644 src/main/java/emu/lunarcore/data/excel/RogueRoomExcel.java delete mode 100644 src/main/java/emu/lunarcore/game/enums/GameModeType.java create mode 100644 src/main/java/emu/lunarcore/game/enums/PlaneType.java create mode 100644 src/main/java/emu/lunarcore/game/rogue/RogueData.java create mode 100644 src/main/java/emu/lunarcore/game/rogue/RogueRoomData.java create mode 100644 src/main/java/emu/lunarcore/game/rogue/RogueRoomType.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerLeaveRogueCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerQuitRogueCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketStartRogueScRsp.java create mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueMapRoomScNotify.java diff --git a/data/RogueMapGen.json b/data/RogueMapGen.json new file mode 100644 index 0000000..49c3e76 --- /dev/null +++ b/data/RogueMapGen.json @@ -0,0 +1,19 @@ +{ + "1": [122111, 122121, 122131, 122141, 232111, 232121, 232131, 232141], + "21": [122211, 122221, 122231, 122241], + "22": [122311, 122321, 122331], + "31": [122211, 122221, 122231, 122241], + "32": [122311, 122321, 122331], + "4": [122611, 122612, 131611, 131612], + "5": [122511, 122512, 122513], + "6": [300121, 300122, 300132], + "71": [300412, 300422, 300432], + "72": [300212, 300222, 300232, 300242], + "8": [300611, 300612], + "9": [300511, 300512, 300513], + "10": [131213, 131223, 131233], + "111": [131213, 131223, 131233, 131243], + "112": [131813, 131823, 131833], + "12": [131513, 222513], + "13": [111713, 121713, 122713, 131713, 132713, 211713, 212713, 222713] +} \ No newline at end of file diff --git a/src/generated/main/emu/lunarcore/proto/QuitRogueScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/QuitRogueScRspOuterClass.java new file mode 100644 index 0000000..16cb3fb --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/QuitRogueScRspOuterClass.java @@ -0,0 +1,463 @@ +// 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 QuitRogueScRspOuterClass { + /** + * Protobuf type {@code QuitRogueScRsp} + */ + public static final class QuitRogueScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 7; + */ + private int retcode; + + /** + * optional .RogueInfo rogue_info = 1; + */ + private final RogueInfoOuterClass.RogueInfo rogueInfo = RogueInfoOuterClass.RogueInfo.newInstance(); + + /** + * optional .RogueFinishInfo finish_info = 13; + */ + private final RogueFinishInfoOuterClass.RogueFinishInfo finishInfo = RogueFinishInfoOuterClass.RogueFinishInfo.newInstance(); + + private QuitRogueScRsp() { + } + + /** + * @return a new empty instance of {@code QuitRogueScRsp} + */ + public static QuitRogueScRsp newInstance() { + return new QuitRogueScRsp(); + } + + /** + * optional uint32 retcode = 7; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 7; + * @return this + */ + public QuitRogueScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 7; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 7; + * @param value the retcode to set + * @return this + */ + public QuitRogueScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional .RogueInfo rogue_info = 1; + * @return whether the rogueInfo field is set + */ + public boolean hasRogueInfo() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .RogueInfo rogue_info = 1; + * @return this + */ + public QuitRogueScRsp clearRogueInfo() { + bitField0_ &= ~0x00000002; + rogueInfo.clear(); + return this; + } + + /** + * optional .RogueInfo rogue_info = 1; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableRogueInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueInfoOuterClass.RogueInfo getRogueInfo() { + return rogueInfo; + } + + /** + * optional .RogueInfo rogue_info = 1; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RogueInfoOuterClass.RogueInfo getMutableRogueInfo() { + bitField0_ |= 0x00000002; + return rogueInfo; + } + + /** + * optional .RogueInfo rogue_info = 1; + * @param value the rogueInfo to set + * @return this + */ + public QuitRogueScRsp setRogueInfo(final RogueInfoOuterClass.RogueInfo value) { + bitField0_ |= 0x00000002; + rogueInfo.copyFrom(value); + return this; + } + + /** + * optional .RogueFinishInfo finish_info = 13; + * @return whether the finishInfo field is set + */ + public boolean hasFinishInfo() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .RogueFinishInfo finish_info = 13; + * @return this + */ + public QuitRogueScRsp clearFinishInfo() { + bitField0_ &= ~0x00000004; + finishInfo.clear(); + return this; + } + + /** + * optional .RogueFinishInfo finish_info = 13; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableFinishInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueFinishInfoOuterClass.RogueFinishInfo getFinishInfo() { + return finishInfo; + } + + /** + * optional .RogueFinishInfo finish_info = 13; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RogueFinishInfoOuterClass.RogueFinishInfo getMutableFinishInfo() { + bitField0_ |= 0x00000004; + return finishInfo; + } + + /** + * optional .RogueFinishInfo finish_info = 13; + * @param value the finishInfo to set + * @return this + */ + public QuitRogueScRsp setFinishInfo(final RogueFinishInfoOuterClass.RogueFinishInfo value) { + bitField0_ |= 0x00000004; + finishInfo.copyFrom(value); + return this; + } + + @Override + public QuitRogueScRsp copyFrom(final QuitRogueScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + rogueInfo.copyFrom(other.rogueInfo); + finishInfo.copyFrom(other.finishInfo); + } + return this; + } + + @Override + public QuitRogueScRsp mergeFrom(final QuitRogueScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasRogueInfo()) { + getMutableRogueInfo().mergeFrom(other.rogueInfo); + } + if (other.hasFinishInfo()) { + getMutableFinishInfo().mergeFrom(other.finishInfo); + } + return this; + } + + @Override + public QuitRogueScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + rogueInfo.clear(); + finishInfo.clear(); + return this; + } + + @Override + public QuitRogueScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + rogueInfo.clearQuick(); + finishInfo.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof QuitRogueScRsp)) { + return false; + } + QuitRogueScRsp other = (QuitRogueScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasRogueInfo() || rogueInfo.equals(other.rogueInfo)) + && (!hasFinishInfo() || finishInfo.equals(other.finishInfo)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(rogueInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 106); + output.writeMessageNoTag(finishInfo); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(rogueInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(finishInfo); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public QuitRogueScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 56: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // rogueInfo + input.readMessage(rogueInfo); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 106) { + break; + } + } + case 106: { + // finishInfo + input.readMessage(finishInfo); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.rogueInfo, rogueInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.finishInfo, finishInfo); + } + output.endObject(); + } + + @Override + public QuitRogueScRsp 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 655808936: + case -1124583437: { + if (input.isAtField(FieldNames.rogueInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(rogueInfo); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1151198177: + case 1347581146: { + if (input.isAtField(FieldNames.finishInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(finishInfo); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public QuitRogueScRsp clone() { + return new QuitRogueScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static QuitRogueScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new QuitRogueScRsp(), data).checkInitialized(); + } + + public static QuitRogueScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new QuitRogueScRsp(), input).checkInitialized(); + } + + public static QuitRogueScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new QuitRogueScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating QuitRogueScRsp messages + */ + public static MessageFactory getFactory() { + return QuitRogueScRspFactory.INSTANCE; + } + + private enum QuitRogueScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public QuitRogueScRsp create() { + return QuitRogueScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName rogueInfo = FieldName.forField("rogueInfo", "rogue_info"); + + static final FieldName finishInfo = FieldName.forField("finishInfo", "finish_info"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueCurrentInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueCurrentInfoOuterClass.java new file mode 100644 index 0000000..08c0932 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueCurrentInfoOuterClass.java @@ -0,0 +1,394 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; + +public final class RogueCurrentInfoOuterClass { + /** + * Protobuf type {@code RogueCurrentInfo} + */ + public static final class RogueCurrentInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .RogueStatus status = 7; + */ + private int status; + + /** + * optional .RogueMapInfo room_map = 10; + */ + private final RogueMapInfoOuterClass.RogueMapInfo roomMap = RogueMapInfoOuterClass.RogueMapInfo.newInstance(); + + private RogueCurrentInfo() { + } + + /** + * @return a new empty instance of {@code RogueCurrentInfo} + */ + public static RogueCurrentInfo newInstance() { + return new RogueCurrentInfo(); + } + + /** + * optional .RogueStatus status = 7; + * @return whether the status field is set + */ + public boolean hasStatus() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .RogueStatus status = 7; + * @return this + */ + public RogueCurrentInfo clearStatus() { + bitField0_ &= ~0x00000001; + status = 0; + return this; + } + + /** + * optional .RogueStatus status = 7; + * @return the status + */ + public RogueStatusOuterClass.RogueStatus getStatus() { + return RogueStatusOuterClass.RogueStatus.forNumber(status); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link RogueCurrentInfo#getStatus()}.getNumber(). + * + * @return numeric wire representation + */ + public int getStatusValue() { + return status; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link RogueStatusOuterClass.RogueStatus}. Setting an invalid value + * can cause {@link RogueCurrentInfo#getStatus()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public RogueCurrentInfo setStatusValue(final int value) { + bitField0_ |= 0x00000001; + status = value; + return this; + } + + /** + * optional .RogueStatus status = 7; + * @param value the status to set + * @return this + */ + public RogueCurrentInfo setStatus(final RogueStatusOuterClass.RogueStatus value) { + bitField0_ |= 0x00000001; + status = value.getNumber(); + return this; + } + + /** + * optional .RogueMapInfo room_map = 10; + * @return whether the roomMap field is set + */ + public boolean hasRoomMap() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .RogueMapInfo room_map = 10; + * @return this + */ + public RogueCurrentInfo clearRoomMap() { + bitField0_ &= ~0x00000002; + 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_ |= 0x00000002; + return roomMap; + } + + /** + * optional .RogueMapInfo room_map = 10; + * @param value the roomMap to set + * @return this + */ + public RogueCurrentInfo setRoomMap(final RogueMapInfoOuterClass.RogueMapInfo value) { + bitField0_ |= 0x00000002; + roomMap.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); + } + return this; + } + + @Override + public RogueCurrentInfo mergeFrom(final RogueCurrentInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasStatus()) { + setStatusValue(other.status); + } + if (other.hasRoomMap()) { + getMutableRoomMap().mergeFrom(other.roomMap); + } + return this; + } + + @Override + public RogueCurrentInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + status = 0; + roomMap.clear(); + return this; + } + + @Override + public RogueCurrentInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + roomMap.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueCurrentInfo)) { + return false; + } + RogueCurrentInfo other = (RogueCurrentInfo) o; + return bitField0_ == other.bitField0_ + && (!hasStatus() || status == other.status) + && (!hasRoomMap() || roomMap.equals(other.roomMap)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 56); + output.writeEnumNoTag(status); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 82); + output.writeMessageNoTag(roomMap); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(status); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(roomMap); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueCurrentInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 56: { + // status + final int value = input.readInt32(); + if (RogueStatusOuterClass.RogueStatus.forNumber(value) != null) { + status = value; + bitField0_ |= 0x00000001; + } + tag = input.readTag(); + if (tag != 82) { + break; + } + } + case 82: { + // roomMap + input.readMessage(roomMap); + 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.status, status, RogueStatusOuterClass.RogueStatus.converter()); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.roomMap, roomMap); + } + output.endObject(); + } + + @Override + public RogueCurrentInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -892481550: { + if (input.isAtField(FieldNames.status)) { + if (!input.trySkipNullValue()) { + final RogueStatusOuterClass.RogueStatus value = input.readEnum(RogueStatusOuterClass.RogueStatus.converter()); + if (value != null) { + status = value.getNumber(); + bitField0_ |= 0x00000001; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + case 1379875457: + case -172986376: { + if (input.isAtField(FieldNames.roomMap)) { + if (!input.trySkipNullValue()) { + input.readMessage(roomMap); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueCurrentInfo clone() { + return new RogueCurrentInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueCurrentInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueCurrentInfo(), data).checkInitialized(); + } + + public static RogueCurrentInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueCurrentInfo(), input).checkInitialized(); + } + + public static RogueCurrentInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueCurrentInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueCurrentInfo messages + */ + public static MessageFactory getFactory() { + return RogueCurrentInfoFactory.INSTANCE; + } + + private enum RogueCurrentInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueCurrentInfo create() { + return RogueCurrentInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName status = FieldName.forField("status"); + + static final FieldName roomMap = FieldName.forField("roomMap", "room_map"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueFinishInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueFinishInfoOuterClass.java new file mode 100644 index 0000000..27be93b --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueFinishInfoOuterClass.java @@ -0,0 +1,1458 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; + +public final class RogueFinishInfoOuterClass { + /** + * Protobuf type {@code RogueFinishInfo} + */ + public static final class RogueFinishInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 DKCFJCHFECI = 2; + */ + private int dKCFJCHFECI; + + /** + * optional uint32 HCKEMCDEDJA = 5; + */ + private int hCKEMCDEDJA; + + /** + * optional uint32 NBGGPEJCNAI = 6; + */ + private int nBGGPEJCNAI; + + /** + * optional uint32 IEMLILABMCL = 10; + */ + private int iEMLILABMCL; + + /** + * optional uint32 HNIJEKJEGHB = 13; + */ + private int hNIJEKJEGHB; + + /** + * optional uint32 EDILMPNCLGB = 381; + */ + private int eDILMPNCLGB; + + /** + * optional uint32 area_id = 1722; + */ + private int areaId; + + /** + * optional bool is_win = 4; + */ + private boolean isWin; + + /** + *
+     * NGMGAONGOIL FLJFGNOOFNO = 1;
+     * 
+ * + * optional bool LJIHOAMHLDL = 8; + */ + private boolean lJIHOAMHLDL; + + /** + * optional .ItemList LCINONKILPA = 3; + */ + private final ItemListOuterClass.ItemList lCINONKILPA = ItemListOuterClass.ItemList.newInstance(); + + /** + * optional .RogueScoreRewardInfo ADHBKMLLJNI = 7; + */ + private final RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo aDHBKMLLJNI = RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo.newInstance(); + + /** + * optional .ItemList LAIJGEIBNAP = 11; + */ + private final ItemListOuterClass.ItemList lAIJGEIBNAP = ItemListOuterClass.ItemList.newInstance(); + + /** + *
+     * NJCINLEBHMJ APJHMNLJCHH = 9;
+     * LBEDLHFELIB MAHNEEFIFHN = 14;
+     * 
+ * + * optional .RogueScoreRewardInfo NBJBIFJBKDN = 12; + */ + private final RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo nBJBIFJBKDN = RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo.newInstance(); + + /** + * optional .ItemList HOFACAJJCCP = 15; + */ + private final ItemListOuterClass.ItemList hOFACAJJCCP = ItemListOuterClass.ItemList.newInstance(); + + private RogueFinishInfo() { + } + + /** + * @return a new empty instance of {@code RogueFinishInfo} + */ + public static RogueFinishInfo newInstance() { + return new RogueFinishInfo(); + } + + /** + * optional uint32 DKCFJCHFECI = 2; + * @return whether the dKCFJCHFECI field is set + */ + public boolean hasDKCFJCHFECI() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 DKCFJCHFECI = 2; + * @return this + */ + public RogueFinishInfo clearDKCFJCHFECI() { + bitField0_ &= ~0x00000001; + dKCFJCHFECI = 0; + return this; + } + + /** + * optional uint32 DKCFJCHFECI = 2; + * @return the dKCFJCHFECI + */ + public int getDKCFJCHFECI() { + return dKCFJCHFECI; + } + + /** + * optional uint32 DKCFJCHFECI = 2; + * @param value the dKCFJCHFECI to set + * @return this + */ + public RogueFinishInfo setDKCFJCHFECI(final int value) { + bitField0_ |= 0x00000001; + dKCFJCHFECI = value; + return this; + } + + /** + * optional uint32 HCKEMCDEDJA = 5; + * @return whether the hCKEMCDEDJA field is set + */ + public boolean hasHCKEMCDEDJA() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 HCKEMCDEDJA = 5; + * @return this + */ + public RogueFinishInfo clearHCKEMCDEDJA() { + bitField0_ &= ~0x00000002; + hCKEMCDEDJA = 0; + return this; + } + + /** + * optional uint32 HCKEMCDEDJA = 5; + * @return the hCKEMCDEDJA + */ + public int getHCKEMCDEDJA() { + return hCKEMCDEDJA; + } + + /** + * optional uint32 HCKEMCDEDJA = 5; + * @param value the hCKEMCDEDJA to set + * @return this + */ + public RogueFinishInfo setHCKEMCDEDJA(final int value) { + bitField0_ |= 0x00000002; + hCKEMCDEDJA = value; + return this; + } + + /** + * optional uint32 NBGGPEJCNAI = 6; + * @return whether the nBGGPEJCNAI field is set + */ + public boolean hasNBGGPEJCNAI() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 NBGGPEJCNAI = 6; + * @return this + */ + public RogueFinishInfo clearNBGGPEJCNAI() { + bitField0_ &= ~0x00000004; + nBGGPEJCNAI = 0; + return this; + } + + /** + * optional uint32 NBGGPEJCNAI = 6; + * @return the nBGGPEJCNAI + */ + public int getNBGGPEJCNAI() { + return nBGGPEJCNAI; + } + + /** + * optional uint32 NBGGPEJCNAI = 6; + * @param value the nBGGPEJCNAI to set + * @return this + */ + public RogueFinishInfo setNBGGPEJCNAI(final int value) { + bitField0_ |= 0x00000004; + nBGGPEJCNAI = value; + return this; + } + + /** + * optional uint32 IEMLILABMCL = 10; + * @return whether the iEMLILABMCL field is set + */ + public boolean hasIEMLILABMCL() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 IEMLILABMCL = 10; + * @return this + */ + public RogueFinishInfo clearIEMLILABMCL() { + bitField0_ &= ~0x00000008; + iEMLILABMCL = 0; + return this; + } + + /** + * optional uint32 IEMLILABMCL = 10; + * @return the iEMLILABMCL + */ + public int getIEMLILABMCL() { + return iEMLILABMCL; + } + + /** + * optional uint32 IEMLILABMCL = 10; + * @param value the iEMLILABMCL to set + * @return this + */ + public RogueFinishInfo setIEMLILABMCL(final int value) { + bitField0_ |= 0x00000008; + iEMLILABMCL = value; + return this; + } + + /** + * optional uint32 HNIJEKJEGHB = 13; + * @return whether the hNIJEKJEGHB field is set + */ + public boolean hasHNIJEKJEGHB() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 HNIJEKJEGHB = 13; + * @return this + */ + public RogueFinishInfo clearHNIJEKJEGHB() { + bitField0_ &= ~0x00000010; + hNIJEKJEGHB = 0; + return this; + } + + /** + * optional uint32 HNIJEKJEGHB = 13; + * @return the hNIJEKJEGHB + */ + public int getHNIJEKJEGHB() { + return hNIJEKJEGHB; + } + + /** + * optional uint32 HNIJEKJEGHB = 13; + * @param value the hNIJEKJEGHB to set + * @return this + */ + public RogueFinishInfo setHNIJEKJEGHB(final int value) { + bitField0_ |= 0x00000010; + hNIJEKJEGHB = value; + return this; + } + + /** + * optional uint32 EDILMPNCLGB = 381; + * @return whether the eDILMPNCLGB field is set + */ + public boolean hasEDILMPNCLGB() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional uint32 EDILMPNCLGB = 381; + * @return this + */ + public RogueFinishInfo clearEDILMPNCLGB() { + bitField0_ &= ~0x00000020; + eDILMPNCLGB = 0; + return this; + } + + /** + * optional uint32 EDILMPNCLGB = 381; + * @return the eDILMPNCLGB + */ + public int getEDILMPNCLGB() { + return eDILMPNCLGB; + } + + /** + * optional uint32 EDILMPNCLGB = 381; + * @param value the eDILMPNCLGB to set + * @return this + */ + public RogueFinishInfo setEDILMPNCLGB(final int value) { + bitField0_ |= 0x00000020; + eDILMPNCLGB = value; + return this; + } + + /** + * optional uint32 area_id = 1722; + * @return whether the areaId field is set + */ + public boolean hasAreaId() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional uint32 area_id = 1722; + * @return this + */ + public RogueFinishInfo clearAreaId() { + bitField0_ &= ~0x00000040; + areaId = 0; + return this; + } + + /** + * optional uint32 area_id = 1722; + * @return the areaId + */ + public int getAreaId() { + return areaId; + } + + /** + * optional uint32 area_id = 1722; + * @param value the areaId to set + * @return this + */ + public RogueFinishInfo setAreaId(final int value) { + bitField0_ |= 0x00000040; + areaId = value; + return this; + } + + /** + * optional bool is_win = 4; + * @return whether the isWin field is set + */ + public boolean hasIsWin() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * optional bool is_win = 4; + * @return this + */ + public RogueFinishInfo clearIsWin() { + bitField0_ &= ~0x00000080; + isWin = false; + return this; + } + + /** + * optional bool is_win = 4; + * @return the isWin + */ + public boolean getIsWin() { + return isWin; + } + + /** + * optional bool is_win = 4; + * @param value the isWin to set + * @return this + */ + public RogueFinishInfo setIsWin(final boolean value) { + bitField0_ |= 0x00000080; + isWin = value; + return this; + } + + /** + *
+     * NGMGAONGOIL FLJFGNOOFNO = 1;
+     * 
+ * + * optional bool LJIHOAMHLDL = 8; + * @return whether the lJIHOAMHLDL field is set + */ + public boolean hasLJIHOAMHLDL() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + *
+     * NGMGAONGOIL FLJFGNOOFNO = 1;
+     * 
+ * + * optional bool LJIHOAMHLDL = 8; + * @return this + */ + public RogueFinishInfo clearLJIHOAMHLDL() { + bitField0_ &= ~0x00000100; + lJIHOAMHLDL = false; + return this; + } + + /** + *
+     * NGMGAONGOIL FLJFGNOOFNO = 1;
+     * 
+ * + * optional bool LJIHOAMHLDL = 8; + * @return the lJIHOAMHLDL + */ + public boolean getLJIHOAMHLDL() { + return lJIHOAMHLDL; + } + + /** + *
+     * NGMGAONGOIL FLJFGNOOFNO = 1;
+     * 
+ * + * optional bool LJIHOAMHLDL = 8; + * @param value the lJIHOAMHLDL to set + * @return this + */ + public RogueFinishInfo setLJIHOAMHLDL(final boolean value) { + bitField0_ |= 0x00000100; + lJIHOAMHLDL = value; + return this; + } + + /** + * optional .ItemList LCINONKILPA = 3; + * @return whether the lCINONKILPA field is set + */ + public boolean hasLCINONKILPA() { + return (bitField0_ & 0x00000200) != 0; + } + + /** + * optional .ItemList LCINONKILPA = 3; + * @return this + */ + public RogueFinishInfo clearLCINONKILPA() { + bitField0_ &= ~0x00000200; + lCINONKILPA.clear(); + return this; + } + + /** + * optional .ItemList LCINONKILPA = 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 #getMutableLCINONKILPA()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ItemListOuterClass.ItemList getLCINONKILPA() { + return lCINONKILPA; + } + + /** + * optional .ItemList LCINONKILPA = 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 ItemListOuterClass.ItemList getMutableLCINONKILPA() { + bitField0_ |= 0x00000200; + return lCINONKILPA; + } + + /** + * optional .ItemList LCINONKILPA = 3; + * @param value the lCINONKILPA to set + * @return this + */ + public RogueFinishInfo setLCINONKILPA(final ItemListOuterClass.ItemList value) { + bitField0_ |= 0x00000200; + lCINONKILPA.copyFrom(value); + return this; + } + + /** + * optional .RogueScoreRewardInfo ADHBKMLLJNI = 7; + * @return whether the aDHBKMLLJNI field is set + */ + public boolean hasADHBKMLLJNI() { + return (bitField0_ & 0x00000400) != 0; + } + + /** + * optional .RogueScoreRewardInfo ADHBKMLLJNI = 7; + * @return this + */ + public RogueFinishInfo clearADHBKMLLJNI() { + bitField0_ &= ~0x00000400; + aDHBKMLLJNI.clear(); + return this; + } + + /** + * optional .RogueScoreRewardInfo ADHBKMLLJNI = 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 #getMutableADHBKMLLJNI()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo getADHBKMLLJNI() { + return aDHBKMLLJNI; + } + + /** + * optional .RogueScoreRewardInfo ADHBKMLLJNI = 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 RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo getMutableADHBKMLLJNI() { + bitField0_ |= 0x00000400; + return aDHBKMLLJNI; + } + + /** + * optional .RogueScoreRewardInfo ADHBKMLLJNI = 7; + * @param value the aDHBKMLLJNI to set + * @return this + */ + public RogueFinishInfo setADHBKMLLJNI( + final RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo value) { + bitField0_ |= 0x00000400; + aDHBKMLLJNI.copyFrom(value); + return this; + } + + /** + * optional .ItemList LAIJGEIBNAP = 11; + * @return whether the lAIJGEIBNAP field is set + */ + public boolean hasLAIJGEIBNAP() { + return (bitField0_ & 0x00000800) != 0; + } + + /** + * optional .ItemList LAIJGEIBNAP = 11; + * @return this + */ + public RogueFinishInfo clearLAIJGEIBNAP() { + bitField0_ &= ~0x00000800; + lAIJGEIBNAP.clear(); + return this; + } + + /** + * optional .ItemList LAIJGEIBNAP = 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 #getMutableLAIJGEIBNAP()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ItemListOuterClass.ItemList getLAIJGEIBNAP() { + return lAIJGEIBNAP; + } + + /** + * optional .ItemList LAIJGEIBNAP = 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 ItemListOuterClass.ItemList getMutableLAIJGEIBNAP() { + bitField0_ |= 0x00000800; + return lAIJGEIBNAP; + } + + /** + * optional .ItemList LAIJGEIBNAP = 11; + * @param value the lAIJGEIBNAP to set + * @return this + */ + public RogueFinishInfo setLAIJGEIBNAP(final ItemListOuterClass.ItemList value) { + bitField0_ |= 0x00000800; + lAIJGEIBNAP.copyFrom(value); + return this; + } + + /** + *
+     * NJCINLEBHMJ APJHMNLJCHH = 9;
+     * LBEDLHFELIB MAHNEEFIFHN = 14;
+     * 
+ * + * optional .RogueScoreRewardInfo NBJBIFJBKDN = 12; + * @return whether the nBJBIFJBKDN field is set + */ + public boolean hasNBJBIFJBKDN() { + return (bitField0_ & 0x00001000) != 0; + } + + /** + *
+     * NJCINLEBHMJ APJHMNLJCHH = 9;
+     * LBEDLHFELIB MAHNEEFIFHN = 14;
+     * 
+ * + * optional .RogueScoreRewardInfo NBJBIFJBKDN = 12; + * @return this + */ + public RogueFinishInfo clearNBJBIFJBKDN() { + bitField0_ &= ~0x00001000; + nBJBIFJBKDN.clear(); + return this; + } + + /** + *
+     * NJCINLEBHMJ APJHMNLJCHH = 9;
+     * LBEDLHFELIB MAHNEEFIFHN = 14;
+     * 
+ * + * optional .RogueScoreRewardInfo NBJBIFJBKDN = 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 #getMutableNBJBIFJBKDN()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo getNBJBIFJBKDN() { + return nBJBIFJBKDN; + } + + /** + *
+     * NJCINLEBHMJ APJHMNLJCHH = 9;
+     * LBEDLHFELIB MAHNEEFIFHN = 14;
+     * 
+ * + * optional .RogueScoreRewardInfo NBJBIFJBKDN = 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 RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo getMutableNBJBIFJBKDN() { + bitField0_ |= 0x00001000; + return nBJBIFJBKDN; + } + + /** + *
+     * NJCINLEBHMJ APJHMNLJCHH = 9;
+     * LBEDLHFELIB MAHNEEFIFHN = 14;
+     * 
+ * + * optional .RogueScoreRewardInfo NBJBIFJBKDN = 12; + * @param value the nBJBIFJBKDN to set + * @return this + */ + public RogueFinishInfo setNBJBIFJBKDN( + final RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo value) { + bitField0_ |= 0x00001000; + nBJBIFJBKDN.copyFrom(value); + return this; + } + + /** + * optional .ItemList HOFACAJJCCP = 15; + * @return whether the hOFACAJJCCP field is set + */ + public boolean hasHOFACAJJCCP() { + return (bitField0_ & 0x00002000) != 0; + } + + /** + * optional .ItemList HOFACAJJCCP = 15; + * @return this + */ + public RogueFinishInfo clearHOFACAJJCCP() { + bitField0_ &= ~0x00002000; + hOFACAJJCCP.clear(); + return this; + } + + /** + * optional .ItemList HOFACAJJCCP = 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 #getMutableHOFACAJJCCP()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ItemListOuterClass.ItemList getHOFACAJJCCP() { + return hOFACAJJCCP; + } + + /** + * optional .ItemList HOFACAJJCCP = 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 ItemListOuterClass.ItemList getMutableHOFACAJJCCP() { + bitField0_ |= 0x00002000; + return hOFACAJJCCP; + } + + /** + * optional .ItemList HOFACAJJCCP = 15; + * @param value the hOFACAJJCCP to set + * @return this + */ + public RogueFinishInfo setHOFACAJJCCP(final ItemListOuterClass.ItemList value) { + bitField0_ |= 0x00002000; + hOFACAJJCCP.copyFrom(value); + return this; + } + + @Override + public RogueFinishInfo copyFrom(final RogueFinishInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + dKCFJCHFECI = other.dKCFJCHFECI; + hCKEMCDEDJA = other.hCKEMCDEDJA; + nBGGPEJCNAI = other.nBGGPEJCNAI; + iEMLILABMCL = other.iEMLILABMCL; + hNIJEKJEGHB = other.hNIJEKJEGHB; + eDILMPNCLGB = other.eDILMPNCLGB; + areaId = other.areaId; + isWin = other.isWin; + lJIHOAMHLDL = other.lJIHOAMHLDL; + lCINONKILPA.copyFrom(other.lCINONKILPA); + aDHBKMLLJNI.copyFrom(other.aDHBKMLLJNI); + lAIJGEIBNAP.copyFrom(other.lAIJGEIBNAP); + nBJBIFJBKDN.copyFrom(other.nBJBIFJBKDN); + hOFACAJJCCP.copyFrom(other.hOFACAJJCCP); + } + return this; + } + + @Override + public RogueFinishInfo mergeFrom(final RogueFinishInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasDKCFJCHFECI()) { + setDKCFJCHFECI(other.dKCFJCHFECI); + } + if (other.hasHCKEMCDEDJA()) { + setHCKEMCDEDJA(other.hCKEMCDEDJA); + } + if (other.hasNBGGPEJCNAI()) { + setNBGGPEJCNAI(other.nBGGPEJCNAI); + } + if (other.hasIEMLILABMCL()) { + setIEMLILABMCL(other.iEMLILABMCL); + } + if (other.hasHNIJEKJEGHB()) { + setHNIJEKJEGHB(other.hNIJEKJEGHB); + } + if (other.hasEDILMPNCLGB()) { + setEDILMPNCLGB(other.eDILMPNCLGB); + } + if (other.hasAreaId()) { + setAreaId(other.areaId); + } + if (other.hasIsWin()) { + setIsWin(other.isWin); + } + if (other.hasLJIHOAMHLDL()) { + setLJIHOAMHLDL(other.lJIHOAMHLDL); + } + if (other.hasLCINONKILPA()) { + getMutableLCINONKILPA().mergeFrom(other.lCINONKILPA); + } + if (other.hasADHBKMLLJNI()) { + getMutableADHBKMLLJNI().mergeFrom(other.aDHBKMLLJNI); + } + if (other.hasLAIJGEIBNAP()) { + getMutableLAIJGEIBNAP().mergeFrom(other.lAIJGEIBNAP); + } + if (other.hasNBJBIFJBKDN()) { + getMutableNBJBIFJBKDN().mergeFrom(other.nBJBIFJBKDN); + } + if (other.hasHOFACAJJCCP()) { + getMutableHOFACAJJCCP().mergeFrom(other.hOFACAJJCCP); + } + return this; + } + + @Override + public RogueFinishInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + dKCFJCHFECI = 0; + hCKEMCDEDJA = 0; + nBGGPEJCNAI = 0; + iEMLILABMCL = 0; + hNIJEKJEGHB = 0; + eDILMPNCLGB = 0; + areaId = 0; + isWin = false; + lJIHOAMHLDL = false; + lCINONKILPA.clear(); + aDHBKMLLJNI.clear(); + lAIJGEIBNAP.clear(); + nBJBIFJBKDN.clear(); + hOFACAJJCCP.clear(); + return this; + } + + @Override + public RogueFinishInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + lCINONKILPA.clearQuick(); + aDHBKMLLJNI.clearQuick(); + lAIJGEIBNAP.clearQuick(); + nBJBIFJBKDN.clearQuick(); + hOFACAJJCCP.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueFinishInfo)) { + return false; + } + RogueFinishInfo other = (RogueFinishInfo) o; + return bitField0_ == other.bitField0_ + && (!hasDKCFJCHFECI() || dKCFJCHFECI == other.dKCFJCHFECI) + && (!hasHCKEMCDEDJA() || hCKEMCDEDJA == other.hCKEMCDEDJA) + && (!hasNBGGPEJCNAI() || nBGGPEJCNAI == other.nBGGPEJCNAI) + && (!hasIEMLILABMCL() || iEMLILABMCL == other.iEMLILABMCL) + && (!hasHNIJEKJEGHB() || hNIJEKJEGHB == other.hNIJEKJEGHB) + && (!hasEDILMPNCLGB() || eDILMPNCLGB == other.eDILMPNCLGB) + && (!hasAreaId() || areaId == other.areaId) + && (!hasIsWin() || isWin == other.isWin) + && (!hasLJIHOAMHLDL() || lJIHOAMHLDL == other.lJIHOAMHLDL) + && (!hasLCINONKILPA() || lCINONKILPA.equals(other.lCINONKILPA)) + && (!hasADHBKMLLJNI() || aDHBKMLLJNI.equals(other.aDHBKMLLJNI)) + && (!hasLAIJGEIBNAP() || lAIJGEIBNAP.equals(other.lAIJGEIBNAP)) + && (!hasNBJBIFJBKDN() || nBJBIFJBKDN.equals(other.nBJBIFJBKDN)) + && (!hasHOFACAJJCCP() || hOFACAJJCCP.equals(other.hOFACAJJCCP)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(dKCFJCHFECI); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(hCKEMCDEDJA); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(nBGGPEJCNAI); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(iEMLILABMCL); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(hNIJEKJEGHB); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawLittleEndian16((short) 6120); + output.writeUInt32NoTag(eDILMPNCLGB); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawLittleEndian16((short) 27600); + output.writeUInt32NoTag(areaId); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRawByte((byte) 32); + output.writeBoolNoTag(isWin); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeRawByte((byte) 64); + output.writeBoolNoTag(lJIHOAMHLDL); + } + if ((bitField0_ & 0x00000200) != 0) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(lCINONKILPA); + } + if ((bitField0_ & 0x00000400) != 0) { + output.writeRawByte((byte) 58); + output.writeMessageNoTag(aDHBKMLLJNI); + } + if ((bitField0_ & 0x00000800) != 0) { + output.writeRawByte((byte) 90); + output.writeMessageNoTag(lAIJGEIBNAP); + } + if ((bitField0_ & 0x00001000) != 0) { + output.writeRawByte((byte) 98); + output.writeMessageNoTag(nBJBIFJBKDN); + } + if ((bitField0_ & 0x00002000) != 0) { + output.writeRawByte((byte) 122); + output.writeMessageNoTag(hOFACAJJCCP); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(dKCFJCHFECI); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(hCKEMCDEDJA); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(nBGGPEJCNAI); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(iEMLILABMCL); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(hNIJEKJEGHB); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 2 + ProtoSink.computeUInt32SizeNoTag(eDILMPNCLGB); + } + if ((bitField0_ & 0x00000040) != 0) { + size += 2 + ProtoSink.computeUInt32SizeNoTag(areaId); + } + if ((bitField0_ & 0x00000080) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000100) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000200) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(lCINONKILPA); + } + if ((bitField0_ & 0x00000400) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(aDHBKMLLJNI); + } + if ((bitField0_ & 0x00000800) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(lAIJGEIBNAP); + } + if ((bitField0_ & 0x00001000) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(nBJBIFJBKDN); + } + if ((bitField0_ & 0x00002000) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(hOFACAJJCCP); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueFinishInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // dKCFJCHFECI + dKCFJCHFECI = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // hCKEMCDEDJA + hCKEMCDEDJA = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // nBGGPEJCNAI + nBGGPEJCNAI = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // iEMLILABMCL + iEMLILABMCL = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // hNIJEKJEGHB + hNIJEKJEGHB = input.readUInt32(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 3048) { + break; + } + } + case 3048: { + // eDILMPNCLGB + eDILMPNCLGB = input.readUInt32(); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 13776) { + break; + } + } + case 13776: { + // areaId + areaId = input.readUInt32(); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // isWin + isWin = input.readBool(); + bitField0_ |= 0x00000080; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { + // lJIHOAMHLDL + lJIHOAMHLDL = input.readBool(); + bitField0_ |= 0x00000100; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // lCINONKILPA + input.readMessage(lCINONKILPA); + bitField0_ |= 0x00000200; + tag = input.readTag(); + if (tag != 58) { + break; + } + } + case 58: { + // aDHBKMLLJNI + input.readMessage(aDHBKMLLJNI); + bitField0_ |= 0x00000400; + tag = input.readTag(); + if (tag != 90) { + break; + } + } + case 90: { + // lAIJGEIBNAP + input.readMessage(lAIJGEIBNAP); + bitField0_ |= 0x00000800; + tag = input.readTag(); + if (tag != 98) { + break; + } + } + case 98: { + // nBJBIFJBKDN + input.readMessage(nBJBIFJBKDN); + bitField0_ |= 0x00001000; + tag = input.readTag(); + if (tag != 122) { + break; + } + } + case 122: { + // hOFACAJJCCP + input.readMessage(hOFACAJJCCP); + bitField0_ |= 0x00002000; + 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.dKCFJCHFECI, dKCFJCHFECI); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.hCKEMCDEDJA, hCKEMCDEDJA); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.nBGGPEJCNAI, nBGGPEJCNAI); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.iEMLILABMCL, iEMLILABMCL); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.hNIJEKJEGHB, hNIJEKJEGHB); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeUInt32(FieldNames.eDILMPNCLGB, eDILMPNCLGB); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeUInt32(FieldNames.areaId, areaId); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeBool(FieldNames.isWin, isWin); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeBool(FieldNames.lJIHOAMHLDL, lJIHOAMHLDL); + } + if ((bitField0_ & 0x00000200) != 0) { + output.writeMessage(FieldNames.lCINONKILPA, lCINONKILPA); + } + if ((bitField0_ & 0x00000400) != 0) { + output.writeMessage(FieldNames.aDHBKMLLJNI, aDHBKMLLJNI); + } + if ((bitField0_ & 0x00000800) != 0) { + output.writeMessage(FieldNames.lAIJGEIBNAP, lAIJGEIBNAP); + } + if ((bitField0_ & 0x00001000) != 0) { + output.writeMessage(FieldNames.nBJBIFJBKDN, nBJBIFJBKDN); + } + if ((bitField0_ & 0x00002000) != 0) { + output.writeMessage(FieldNames.hOFACAJJCCP, hOFACAJJCCP); + } + output.endObject(); + } + + @Override + public RogueFinishInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 347618730: { + if (input.isAtField(FieldNames.dKCFJCHFECI)) { + if (!input.trySkipNullValue()) { + dKCFJCHFECI = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1631869105: { + if (input.isAtField(FieldNames.hCKEMCDEDJA)) { + if (!input.trySkipNullValue()) { + hCKEMCDEDJA = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1223634996: { + if (input.isAtField(FieldNames.nBGGPEJCNAI)) { + if (!input.trySkipNullValue()) { + nBGGPEJCNAI = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1467712087: { + if (input.isAtField(FieldNames.iEMLILABMCL)) { + if (!input.trySkipNullValue()) { + iEMLILABMCL = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1669990649: { + if (input.isAtField(FieldNames.hNIJEKJEGHB)) { + if (!input.trySkipNullValue()) { + hNIJEKJEGHB = input.readUInt32(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1716421555: { + if (input.isAtField(FieldNames.eDILMPNCLGB)) { + if (!input.trySkipNullValue()) { + eDILMPNCLGB = input.readUInt32(); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1409553784: + case -746472947: { + if (input.isAtField(FieldNames.areaId)) { + if (!input.trySkipNullValue()) { + areaId = input.readUInt32(); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case 100482642: + case -1179753657: { + if (input.isAtField(FieldNames.isWin)) { + if (!input.trySkipNullValue()) { + isWin = input.readBool(); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + case 374228490: { + if (input.isAtField(FieldNames.lJIHOAMHLDL)) { + if (!input.trySkipNullValue()) { + lJIHOAMHLDL = input.readBool(); + bitField0_ |= 0x00000100; + } + } else { + input.skipUnknownField(); + } + break; + } + case -307854780: { + if (input.isAtField(FieldNames.lCINONKILPA)) { + if (!input.trySkipNullValue()) { + input.readMessage(lCINONKILPA); + bitField0_ |= 0x00000200; + } + } else { + input.skipUnknownField(); + } + break; + } + case 873161446: { + if (input.isAtField(FieldNames.aDHBKMLLJNI)) { + if (!input.trySkipNullValue()) { + input.readMessage(aDHBKMLLJNI); + bitField0_ |= 0x00000400; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1360913136: { + if (input.isAtField(FieldNames.lAIJGEIBNAP)) { + if (!input.trySkipNullValue()) { + input.readMessage(lAIJGEIBNAP); + bitField0_ |= 0x00000800; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1916840076: { + if (input.isAtField(FieldNames.nBJBIFJBKDN)) { + if (!input.trySkipNullValue()) { + input.readMessage(nBJBIFJBKDN); + bitField0_ |= 0x00001000; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2034295504: { + if (input.isAtField(FieldNames.hOFACAJJCCP)) { + if (!input.trySkipNullValue()) { + input.readMessage(hOFACAJJCCP); + bitField0_ |= 0x00002000; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueFinishInfo clone() { + return new RogueFinishInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueFinishInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueFinishInfo(), data).checkInitialized(); + } + + public static RogueFinishInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueFinishInfo(), input).checkInitialized(); + } + + public static RogueFinishInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueFinishInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueFinishInfo messages + */ + public static MessageFactory getFactory() { + return RogueFinishInfoFactory.INSTANCE; + } + + private enum RogueFinishInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueFinishInfo create() { + return RogueFinishInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName dKCFJCHFECI = FieldName.forField("DKCFJCHFECI"); + + static final FieldName hCKEMCDEDJA = FieldName.forField("HCKEMCDEDJA"); + + static final FieldName nBGGPEJCNAI = FieldName.forField("NBGGPEJCNAI"); + + static final FieldName iEMLILABMCL = FieldName.forField("IEMLILABMCL"); + + static final FieldName hNIJEKJEGHB = FieldName.forField("HNIJEKJEGHB"); + + static final FieldName eDILMPNCLGB = FieldName.forField("EDILMPNCLGB"); + + static final FieldName areaId = FieldName.forField("areaId", "area_id"); + + static final FieldName isWin = FieldName.forField("isWin", "is_win"); + + static final FieldName lJIHOAMHLDL = FieldName.forField("LJIHOAMHLDL"); + + static final FieldName lCINONKILPA = FieldName.forField("LCINONKILPA"); + + static final FieldName aDHBKMLLJNI = FieldName.forField("ADHBKMLLJNI"); + + static final FieldName lAIJGEIBNAP = FieldName.forField("LAIJGEIBNAP"); + + static final FieldName nBJBIFJBKDN = FieldName.forField("NBJBIFJBKDN"); + + static final FieldName hOFACAJJCCP = FieldName.forField("HOFACAJJCCP"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueInfoOuterClass.java index f242441..76fca53 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RogueInfoOuterClass.java @@ -36,14 +36,14 @@ public final class RogueInfoOuterClass { private int kMAGFHIIALA; /** - * optional uint32 rogue_season_id = 7; + * optional uint32 season_id = 7; */ - private int rogueSeasonId; + private int seasonId; /** - * optional uint32 HNIJEKJEGHB = 486; + * optional uint32 talent_points = 486; */ - private int hNIJEKJEGHB; + private int talentPoints; /** * optional uint32 HDBPIDMBJOH = 944; @@ -55,11 +55,21 @@ public final class RogueInfoOuterClass { */ private int status; + /** + * optional .RogueCurrentInfo rogue_progress = 83; + */ + private final RogueCurrentInfoOuterClass.RogueCurrentInfo rogueProgress = RogueCurrentInfoOuterClass.RogueCurrentInfo.newInstance(); + /** * optional .RogueInfoData rogue_data = 256; */ private final RogueInfoDataOuterClass.RogueInfoData rogueData = RogueInfoDataOuterClass.RogueInfoData.newInstance(); + /** + * optional .RogueMapInfo room_map = 862; + */ + private final RogueMapInfoOuterClass.RogueMapInfo roomMap = RogueMapInfoOuterClass.RogueMapInfo.newInstance(); + /** * optional .RogueScoreRewardInfo rogue_score_info = 1300; */ @@ -197,76 +207,76 @@ public final class RogueInfoOuterClass { } /** - * optional uint32 rogue_season_id = 7; - * @return whether the rogueSeasonId field is set + * optional uint32 season_id = 7; + * @return whether the seasonId field is set */ - public boolean hasRogueSeasonId() { + public boolean hasSeasonId() { return (bitField0_ & 0x00000008) != 0; } /** - * optional uint32 rogue_season_id = 7; + * optional uint32 season_id = 7; * @return this */ - public RogueInfo clearRogueSeasonId() { + public RogueInfo clearSeasonId() { bitField0_ &= ~0x00000008; - rogueSeasonId = 0; + seasonId = 0; return this; } /** - * optional uint32 rogue_season_id = 7; - * @return the rogueSeasonId + * optional uint32 season_id = 7; + * @return the seasonId */ - public int getRogueSeasonId() { - return rogueSeasonId; + public int getSeasonId() { + return seasonId; } /** - * optional uint32 rogue_season_id = 7; - * @param value the rogueSeasonId to set + * optional uint32 season_id = 7; + * @param value the seasonId to set * @return this */ - public RogueInfo setRogueSeasonId(final int value) { + public RogueInfo setSeasonId(final int value) { bitField0_ |= 0x00000008; - rogueSeasonId = value; + seasonId = value; return this; } /** - * optional uint32 HNIJEKJEGHB = 486; - * @return whether the hNIJEKJEGHB field is set + * optional uint32 talent_points = 486; + * @return whether the talentPoints field is set */ - public boolean hasHNIJEKJEGHB() { + public boolean hasTalentPoints() { return (bitField0_ & 0x00000010) != 0; } /** - * optional uint32 HNIJEKJEGHB = 486; + * optional uint32 talent_points = 486; * @return this */ - public RogueInfo clearHNIJEKJEGHB() { + public RogueInfo clearTalentPoints() { bitField0_ &= ~0x00000010; - hNIJEKJEGHB = 0; + talentPoints = 0; return this; } /** - * optional uint32 HNIJEKJEGHB = 486; - * @return the hNIJEKJEGHB + * optional uint32 talent_points = 486; + * @return the talentPoints */ - public int getHNIJEKJEGHB() { - return hNIJEKJEGHB; + public int getTalentPoints() { + return talentPoints; } /** - * optional uint32 HNIJEKJEGHB = 486; - * @param value the hNIJEKJEGHB to set + * optional uint32 talent_points = 486; + * @param value the talentPoints to set * @return this */ - public RogueInfo setHNIJEKJEGHB(final int value) { + public RogueInfo setTalentPoints(final int value) { bitField0_ |= 0x00000010; - hNIJEKJEGHB = value; + talentPoints = value; return this; } @@ -369,12 +379,69 @@ public final class RogueInfoOuterClass { return this; } + /** + * optional .RogueCurrentInfo rogue_progress = 83; + * @return whether the rogueProgress field is set + */ + public boolean hasRogueProgress() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * optional .RogueCurrentInfo rogue_progress = 83; + * @return this + */ + public RogueInfo clearRogueProgress() { + bitField0_ &= ~0x00000080; + rogueProgress.clear(); + return this; + } + + /** + * optional .RogueCurrentInfo rogue_progress = 83; + * + * This method returns 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 = 83; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of 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 = 83; + * @param value the rogueProgress to set + * @return this + */ + public RogueInfo setRogueProgress(final RogueCurrentInfoOuterClass.RogueCurrentInfo value) { + bitField0_ |= 0x00000080; + rogueProgress.copyFrom(value); + return this; + } + /** * optional .RogueInfoData rogue_data = 256; * @return whether the rogueData field is set */ public boolean hasRogueData() { - return (bitField0_ & 0x00000080) != 0; + return (bitField0_ & 0x00000100) != 0; } /** @@ -382,7 +449,7 @@ public final class RogueInfoOuterClass { * @return this */ public RogueInfo clearRogueData() { - bitField0_ &= ~0x00000080; + bitField0_ &= ~0x00000100; rogueData.clear(); return this; } @@ -411,7 +478,7 @@ public final class RogueInfoOuterClass { * @return internal storage object for modifications */ public RogueInfoDataOuterClass.RogueInfoData getMutableRogueData() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; return rogueData; } @@ -421,17 +488,74 @@ public final class RogueInfoOuterClass { * @return this */ public RogueInfo setRogueData(final RogueInfoDataOuterClass.RogueInfoData value) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; rogueData.copyFrom(value); return this; } + /** + * optional .RogueMapInfo room_map = 862; + * @return whether the roomMap field is set + */ + public boolean hasRoomMap() { + return (bitField0_ & 0x00000200) != 0; + } + + /** + * optional .RogueMapInfo room_map = 862; + * @return this + */ + public RogueInfo clearRoomMap() { + bitField0_ &= ~0x00000200; + roomMap.clear(); + return this; + } + + /** + * optional .RogueMapInfo room_map = 862; + * + * This method returns 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 = 862; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of 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_ |= 0x00000200; + return roomMap; + } + + /** + * optional .RogueMapInfo room_map = 862; + * @param value the roomMap to set + * @return this + */ + public RogueInfo setRoomMap(final RogueMapInfoOuterClass.RogueMapInfo value) { + bitField0_ |= 0x00000200; + roomMap.copyFrom(value); + return this; + } + /** * optional .RogueScoreRewardInfo rogue_score_info = 1300; * @return whether the rogueScoreInfo field is set */ public boolean hasRogueScoreInfo() { - return (bitField0_ & 0x00000100) != 0; + return (bitField0_ & 0x00000400) != 0; } /** @@ -439,7 +563,7 @@ public final class RogueInfoOuterClass { * @return this */ public RogueInfo clearRogueScoreInfo() { - bitField0_ &= ~0x00000100; + bitField0_ &= ~0x00000400; rogueScoreInfo.clear(); return this; } @@ -468,7 +592,7 @@ public final class RogueInfoOuterClass { * @return internal storage object for modifications */ public RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo getMutableRogueScoreInfo() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; return rogueScoreInfo; } @@ -479,7 +603,7 @@ public final class RogueInfoOuterClass { */ public RogueInfo setRogueScoreInfo( final RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo value) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; rogueScoreInfo.copyFrom(value); return this; } @@ -489,7 +613,7 @@ public final class RogueInfoOuterClass { * @return whether the baseAvatarIdList field is set */ public boolean hasBaseAvatarIdList() { - return (bitField0_ & 0x00000200) != 0; + return (bitField0_ & 0x00000800) != 0; } /** @@ -497,7 +621,7 @@ public final class RogueInfoOuterClass { * @return this */ public RogueInfo clearBaseAvatarIdList() { - bitField0_ &= ~0x00000200; + bitField0_ &= ~0x00000800; baseAvatarIdList.clear(); return this; } @@ -526,7 +650,7 @@ public final class RogueInfoOuterClass { * @return internal storage object for modifications */ public RepeatedInt getMutableBaseAvatarIdList() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; return baseAvatarIdList; } @@ -536,7 +660,7 @@ public final class RogueInfoOuterClass { * @return this */ public RogueInfo addBaseAvatarIdList(final int value) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; baseAvatarIdList.add(value); return this; } @@ -547,7 +671,7 @@ public final class RogueInfoOuterClass { * @return this */ public RogueInfo addAllBaseAvatarIdList(final int... values) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; baseAvatarIdList.addAll(values); return this; } @@ -557,7 +681,7 @@ public final class RogueInfoOuterClass { * @return whether the rogueAreaList field is set */ public boolean hasRogueAreaList() { - return (bitField0_ & 0x00000400) != 0; + return (bitField0_ & 0x00001000) != 0; } /** @@ -565,7 +689,7 @@ public final class RogueInfoOuterClass { * @return this */ public RogueInfo clearRogueAreaList() { - bitField0_ &= ~0x00000400; + bitField0_ &= ~0x00001000; rogueAreaList.clear(); return this; } @@ -594,7 +718,7 @@ public final class RogueInfoOuterClass { * @return internal storage object for modifications */ public RepeatedMessage getMutableRogueAreaList() { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; return rogueAreaList; } @@ -604,7 +728,7 @@ public final class RogueInfoOuterClass { * @return this */ public RogueInfo addRogueAreaList(final RogueAreaOuterClass.RogueArea value) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; rogueAreaList.add(value); return this; } @@ -615,7 +739,7 @@ public final class RogueInfoOuterClass { * @return this */ public RogueInfo addAllRogueAreaList(final RogueAreaOuterClass.RogueArea... values) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; rogueAreaList.addAll(values); return this; } @@ -628,11 +752,13 @@ public final class RogueInfoOuterClass { endTime = other.endTime; beginTime = other.beginTime; kMAGFHIIALA = other.kMAGFHIIALA; - rogueSeasonId = other.rogueSeasonId; - hNIJEKJEGHB = other.hNIJEKJEGHB; + seasonId = other.seasonId; + talentPoints = other.talentPoints; hDBPIDMBJOH = other.hDBPIDMBJOH; status = other.status; + rogueProgress.copyFrom(other.rogueProgress); rogueData.copyFrom(other.rogueData); + roomMap.copyFrom(other.roomMap); rogueScoreInfo.copyFrom(other.rogueScoreInfo); baseAvatarIdList.copyFrom(other.baseAvatarIdList); rogueAreaList.copyFrom(other.rogueAreaList); @@ -655,11 +781,11 @@ public final class RogueInfoOuterClass { if (other.hasKMAGFHIIALA()) { setKMAGFHIIALA(other.kMAGFHIIALA); } - if (other.hasRogueSeasonId()) { - setRogueSeasonId(other.rogueSeasonId); + if (other.hasSeasonId()) { + setSeasonId(other.seasonId); } - if (other.hasHNIJEKJEGHB()) { - setHNIJEKJEGHB(other.hNIJEKJEGHB); + if (other.hasTalentPoints()) { + setTalentPoints(other.talentPoints); } if (other.hasHDBPIDMBJOH()) { setHDBPIDMBJOH(other.hDBPIDMBJOH); @@ -667,9 +793,15 @@ public final class RogueInfoOuterClass { if (other.hasStatus()) { setStatusValue(other.status); } + if (other.hasRogueProgress()) { + getMutableRogueProgress().mergeFrom(other.rogueProgress); + } if (other.hasRogueData()) { getMutableRogueData().mergeFrom(other.rogueData); } + if (other.hasRoomMap()) { + getMutableRoomMap().mergeFrom(other.roomMap); + } if (other.hasRogueScoreInfo()) { getMutableRogueScoreInfo().mergeFrom(other.rogueScoreInfo); } @@ -692,11 +824,13 @@ public final class RogueInfoOuterClass { endTime = 0L; beginTime = 0L; kMAGFHIIALA = 0; - rogueSeasonId = 0; - hNIJEKJEGHB = 0; + seasonId = 0; + talentPoints = 0; hDBPIDMBJOH = 0; status = 0; + rogueProgress.clear(); rogueData.clear(); + roomMap.clear(); rogueScoreInfo.clear(); baseAvatarIdList.clear(); rogueAreaList.clear(); @@ -710,7 +844,9 @@ public final class RogueInfoOuterClass { } cachedSize = -1; bitField0_ = 0; + rogueProgress.clearQuick(); rogueData.clearQuick(); + roomMap.clearQuick(); rogueScoreInfo.clearQuick(); baseAvatarIdList.clear(); rogueAreaList.clearQuick(); @@ -730,11 +866,13 @@ public final class RogueInfoOuterClass { && (!hasEndTime() || endTime == other.endTime) && (!hasBeginTime() || beginTime == other.beginTime) && (!hasKMAGFHIIALA() || kMAGFHIIALA == other.kMAGFHIIALA) - && (!hasRogueSeasonId() || rogueSeasonId == other.rogueSeasonId) - && (!hasHNIJEKJEGHB() || hNIJEKJEGHB == other.hNIJEKJEGHB) + && (!hasSeasonId() || seasonId == other.seasonId) + && (!hasTalentPoints() || talentPoints == other.talentPoints) && (!hasHDBPIDMBJOH() || hDBPIDMBJOH == other.hDBPIDMBJOH) && (!hasStatus() || status == other.status) + && (!hasRogueProgress() || rogueProgress.equals(other.rogueProgress)) && (!hasRogueData() || rogueData.equals(other.rogueData)) + && (!hasRoomMap() || roomMap.equals(other.roomMap)) && (!hasRogueScoreInfo() || rogueScoreInfo.equals(other.rogueScoreInfo)) && (!hasBaseAvatarIdList() || baseAvatarIdList.equals(other.baseAvatarIdList)) && (!hasRogueAreaList() || rogueAreaList.equals(other.rogueAreaList)); @@ -756,11 +894,11 @@ public final class RogueInfoOuterClass { } if ((bitField0_ & 0x00000008) != 0) { output.writeRawByte((byte) 56); - output.writeUInt32NoTag(rogueSeasonId); + output.writeUInt32NoTag(seasonId); } if ((bitField0_ & 0x00000010) != 0) { output.writeRawLittleEndian16((short) 7856); - output.writeUInt32NoTag(hNIJEKJEGHB); + output.writeUInt32NoTag(talentPoints); } if ((bitField0_ & 0x00000020) != 0) { output.writeRawLittleEndian16((short) 15232); @@ -771,20 +909,28 @@ public final class RogueInfoOuterClass { output.writeEnumNoTag(status); } if ((bitField0_ & 0x00000080) != 0) { + output.writeRawLittleEndian16((short) 1434); + output.writeMessageNoTag(rogueProgress); + } + if ((bitField0_ & 0x00000100) != 0) { output.writeRawLittleEndian16((short) 4226); output.writeMessageNoTag(rogueData); } - if ((bitField0_ & 0x00000100) != 0) { + if ((bitField0_ & 0x00000200) != 0) { + output.writeRawLittleEndian16((short) 13810); + output.writeMessageNoTag(roomMap); + } + if ((bitField0_ & 0x00000400) != 0) { output.writeRawLittleEndian16((short) 20898); output.writeMessageNoTag(rogueScoreInfo); } - if ((bitField0_ & 0x00000200) != 0) { + if ((bitField0_ & 0x00000800) != 0) { for (int i = 0; i < baseAvatarIdList.length(); i++) { output.writeRawByte((byte) 96); output.writeUInt32NoTag(baseAvatarIdList.array()[i]); } } - if ((bitField0_ & 0x00000400) != 0) { + if ((bitField0_ & 0x00001000) != 0) { for (int i = 0; i < rogueAreaList.length(); i++) { output.writeRawLittleEndian16((short) 3834); output.writeMessageNoTag(rogueAreaList.get(i)); @@ -805,10 +951,10 @@ public final class RogueInfoOuterClass { size += 1 + ProtoSink.computeUInt32SizeNoTag(kMAGFHIIALA); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(rogueSeasonId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(seasonId); } if ((bitField0_ & 0x00000010) != 0) { - size += 2 + ProtoSink.computeUInt32SizeNoTag(hNIJEKJEGHB); + size += 2 + ProtoSink.computeUInt32SizeNoTag(talentPoints); } if ((bitField0_ & 0x00000020) != 0) { size += 2 + ProtoSink.computeUInt32SizeNoTag(hDBPIDMBJOH); @@ -817,15 +963,21 @@ public final class RogueInfoOuterClass { size += 1 + ProtoSink.computeEnumSizeNoTag(status); } if ((bitField0_ & 0x00000080) != 0) { - size += 2 + ProtoSink.computeMessageSizeNoTag(rogueData); + size += 2 + ProtoSink.computeMessageSizeNoTag(rogueProgress); } if ((bitField0_ & 0x00000100) != 0) { - size += 2 + ProtoSink.computeMessageSizeNoTag(rogueScoreInfo); + size += 2 + ProtoSink.computeMessageSizeNoTag(rogueData); } if ((bitField0_ & 0x00000200) != 0) { - size += (1 * baseAvatarIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(baseAvatarIdList); + size += 2 + ProtoSink.computeMessageSizeNoTag(roomMap); } if ((bitField0_ & 0x00000400) != 0) { + size += 2 + ProtoSink.computeMessageSizeNoTag(rogueScoreInfo); + } + if ((bitField0_ & 0x00000800) != 0) { + size += (1 * baseAvatarIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(baseAvatarIdList); + } + if ((bitField0_ & 0x00001000) != 0) { size += (2 * rogueAreaList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(rogueAreaList); } return size; @@ -866,8 +1018,8 @@ public final class RogueInfoOuterClass { } } case 56: { - // rogueSeasonId - rogueSeasonId = input.readUInt32(); + // seasonId + seasonId = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 3888) { @@ -875,8 +1027,8 @@ public final class RogueInfoOuterClass { } } case 3888: { - // hNIJEKJEGHB - hNIJEKJEGHB = input.readUInt32(); + // talentPoints + talentPoints = input.readUInt32(); bitField0_ |= 0x00000010; tag = input.readTag(); if (tag != 7552) { @@ -900,6 +1052,15 @@ public final class RogueInfoOuterClass { bitField0_ |= 0x00000040; } tag = input.readTag(); + if (tag != 666) { + break; + } + } + case 666: { + // rogueProgress + input.readMessage(rogueProgress); + bitField0_ |= 0x00000080; + tag = input.readTag(); if (tag != 2050) { break; } @@ -907,7 +1068,16 @@ public final class RogueInfoOuterClass { case 2050: { // rogueData input.readMessage(rogueData); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; + tag = input.readTag(); + if (tag != 6898) { + break; + } + } + case 6898: { + // roomMap + input.readMessage(roomMap); + bitField0_ |= 0x00000200; tag = input.readTag(); if (tag != 10402) { break; @@ -916,7 +1086,7 @@ public final class RogueInfoOuterClass { case 10402: { // rogueScoreInfo input.readMessage(rogueScoreInfo); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; tag = input.readTag(); if (tag != 98) { break; @@ -925,7 +1095,7 @@ public final class RogueInfoOuterClass { case 98: { // baseAvatarIdList [packed=true] input.readPackedUInt32(baseAvatarIdList, tag); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; tag = input.readTag(); if (tag != 1914) { break; @@ -934,7 +1104,7 @@ public final class RogueInfoOuterClass { case 1914: { // rogueAreaList tag = input.readRepeatedMessage(rogueAreaList, tag); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; if (tag != 0) { break; } @@ -952,7 +1122,7 @@ public final class RogueInfoOuterClass { case 96: { // baseAvatarIdList [packed=false] tag = input.readRepeatedUInt32(baseAvatarIdList, tag); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; break; } } @@ -972,10 +1142,10 @@ public final class RogueInfoOuterClass { output.writeUInt32(FieldNames.kMAGFHIIALA, kMAGFHIIALA); } if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.rogueSeasonId, rogueSeasonId); + output.writeUInt32(FieldNames.seasonId, seasonId); } if ((bitField0_ & 0x00000010) != 0) { - output.writeUInt32(FieldNames.hNIJEKJEGHB, hNIJEKJEGHB); + output.writeUInt32(FieldNames.talentPoints, talentPoints); } if ((bitField0_ & 0x00000020) != 0) { output.writeUInt32(FieldNames.hDBPIDMBJOH, hDBPIDMBJOH); @@ -984,15 +1154,21 @@ public final class RogueInfoOuterClass { output.writeEnum(FieldNames.status, status, RogueStatusOuterClass.RogueStatus.converter()); } if ((bitField0_ & 0x00000080) != 0) { - output.writeMessage(FieldNames.rogueData, rogueData); + output.writeMessage(FieldNames.rogueProgress, rogueProgress); } if ((bitField0_ & 0x00000100) != 0) { - output.writeMessage(FieldNames.rogueScoreInfo, rogueScoreInfo); + output.writeMessage(FieldNames.rogueData, rogueData); } if ((bitField0_ & 0x00000200) != 0) { - output.writeRepeatedUInt32(FieldNames.baseAvatarIdList, baseAvatarIdList); + output.writeMessage(FieldNames.roomMap, roomMap); } if ((bitField0_ & 0x00000400) != 0) { + output.writeMessage(FieldNames.rogueScoreInfo, rogueScoreInfo); + } + if ((bitField0_ & 0x00000800) != 0) { + output.writeRepeatedUInt32(FieldNames.baseAvatarIdList, baseAvatarIdList); + } + if ((bitField0_ & 0x00001000) != 0) { output.writeRepeatedMessage(FieldNames.rogueAreaList, rogueAreaList); } output.endObject(); @@ -1040,11 +1216,11 @@ public final class RogueInfoOuterClass { } break; } - case -774262952: - case 1067542482: { - if (input.isAtField(FieldNames.rogueSeasonId)) { + case 889931614: + case 1818097655: { + if (input.isAtField(FieldNames.seasonId)) { if (!input.trySkipNullValue()) { - rogueSeasonId = input.readUInt32(); + seasonId = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -1052,10 +1228,11 @@ public final class RogueInfoOuterClass { } break; } - case 1669990649: { - if (input.isAtField(FieldNames.hNIJEKJEGHB)) { + case -1626892049: + case 1567623062: { + if (input.isAtField(FieldNames.talentPoints)) { if (!input.trySkipNullValue()) { - hNIJEKJEGHB = input.readUInt32(); + talentPoints = input.readUInt32(); bitField0_ |= 0x00000010; } } else { @@ -1090,12 +1267,36 @@ public final class RogueInfoOuterClass { } break; } + case 1629694503: + case 1330014962: { + if (input.isAtField(FieldNames.rogueProgress)) { + if (!input.trySkipNullValue()) { + input.readMessage(rogueProgress); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } case 655647908: case -1124744465: { if (input.isAtField(FieldNames.rogueData)) { if (!input.trySkipNullValue()) { input.readMessage(rogueData); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1379875457: + case -172986376: { + if (input.isAtField(FieldNames.roomMap)) { + if (!input.trySkipNullValue()) { + input.readMessage(roomMap); + bitField0_ |= 0x00000200; } } else { input.skipUnknownField(); @@ -1107,7 +1308,7 @@ public final class RogueInfoOuterClass { if (input.isAtField(FieldNames.rogueScoreInfo)) { if (!input.trySkipNullValue()) { input.readMessage(rogueScoreInfo); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; } } else { input.skipUnknownField(); @@ -1119,7 +1320,7 @@ public final class RogueInfoOuterClass { if (input.isAtField(FieldNames.baseAvatarIdList)) { if (!input.trySkipNullValue()) { input.readRepeatedUInt32(baseAvatarIdList); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; } } else { input.skipUnknownField(); @@ -1131,7 +1332,7 @@ public final class RogueInfoOuterClass { if (input.isAtField(FieldNames.rogueAreaList)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(rogueAreaList); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; } } else { input.skipUnknownField(); @@ -1196,16 +1397,20 @@ public final class RogueInfoOuterClass { static final FieldName kMAGFHIIALA = FieldName.forField("KMAGFHIIALA"); - static final FieldName rogueSeasonId = FieldName.forField("rogueSeasonId", "rogue_season_id"); + static final FieldName seasonId = FieldName.forField("seasonId", "season_id"); - static final FieldName hNIJEKJEGHB = FieldName.forField("HNIJEKJEGHB"); + static final FieldName talentPoints = FieldName.forField("talentPoints", "talent_points"); static final FieldName hDBPIDMBJOH = FieldName.forField("HDBPIDMBJOH"); static final FieldName status = FieldName.forField("status"); + static final FieldName rogueProgress = FieldName.forField("rogueProgress", "rogue_progress"); + static final FieldName rogueData = FieldName.forField("rogueData", "rogue_data"); + static final FieldName roomMap = FieldName.forField("roomMap", "room_map"); + static final FieldName rogueScoreInfo = FieldName.forField("rogueScoreInfo", "rogue_score_info"); static final FieldName baseAvatarIdList = FieldName.forField("baseAvatarIdList", "base_avatar_id_list"); diff --git a/src/generated/main/emu/lunarcore/proto/RogueMapInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueMapInfoOuterClass.java new file mode 100644 index 0000000..cb84e90 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueMapInfoOuterClass.java @@ -0,0 +1,617 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedMessage; + +public final class RogueMapInfoOuterClass { + /** + * Protobuf type {@code RogueMapInfo} + */ + public static final class RogueMapInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 cur_site_id = 2; + */ + private int curSiteId; + + /** + * optional uint32 cur_room_id = 5; + */ + private int curRoomId; + + /** + * optional uint32 map_id = 6; + */ + private int mapId; + + /** + * optional uint32 area_id = 10; + */ + private int areaId; + + /** + * repeated .RogueRoom room_list = 9; + */ + private final RepeatedMessage roomList = RepeatedMessage.newEmptyInstance(RogueRoomOuterClass.RogueRoom.getFactory()); + + private RogueMapInfo() { + } + + /** + * @return a new empty instance of {@code RogueMapInfo} + */ + public static RogueMapInfo newInstance() { + return new RogueMapInfo(); + } + + /** + * optional uint32 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 RogueMapInfo 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 RogueMapInfo setCurSiteId(final int value) { + bitField0_ |= 0x00000001; + curSiteId = value; + return this; + } + + /** + * optional uint32 cur_room_id = 5; + * @return whether the curRoomId field is set + */ + public boolean hasCurRoomId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 cur_room_id = 5; + * @return this + */ + public RogueMapInfo clearCurRoomId() { + bitField0_ &= ~0x00000002; + curRoomId = 0; + return this; + } + + /** + * optional uint32 cur_room_id = 5; + * @return the curRoomId + */ + public int getCurRoomId() { + return curRoomId; + } + + /** + * optional uint32 cur_room_id = 5; + * @param value the curRoomId to set + * @return this + */ + public RogueMapInfo setCurRoomId(final int value) { + bitField0_ |= 0x00000002; + curRoomId = value; + return this; + } + + /** + * optional uint32 map_id = 6; + * @return whether the mapId field is set + */ + public boolean hasMapId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 map_id = 6; + * @return this + */ + public RogueMapInfo clearMapId() { + bitField0_ &= ~0x00000004; + 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_ |= 0x00000004; + mapId = value; + return this; + } + + /** + * optional uint32 area_id = 10; + * @return whether the areaId field is set + */ + public boolean hasAreaId() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 area_id = 10; + * @return this + */ + public RogueMapInfo clearAreaId() { + bitField0_ &= ~0x00000008; + areaId = 0; + return this; + } + + /** + * optional uint32 area_id = 10; + * @return the areaId + */ + public int getAreaId() { + return areaId; + } + + /** + * optional uint32 area_id = 10; + * @param value the areaId to set + * @return this + */ + public RogueMapInfo setAreaId(final int value) { + bitField0_ |= 0x00000008; + areaId = value; + return this; + } + + /** + * repeated .RogueRoom room_list = 9; + * @return whether the roomList field is set + */ + public boolean hasRoomList() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * repeated .RogueRoom room_list = 9; + * @return this + */ + public RogueMapInfo clearRoomList() { + bitField0_ &= ~0x00000010; + roomList.clear(); + return this; + } + + /** + * repeated .RogueRoom room_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 #getMutableRoomList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getRoomList() { + return roomList; + } + + /** + * repeated .RogueRoom room_list = 9; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableRoomList() { + bitField0_ |= 0x00000010; + return roomList; + } + + /** + * repeated .RogueRoom room_list = 9; + * @param value the roomList to add + * @return this + */ + public RogueMapInfo addRoomList(final RogueRoomOuterClass.RogueRoom value) { + bitField0_ |= 0x00000010; + roomList.add(value); + return this; + } + + /** + * repeated .RogueRoom room_list = 9; + * @param values the roomList to add + * @return this + */ + public RogueMapInfo addAllRoomList(final RogueRoomOuterClass.RogueRoom... values) { + bitField0_ |= 0x00000010; + roomList.addAll(values); + return this; + } + + @Override + public RogueMapInfo copyFrom(final RogueMapInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + curSiteId = other.curSiteId; + curRoomId = other.curRoomId; + mapId = other.mapId; + areaId = other.areaId; + roomList.copyFrom(other.roomList); + } + return this; + } + + @Override + public RogueMapInfo mergeFrom(final RogueMapInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasCurSiteId()) { + setCurSiteId(other.curSiteId); + } + if (other.hasCurRoomId()) { + setCurRoomId(other.curRoomId); + } + if (other.hasMapId()) { + setMapId(other.mapId); + } + if (other.hasAreaId()) { + setAreaId(other.areaId); + } + if (other.hasRoomList()) { + getMutableRoomList().addAll(other.roomList); + } + return this; + } + + @Override + public RogueMapInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + curSiteId = 0; + curRoomId = 0; + mapId = 0; + areaId = 0; + roomList.clear(); + return this; + } + + @Override + public RogueMapInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + roomList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueMapInfo)) { + return false; + } + RogueMapInfo other = (RogueMapInfo) o; + return bitField0_ == other.bitField0_ + && (!hasCurSiteId() || curSiteId == other.curSiteId) + && (!hasCurRoomId() || curRoomId == other.curRoomId) + && (!hasMapId() || mapId == other.mapId) + && (!hasAreaId() || areaId == other.areaId) + && (!hasRoomList() || roomList.equals(other.roomList)); + } + + @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(curRoomId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(mapId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(areaId); + } + if ((bitField0_ & 0x00000010) != 0) { + for (int i = 0; i < roomList.length(); i++) { + output.writeRawByte((byte) 74); + output.writeMessageNoTag(roomList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(curSiteId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(curRoomId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(mapId); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(areaId); + } + if ((bitField0_ & 0x00000010) != 0) { + size += (1 * roomList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(roomList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueMapInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // curSiteId + curSiteId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // curRoomId + curRoomId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // mapId + mapId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // areaId + areaId = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 74) { + break; + } + } + case 74: { + // roomList + tag = input.readRepeatedMessage(roomList, tag); + bitField0_ |= 0x00000010; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.curSiteId, curSiteId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.curRoomId, curRoomId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.mapId, mapId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.areaId, areaId); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRepeatedMessage(FieldNames.roomList, roomList); + } + output.endObject(); + } + + @Override + public RogueMapInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -226037470: + case 1245078036: { + if (input.isAtField(FieldNames.curSiteId)) { + if (!input.trySkipNullValue()) { + curSiteId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -249266762: + case 524969984: { + if (input.isAtField(FieldNames.curRoomId)) { + if (!input.trySkipNullValue()) { + curRoomId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 103663511: + case -1081377058: { + if (input.isAtField(FieldNames.mapId)) { + if (!input.trySkipNullValue()) { + mapId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1409553784: + case -746472947: { + if (input.isAtField(FieldNames.areaId)) { + if (!input.trySkipNullValue()) { + areaId = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -173555687: + case -1067632254: { + if (input.isAtField(FieldNames.roomList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(roomList); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueMapInfo clone() { + return new RogueMapInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueMapInfo parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueMapInfo(), data).checkInitialized(); + } + + public static RogueMapInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueMapInfo(), input).checkInitialized(); + } + + public static RogueMapInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueMapInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueMapInfo messages + */ + public static MessageFactory getFactory() { + return RogueMapInfoFactory.INSTANCE; + } + + private enum RogueMapInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueMapInfo create() { + return RogueMapInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName curSiteId = FieldName.forField("curSiteId", "cur_site_id"); + + static final FieldName curRoomId = FieldName.forField("curRoomId", "cur_room_id"); + + static final FieldName mapId = FieldName.forField("mapId", "map_id"); + + static final FieldName areaId = FieldName.forField("areaId", "area_id"); + + static final FieldName roomList = FieldName.forField("roomList", "room_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueRoomOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueRoomOuterClass.java new file mode 100644 index 0000000..dbe52fa --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueRoomOuterClass.java @@ -0,0 +1,647 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; + +public final class RogueRoomOuterClass { + /** + * Protobuf type {@code RogueRoom} + */ + public static final class RogueRoom extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 IJHALNNLEPK = 4; + */ + private int iJHALNNLEPK; + + /** + * optional uint32 room_id = 9; + */ + private int roomId; + + /** + * optional uint32 site_id = 15; + */ + private int siteId; + + /** + * optional .RogueRoomStatus ODDKCLGJCGL = 5; + */ + private int oDDKCLGJCGL; + + /** + * optional .RogueRoomStatus room_status = 14; + */ + private int roomStatus; + + private RogueRoom() { + } + + /** + * @return a new empty instance of {@code RogueRoom} + */ + public static RogueRoom newInstance() { + return new RogueRoom(); + } + + /** + * optional uint32 IJHALNNLEPK = 4; + * @return whether the iJHALNNLEPK field is set + */ + public boolean hasIJHALNNLEPK() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 IJHALNNLEPK = 4; + * @return this + */ + public RogueRoom clearIJHALNNLEPK() { + bitField0_ &= ~0x00000001; + iJHALNNLEPK = 0; + return this; + } + + /** + * optional uint32 IJHALNNLEPK = 4; + * @return the iJHALNNLEPK + */ + public int getIJHALNNLEPK() { + return iJHALNNLEPK; + } + + /** + * optional uint32 IJHALNNLEPK = 4; + * @param value the iJHALNNLEPK to set + * @return this + */ + public RogueRoom setIJHALNNLEPK(final int value) { + bitField0_ |= 0x00000001; + iJHALNNLEPK = value; + return this; + } + + /** + * optional uint32 room_id = 9; + * @return whether the roomId field is set + */ + public boolean hasRoomId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 room_id = 9; + * @return this + */ + public RogueRoom clearRoomId() { + bitField0_ &= ~0x00000002; + roomId = 0; + return this; + } + + /** + * optional uint32 room_id = 9; + * @return the roomId + */ + public int getRoomId() { + return roomId; + } + + /** + * optional uint32 room_id = 9; + * @param value the roomId to set + * @return this + */ + public RogueRoom setRoomId(final int value) { + bitField0_ |= 0x00000002; + roomId = value; + return this; + } + + /** + * optional uint32 site_id = 15; + * @return whether the siteId field is set + */ + public boolean hasSiteId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 site_id = 15; + * @return this + */ + public RogueRoom clearSiteId() { + bitField0_ &= ~0x00000004; + siteId = 0; + return this; + } + + /** + * optional uint32 site_id = 15; + * @return the siteId + */ + public int getSiteId() { + return siteId; + } + + /** + * optional uint32 site_id = 15; + * @param value the siteId to set + * @return this + */ + public RogueRoom setSiteId(final int value) { + bitField0_ |= 0x00000004; + siteId = value; + return this; + } + + /** + * optional .RogueRoomStatus ODDKCLGJCGL = 5; + * @return whether the oDDKCLGJCGL field is set + */ + public boolean hasODDKCLGJCGL() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .RogueRoomStatus ODDKCLGJCGL = 5; + * @return this + */ + public RogueRoom clearODDKCLGJCGL() { + bitField0_ &= ~0x00000008; + oDDKCLGJCGL = 0; + return this; + } + + /** + * optional .RogueRoomStatus ODDKCLGJCGL = 5; + * @return the oDDKCLGJCGL + */ + public RogueRoomStatusOuterClass.RogueRoomStatus getODDKCLGJCGL() { + return RogueRoomStatusOuterClass.RogueRoomStatus.forNumber(oDDKCLGJCGL); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link RogueRoom#getODDKCLGJCGL()}.getNumber(). + * + * @return numeric wire representation + */ + public int getODDKCLGJCGLValue() { + return oDDKCLGJCGL; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link RogueRoomStatusOuterClass.RogueRoomStatus}. Setting an invalid value + * can cause {@link RogueRoom#getODDKCLGJCGL()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public RogueRoom setODDKCLGJCGLValue(final int value) { + bitField0_ |= 0x00000008; + oDDKCLGJCGL = value; + return this; + } + + /** + * optional .RogueRoomStatus ODDKCLGJCGL = 5; + * @param value the oDDKCLGJCGL to set + * @return this + */ + public RogueRoom setODDKCLGJCGL(final RogueRoomStatusOuterClass.RogueRoomStatus value) { + bitField0_ |= 0x00000008; + oDDKCLGJCGL = value.getNumber(); + return this; + } + + /** + * optional .RogueRoomStatus room_status = 14; + * @return whether the roomStatus field is set + */ + public boolean hasRoomStatus() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional .RogueRoomStatus room_status = 14; + * @return this + */ + public RogueRoom clearRoomStatus() { + bitField0_ &= ~0x00000010; + roomStatus = 0; + return this; + } + + /** + * optional .RogueRoomStatus room_status = 14; + * @return the roomStatus + */ + public RogueRoomStatusOuterClass.RogueRoomStatus getRoomStatus() { + return RogueRoomStatusOuterClass.RogueRoomStatus.forNumber(roomStatus); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link RogueRoom#getRoomStatus()}.getNumber(). + * + * @return numeric wire representation + */ + public int getRoomStatusValue() { + return roomStatus; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link RogueRoomStatusOuterClass.RogueRoomStatus}. Setting an invalid value + * can cause {@link RogueRoom#getRoomStatus()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public RogueRoom setRoomStatusValue(final int value) { + bitField0_ |= 0x00000010; + roomStatus = value; + return this; + } + + /** + * optional .RogueRoomStatus room_status = 14; + * @param value the roomStatus to set + * @return this + */ + public RogueRoom setRoomStatus(final RogueRoomStatusOuterClass.RogueRoomStatus value) { + bitField0_ |= 0x00000010; + roomStatus = value.getNumber(); + return this; + } + + @Override + public RogueRoom copyFrom(final RogueRoom other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + iJHALNNLEPK = other.iJHALNNLEPK; + roomId = other.roomId; + siteId = other.siteId; + oDDKCLGJCGL = other.oDDKCLGJCGL; + roomStatus = other.roomStatus; + } + return this; + } + + @Override + public RogueRoom mergeFrom(final RogueRoom other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasIJHALNNLEPK()) { + setIJHALNNLEPK(other.iJHALNNLEPK); + } + if (other.hasRoomId()) { + setRoomId(other.roomId); + } + if (other.hasSiteId()) { + setSiteId(other.siteId); + } + if (other.hasODDKCLGJCGL()) { + setODDKCLGJCGLValue(other.oDDKCLGJCGL); + } + if (other.hasRoomStatus()) { + setRoomStatusValue(other.roomStatus); + } + return this; + } + + @Override + public RogueRoom clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + iJHALNNLEPK = 0; + roomId = 0; + siteId = 0; + oDDKCLGJCGL = 0; + roomStatus = 0; + return this; + } + + @Override + public RogueRoom clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueRoom)) { + return false; + } + RogueRoom other = (RogueRoom) o; + return bitField0_ == other.bitField0_ + && (!hasIJHALNNLEPK() || iJHALNNLEPK == other.iJHALNNLEPK) + && (!hasRoomId() || roomId == other.roomId) + && (!hasSiteId() || siteId == other.siteId) + && (!hasODDKCLGJCGL() || oDDKCLGJCGL == other.oDDKCLGJCGL) + && (!hasRoomStatus() || roomStatus == other.roomStatus); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(iJHALNNLEPK); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(roomId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(siteId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 40); + output.writeEnumNoTag(oDDKCLGJCGL); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 112); + output.writeEnumNoTag(roomStatus); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(iJHALNNLEPK); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(roomId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(siteId); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(oDDKCLGJCGL); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(roomStatus); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueRoom mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 32: { + // iJHALNNLEPK + iJHALNNLEPK = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // roomId + roomId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // siteId + siteId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // oDDKCLGJCGL + final int value = input.readInt32(); + if (RogueRoomStatusOuterClass.RogueRoomStatus.forNumber(value) != null) { + oDDKCLGJCGL = value; + bitField0_ |= 0x00000008; + } + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // roomStatus + final int value = input.readInt32(); + if (RogueRoomStatusOuterClass.RogueRoomStatus.forNumber(value) != null) { + roomStatus = value; + 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.iJHALNNLEPK, iJHALNNLEPK); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.roomId, roomId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.siteId, siteId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeEnum(FieldNames.oDDKCLGJCGL, oDDKCLGJCGL, RogueRoomStatusOuterClass.RogueRoomStatus.converter()); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeEnum(FieldNames.roomStatus, roomStatus, RogueRoomStatusOuterClass.RogueRoomStatus.converter()); + } + output.endObject(); + } + + @Override + public RogueRoom mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1673503526: { + if (input.isAtField(FieldNames.iJHALNNLEPK)) { + if (!input.trySkipNullValue()) { + iJHALNNLEPK = 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 -902090046: + case 2100001043: { + if (input.isAtField(FieldNames.siteId)) { + if (!input.trySkipNullValue()) { + siteId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 87545152: { + if (input.isAtField(FieldNames.oDDKCLGJCGL)) { + if (!input.trySkipNullValue()) { + final RogueRoomStatusOuterClass.RogueRoomStatus value = input.readEnum(RogueRoomStatusOuterClass.RogueRoomStatus.converter()); + if (value != null) { + oDDKCLGJCGL = value.getNumber(); + bitField0_ |= 0x00000008; + } else { + input.skipUnknownEnumValue(); + } + } + } 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_ |= 0x00000010; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueRoom clone() { + return new RogueRoom().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueRoom parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueRoom(), data).checkInitialized(); + } + + public static RogueRoom parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueRoom(), input).checkInitialized(); + } + + public static RogueRoom parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueRoom(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueRoom messages + */ + public static MessageFactory getFactory() { + return RogueRoomFactory.INSTANCE; + } + + private enum RogueRoomFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueRoom create() { + return RogueRoom.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName iJHALNNLEPK = FieldName.forField("IJHALNNLEPK"); + + static final FieldName roomId = FieldName.forField("roomId", "room_id"); + + static final FieldName siteId = FieldName.forField("siteId", "site_id"); + + static final FieldName oDDKCLGJCGL = FieldName.forField("ODDKCLGJCGL"); + + static final FieldName roomStatus = FieldName.forField("roomStatus", "room_status"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueRoomStatusOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueRoomStatusOuterClass.java new file mode 100644 index 0000000..5011a2a --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueRoomStatusOuterClass.java @@ -0,0 +1,158 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import us.hebi.quickbuf.ProtoEnum; +import us.hebi.quickbuf.ProtoUtil; + +public final class RogueRoomStatusOuterClass { + /** + * Protobuf enum {@code RogueRoomStatus} + */ + public enum RogueRoomStatus implements ProtoEnum { + /** + * ROGUE_ROOM_STATUS_NONE = 0; + */ + ROGUE_ROOM_STATUS_NONE("ROGUE_ROOM_STATUS_NONE", 0), + + /** + * ROGUE_ROOM_STATUS_LOCK = 1; + */ + ROGUE_ROOM_STATUS_LOCK("ROGUE_ROOM_STATUS_LOCK", 1), + + /** + * ROGUE_ROOM_STATUS_UNLOCK = 2; + */ + ROGUE_ROOM_STATUS_UNLOCK("ROGUE_ROOM_STATUS_UNLOCK", 2), + + /** + * ROGUE_ROOM_STATUS_PLAY = 3; + */ + ROGUE_ROOM_STATUS_PLAY("ROGUE_ROOM_STATUS_PLAY", 3), + + /** + * ROGUE_ROOM_STATUS_FINISH = 4; + */ + ROGUE_ROOM_STATUS_FINISH("ROGUE_ROOM_STATUS_FINISH", 4); + + /** + * ROGUE_ROOM_STATUS_NONE = 0; + */ + public static final int ROGUE_ROOM_STATUS_NONE_VALUE = 0; + + /** + * ROGUE_ROOM_STATUS_LOCK = 1; + */ + public static final int ROGUE_ROOM_STATUS_LOCK_VALUE = 1; + + /** + * ROGUE_ROOM_STATUS_UNLOCK = 2; + */ + public static final int ROGUE_ROOM_STATUS_UNLOCK_VALUE = 2; + + /** + * ROGUE_ROOM_STATUS_PLAY = 3; + */ + public static final int ROGUE_ROOM_STATUS_PLAY_VALUE = 3; + + /** + * ROGUE_ROOM_STATUS_FINISH = 4; + */ + public static final int ROGUE_ROOM_STATUS_FINISH_VALUE = 4; + + private final String name; + + private final int number; + + private RogueRoomStatus(String name, int number) { + this.name = name; + this.number = number; + } + + /** + * @return the string representation of enum entry + */ + @Override + public String getName() { + return name; + } + + /** + * @return the numeric wire value of this enum entry + */ + @Override + public int getNumber() { + return number; + } + + /** + * @return a converter that maps between this enum's numeric and text representations + */ + public static ProtoEnum.EnumConverter converter() { + return RogueRoomStatusConverter.INSTANCE; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value, or null if unknown. + */ + public static RogueRoomStatus forNumber(int value) { + return RogueRoomStatusConverter.INSTANCE.forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @param other Fallback value in case the value is not known. + * @return The enum associated with the given numeric wire value, or the fallback value if unknown. + */ + public static RogueRoomStatus forNumberOr(int number, RogueRoomStatus other) { + RogueRoomStatus value = forNumber(number); + return value == null ? other : value; + } + + enum RogueRoomStatusConverter implements ProtoEnum.EnumConverter { + INSTANCE; + + private static final RogueRoomStatus[] lookup = new RogueRoomStatus[5]; + + static { + lookup[0] = ROGUE_ROOM_STATUS_NONE; + lookup[1] = ROGUE_ROOM_STATUS_LOCK; + lookup[2] = ROGUE_ROOM_STATUS_UNLOCK; + lookup[3] = ROGUE_ROOM_STATUS_PLAY; + lookup[4] = ROGUE_ROOM_STATUS_FINISH; + } + + @Override + public final RogueRoomStatus forNumber(final int value) { + if (value >= 0 && value < lookup.length) { + return lookup[value]; + } + return null; + } + + @Override + public final RogueRoomStatus forName(final CharSequence value) { + if (value.length() == 22) { + if (ProtoUtil.isEqual("ROGUE_ROOM_STATUS_NONE", value)) { + return ROGUE_ROOM_STATUS_NONE; + } + if (ProtoUtil.isEqual("ROGUE_ROOM_STATUS_LOCK", value)) { + return ROGUE_ROOM_STATUS_LOCK; + } + if (ProtoUtil.isEqual("ROGUE_ROOM_STATUS_PLAY", value)) { + return ROGUE_ROOM_STATUS_PLAY; + } + } + if (value.length() == 24) { + if (ProtoUtil.isEqual("ROGUE_ROOM_STATUS_UNLOCK", value)) { + return ROGUE_ROOM_STATUS_UNLOCK; + } + if (ProtoUtil.isEqual("ROGUE_ROOM_STATUS_FINISH", value)) { + return ROGUE_ROOM_STATUS_FINISH; + } + } + return null; + } + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueSeasonInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueSeasonInfoOuterClass.java index ea83952..6b2019e 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueSeasonInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RogueSeasonInfoOuterClass.java @@ -29,9 +29,9 @@ public final class RogueSeasonInfoOuterClass { private long beginTime; /** - * optional uint32 rogue_season_id = 7; + * optional uint32 season_id = 7; */ - private int rogueSeasonId; + private int seasonId; private RogueSeasonInfo() { } @@ -118,39 +118,39 @@ public final class RogueSeasonInfoOuterClass { } /** - * optional uint32 rogue_season_id = 7; - * @return whether the rogueSeasonId field is set + * optional uint32 season_id = 7; + * @return whether the seasonId field is set */ - public boolean hasRogueSeasonId() { + public boolean hasSeasonId() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 rogue_season_id = 7; + * optional uint32 season_id = 7; * @return this */ - public RogueSeasonInfo clearRogueSeasonId() { + public RogueSeasonInfo clearSeasonId() { bitField0_ &= ~0x00000004; - rogueSeasonId = 0; + seasonId = 0; return this; } /** - * optional uint32 rogue_season_id = 7; - * @return the rogueSeasonId + * optional uint32 season_id = 7; + * @return the seasonId */ - public int getRogueSeasonId() { - return rogueSeasonId; + public int getSeasonId() { + return seasonId; } /** - * optional uint32 rogue_season_id = 7; - * @param value the rogueSeasonId to set + * optional uint32 season_id = 7; + * @param value the seasonId to set * @return this */ - public RogueSeasonInfo setRogueSeasonId(final int value) { + public RogueSeasonInfo setSeasonId(final int value) { bitField0_ |= 0x00000004; - rogueSeasonId = value; + seasonId = value; return this; } @@ -161,7 +161,7 @@ public final class RogueSeasonInfoOuterClass { bitField0_ = other.bitField0_; endTime = other.endTime; beginTime = other.beginTime; - rogueSeasonId = other.rogueSeasonId; + seasonId = other.seasonId; } return this; } @@ -178,8 +178,8 @@ public final class RogueSeasonInfoOuterClass { if (other.hasBeginTime()) { setBeginTime(other.beginTime); } - if (other.hasRogueSeasonId()) { - setRogueSeasonId(other.rogueSeasonId); + if (other.hasSeasonId()) { + setSeasonId(other.seasonId); } return this; } @@ -193,7 +193,7 @@ public final class RogueSeasonInfoOuterClass { bitField0_ = 0; endTime = 0L; beginTime = 0L; - rogueSeasonId = 0; + seasonId = 0; return this; } @@ -219,7 +219,7 @@ public final class RogueSeasonInfoOuterClass { return bitField0_ == other.bitField0_ && (!hasEndTime() || endTime == other.endTime) && (!hasBeginTime() || beginTime == other.beginTime) - && (!hasRogueSeasonId() || rogueSeasonId == other.rogueSeasonId); + && (!hasSeasonId() || seasonId == other.seasonId); } @Override @@ -234,7 +234,7 @@ public final class RogueSeasonInfoOuterClass { } if ((bitField0_ & 0x00000004) != 0) { output.writeRawByte((byte) 56); - output.writeUInt32NoTag(rogueSeasonId); + output.writeUInt32NoTag(seasonId); } } @@ -248,7 +248,7 @@ public final class RogueSeasonInfoOuterClass { size += 1 + ProtoSink.computeInt64SizeNoTag(beginTime); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(rogueSeasonId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(seasonId); } return size; } @@ -279,8 +279,8 @@ public final class RogueSeasonInfoOuterClass { } } case 56: { - // rogueSeasonId - rogueSeasonId = input.readUInt32(); + // seasonId + seasonId = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 0) { @@ -311,7 +311,7 @@ public final class RogueSeasonInfoOuterClass { output.writeInt64(FieldNames.beginTime, beginTime); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.rogueSeasonId, rogueSeasonId); + output.writeUInt32(FieldNames.seasonId, seasonId); } output.endObject(); } @@ -347,11 +347,11 @@ public final class RogueSeasonInfoOuterClass { } break; } - case -774262952: - case 1067542482: { - if (input.isAtField(FieldNames.rogueSeasonId)) { + case 889931614: + case 1818097655: { + if (input.isAtField(FieldNames.seasonId)) { if (!input.trySkipNullValue()) { - rogueSeasonId = input.readUInt32(); + seasonId = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -416,7 +416,7 @@ public final class RogueSeasonInfoOuterClass { static final FieldName beginTime = FieldName.forField("beginTime", "begin_time"); - static final FieldName rogueSeasonId = FieldName.forField("rogueSeasonId", "rogue_season_id"); + static final FieldName seasonId = FieldName.forField("seasonId", "season_id"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/SceneGroupStateOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneGroupStateOuterClass.java new file mode 100644 index 0000000..751dc6a --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SceneGroupStateOuterClass.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 SceneGroupStateOuterClass { + /** + * Protobuf type {@code SceneGroupState} + */ + public static final class SceneGroupState extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 group_id = 9; + */ + private int groupId; + + /** + * optional uint32 state = 12; + */ + private int state; + + /** + * optional bool is_default = 7; + */ + private boolean isDefault; + + private SceneGroupState() { + } + + /** + * @return a new empty instance of {@code SceneGroupState} + */ + public static SceneGroupState newInstance() { + return new SceneGroupState(); + } + + /** + * optional uint32 group_id = 9; + * @return whether the groupId field is set + */ + public boolean hasGroupId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 group_id = 9; + * @return this + */ + public SceneGroupState clearGroupId() { + bitField0_ &= ~0x00000001; + groupId = 0; + return this; + } + + /** + * optional uint32 group_id = 9; + * @return the groupId + */ + public int getGroupId() { + return groupId; + } + + /** + * optional uint32 group_id = 9; + * @param value the groupId to set + * @return this + */ + public SceneGroupState setGroupId(final int value) { + bitField0_ |= 0x00000001; + groupId = value; + return this; + } + + /** + * optional uint32 state = 12; + * @return whether the state field is set + */ + public boolean hasState() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 state = 12; + * @return this + */ + public SceneGroupState clearState() { + bitField0_ &= ~0x00000002; + state = 0; + return this; + } + + /** + * optional uint32 state = 12; + * @return the state + */ + public int getState() { + return state; + } + + /** + * optional uint32 state = 12; + * @param value the state to set + * @return this + */ + public SceneGroupState setState(final int value) { + bitField0_ |= 0x00000002; + state = value; + return this; + } + + /** + * optional bool is_default = 7; + * @return whether the isDefault field is set + */ + public boolean hasIsDefault() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bool is_default = 7; + * @return this + */ + public SceneGroupState clearIsDefault() { + bitField0_ &= ~0x00000004; + isDefault = false; + return this; + } + + /** + * optional bool is_default = 7; + * @return the isDefault + */ + public boolean getIsDefault() { + return isDefault; + } + + /** + * optional bool is_default = 7; + * @param value the isDefault to set + * @return this + */ + public SceneGroupState setIsDefault(final boolean value) { + bitField0_ |= 0x00000004; + isDefault = value; + return this; + } + + @Override + public SceneGroupState copyFrom(final SceneGroupState other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + groupId = other.groupId; + state = other.state; + isDefault = other.isDefault; + } + return this; + } + + @Override + public SceneGroupState mergeFrom(final SceneGroupState other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasGroupId()) { + setGroupId(other.groupId); + } + if (other.hasState()) { + setState(other.state); + } + if (other.hasIsDefault()) { + setIsDefault(other.isDefault); + } + return this; + } + + @Override + public SceneGroupState clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + groupId = 0; + state = 0; + isDefault = false; + return this; + } + + @Override + public SceneGroupState 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 SceneGroupState)) { + return false; + } + SceneGroupState other = (SceneGroupState) o; + return bitField0_ == other.bitField0_ + && (!hasGroupId() || groupId == other.groupId) + && (!hasState() || state == other.state) + && (!hasIsDefault() || isDefault == other.isDefault); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(groupId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(state); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 56); + output.writeBoolNoTag(isDefault); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(state); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2; + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SceneGroupState mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 72: { + // groupId + groupId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // state + state = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // isDefault + isDefault = 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.groupId, groupId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.state, state); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBool(FieldNames.isDefault, isDefault); + } + output.endObject(); + } + + @Override + public SceneGroupState mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 293428218: + case 506361563: { + if (input.isAtField(FieldNames.groupId)) { + if (!input.trySkipNullValue()) { + groupId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 109757585: { + if (input.isAtField(FieldNames.state)) { + if (!input.trySkipNullValue()) { + state = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 965025207: + case -1249853396: { + if (input.isAtField(FieldNames.isDefault)) { + if (!input.trySkipNullValue()) { + isDefault = input.readBool(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SceneGroupState clone() { + return new SceneGroupState().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SceneGroupState parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SceneGroupState(), data).checkInitialized(); + } + + public static SceneGroupState parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SceneGroupState(), input).checkInitialized(); + } + + public static SceneGroupState parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SceneGroupState(), input).checkInitialized(); + } + + /** + * @return factory for creating SceneGroupState messages + */ + public static MessageFactory getFactory() { + return SceneGroupStateFactory.INSTANCE; + } + + private enum SceneGroupStateFactory implements MessageFactory { + INSTANCE; + + @Override + public SceneGroupState create() { + return SceneGroupState.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName groupId = FieldName.forField("groupId", "group_id"); + + static final FieldName state = FieldName.forField("state"); + + static final FieldName isDefault = FieldName.forField("isDefault", "is_default"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SceneInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneInfoOuterClass.java index 777a301..533b6f5 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneInfoOuterClass.java @@ -10,6 +10,7 @@ import us.hebi.quickbuf.MessageFactory; import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedInt; import us.hebi.quickbuf.RepeatedMessage; public final class SceneInfoOuterClass { @@ -54,6 +55,11 @@ public final class SceneInfoOuterClass { */ private int entryId; + /** + * repeated uint32 JBDDBBAMMNH = 10; + */ + private final RepeatedInt jBDDBBAMMNH = RepeatedInt.newEmptyInstance(); + /** * repeated .SceneEntityInfo entity_list = 9; */ @@ -64,6 +70,11 @@ public final class SceneInfoOuterClass { */ private final RepeatedMessage entityGroupList = RepeatedMessage.newEmptyInstance(SceneEntityGroupInfoOuterClass.SceneEntityGroupInfo.getFactory()); + /** + * repeated .SceneGroupState group_state_list = 1840; + */ + private final RepeatedMessage groupStateList = RepeatedMessage.newEmptyInstance(SceneGroupStateOuterClass.SceneGroupState.getFactory()); + private SceneInfo() { } @@ -333,12 +344,80 @@ public final class SceneInfoOuterClass { return this; } + /** + * repeated uint32 JBDDBBAMMNH = 10; + * @return whether the jBDDBBAMMNH field is set + */ + public boolean hasJBDDBBAMMNH() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * repeated uint32 JBDDBBAMMNH = 10; + * @return this + */ + public SceneInfo clearJBDDBBAMMNH() { + bitField0_ &= ~0x00000080; + jBDDBBAMMNH.clear(); + return this; + } + + /** + * repeated uint32 JBDDBBAMMNH = 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 #getMutableJBDDBBAMMNH()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getJBDDBBAMMNH() { + return jBDDBBAMMNH; + } + + /** + * repeated uint32 JBDDBBAMMNH = 10; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedInt getMutableJBDDBBAMMNH() { + bitField0_ |= 0x00000080; + return jBDDBBAMMNH; + } + + /** + * repeated uint32 JBDDBBAMMNH = 10; + * @param value the jBDDBBAMMNH to add + * @return this + */ + public SceneInfo addJBDDBBAMMNH(final int value) { + bitField0_ |= 0x00000080; + jBDDBBAMMNH.add(value); + return this; + } + + /** + * repeated uint32 JBDDBBAMMNH = 10; + * @param values the jBDDBBAMMNH to add + * @return this + */ + public SceneInfo addAllJBDDBBAMMNH(final int... values) { + bitField0_ |= 0x00000080; + jBDDBBAMMNH.addAll(values); + return this; + } + /** * repeated .SceneEntityInfo entity_list = 9; * @return whether the entityList field is set */ public boolean hasEntityList() { - return (bitField0_ & 0x00000080) != 0; + return (bitField0_ & 0x00000100) != 0; } /** @@ -346,7 +425,7 @@ public final class SceneInfoOuterClass { * @return this */ public SceneInfo clearEntityList() { - bitField0_ &= ~0x00000080; + bitField0_ &= ~0x00000100; entityList.clear(); return this; } @@ -375,7 +454,7 @@ public final class SceneInfoOuterClass { * @return internal storage object for modifications */ public RepeatedMessage getMutableEntityList() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; return entityList; } @@ -385,7 +464,7 @@ public final class SceneInfoOuterClass { * @return this */ public SceneInfo addEntityList(final SceneEntityInfoOuterClass.SceneEntityInfo value) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; entityList.add(value); return this; } @@ -396,7 +475,7 @@ public final class SceneInfoOuterClass { * @return this */ public SceneInfo addAllEntityList(final SceneEntityInfoOuterClass.SceneEntityInfo... values) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; entityList.addAll(values); return this; } @@ -406,7 +485,7 @@ public final class SceneInfoOuterClass { * @return whether the entityGroupList field is set */ public boolean hasEntityGroupList() { - return (bitField0_ & 0x00000100) != 0; + return (bitField0_ & 0x00000200) != 0; } /** @@ -414,7 +493,7 @@ public final class SceneInfoOuterClass { * @return this */ public SceneInfo clearEntityGroupList() { - bitField0_ &= ~0x00000100; + bitField0_ &= ~0x00000200; entityGroupList.clear(); return this; } @@ -445,7 +524,7 @@ public final class SceneInfoOuterClass { */ public RepeatedMessage getMutableEntityGroupList( ) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; return entityGroupList; } @@ -456,7 +535,7 @@ public final class SceneInfoOuterClass { */ public SceneInfo addEntityGroupList( final SceneEntityGroupInfoOuterClass.SceneEntityGroupInfo value) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; entityGroupList.add(value); return this; } @@ -468,11 +547,80 @@ public final class SceneInfoOuterClass { */ public SceneInfo addAllEntityGroupList( final SceneEntityGroupInfoOuterClass.SceneEntityGroupInfo... values) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; entityGroupList.addAll(values); return this; } + /** + * repeated .SceneGroupState group_state_list = 1840; + * @return whether the groupStateList field is set + */ + public boolean hasGroupStateList() { + return (bitField0_ & 0x00000400) != 0; + } + + /** + * repeated .SceneGroupState group_state_list = 1840; + * @return this + */ + public SceneInfo clearGroupStateList() { + bitField0_ &= ~0x00000400; + groupStateList.clear(); + return this; + } + + /** + * repeated .SceneGroupState group_state_list = 1840; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableGroupStateList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getGroupStateList() { + return groupStateList; + } + + /** + * repeated .SceneGroupState group_state_list = 1840; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableGroupStateList() { + bitField0_ |= 0x00000400; + return groupStateList; + } + + /** + * repeated .SceneGroupState group_state_list = 1840; + * @param value the groupStateList to add + * @return this + */ + public SceneInfo addGroupStateList(final SceneGroupStateOuterClass.SceneGroupState value) { + bitField0_ |= 0x00000400; + groupStateList.add(value); + return this; + } + + /** + * repeated .SceneGroupState group_state_list = 1840; + * @param values the groupStateList to add + * @return this + */ + public SceneInfo addAllGroupStateList( + final SceneGroupStateOuterClass.SceneGroupState... values) { + bitField0_ |= 0x00000400; + groupStateList.addAll(values); + return this; + } + @Override public SceneInfo copyFrom(final SceneInfo other) { cachedSize = other.cachedSize; @@ -485,8 +633,10 @@ public final class SceneInfoOuterClass { floorId = other.floorId; clientPosVersion = other.clientPosVersion; entryId = other.entryId; + jBDDBBAMMNH.copyFrom(other.jBDDBBAMMNH); entityList.copyFrom(other.entityList); entityGroupList.copyFrom(other.entityGroupList); + groupStateList.copyFrom(other.groupStateList); } return this; } @@ -518,12 +668,18 @@ public final class SceneInfoOuterClass { if (other.hasEntryId()) { setEntryId(other.entryId); } + if (other.hasJBDDBBAMMNH()) { + getMutableJBDDBBAMMNH().addAll(other.jBDDBBAMMNH); + } if (other.hasEntityList()) { getMutableEntityList().addAll(other.entityList); } if (other.hasEntityGroupList()) { getMutableEntityGroupList().addAll(other.entityGroupList); } + if (other.hasGroupStateList()) { + getMutableGroupStateList().addAll(other.groupStateList); + } return this; } @@ -541,8 +697,10 @@ public final class SceneInfoOuterClass { floorId = 0; clientPosVersion = 0; entryId = 0; + jBDDBBAMMNH.clear(); entityList.clear(); entityGroupList.clear(); + groupStateList.clear(); return this; } @@ -553,8 +711,10 @@ public final class SceneInfoOuterClass { } cachedSize = -1; bitField0_ = 0; + jBDDBBAMMNH.clear(); entityList.clearQuick(); entityGroupList.clearQuick(); + groupStateList.clearQuick(); return this; } @@ -575,8 +735,10 @@ public final class SceneInfoOuterClass { && (!hasFloorId() || floorId == other.floorId) && (!hasClientPosVersion() || clientPosVersion == other.clientPosVersion) && (!hasEntryId() || entryId == other.entryId) + && (!hasJBDDBBAMMNH() || jBDDBBAMMNH.equals(other.jBDDBBAMMNH)) && (!hasEntityList() || entityList.equals(other.entityList)) - && (!hasEntityGroupList() || entityGroupList.equals(other.entityGroupList)); + && (!hasEntityGroupList() || entityGroupList.equals(other.entityGroupList)) + && (!hasGroupStateList() || groupStateList.equals(other.groupStateList)); } @Override @@ -610,17 +772,29 @@ public final class SceneInfoOuterClass { output.writeUInt32NoTag(entryId); } if ((bitField0_ & 0x00000080) != 0) { + for (int i = 0; i < jBDDBBAMMNH.length(); i++) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(jBDDBBAMMNH.array()[i]); + } + } + if ((bitField0_ & 0x00000100) != 0) { for (int i = 0; i < entityList.length(); i++) { output.writeRawByte((byte) 74); output.writeMessageNoTag(entityList.get(i)); } } - if ((bitField0_ & 0x00000100) != 0) { + if ((bitField0_ & 0x00000200) != 0) { for (int i = 0; i < entityGroupList.length(); i++) { output.writeRawLittleEndian16((short) 22762); output.writeMessageNoTag(entityGroupList.get(i)); } } + if ((bitField0_ & 0x00000400) != 0) { + for (int i = 0; i < groupStateList.length(); i++) { + output.writeRawLittleEndian16((short) 29570); + output.writeMessageNoTag(groupStateList.get(i)); + } + } } @Override @@ -648,11 +822,17 @@ public final class SceneInfoOuterClass { size += 1 + ProtoSink.computeUInt32SizeNoTag(entryId); } if ((bitField0_ & 0x00000080) != 0) { - size += (1 * entityList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(entityList); + size += (1 * jBDDBBAMMNH.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(jBDDBBAMMNH); } if ((bitField0_ & 0x00000100) != 0) { + size += (1 * entityList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(entityList); + } + if ((bitField0_ & 0x00000200) != 0) { size += (2 * entityGroupList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(entityGroupList); } + if ((bitField0_ & 0x00000400) != 0) { + size += (2 * groupStateList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(groupStateList); + } return size; } @@ -722,6 +902,15 @@ public final class SceneInfoOuterClass { entryId = input.readUInt32(); bitField0_ |= 0x00000040; tag = input.readTag(); + if (tag != 82) { + break; + } + } + case 82: { + // jBDDBBAMMNH [packed=true] + input.readPackedUInt32(jBDDBBAMMNH, tag); + bitField0_ |= 0x00000080; + tag = input.readTag(); if (tag != 74) { break; } @@ -729,7 +918,7 @@ public final class SceneInfoOuterClass { case 74: { // entityList tag = input.readRepeatedMessage(entityList, tag); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; if (tag != 11370) { break; } @@ -737,7 +926,15 @@ public final class SceneInfoOuterClass { case 11370: { // entityGroupList tag = input.readRepeatedMessage(entityGroupList, tag); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; + if (tag != 14722) { + break; + } + } + case 14722: { + // groupStateList + tag = input.readRepeatedMessage(groupStateList, tag); + bitField0_ |= 0x00000400; if (tag != 0) { break; } @@ -752,6 +949,12 @@ public final class SceneInfoOuterClass { tag = input.readTag(); break; } + case 80: { + // jBDDBBAMMNH [packed=false] + tag = input.readRepeatedUInt32(jBDDBBAMMNH, tag); + bitField0_ |= 0x00000080; + break; + } } } } @@ -781,11 +984,17 @@ public final class SceneInfoOuterClass { output.writeUInt32(FieldNames.entryId, entryId); } if ((bitField0_ & 0x00000080) != 0) { - output.writeRepeatedMessage(FieldNames.entityList, entityList); + output.writeRepeatedUInt32(FieldNames.jBDDBBAMMNH, jBDDBBAMMNH); } if ((bitField0_ & 0x00000100) != 0) { + output.writeRepeatedMessage(FieldNames.entityList, entityList); + } + if ((bitField0_ & 0x00000200) != 0) { output.writeRepeatedMessage(FieldNames.entityGroupList, entityGroupList); } + if ((bitField0_ & 0x00000400) != 0) { + output.writeRepeatedMessage(FieldNames.groupStateList, groupStateList); + } output.endObject(); } @@ -880,12 +1089,23 @@ public final class SceneInfoOuterClass { } break; } + case 381386787: { + if (input.isAtField(FieldNames.jBDDBBAMMNH)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(jBDDBBAMMNH); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } case -1483251935: case 1281457018: { if (input.isAtField(FieldNames.entityList)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(entityList); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; } } else { input.skipUnknownField(); @@ -897,7 +1117,19 @@ public final class SceneInfoOuterClass { if (input.isAtField(FieldNames.entityGroupList)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(entityGroupList); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1415397648: + case 1198817612: { + if (input.isAtField(FieldNames.groupStateList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(groupStateList); + bitField0_ |= 0x00000400; } } else { input.skipUnknownField(); @@ -970,9 +1202,13 @@ public final class SceneInfoOuterClass { static final FieldName entryId = FieldName.forField("entryId", "entry_id"); + static final FieldName jBDDBBAMMNH = FieldName.forField("JBDDBBAMMNH"); + static final FieldName entityList = FieldName.forField("entityList", "entity_list"); static final FieldName entityGroupList = FieldName.forField("entityGroupList", "entity_group_list"); + + static final FieldName groupStateList = FieldName.forField("groupStateList", "group_state_list"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/StartRogueCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/StartRogueCsReqOuterClass.java new file mode 100644 index 0000000..0131703 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/StartRogueCsReqOuterClass.java @@ -0,0 +1,663 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedInt; + +public final class StartRogueCsReqOuterClass { + /** + * Protobuf type {@code StartRogueCsReq} + */ + public static final class StartRogueCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 buff_aeon_id = 2; + */ + private int buffAeonId; + + /** + * optional uint32 area_id = 6; + */ + private int areaId; + + /** + * optional uint32 COMHCIAONKJ = 14; + */ + private int cOMHCIAONKJ; + + /** + * repeated uint32 PDAANLJMPEB = 4; + */ + private final RepeatedInt pDAANLJMPEB = RepeatedInt.newEmptyInstance(); + + /** + * repeated uint32 base_avatar_id_list = 11; + */ + private final RepeatedInt baseAvatarIdList = RepeatedInt.newEmptyInstance(); + + private StartRogueCsReq() { + } + + /** + * @return a new empty instance of {@code StartRogueCsReq} + */ + public static StartRogueCsReq newInstance() { + return new StartRogueCsReq(); + } + + /** + * optional uint32 buff_aeon_id = 2; + * @return whether the buffAeonId field is set + */ + public boolean hasBuffAeonId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 buff_aeon_id = 2; + * @return this + */ + public StartRogueCsReq clearBuffAeonId() { + bitField0_ &= ~0x00000001; + buffAeonId = 0; + return this; + } + + /** + * optional uint32 buff_aeon_id = 2; + * @return the buffAeonId + */ + public int getBuffAeonId() { + return buffAeonId; + } + + /** + * optional uint32 buff_aeon_id = 2; + * @param value the buffAeonId to set + * @return this + */ + public StartRogueCsReq setBuffAeonId(final int value) { + bitField0_ |= 0x00000001; + buffAeonId = value; + return this; + } + + /** + * optional uint32 area_id = 6; + * @return whether the areaId field is set + */ + public boolean hasAreaId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 area_id = 6; + * @return this + */ + public StartRogueCsReq clearAreaId() { + bitField0_ &= ~0x00000002; + areaId = 0; + return this; + } + + /** + * optional uint32 area_id = 6; + * @return the areaId + */ + public int getAreaId() { + return areaId; + } + + /** + * optional uint32 area_id = 6; + * @param value the areaId to set + * @return this + */ + public StartRogueCsReq setAreaId(final int value) { + bitField0_ |= 0x00000002; + areaId = value; + return this; + } + + /** + * optional uint32 COMHCIAONKJ = 14; + * @return whether the cOMHCIAONKJ field is set + */ + public boolean hasCOMHCIAONKJ() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 COMHCIAONKJ = 14; + * @return this + */ + public StartRogueCsReq clearCOMHCIAONKJ() { + bitField0_ &= ~0x00000004; + cOMHCIAONKJ = 0; + return this; + } + + /** + * optional uint32 COMHCIAONKJ = 14; + * @return the cOMHCIAONKJ + */ + public int getCOMHCIAONKJ() { + return cOMHCIAONKJ; + } + + /** + * optional uint32 COMHCIAONKJ = 14; + * @param value the cOMHCIAONKJ to set + * @return this + */ + public StartRogueCsReq setCOMHCIAONKJ(final int value) { + bitField0_ |= 0x00000004; + cOMHCIAONKJ = value; + return this; + } + + /** + * repeated uint32 PDAANLJMPEB = 4; + * @return whether the pDAANLJMPEB field is set + */ + public boolean hasPDAANLJMPEB() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated uint32 PDAANLJMPEB = 4; + * @return this + */ + public StartRogueCsReq clearPDAANLJMPEB() { + bitField0_ &= ~0x00000008; + pDAANLJMPEB.clear(); + return this; + } + + /** + * repeated uint32 PDAANLJMPEB = 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 #getMutablePDAANLJMPEB()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getPDAANLJMPEB() { + return pDAANLJMPEB; + } + + /** + * repeated uint32 PDAANLJMPEB = 4; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedInt getMutablePDAANLJMPEB() { + bitField0_ |= 0x00000008; + return pDAANLJMPEB; + } + + /** + * repeated uint32 PDAANLJMPEB = 4; + * @param value the pDAANLJMPEB to add + * @return this + */ + public StartRogueCsReq addPDAANLJMPEB(final int value) { + bitField0_ |= 0x00000008; + pDAANLJMPEB.add(value); + return this; + } + + /** + * repeated uint32 PDAANLJMPEB = 4; + * @param values the pDAANLJMPEB to add + * @return this + */ + public StartRogueCsReq addAllPDAANLJMPEB(final int... values) { + bitField0_ |= 0x00000008; + pDAANLJMPEB.addAll(values); + return this; + } + + /** + * repeated uint32 base_avatar_id_list = 11; + * @return whether the baseAvatarIdList field is set + */ + public boolean hasBaseAvatarIdList() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * repeated uint32 base_avatar_id_list = 11; + * @return this + */ + public StartRogueCsReq clearBaseAvatarIdList() { + bitField0_ &= ~0x00000010; + baseAvatarIdList.clear(); + return this; + } + + /** + * 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. + * + * 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 = 11; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedInt getMutableBaseAvatarIdList() { + bitField0_ |= 0x00000010; + return baseAvatarIdList; + } + + /** + * repeated uint32 base_avatar_id_list = 11; + * @param value the baseAvatarIdList to add + * @return this + */ + public StartRogueCsReq addBaseAvatarIdList(final int value) { + bitField0_ |= 0x00000010; + baseAvatarIdList.add(value); + return this; + } + + /** + * repeated uint32 base_avatar_id_list = 11; + * @param values the baseAvatarIdList to add + * @return this + */ + public StartRogueCsReq addAllBaseAvatarIdList(final int... values) { + bitField0_ |= 0x00000010; + baseAvatarIdList.addAll(values); + return this; + } + + @Override + public StartRogueCsReq copyFrom(final StartRogueCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + buffAeonId = other.buffAeonId; + areaId = other.areaId; + cOMHCIAONKJ = other.cOMHCIAONKJ; + pDAANLJMPEB.copyFrom(other.pDAANLJMPEB); + baseAvatarIdList.copyFrom(other.baseAvatarIdList); + } + return this; + } + + @Override + public StartRogueCsReq mergeFrom(final StartRogueCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBuffAeonId()) { + setBuffAeonId(other.buffAeonId); + } + if (other.hasAreaId()) { + setAreaId(other.areaId); + } + if (other.hasCOMHCIAONKJ()) { + setCOMHCIAONKJ(other.cOMHCIAONKJ); + } + if (other.hasPDAANLJMPEB()) { + getMutablePDAANLJMPEB().addAll(other.pDAANLJMPEB); + } + if (other.hasBaseAvatarIdList()) { + getMutableBaseAvatarIdList().addAll(other.baseAvatarIdList); + } + return this; + } + + @Override + public StartRogueCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + buffAeonId = 0; + areaId = 0; + cOMHCIAONKJ = 0; + pDAANLJMPEB.clear(); + baseAvatarIdList.clear(); + return this; + } + + @Override + public StartRogueCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + pDAANLJMPEB.clear(); + baseAvatarIdList.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof StartRogueCsReq)) { + return false; + } + StartRogueCsReq other = (StartRogueCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasBuffAeonId() || buffAeonId == other.buffAeonId) + && (!hasAreaId() || areaId == other.areaId) + && (!hasCOMHCIAONKJ() || cOMHCIAONKJ == other.cOMHCIAONKJ) + && (!hasPDAANLJMPEB() || pDAANLJMPEB.equals(other.pDAANLJMPEB)) + && (!hasBaseAvatarIdList() || baseAvatarIdList.equals(other.baseAvatarIdList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(buffAeonId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(areaId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(cOMHCIAONKJ); + } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < pDAANLJMPEB.length(); i++) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(pDAANLJMPEB.array()[i]); + } + } + if ((bitField0_ & 0x00000010) != 0) { + for (int i = 0; i < baseAvatarIdList.length(); i++) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(baseAvatarIdList.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(buffAeonId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(areaId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(cOMHCIAONKJ); + } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * pDAANLJMPEB.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(pDAANLJMPEB); + } + if ((bitField0_ & 0x00000010) != 0) { + size += (1 * baseAvatarIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(baseAvatarIdList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public StartRogueCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // buffAeonId + buffAeonId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // areaId + areaId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // cOMHCIAONKJ + cOMHCIAONKJ = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // pDAANLJMPEB [packed=true] + input.readPackedUInt32(pDAANLJMPEB, tag); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 90) { + break; + } + } + case 90: { + // baseAvatarIdList [packed=true] + input.readPackedUInt32(baseAvatarIdList, tag); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 32: { + // pDAANLJMPEB [packed=false] + tag = input.readRepeatedUInt32(pDAANLJMPEB, tag); + bitField0_ |= 0x00000008; + break; + } + case 88: { + // baseAvatarIdList [packed=false] + tag = input.readRepeatedUInt32(baseAvatarIdList, tag); + bitField0_ |= 0x00000010; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.buffAeonId, buffAeonId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.areaId, areaId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.cOMHCIAONKJ, cOMHCIAONKJ); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedUInt32(FieldNames.pDAANLJMPEB, pDAANLJMPEB); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRepeatedUInt32(FieldNames.baseAvatarIdList, baseAvatarIdList); + } + output.endObject(); + } + + @Override + public StartRogueCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 864413617: + case -1316781589: { + if (input.isAtField(FieldNames.buffAeonId)) { + if (!input.trySkipNullValue()) { + buffAeonId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1409553784: + case -746472947: { + if (input.isAtField(FieldNames.areaId)) { + if (!input.trySkipNullValue()) { + areaId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2097477198: { + if (input.isAtField(FieldNames.cOMHCIAONKJ)) { + if (!input.trySkipNullValue()) { + cOMHCIAONKJ = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 345233976: { + if (input.isAtField(FieldNames.pDAANLJMPEB)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(pDAANLJMPEB); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1212654461: + case 914628490: { + if (input.isAtField(FieldNames.baseAvatarIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(baseAvatarIdList); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public StartRogueCsReq clone() { + return new StartRogueCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static StartRogueCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new StartRogueCsReq(), data).checkInitialized(); + } + + public static StartRogueCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new StartRogueCsReq(), input).checkInitialized(); + } + + public static StartRogueCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new StartRogueCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating StartRogueCsReq messages + */ + public static MessageFactory getFactory() { + return StartRogueCsReqFactory.INSTANCE; + } + + private enum StartRogueCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public StartRogueCsReq create() { + return StartRogueCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName buffAeonId = FieldName.forField("buffAeonId", "buff_aeon_id"); + + static final FieldName areaId = FieldName.forField("areaId", "area_id"); + + static final FieldName cOMHCIAONKJ = FieldName.forField("COMHCIAONKJ"); + + static final FieldName pDAANLJMPEB = FieldName.forField("PDAANLJMPEB"); + + 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 new file mode 100644 index 0000000..16b60b3 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/StartRogueScRspOuterClass.java @@ -0,0 +1,563 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; + +public final class StartRogueScRspOuterClass { + /** + * Protobuf type {@code StartRogueScRsp} + */ + public static final class StartRogueScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 6; + */ + private int retcode; + + /** + * optional .RogueInfo rogue_info = 1; + */ + private final RogueInfoOuterClass.RogueInfo rogueInfo = RogueInfoOuterClass.RogueInfo.newInstance(); + + /** + * optional .LineupInfo lineup = 5; + */ + private final LineupInfoOuterClass.LineupInfo lineup = LineupInfoOuterClass.LineupInfo.newInstance(); + + /** + * optional .SceneInfo scene = 11; + */ + private final SceneInfoOuterClass.SceneInfo scene = SceneInfoOuterClass.SceneInfo.newInstance(); + + private StartRogueScRsp() { + } + + /** + * @return a new empty instance of {@code StartRogueScRsp} + */ + public static StartRogueScRsp newInstance() { + return new StartRogueScRsp(); + } + + /** + * optional uint32 retcode = 6; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 6; + * @return this + */ + public StartRogueScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 6; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 6; + * @param value the retcode to set + * @return this + */ + public StartRogueScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional .RogueInfo rogue_info = 1; + * @return whether the rogueInfo field is set + */ + public boolean hasRogueInfo() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .RogueInfo rogue_info = 1; + * @return this + */ + public StartRogueScRsp clearRogueInfo() { + bitField0_ &= ~0x00000002; + rogueInfo.clear(); + return this; + } + + /** + * optional .RogueInfo rogue_info = 1; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableRogueInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueInfoOuterClass.RogueInfo getRogueInfo() { + return rogueInfo; + } + + /** + * optional .RogueInfo rogue_info = 1; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RogueInfoOuterClass.RogueInfo getMutableRogueInfo() { + bitField0_ |= 0x00000002; + return rogueInfo; + } + + /** + * optional .RogueInfo rogue_info = 1; + * @param value the rogueInfo to set + * @return this + */ + public StartRogueScRsp setRogueInfo(final RogueInfoOuterClass.RogueInfo value) { + bitField0_ |= 0x00000002; + rogueInfo.copyFrom(value); + return this; + } + + /** + * optional .LineupInfo lineup = 5; + * @return whether the lineup field is set + */ + public boolean hasLineup() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .LineupInfo lineup = 5; + * @return this + */ + public StartRogueScRsp clearLineup() { + bitField0_ &= ~0x00000004; + lineup.clear(); + return this; + } + + /** + * optional .LineupInfo lineup = 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 #getMutableLineup()} if you want to modify it. + * + * @return internal storage object for reading + */ + public LineupInfoOuterClass.LineupInfo getLineup() { + return lineup; + } + + /** + * optional .LineupInfo lineup = 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 LineupInfoOuterClass.LineupInfo getMutableLineup() { + bitField0_ |= 0x00000004; + return lineup; + } + + /** + * optional .LineupInfo lineup = 5; + * @param value the lineup to set + * @return this + */ + public StartRogueScRsp setLineup(final LineupInfoOuterClass.LineupInfo value) { + bitField0_ |= 0x00000004; + lineup.copyFrom(value); + return this; + } + + /** + * optional .SceneInfo scene = 11; + * @return whether the scene field is set + */ + public boolean hasScene() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .SceneInfo scene = 11; + * @return this + */ + public StartRogueScRsp clearScene() { + bitField0_ &= ~0x00000008; + scene.clear(); + return this; + } + + /** + * optional .SceneInfo scene = 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 #getMutableScene()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SceneInfoOuterClass.SceneInfo getScene() { + return scene; + } + + /** + * optional .SceneInfo scene = 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 SceneInfoOuterClass.SceneInfo getMutableScene() { + bitField0_ |= 0x00000008; + return scene; + } + + /** + * optional .SceneInfo scene = 11; + * @param value the scene to set + * @return this + */ + public StartRogueScRsp setScene(final SceneInfoOuterClass.SceneInfo value) { + bitField0_ |= 0x00000008; + scene.copyFrom(value); + return this; + } + + @Override + public StartRogueScRsp copyFrom(final StartRogueScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + rogueInfo.copyFrom(other.rogueInfo); + lineup.copyFrom(other.lineup); + scene.copyFrom(other.scene); + } + return this; + } + + @Override + public StartRogueScRsp mergeFrom(final StartRogueScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasRogueInfo()) { + getMutableRogueInfo().mergeFrom(other.rogueInfo); + } + if (other.hasLineup()) { + getMutableLineup().mergeFrom(other.lineup); + } + if (other.hasScene()) { + getMutableScene().mergeFrom(other.scene); + } + return this; + } + + @Override + public StartRogueScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + rogueInfo.clear(); + lineup.clear(); + scene.clear(); + return this; + } + + @Override + public StartRogueScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + rogueInfo.clearQuick(); + lineup.clearQuick(); + scene.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof StartRogueScRsp)) { + return false; + } + StartRogueScRsp other = (StartRogueScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasRogueInfo() || rogueInfo.equals(other.rogueInfo)) + && (!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) 48); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(rogueInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 42); + output.writeMessageNoTag(lineup); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 90); + output.writeMessageNoTag(scene); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(rogueInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(lineup); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(scene); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public StartRogueScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 48: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // rogueInfo + input.readMessage(rogueInfo); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { + // lineup + input.readMessage(lineup); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 90) { + break; + } + } + case 90: { + // scene + input.readMessage(scene); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.rogueInfo, rogueInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.lineup, lineup); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeMessage(FieldNames.scene, scene); + } + output.endObject(); + } + + @Override + public StartRogueScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 655808936: + case -1124583437: { + if (input.isAtField(FieldNames.rogueInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(rogueInfo); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1102671473: { + if (input.isAtField(FieldNames.lineup)) { + if (!input.trySkipNullValue()) { + input.readMessage(lineup); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 109254796: { + if (input.isAtField(FieldNames.scene)) { + if (!input.trySkipNullValue()) { + input.readMessage(scene); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public StartRogueScRsp clone() { + return new StartRogueScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static StartRogueScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new StartRogueScRsp(), data).checkInitialized(); + } + + public static StartRogueScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new StartRogueScRsp(), input).checkInitialized(); + } + + public static StartRogueScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new StartRogueScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating StartRogueScRsp messages + */ + public static MessageFactory getFactory() { + return StartRogueScRspFactory.INSTANCE; + } + + private enum StartRogueScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public StartRogueScRsp create() { + return StartRogueScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName 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/SyncRogueMapRoomScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/SyncRogueMapRoomScNotifyOuterClass.java new file mode 100644 index 0000000..f222083 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SyncRogueMapRoomScNotifyOuterClass.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 SyncRogueMapRoomScNotifyOuterClass { + /** + * Protobuf type {@code SyncRogueMapRoomScNotify} + */ + public static final class SyncRogueMapRoomScNotify extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 map_id = 1; + */ + private int mapId; + + /** + * optional .RogueRoom cur_room = 13; + */ + private final RogueRoomOuterClass.RogueRoom curRoom = RogueRoomOuterClass.RogueRoom.newInstance(); + + private SyncRogueMapRoomScNotify() { + } + + /** + * @return a new empty instance of {@code SyncRogueMapRoomScNotify} + */ + public static SyncRogueMapRoomScNotify newInstance() { + return new SyncRogueMapRoomScNotify(); + } + + /** + * optional uint32 map_id = 1; + * @return whether the mapId field is set + */ + public boolean hasMapId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 map_id = 1; + * @return this + */ + public SyncRogueMapRoomScNotify clearMapId() { + bitField0_ &= ~0x00000001; + mapId = 0; + return this; + } + + /** + * optional uint32 map_id = 1; + * @return the mapId + */ + public int getMapId() { + return mapId; + } + + /** + * optional uint32 map_id = 1; + * @param value the mapId to set + * @return this + */ + public SyncRogueMapRoomScNotify setMapId(final int value) { + bitField0_ |= 0x00000001; + mapId = value; + return this; + } + + /** + * optional .RogueRoom cur_room = 13; + * @return whether the curRoom field is set + */ + public boolean hasCurRoom() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .RogueRoom cur_room = 13; + * @return this + */ + public SyncRogueMapRoomScNotify clearCurRoom() { + bitField0_ &= ~0x00000002; + curRoom.clear(); + return this; + } + + /** + * optional .RogueRoom cur_room = 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 #getMutableCurRoom()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueRoomOuterClass.RogueRoom getCurRoom() { + return curRoom; + } + + /** + * optional .RogueRoom cur_room = 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 RogueRoomOuterClass.RogueRoom getMutableCurRoom() { + bitField0_ |= 0x00000002; + return curRoom; + } + + /** + * optional .RogueRoom cur_room = 13; + * @param value the curRoom to set + * @return this + */ + public SyncRogueMapRoomScNotify setCurRoom(final RogueRoomOuterClass.RogueRoom value) { + bitField0_ |= 0x00000002; + curRoom.copyFrom(value); + return this; + } + + @Override + public SyncRogueMapRoomScNotify copyFrom(final SyncRogueMapRoomScNotify other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + mapId = other.mapId; + curRoom.copyFrom(other.curRoom); + } + return this; + } + + @Override + public SyncRogueMapRoomScNotify mergeFrom(final SyncRogueMapRoomScNotify other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasMapId()) { + setMapId(other.mapId); + } + if (other.hasCurRoom()) { + getMutableCurRoom().mergeFrom(other.curRoom); + } + return this; + } + + @Override + public SyncRogueMapRoomScNotify clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + mapId = 0; + curRoom.clear(); + return this; + } + + @Override + public SyncRogueMapRoomScNotify clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + curRoom.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SyncRogueMapRoomScNotify)) { + return false; + } + SyncRogueMapRoomScNotify other = (SyncRogueMapRoomScNotify) o; + return bitField0_ == other.bitField0_ + && (!hasMapId() || mapId == other.mapId) + && (!hasCurRoom() || curRoom.equals(other.curRoom)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(mapId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 106); + output.writeMessageNoTag(curRoom); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(mapId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(curRoom); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SyncRogueMapRoomScNotify mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // mapId + mapId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 106) { + break; + } + } + case 106: { + // curRoom + input.readMessage(curRoom); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.mapId, mapId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.curRoom, curRoom); + } + output.endObject(); + } + + @Override + public SyncRogueMapRoomScNotify mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 103663511: + case -1081377058: { + if (input.isAtField(FieldNames.mapId)) { + if (!input.trySkipNullValue()) { + mapId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1125996347: + case 558243706: { + if (input.isAtField(FieldNames.curRoom)) { + if (!input.trySkipNullValue()) { + input.readMessage(curRoom); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SyncRogueMapRoomScNotify clone() { + return new SyncRogueMapRoomScNotify().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SyncRogueMapRoomScNotify parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SyncRogueMapRoomScNotify(), data).checkInitialized(); + } + + public static SyncRogueMapRoomScNotify parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SyncRogueMapRoomScNotify(), input).checkInitialized(); + } + + public static SyncRogueMapRoomScNotify parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SyncRogueMapRoomScNotify(), input).checkInitialized(); + } + + /** + * @return factory for creating SyncRogueMapRoomScNotify messages + */ + public static MessageFactory getFactory() { + return SyncRogueMapRoomScNotifyFactory.INSTANCE; + } + + private enum SyncRogueMapRoomScNotifyFactory implements MessageFactory { + INSTANCE; + + @Override + public SyncRogueMapRoomScNotify create() { + return SyncRogueMapRoomScNotify.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName mapId = FieldName.forField("mapId", "map_id"); + + static final FieldName curRoom = FieldName.forField("curRoom", "cur_room"); + } + } +} diff --git a/src/main/java/emu/lunarcore/data/GameData.java b/src/main/java/emu/lunarcore/data/GameData.java index 13e158c..20e1b6f 100644 --- a/src/main/java/emu/lunarcore/data/GameData.java +++ b/src/main/java/emu/lunarcore/data/GameData.java @@ -28,11 +28,14 @@ public class GameData { @Getter private static Int2ObjectMap mazePlaneExcelMap = new Int2ObjectOpenHashMap<>(); @Getter private static Int2ObjectMap mapEntranceExcelMap = new Int2ObjectOpenHashMap<>(); @Getter private static Int2ObjectMap heroExcelMap = new Int2ObjectOpenHashMap<>(); + @Getter private static Int2ObjectMap shopExcelMap = new Int2ObjectOpenHashMap<>(); + @Getter private static Int2ObjectMap challengeExcelMap = new Int2ObjectOpenHashMap<>(); @Getter private static Int2ObjectMap challengeTargetExcelMap = new Int2ObjectOpenHashMap<>(); + @Getter private static Int2ObjectMap rogueAreaExcelMap = new Int2ObjectLinkedOpenHashMap<>(); @Getter private static Int2ObjectMap rogueScheduleExcelMap = new Int2ObjectOpenHashMap<>(); - @Getter private static Int2ObjectMap shopExcelMap = new Int2ObjectOpenHashMap<>(); + @Getter private static Int2ObjectMap rogueRoomExcelMap = new Int2ObjectOpenHashMap<>(); private static Int2ObjectMap avatarPromotionExcelMap = new Int2ObjectOpenHashMap<>(); private static Int2ObjectMap avatarSkillTreeExcelMap = new Int2ObjectOpenHashMap<>(); diff --git a/src/main/java/emu/lunarcore/data/GameDepot.java b/src/main/java/emu/lunarcore/data/GameDepot.java index d1fc59c..e6513da 100644 --- a/src/main/java/emu/lunarcore/data/GameDepot.java +++ b/src/main/java/emu/lunarcore/data/GameDepot.java @@ -5,16 +5,22 @@ import java.util.List; import emu.lunarcore.data.excel.RelicMainAffixExcel; import emu.lunarcore.data.excel.RelicSubAffixExcel; +import emu.lunarcore.data.excel.RogueMapExcel; import emu.lunarcore.data.excel.RogueScheduleExcel; import emu.lunarcore.util.Utils; import it.unimi.dsi.fastutil.ints.Int2ObjectMap; import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; +import lombok.Getter; // Game data that is parsed by the server goes here public class GameDepot { private static Int2ObjectMap> relicMainAffixDepot = new Int2ObjectOpenHashMap<>(); private static Int2ObjectMap> relicSubAffixDepot = new Int2ObjectOpenHashMap<>(); + @Getter + private static Int2ObjectMap rogueMapGen = new Int2ObjectOpenHashMap<>(); + private static Int2ObjectMap> rogueMapDepot = new Int2ObjectOpenHashMap<>(); + public static void addRelicMainAffix(RelicMainAffixExcel affix) { List list = relicMainAffixDepot.computeIfAbsent(affix.getGroupID(), k -> new ArrayList<>()); list.add(affix); @@ -48,4 +54,9 @@ public class GameDepot { return null; } + + public static List getRogueMapsById(int mapId) { + return rogueMapDepot.computeIfAbsent(mapId, id -> new ArrayList<>()); + } + } diff --git a/src/main/java/emu/lunarcore/data/ResourceLoader.java b/src/main/java/emu/lunarcore/data/ResourceLoader.java index ee2a03b..dd8e401 100644 --- a/src/main/java/emu/lunarcore/data/ResourceLoader.java +++ b/src/main/java/emu/lunarcore/data/ResourceLoader.java @@ -45,6 +45,8 @@ public class ResourceLoader { loadFloorInfos(); // Load maze abilities loadMazeAbilities(); + // Load rogue maps + loadRogueMapGen(); // Done loaded = true; @@ -235,4 +237,22 @@ public class ResourceLoader { // Done LunarRail.getLogger().info("Loaded " + count + " maze abilities for avatars."); } + + private static void loadRogueMapGen() { + File file = new File(LunarRail.getConfig().getDataDir() + "/RogueMapGen.json"); + if (!file.exists()) return; + + try (FileReader reader = new FileReader(file)) { + Map rogue = gson.fromJson(reader, TypeToken.getParameterized(Map.class, Integer.class, int[].class).getType()); + + for (var entry : rogue.entrySet()) { + GameDepot.getRogueMapGen().put(entry.getKey().intValue(), entry.getValue()); + } + } catch (Exception e) { + e.printStackTrace(); + } + + // Done + LunarRail.getLogger().info("Loaded rogue maps"); + } } diff --git a/src/main/java/emu/lunarcore/data/excel/MazePlaneExcel.java b/src/main/java/emu/lunarcore/data/excel/MazePlaneExcel.java index 9d02142..c286fc3 100644 --- a/src/main/java/emu/lunarcore/data/excel/MazePlaneExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/MazePlaneExcel.java @@ -1,8 +1,10 @@ package emu.lunarcore.data.excel; +import com.google.gson.annotations.SerializedName; + import emu.lunarcore.data.GameResource; import emu.lunarcore.data.ResourceType; -import emu.lunarcore.game.enums.GameModeType; +import emu.lunarcore.game.enums.PlaneType; import lombok.Getter; @Getter @@ -10,7 +12,9 @@ import lombok.Getter; public class MazePlaneExcel extends GameResource { private int PlaneID; private int WorldID; - private GameModeType PlaneType = GameModeType.Unknown; + + @SerializedName(value = "PlaneType") + private PlaneType planeType = PlaneType.Unknown; @Override public int getId() { diff --git a/src/main/java/emu/lunarcore/data/excel/RogueAreaExcel.java b/src/main/java/emu/lunarcore/data/excel/RogueAreaExcel.java index da54c9e..f9e92a2 100644 --- a/src/main/java/emu/lunarcore/data/excel/RogueAreaExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/RogueAreaExcel.java @@ -1,19 +1,35 @@ package emu.lunarcore.data.excel; +import java.util.List; + +import emu.lunarcore.data.GameDepot; import emu.lunarcore.data.GameResource; import emu.lunarcore.data.ResourceType; +import emu.lunarcore.data.ResourceType.LoadPriority; import lombok.Getter; @Getter -@ResourceType(name = {"RogueAreaConfig.json"}) +@ResourceType(name = {"RogueAreaConfig.json"}, loadPriority = LoadPriority.LOW) public class RogueAreaExcel extends GameResource { private int RogueAreaID; private int AreaProgress; private int Difficulty; + private transient int mapId; + private transient List sites; + @Override public int getId() { return RogueAreaID; } + public boolean isValid() { + return this.sites != null && this.sites.size() > 0; + } + + @Override + public void onLoad() { + this.mapId = (this.AreaProgress * 100) + this.Difficulty; + this.sites = GameDepot.getRogueMapsById(this.getMapId()); + } } diff --git a/src/main/java/emu/lunarcore/data/excel/RogueMapExcel.java b/src/main/java/emu/lunarcore/data/excel/RogueMapExcel.java new file mode 100644 index 0000000..b59cea0 --- /dev/null +++ b/src/main/java/emu/lunarcore/data/excel/RogueMapExcel.java @@ -0,0 +1,27 @@ +package emu.lunarcore.data.excel; + +import emu.lunarcore.data.GameDepot; +import emu.lunarcore.data.GameResource; +import emu.lunarcore.data.ResourceType; +import emu.lunarcore.data.ResourceType.LoadPriority; +import lombok.Getter; + +@Getter +@ResourceType(name = {"RogueMap.json"}, loadPriority = LoadPriority.HIGH) +public class RogueMapExcel extends GameResource { + private int RogueMapID; + private int SiteID; + private boolean IsStart; + private int[] NextSiteIDList; + + @Override + public int getId() { + return (RogueMapID << 8) + SiteID; + } + + @Override + public void onLoad() { + GameDepot.getRogueMapsById(this.getRogueMapID()).add(this); + } + +} diff --git a/src/main/java/emu/lunarcore/data/excel/RogueRoomExcel.java b/src/main/java/emu/lunarcore/data/excel/RogueRoomExcel.java new file mode 100644 index 0000000..89f07c4 --- /dev/null +++ b/src/main/java/emu/lunarcore/data/excel/RogueRoomExcel.java @@ -0,0 +1,24 @@ +package emu.lunarcore.data.excel; + +import java.util.Map; + +import emu.lunarcore.data.GameResource; +import emu.lunarcore.data.ResourceType; + +import lombok.Getter; + +@Getter +@ResourceType(name = {"RogueRoom.json"}) +public class RogueRoomExcel extends GameResource { + private int RogueRoomID; + private int RogueRoomType; + private int MapEntrance; + private int GroupID; + private Map GroupWithContent; + + @Override + public int getId() { + return RogueRoomID; + } + +} diff --git a/src/main/java/emu/lunarcore/game/enums/GameModeType.java b/src/main/java/emu/lunarcore/game/enums/GameModeType.java deleted file mode 100644 index 4ea63e9..0000000 --- a/src/main/java/emu/lunarcore/game/enums/GameModeType.java +++ /dev/null @@ -1,30 +0,0 @@ -package emu.lunarcore.game.enums; - -import lombok.Getter; - -@Getter -public enum GameModeType { - Unknown (0), - Town (1), - Maze (2), - Train (3), - Challenge (4), - RogueExplore (5), - RogueChallenge (6), - TownRoom (7), - Raid (8), - FarmRelic (9), - Client (10), - ChallengeActivity (11), - ActivityPunkLord (12), - RogueAeonRoom (13), - TrialActivity (14), - AetherDivide (15), - ChessRogue (16); - - private final int val; - - private GameModeType(int value) { - this.val = value; - } -} \ No newline at end of file diff --git a/src/main/java/emu/lunarcore/game/enums/PlaneType.java b/src/main/java/emu/lunarcore/game/enums/PlaneType.java new file mode 100644 index 0000000..d5eaa17 --- /dev/null +++ b/src/main/java/emu/lunarcore/game/enums/PlaneType.java @@ -0,0 +1,22 @@ +package emu.lunarcore.game.enums; + +import lombok.Getter; + +@Getter +public enum PlaneType { + Unknown (0), + Town (1), + Maze (2), + Train (3), + Challenge (4), + Rogue (5), + Raid (6), + AetherDivide (7), + TrialActivity (8); + + private final int val; + + private PlaneType(int value) { + this.val = value; + } +} \ No newline at end of file diff --git a/src/main/java/emu/lunarcore/game/player/Player.java b/src/main/java/emu/lunarcore/game/player/Player.java index 3648676..61806fe 100644 --- a/src/main/java/emu/lunarcore/game/player/Player.java +++ b/src/main/java/emu/lunarcore/game/player/Player.java @@ -28,6 +28,7 @@ import emu.lunarcore.game.enums.PropState; import emu.lunarcore.game.gacha.PlayerGachaInfo; import emu.lunarcore.game.inventory.Inventory; import emu.lunarcore.game.mail.Mailbox; +import emu.lunarcore.game.rogue.RogueData; import emu.lunarcore.game.rogue.RogueManager; import emu.lunarcore.game.scene.Scene; import emu.lunarcore.game.scene.entity.EntityProp; @@ -97,6 +98,7 @@ public class Player { @Setter private transient boolean paused; @Setter private transient ChallengeData challengeData; + @Setter private transient RogueData rogueData; @Deprecated // Morphia only public Player() { diff --git a/src/main/java/emu/lunarcore/game/rogue/RogueData.java b/src/main/java/emu/lunarcore/game/rogue/RogueData.java new file mode 100644 index 0000000..01a5b89 --- /dev/null +++ b/src/main/java/emu/lunarcore/game/rogue/RogueData.java @@ -0,0 +1,86 @@ +package emu.lunarcore.game.rogue; + +import java.util.HashSet; +import java.util.Set; +import java.util.TreeMap; + +import emu.lunarcore.data.excel.RogueAreaExcel; +import emu.lunarcore.game.player.Player; +import emu.lunarcore.proto.RogueCurrentInfoOuterClass.RogueCurrentInfo; +import emu.lunarcore.proto.RogueMapInfoOuterClass.RogueMapInfo; +import emu.lunarcore.proto.RogueRoomStatusOuterClass.RogueRoomStatus; +import emu.lunarcore.proto.RogueStatusOuterClass.RogueStatus; +import lombok.Getter; + +@Getter +public class RogueData { + private transient Player player; + private transient RogueAreaExcel excel; + + private int currentRoomProgress; + private int currentSiteId; + private Set baseAvatarIds; + private TreeMap rooms; + + public RogueData(Player player, RogueAreaExcel excel) { + this.player = player; + this.excel = excel; + this.currentRoomProgress = 1; + this.baseAvatarIds = new HashSet<>(); + + this.initRooms(); + } + + public RogueStatus getStatus() { + return RogueStatus.ROGUE_STATUS_DOING; + } + + private void initRooms() { + if (this.rooms != null) return; + + this.rooms = new TreeMap<>(); + + for (var mapExcel : this.getExcel().getSites()) { + var roomData = new RogueRoomData(mapExcel); + this.rooms.put(roomData.getSiteId(), roomData); + + if (mapExcel.isIsStart()) { + this.setCurrentRoom(roomData); + } + } + } + + private void setCurrentRoom(RogueRoomData roomData) { + this.currentSiteId = roomData.getSiteId(); + roomData.setStatus(RogueRoomStatus.ROGUE_ROOM_STATUS_PLAY); // TODO reset when changing rooms + } + + public RogueRoomData getCurrentRoom() { + return this.rooms.get(this.getCurrentSiteId()); + } + + public RogueCurrentInfo toProto() { + var proto = RogueCurrentInfo.newInstance() + .setStatus(this.getStatus()) + .setRoomMap(this.toMapProto()); + + return proto; + } + + public RogueMapInfo toMapProto() { + var room = this.getCurrentRoom(); + + var proto = RogueMapInfo.newInstance() + .setAreaId(this.getExcel().getId()) + .setMapId(this.getExcel().getMapId()) + .setCurSiteId(room.getSiteId()) + .setCurRoomId(room.getRoomId()); + + for (var roomData : this.getRooms().values()) { + proto.addRoomList(roomData.toProto()); + } + + return proto; + } + +} \ 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 7be3972..31f6314 100644 --- a/src/main/java/emu/lunarcore/game/rogue/RogueManager.java +++ b/src/main/java/emu/lunarcore/game/rogue/RogueManager.java @@ -1,23 +1,105 @@ package emu.lunarcore.game.rogue; +import java.util.Arrays; import java.util.concurrent.TimeUnit; import emu.lunarcore.data.GameData; import emu.lunarcore.data.GameDepot; +import emu.lunarcore.data.config.AnchorInfo; +import emu.lunarcore.data.excel.RogueRoomExcel; import emu.lunarcore.game.player.BasePlayerManager; import emu.lunarcore.game.player.Player; +import emu.lunarcore.game.player.PlayerLineup; +import emu.lunarcore.proto.ExtraLineupTypeOuterClass.ExtraLineupType; import emu.lunarcore.proto.RogueAreaOuterClass.RogueArea; import emu.lunarcore.proto.RogueAreaStatusOuterClass.RogueAreaStatus; import emu.lunarcore.proto.RogueInfoDataOuterClass.RogueInfoData; import emu.lunarcore.proto.RogueInfoOuterClass.RogueInfo; import emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo; import emu.lunarcore.proto.RogueSeasonInfoOuterClass.RogueSeasonInfo; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.send.PacketStartRogueScRsp; + +import us.hebi.quickbuf.RepeatedInt; public class RogueManager extends BasePlayerManager { public RogueManager(Player player) { super(player); } + + public void startRogue(int areaId, RepeatedInt avatarIdList) { + // Get excel + var excel = GameData.getRogueAreaExcelMap().get(areaId); + if (excel == null || !excel.isValid()) { + getPlayer().sendPacket(new PacketStartRogueScRsp()); + return; + } + + // Replace lineup + getPlayer().getLineupManager().replaceLineup(0, ExtraLineupType.LINEUP_ROGUE_VALUE, Arrays.stream(avatarIdList.array()).boxed().toList()); + // Get lineup + PlayerLineup lineup = getPlayer().getLineupManager().getLineupByIndex(0, ExtraLineupType.LINEUP_ROGUE_VALUE); + // Make sure this lineup has avatars set + if (lineup.getAvatars().size() == 0) { + getPlayer().sendPacket(new PacketStartRogueScRsp()); + return; + } + + // Get entrance id + RogueData data = new RogueData(getPlayer(), excel); + int entranceId = data.getCurrentRoom().getRoomExcel().getMapEntrance(); + + // Reset hp/sp + lineup.forEachAvatar(avatar -> { + avatar.setCurrentHp(10000); + avatar.setCurrentSp(avatar.getMaxSp()); + + data.getBaseAvatarIds().add(avatar.getAvatarId()); + }); + lineup.setMp(5); // Set technique points + + // Set first lineup before we enter scenes + getPlayer().getLineupManager().setCurrentExtraLineup(ExtraLineupType.LINEUP_ROGUE, false); + + // Enter scene + boolean success = getPlayer().enterScene(entranceId, 0, false); + if (!success) { + // Clear extra lineup if entering scene failed + getPlayer().getLineupManager().setCurrentExtraLineup(0, false); + // Send error packet + getPlayer().sendPacket(new PacketStartRogueScRsp()); + return; + } + + // Load scene groups + RogueRoomExcel roomExcel = data.getCurrentRoom().getExcel(); + for (var entry : roomExcel.getGroupWithContent().entrySet()) { + getPlayer().getScene().loadGroup(entry.getKey()); + } + + // Move player to rogue start position + AnchorInfo anchor = getPlayer().getScene().getFloorInfo().getAnchorInfo(roomExcel.getGroupID(), 1); + if (anchor != null) { + getPlayer().getPos().set(anchor.getPos()); + getPlayer().getRot().set(anchor.getRot()); + } + + // Set rogue data and send packet + getPlayer().setRogueData(data); + getPlayer().sendPacket(new PacketStartRogueScRsp(getPlayer())); + } + + public void quitRogue() { + if (getPlayer().getRogueData() == null) { + getPlayer().getSession().send(CmdId.QuitRogueScRsp); + return; + } + + getPlayer().setRogueData(null); + getPlayer().enterScene(8011201, 0, true); // Test + getPlayer().getSession().send(CmdId.QuitRogueScRsp); + } public RogueInfo toProto() { var schedule = GameDepot.getCurrentRogueSchedule(); @@ -27,7 +109,7 @@ public class RogueManager extends BasePlayerManager { long endTime = beginTime + TimeUnit.DAYS.toSeconds(8); if (schedule != null) { - seasonId = schedule.getId() % 100000; + seasonId = 68; //schedule.getId() % 100000; } var score = RogueScoreRewardInfo.newInstance() @@ -37,7 +119,7 @@ public class RogueManager extends BasePlayerManager { var season = RogueSeasonInfo.newInstance() .setBeginTime(beginTime) - .setRogueSeasonId(seasonId) + .setSeasonId(seasonId) .setEndTime(endTime); var data = RogueInfoData.newInstance() @@ -47,18 +129,37 @@ public class RogueManager extends BasePlayerManager { var proto = RogueInfo.newInstance() .setRogueScoreInfo(score) .setRogueData(data) - .setRogueSeasonId(seasonId) + .setSeasonId(seasonId) .setBeginTime(beginTime) .setEndTime(endTime); + // Rogue data + RogueData curRogue = this.getPlayer().getRogueData(); + if (curRogue != null) { + proto.setStatus(curRogue.getStatus()); + proto.setRogueProgress(this.getPlayer().getRogueData().toProto()); + proto.setRoomMap(proto.getRogueProgress().getRoomMap()); + + for (int id : curRogue.getBaseAvatarIds()) { + proto.addBaseAvatarIdList(id); + } + } + + // Add areas for (var excel : GameData.getRogueAreaExcelMap().values()) { var area = RogueArea.newInstance() .setAreaId(excel.getRogueAreaID()) .setRogueAreaStatus(RogueAreaStatus.ROGUE_AREA_STATUS_FIRST_PASS); + if (curRogue != null && excel == curRogue.getExcel()) { + area.setMapId(curRogue.getExcel().getMapId()); + area.setCurReachRoomNum(curRogue.getCurrentRoomProgress()); + area.setRogueStatus(curRogue.getStatus()); + } + proto.addRogueAreaList(area); } return proto; } -} +} \ No newline at end of file diff --git a/src/main/java/emu/lunarcore/game/rogue/RogueRoomData.java b/src/main/java/emu/lunarcore/game/rogue/RogueRoomData.java new file mode 100644 index 0000000..c29837c --- /dev/null +++ b/src/main/java/emu/lunarcore/game/rogue/RogueRoomData.java @@ -0,0 +1,50 @@ +package emu.lunarcore.game.rogue; + +import emu.lunarcore.data.GameData; +import emu.lunarcore.data.GameDepot; +import emu.lunarcore.data.excel.RogueMapExcel; +import emu.lunarcore.data.excel.RogueRoomExcel; +import emu.lunarcore.proto.RogueRoomOuterClass.RogueRoom; +import emu.lunarcore.proto.RogueRoomStatusOuterClass.RogueRoomStatus; +import emu.lunarcore.util.Utils; +import lombok.Getter; + +@Getter +public class RogueRoomData { + private int roomId; + private int siteId; + private int status; + private int[] nextSiteIds; + + private transient RogueRoomExcel excel; + + public RogueRoomData(RogueMapExcel mapExcel) { + this.siteId = mapExcel.getSiteID(); + this.nextSiteIds = mapExcel.getNextSiteIDList(); + + int[] rooms = GameDepot.getRogueMapGen().get(this.siteId); + if (rooms != null) { + this.roomId = Utils.randomElement(rooms); + } + } + + public void setStatus(RogueRoomStatus status) { + this.status = status.getNumber(); + } + + public RogueRoomExcel getRoomExcel() { + if (excel == null) { + excel = GameData.getRogueRoomExcelMap().get(this.getRoomId()); + } + return excel; + } + + public RogueRoom toProto() { + var proto = RogueRoom.newInstance() + .setRoomId(this.getRoomId()) + .setSiteId(this.getSiteId()) + .setRoomStatusValue(this.getStatus()); + + return proto; + } +} diff --git a/src/main/java/emu/lunarcore/game/rogue/RogueRoomType.java b/src/main/java/emu/lunarcore/game/rogue/RogueRoomType.java new file mode 100644 index 0000000..49876f7 --- /dev/null +++ b/src/main/java/emu/lunarcore/game/rogue/RogueRoomType.java @@ -0,0 +1,23 @@ +package emu.lunarcore.game.rogue; + +import lombok.Getter; + +public enum RogueRoomType { + UNKNOWN (0), + COMBAT_1 (1), + COMBAT_2 (2), + OCCURRENCE (3), + ENCOUNTER (4), + RESPITE (5), + ELITE (6), + BOSS (7), + TRANSACTION (8), + ADVENTURE (9); + + @Getter + private final int val; + + private RogueRoomType(int value) { + this.val = value; + } +} diff --git a/src/main/java/emu/lunarcore/game/scene/Scene.java b/src/main/java/emu/lunarcore/game/scene/Scene.java index ec80288..b9e433b 100644 --- a/src/main/java/emu/lunarcore/game/scene/Scene.java +++ b/src/main/java/emu/lunarcore/game/scene/Scene.java @@ -10,7 +10,7 @@ import emu.lunarcore.data.excel.MazePlaneExcel; import emu.lunarcore.data.excel.NpcMonsterExcel; import emu.lunarcore.data.excel.PropExcel; import emu.lunarcore.game.avatar.GameAvatar; -import emu.lunarcore.game.enums.GameModeType; +import emu.lunarcore.game.enums.PlaneType; import emu.lunarcore.game.enums.PropState; import emu.lunarcore.game.enums.PropType; import emu.lunarcore.game.player.PlayerLineup; @@ -19,14 +19,11 @@ import emu.lunarcore.game.scene.triggers.PropTrigger; import emu.lunarcore.game.scene.triggers.PropTriggerType; import emu.lunarcore.game.player.Player; import emu.lunarcore.proto.SceneEntityGroupInfoOuterClass.SceneEntityGroupInfo; +import emu.lunarcore.proto.SceneGroupStateOuterClass.SceneGroupState; import emu.lunarcore.proto.SceneInfoOuterClass.SceneInfo; import emu.lunarcore.server.packet.send.PacketActivateFarmElementScRsp; import emu.lunarcore.server.packet.send.PacketSceneGroupRefreshScNotify; - -import it.unimi.dsi.fastutil.ints.Int2ObjectMap; -import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; -import it.unimi.dsi.fastutil.ints.IntOpenHashSet; -import it.unimi.dsi.fastutil.ints.IntSet; +import it.unimi.dsi.fastutil.ints.*; import it.unimi.dsi.fastutil.objects.ObjectArrayList; import lombok.Getter; @@ -43,11 +40,12 @@ public class Scene { private boolean loaded = false; // Avatar entites - private IntSet avatarEntityIds; - private Int2ObjectMap avatars; + private final IntSet avatarEntityIds; + private final Int2ObjectMap avatars; // Other entities - private Int2ObjectMap entities; + private final Int2ObjectMap entities; + private final Int2IntMap groupStates; // Cache private List triggers; @@ -63,6 +61,8 @@ public class Scene { this.avatarEntityIds = new IntOpenHashSet(); this.avatars = new Int2ObjectOpenHashMap<>(); this.entities = new Int2ObjectOpenHashMap<>(); + this.groupStates = new Int2IntOpenHashMap(); + this.healingSprings = new ObjectArrayList<>(); this.triggers = new ObjectArrayList<>(); @@ -84,7 +84,7 @@ public class Scene { if (floorInfo == null) return; // Spawn from groups - if (this.getExcel().getPlaneType() != GameModeType.Challenge) { + if (getExcel().getPlaneType() != PlaneType.Challenge && getExcel().getPlaneType() != PlaneType.Rogue) { this.initSpawns(); } @@ -104,6 +104,13 @@ public class Scene { } } + public void loadGroup(int groupId) { + GroupInfo group = getFloorInfo().getGroups().get(groupId); + if (group != null) { + this.loadGroup(group); + } + } + private void loadGroup(GroupInfo group) { // Add monsters if (group.getMonsterList() != null && group.getMonsterList().size() > 0) { @@ -384,6 +391,17 @@ public class Scene { for (var group : groups.values()) { proto.addEntityGroupList(group); } + + // Add group states + for (var entry : this.getGroupStates().int2IntEntrySet()) { + var state = SceneGroupState.newInstance() + .setGroupId(entry.getIntKey()) + .setState(entry.getIntValue()) + .setIsDefault(true); + + proto.addGroupStateList(state); + proto.addJBDDBBAMMNH(entry.getIntKey()); + } // Done return proto; diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerLeaveRogueCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerLeaveRogueCsReq.java new file mode 100644 index 0000000..18cc9f5 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerLeaveRogueCsReq.java @@ -0,0 +1,16 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; + +@Opcodes(CmdId.LeaveRogueCsReq) +public class HandlerLeaveRogueCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] data) throws Exception { + session.send(CmdId.LeaveRogueScRsp); + } + +} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerQuitRogueCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerQuitRogueCsReq.java new file mode 100644 index 0000000..b08744a --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerQuitRogueCsReq.java @@ -0,0 +1,16 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; + +@Opcodes(CmdId.QuitRogueCsReq) +public class HandlerQuitRogueCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] data) throws Exception { + session.getPlayer().getRogueManager().quitRogue(); + } + +} \ No newline at end of file diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerStartRogueCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerStartRogueCsReq.java index 68bed87..552bb9a 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerStartRogueCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerStartRogueCsReq.java @@ -1,5 +1,6 @@ package emu.lunarcore.server.packet.recv; +import emu.lunarcore.proto.StartRogueCsReqOuterClass.StartRogueCsReq; import emu.lunarcore.server.game.GameSession; import emu.lunarcore.server.packet.CmdId; import emu.lunarcore.server.packet.Opcodes; @@ -10,7 +11,9 @@ public class HandlerStartRogueCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] header, byte[] data) throws Exception { - session.send(CmdId.StartRogueScRsp); + var req = StartRogueCsReq.parseFrom(data); + + session.getPlayer().getRogueManager().startRogue(req.getAreaId(), req.getBaseAvatarIdList()); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketStartRogueScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketStartRogueScRsp.java new file mode 100644 index 0000000..db75eea --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketStartRogueScRsp.java @@ -0,0 +1,31 @@ +package emu.lunarcore.server.packet.send; + +import emu.lunarcore.game.player.Player; +import emu.lunarcore.proto.StartRogueScRspOuterClass.StartRogueScRsp; +import emu.lunarcore.server.packet.BasePacket; +import emu.lunarcore.server.packet.CmdId; +import lombok.SneakyThrows; + +public class PacketStartRogueScRsp extends BasePacket { + + public PacketStartRogueScRsp() { + super(CmdId.StartRogueScRsp); + + var data = StartRogueScRsp.newInstance() + .setRetcode(1); + + this.setData(data); + } + + @SneakyThrows + public PacketStartRogueScRsp(Player player) { + super(CmdId.StartRogueScRsp); + + var data = StartRogueScRsp.newInstance() + .setRogueInfo(player.getRogueManager().toProto()) + .setLineup(player.getCurrentLineup().toProto()) + .setScene(player.getScene().toProto()); + + this.setData(data); + } +} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueMapRoomScNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueMapRoomScNotify.java new file mode 100644 index 0000000..303df24 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueMapRoomScNotify.java @@ -0,0 +1,22 @@ +package emu.lunarcore.server.packet.send; + +import emu.lunarcore.game.player.Player; +import emu.lunarcore.proto.SyncRogueMapRoomScNotifyOuterClass.SyncRogueMapRoomScNotify; +import emu.lunarcore.server.packet.BasePacket; +import emu.lunarcore.server.packet.CmdId; + +public class PacketSyncRogueMapRoomScNotify extends BasePacket { + + public PacketSyncRogueMapRoomScNotify(Player player) { + super(CmdId.SyncRogueMapRoomScNotify); + + var data = SyncRogueMapRoomScNotify.newInstance(); + + if (player.getRogueData() != null) { + data.setMapId(player.getRogueData().getExcel().getMapId()); + data.setCurRoom(player.getRogueData().getCurrentRoom().toProto()); + } + + this.setData(data); + } +}