diff --git a/src/generated/main/emu/lunarcore/proto/AvatarTypeOuterClass.java b/src/generated/main/emu/lunarcore/proto/AvatarTypeOuterClass.java index a2778bb..5171b4c 100644 --- a/src/generated/main/emu/lunarcore/proto/AvatarTypeOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/AvatarTypeOuterClass.java @@ -87,7 +87,7 @@ public final class AvatarTypeOuterClass { /** * @return a converter that maps between this enum's numeric and text representations */ - public static ProtoEnum.EnumConverter converter() { + public static EnumConverter converter() { return AvatarTypeConverter.INSTANCE; } @@ -109,7 +109,7 @@ public final class AvatarTypeOuterClass { return value == null ? other : value; } - enum AvatarTypeConverter implements ProtoEnum.EnumConverter { + enum AvatarTypeConverter implements EnumConverter { INSTANCE; private static final AvatarType[] lookup = new AvatarType[5]; diff --git a/src/generated/main/emu/lunarcore/proto/BattleEndReasonOuterClass.java b/src/generated/main/emu/lunarcore/proto/BattleEndReasonOuterClass.java index e5e673a..53d5d31 100644 --- a/src/generated/main/emu/lunarcore/proto/BattleEndReasonOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/BattleEndReasonOuterClass.java @@ -67,7 +67,7 @@ public final class BattleEndReasonOuterClass { /** * @return a converter that maps between this enum's numeric and text representations */ - public static ProtoEnum.EnumConverter converter() { + public static EnumConverter converter() { return BattleEndReasonConverter.INSTANCE; } @@ -89,7 +89,7 @@ public final class BattleEndReasonOuterClass { return value == null ? other : value; } - enum BattleEndReasonConverter implements ProtoEnum.EnumConverter { + enum BattleEndReasonConverter implements EnumConverter { INSTANCE; private static final BattleEndReason[] lookup = new BattleEndReason[3]; diff --git a/src/generated/main/emu/lunarcore/proto/BattleEndStatusOuterClass.java b/src/generated/main/emu/lunarcore/proto/BattleEndStatusOuterClass.java index acdde11..25a3206 100644 --- a/src/generated/main/emu/lunarcore/proto/BattleEndStatusOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/BattleEndStatusOuterClass.java @@ -77,7 +77,7 @@ public final class BattleEndStatusOuterClass { /** * @return a converter that maps between this enum's numeric and text representations */ - public static ProtoEnum.EnumConverter converter() { + public static EnumConverter converter() { return BattleEndStatusConverter.INSTANCE; } @@ -99,7 +99,7 @@ public final class BattleEndStatusOuterClass { return value == null ? other : value; } - enum BattleEndStatusConverter implements ProtoEnum.EnumConverter { + enum BattleEndStatusConverter implements EnumConverter { INSTANCE; private static final BattleEndStatus[] lookup = new BattleEndStatus[4]; diff --git a/src/generated/main/emu/lunarcore/proto/BattlePassInfoNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/BattlePassInfoNotifyOuterClass.java index a98fea9..a0f87f9 100644 --- a/src/generated/main/emu/lunarcore/proto/BattlePassInfoNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/BattlePassInfoNotifyOuterClass.java @@ -1161,7 +1161,7 @@ public final class BattlePassInfoNotifyOuterClass { /** * @return a converter that maps between this enum's numeric and text representations */ - public static ProtoEnum.EnumConverter converter() { + public static EnumConverter converter() { return BpTierTypeConverter.INSTANCE; } @@ -1183,7 +1183,7 @@ public final class BattlePassInfoNotifyOuterClass { return value == null ? other : value; } - enum BpTierTypeConverter implements ProtoEnum.EnumConverter { + enum BpTierTypeConverter implements EnumConverter { INSTANCE; private static final BpTierType[] lookup = new BpTierType[4]; diff --git a/src/generated/main/emu/lunarcore/proto/ChallengeStatusOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChallengeStatusOuterClass.java index 1b5b58a..a5300d4 100644 --- a/src/generated/main/emu/lunarcore/proto/ChallengeStatusOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ChallengeStatusOuterClass.java @@ -77,7 +77,7 @@ public final class ChallengeStatusOuterClass { /** * @return a converter that maps between this enum's numeric and text representations */ - public static ProtoEnum.EnumConverter converter() { + public static EnumConverter converter() { return ChallengeStatusConverter.INSTANCE; } @@ -99,7 +99,7 @@ public final class ChallengeStatusOuterClass { return value == null ? other : value; } - enum ChallengeStatusConverter implements ProtoEnum.EnumConverter { + enum ChallengeStatusConverter implements EnumConverter { INSTANCE; private static final ChallengeStatus[] lookup = new ChallengeStatus[4]; diff --git a/src/generated/main/emu/lunarcore/proto/ChatTypeOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChatTypeOuterClass.java index 8a50a9d..3a5b6dc 100644 --- a/src/generated/main/emu/lunarcore/proto/ChatTypeOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ChatTypeOuterClass.java @@ -67,7 +67,7 @@ public final class ChatTypeOuterClass { /** * @return a converter that maps between this enum's numeric and text representations */ - public static ProtoEnum.EnumConverter converter() { + public static EnumConverter converter() { return ChatTypeConverter.INSTANCE; } @@ -89,7 +89,7 @@ public final class ChatTypeOuterClass { return value == null ? other : value; } - enum ChatTypeConverter implements ProtoEnum.EnumConverter { + enum ChatTypeConverter implements EnumConverter { INSTANCE; private static final ChatType[] lookup = new ChatType[3]; diff --git a/src/generated/main/emu/lunarcore/proto/ContentPackageStatusOuterClass.java b/src/generated/main/emu/lunarcore/proto/ContentPackageStatusOuterClass.java index ab84abc..e15ff15 100644 --- a/src/generated/main/emu/lunarcore/proto/ContentPackageStatusOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ContentPackageStatusOuterClass.java @@ -77,7 +77,7 @@ public final class ContentPackageStatusOuterClass { /** * @return a converter that maps between this enum's numeric and text representations */ - public static ProtoEnum.EnumConverter converter() { + public static EnumConverter converter() { return ContentPackageStatusConverter.INSTANCE; } @@ -99,7 +99,7 @@ public final class ContentPackageStatusOuterClass { return value == null ? other : value; } - enum ContentPackageStatusConverter implements ProtoEnum.EnumConverter { + enum ContentPackageStatusConverter implements EnumConverter { INSTANCE; private static final ContentPackageStatus[] lookup = new ContentPackageStatus[4]; diff --git a/src/generated/main/emu/lunarcore/proto/DevelopmentTypeOuterClass.java b/src/generated/main/emu/lunarcore/proto/DevelopmentTypeOuterClass.java index 2d82c1f..c625254 100644 --- a/src/generated/main/emu/lunarcore/proto/DevelopmentTypeOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/DevelopmentTypeOuterClass.java @@ -167,7 +167,7 @@ public final class DevelopmentTypeOuterClass { /** * @return a converter that maps between this enum's numeric and text representations */ - public static ProtoEnum.EnumConverter converter() { + public static EnumConverter converter() { return DevelopmentTypeConverter.INSTANCE; } @@ -189,7 +189,7 @@ public final class DevelopmentTypeOuterClass { return value == null ? other : value; } - enum DevelopmentTypeConverter implements ProtoEnum.EnumConverter { + enum DevelopmentTypeConverter implements EnumConverter { INSTANCE; private static final DevelopmentType[] lookup = new DevelopmentType[13]; diff --git a/src/generated/main/emu/lunarcore/proto/DisplayRecordTypeOuterClass.java b/src/generated/main/emu/lunarcore/proto/DisplayRecordTypeOuterClass.java index 08f4731..eaa6c8f 100644 --- a/src/generated/main/emu/lunarcore/proto/DisplayRecordTypeOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/DisplayRecordTypeOuterClass.java @@ -67,7 +67,7 @@ public final class DisplayRecordTypeOuterClass { /** * @return a converter that maps between this enum's numeric and text representations */ - public static ProtoEnum.EnumConverter converter() { + public static EnumConverter converter() { return DisplayRecordTypeConverter.INSTANCE; } @@ -89,7 +89,7 @@ public final class DisplayRecordTypeOuterClass { return value == null ? other : value; } - enum DisplayRecordTypeConverter implements ProtoEnum.EnumConverter { + enum DisplayRecordTypeConverter implements EnumConverter { INSTANCE; private static final DisplayRecordType[] lookup = new DisplayRecordType[3]; diff --git a/src/generated/main/emu/lunarcore/proto/EnterSceneReasonOuterClass.java b/src/generated/main/emu/lunarcore/proto/EnterSceneReasonOuterClass.java index 34ef346..834d374 100644 --- a/src/generated/main/emu/lunarcore/proto/EnterSceneReasonOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/EnterSceneReasonOuterClass.java @@ -67,7 +67,7 @@ public final class EnterSceneReasonOuterClass { /** * @return a converter that maps between this enum's numeric and text representations */ - public static ProtoEnum.EnumConverter converter() { + public static EnumConverter converter() { return EnterSceneReasonConverter.INSTANCE; } @@ -89,7 +89,7 @@ public final class EnterSceneReasonOuterClass { return value == null ? other : value; } - enum EnterSceneReasonConverter implements ProtoEnum.EnumConverter { + enum EnterSceneReasonConverter implements EnumConverter { INSTANCE; private static final EnterSceneReason[] lookup = new EnterSceneReason[3]; diff --git a/src/generated/main/emu/lunarcore/proto/ExtraLineupTypeOuterClass.java b/src/generated/main/emu/lunarcore/proto/ExtraLineupTypeOuterClass.java index 68baee8..c9e851c 100644 --- a/src/generated/main/emu/lunarcore/proto/ExtraLineupTypeOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ExtraLineupTypeOuterClass.java @@ -167,7 +167,7 @@ public final class ExtraLineupTypeOuterClass { /** * @return a converter that maps between this enum's numeric and text representations */ - public static ProtoEnum.EnumConverter converter() { + public static EnumConverter converter() { return ExtraLineupTypeConverter.INSTANCE; } @@ -189,7 +189,7 @@ public final class ExtraLineupTypeOuterClass { return value == null ? other : value; } - enum ExtraLineupTypeConverter implements ProtoEnum.EnumConverter { + enum ExtraLineupTypeConverter implements EnumConverter { INSTANCE; private static final ExtraLineupType[] lookup = new ExtraLineupType[14]; diff --git a/src/generated/main/emu/lunarcore/proto/FinishRogueCommonDialogueCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/FinishRogueCommonDialogueCsReqOuterClass.java new file mode 100644 index 0000000..f753a9f --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/FinishRogueCommonDialogueCsReqOuterClass.java @@ -0,0 +1,262 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; + +public final class FinishRogueCommonDialogueCsReqOuterClass { + /** + * Protobuf type {@code FinishRogueCommonDialogueCsReq} + */ + public static final class FinishRogueCommonDialogueCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 event_unique_id = 9; + */ + private int eventUniqueId; + + private FinishRogueCommonDialogueCsReq() { + } + + /** + * @return a new empty instance of {@code FinishRogueCommonDialogueCsReq} + */ + public static FinishRogueCommonDialogueCsReq newInstance() { + return new FinishRogueCommonDialogueCsReq(); + } + + /** + * optional uint32 event_unique_id = 9; + * @return whether the eventUniqueId field is set + */ + public boolean hasEventUniqueId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 event_unique_id = 9; + * @return this + */ + public FinishRogueCommonDialogueCsReq clearEventUniqueId() { + bitField0_ &= ~0x00000001; + eventUniqueId = 0; + return this; + } + + /** + * optional uint32 event_unique_id = 9; + * @return the eventUniqueId + */ + public int getEventUniqueId() { + return eventUniqueId; + } + + /** + * optional uint32 event_unique_id = 9; + * @param value the eventUniqueId to set + * @return this + */ + public FinishRogueCommonDialogueCsReq setEventUniqueId(final int value) { + bitField0_ |= 0x00000001; + eventUniqueId = value; + return this; + } + + @Override + public FinishRogueCommonDialogueCsReq copyFrom(final FinishRogueCommonDialogueCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + eventUniqueId = other.eventUniqueId; + } + return this; + } + + @Override + public FinishRogueCommonDialogueCsReq mergeFrom(final FinishRogueCommonDialogueCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasEventUniqueId()) { + setEventUniqueId(other.eventUniqueId); + } + return this; + } + + @Override + public FinishRogueCommonDialogueCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + eventUniqueId = 0; + return this; + } + + @Override + public FinishRogueCommonDialogueCsReq 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 FinishRogueCommonDialogueCsReq)) { + return false; + } + FinishRogueCommonDialogueCsReq other = (FinishRogueCommonDialogueCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasEventUniqueId() || eventUniqueId == other.eventUniqueId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(eventUniqueId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(eventUniqueId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public FinishRogueCommonDialogueCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 72: { + // eventUniqueId + eventUniqueId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.eventUniqueId, eventUniqueId); + } + output.endObject(); + } + + @Override + public FinishRogueCommonDialogueCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 2091680134: + case -157385500: { + if (input.isAtField(FieldNames.eventUniqueId)) { + if (!input.trySkipNullValue()) { + eventUniqueId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public FinishRogueCommonDialogueCsReq clone() { + return new FinishRogueCommonDialogueCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static FinishRogueCommonDialogueCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new FinishRogueCommonDialogueCsReq(), data).checkInitialized(); + } + + public static FinishRogueCommonDialogueCsReq parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new FinishRogueCommonDialogueCsReq(), input).checkInitialized(); + } + + public static FinishRogueCommonDialogueCsReq parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new FinishRogueCommonDialogueCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating FinishRogueCommonDialogueCsReq messages + */ + public static MessageFactory getFactory() { + return FinishRogueCommonDialogueCsReqFactory.INSTANCE; + } + + private enum FinishRogueCommonDialogueCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public FinishRogueCommonDialogueCsReq create() { + return FinishRogueCommonDialogueCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName eventUniqueId = FieldName.forField("eventUniqueId", "event_unique_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/FinishRogueCommonDialogueScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/FinishRogueCommonDialogueScRspOuterClass.java new file mode 100644 index 0000000..d742f92 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/FinishRogueCommonDialogueScRspOuterClass.java @@ -0,0 +1,342 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import 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 FinishRogueCommonDialogueScRspOuterClass { + /** + * Protobuf type {@code FinishRogueCommonDialogueScRsp} + */ + public static final class FinishRogueCommonDialogueScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 5; + */ + private int retcode; + + /** + * optional uint32 event_unique_id = 13; + */ + private int eventUniqueId; + + private FinishRogueCommonDialogueScRsp() { + } + + /** + * @return a new empty instance of {@code FinishRogueCommonDialogueScRsp} + */ + public static FinishRogueCommonDialogueScRsp newInstance() { + return new FinishRogueCommonDialogueScRsp(); + } + + /** + * optional uint32 retcode = 5; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 5; + * @return this + */ + public FinishRogueCommonDialogueScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 5; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 5; + * @param value the retcode to set + * @return this + */ + public FinishRogueCommonDialogueScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional uint32 event_unique_id = 13; + * @return whether the eventUniqueId field is set + */ + public boolean hasEventUniqueId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 event_unique_id = 13; + * @return this + */ + public FinishRogueCommonDialogueScRsp clearEventUniqueId() { + bitField0_ &= ~0x00000002; + eventUniqueId = 0; + return this; + } + + /** + * optional uint32 event_unique_id = 13; + * @return the eventUniqueId + */ + public int getEventUniqueId() { + return eventUniqueId; + } + + /** + * optional uint32 event_unique_id = 13; + * @param value the eventUniqueId to set + * @return this + */ + public FinishRogueCommonDialogueScRsp setEventUniqueId(final int value) { + bitField0_ |= 0x00000002; + eventUniqueId = value; + return this; + } + + @Override + public FinishRogueCommonDialogueScRsp copyFrom(final FinishRogueCommonDialogueScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + eventUniqueId = other.eventUniqueId; + } + return this; + } + + @Override + public FinishRogueCommonDialogueScRsp mergeFrom(final FinishRogueCommonDialogueScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasEventUniqueId()) { + setEventUniqueId(other.eventUniqueId); + } + return this; + } + + @Override + public FinishRogueCommonDialogueScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + eventUniqueId = 0; + return this; + } + + @Override + public FinishRogueCommonDialogueScRsp 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 FinishRogueCommonDialogueScRsp)) { + return false; + } + FinishRogueCommonDialogueScRsp other = (FinishRogueCommonDialogueScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasEventUniqueId() || eventUniqueId == other.eventUniqueId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(eventUniqueId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(eventUniqueId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public FinishRogueCommonDialogueScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 40: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // eventUniqueId + eventUniqueId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.eventUniqueId, eventUniqueId); + } + output.endObject(); + } + + @Override + public FinishRogueCommonDialogueScRsp 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 2091680134: + case -157385500: { + if (input.isAtField(FieldNames.eventUniqueId)) { + if (!input.trySkipNullValue()) { + eventUniqueId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public FinishRogueCommonDialogueScRsp clone() { + return new FinishRogueCommonDialogueScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static FinishRogueCommonDialogueScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new FinishRogueCommonDialogueScRsp(), data).checkInitialized(); + } + + public static FinishRogueCommonDialogueScRsp parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new FinishRogueCommonDialogueScRsp(), input).checkInitialized(); + } + + public static FinishRogueCommonDialogueScRsp parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new FinishRogueCommonDialogueScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating FinishRogueCommonDialogueScRsp messages + */ + public static MessageFactory getFactory() { + return FinishRogueCommonDialogueScRspFactory.INSTANCE; + } + + private enum FinishRogueCommonDialogueScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public FinishRogueCommonDialogueScRsp create() { + return FinishRogueCommonDialogueScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName eventUniqueId = FieldName.forField("eventUniqueId", "event_unique_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/FriendApplySourceOuterClass.java b/src/generated/main/emu/lunarcore/proto/FriendApplySourceOuterClass.java index d68f888..03c3b32 100644 --- a/src/generated/main/emu/lunarcore/proto/FriendApplySourceOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/FriendApplySourceOuterClass.java @@ -97,7 +97,7 @@ public final class FriendApplySourceOuterClass { /** * @return a converter that maps between this enum's numeric and text representations */ - public static ProtoEnum.EnumConverter converter() { + public static EnumConverter converter() { return FriendApplySourceConverter.INSTANCE; } @@ -119,7 +119,7 @@ public final class FriendApplySourceOuterClass { return value == null ? other : value; } - enum FriendApplySourceConverter implements ProtoEnum.EnumConverter { + enum FriendApplySourceConverter implements EnumConverter { INSTANCE; private static final FriendApplySource[] lookup = new FriendApplySource[6]; diff --git a/src/generated/main/emu/lunarcore/proto/FriendOnlineStatusOuterClass.java b/src/generated/main/emu/lunarcore/proto/FriendOnlineStatusOuterClass.java index 8ffc47c..1c15933 100644 --- a/src/generated/main/emu/lunarcore/proto/FriendOnlineStatusOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/FriendOnlineStatusOuterClass.java @@ -57,7 +57,7 @@ public final class FriendOnlineStatusOuterClass { /** * @return a converter that maps between this enum's numeric and text representations */ - public static ProtoEnum.EnumConverter converter() { + public static EnumConverter converter() { return FriendOnlineStatusConverter.INSTANCE; } @@ -79,7 +79,7 @@ public final class FriendOnlineStatusOuterClass { return value == null ? other : value; } - enum FriendOnlineStatusConverter implements ProtoEnum.EnumConverter { + enum FriendOnlineStatusConverter implements EnumConverter { INSTANCE; private static final FriendOnlineStatus[] lookup = new FriendOnlineStatus[2]; diff --git a/src/generated/main/emu/lunarcore/proto/GenderOuterClass.java b/src/generated/main/emu/lunarcore/proto/GenderOuterClass.java index 5e3f533..808744d 100644 --- a/src/generated/main/emu/lunarcore/proto/GenderOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GenderOuterClass.java @@ -67,7 +67,7 @@ public final class GenderOuterClass { /** * @return a converter that maps between this enum's numeric and text representations */ - public static ProtoEnum.EnumConverter converter() { + public static EnumConverter converter() { return GenderConverter.INSTANCE; } @@ -89,7 +89,7 @@ public final class GenderOuterClass { return value == null ? other : value; } - enum GenderConverter implements ProtoEnum.EnumConverter { + enum GenderConverter implements EnumConverter { INSTANCE; private static final Gender[] lookup = new Gender[3]; diff --git a/src/generated/main/emu/lunarcore/proto/HeroBasicTypeOuterClass.java b/src/generated/main/emu/lunarcore/proto/HeroBasicTypeOuterClass.java index a6864cd..e9ddb81 100644 --- a/src/generated/main/emu/lunarcore/proto/HeroBasicTypeOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/HeroBasicTypeOuterClass.java @@ -187,7 +187,7 @@ public final class HeroBasicTypeOuterClass { /** * @return a converter that maps between this enum's numeric and text representations */ - public static ProtoEnum.EnumConverter converter() { + public static EnumConverter converter() { return HeroBasicTypeConverter.INSTANCE; } @@ -209,7 +209,7 @@ public final class HeroBasicTypeOuterClass { return value == null ? other : value; } - enum HeroBasicTypeConverter implements ProtoEnum.EnumConverter { + enum HeroBasicTypeConverter implements EnumConverter { INSTANCE; @Override diff --git a/src/generated/main/emu/lunarcore/proto/LanguageTypeOuterClass.java b/src/generated/main/emu/lunarcore/proto/LanguageTypeOuterClass.java index d24d57f..6d37d8b 100644 --- a/src/generated/main/emu/lunarcore/proto/LanguageTypeOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/LanguageTypeOuterClass.java @@ -177,7 +177,7 @@ public final class LanguageTypeOuterClass { /** * @return a converter that maps between this enum's numeric and text representations */ - public static ProtoEnum.EnumConverter converter() { + public static EnumConverter converter() { return LanguageTypeConverter.INSTANCE; } @@ -199,7 +199,7 @@ public final class LanguageTypeOuterClass { return value == null ? other : value; } - enum LanguageTypeConverter implements ProtoEnum.EnumConverter { + enum LanguageTypeConverter implements EnumConverter { INSTANCE; private static final LanguageType[] lookup = new LanguageType[14]; diff --git a/src/generated/main/emu/lunarcore/proto/MailTypeOuterClass.java b/src/generated/main/emu/lunarcore/proto/MailTypeOuterClass.java index 455b2d6..5fa7b76 100644 --- a/src/generated/main/emu/lunarcore/proto/MailTypeOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/MailTypeOuterClass.java @@ -57,7 +57,7 @@ public final class MailTypeOuterClass { /** * @return a converter that maps between this enum's numeric and text representations */ - public static ProtoEnum.EnumConverter converter() { + public static EnumConverter converter() { return MailTypeConverter.INSTANCE; } @@ -79,7 +79,7 @@ public final class MailTypeOuterClass { return value == null ? other : value; } - enum MailTypeConverter implements ProtoEnum.EnumConverter { + enum MailTypeConverter implements EnumConverter { INSTANCE; private static final MailType[] lookup = new MailType[2]; diff --git a/src/generated/main/emu/lunarcore/proto/MapInfoChestTypeOuterClass.java b/src/generated/main/emu/lunarcore/proto/MapInfoChestTypeOuterClass.java index a842f7c..83b1d6e 100644 --- a/src/generated/main/emu/lunarcore/proto/MapInfoChestTypeOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/MapInfoChestTypeOuterClass.java @@ -77,7 +77,7 @@ public final class MapInfoChestTypeOuterClass { /** * @return a converter that maps between this enum's numeric and text representations */ - public static ProtoEnum.EnumConverter converter() { + public static EnumConverter converter() { return MapInfoChestTypeConverter.INSTANCE; } @@ -99,7 +99,7 @@ public final class MapInfoChestTypeOuterClass { return value == null ? other : value; } - enum MapInfoChestTypeConverter implements ProtoEnum.EnumConverter { + enum MapInfoChestTypeConverter implements EnumConverter { INSTANCE; @Override diff --git a/src/generated/main/emu/lunarcore/proto/MissionStatusOuterClass.java b/src/generated/main/emu/lunarcore/proto/MissionStatusOuterClass.java index 84ea33e..ffd31d7 100644 --- a/src/generated/main/emu/lunarcore/proto/MissionStatusOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/MissionStatusOuterClass.java @@ -77,7 +77,7 @@ public final class MissionStatusOuterClass { /** * @return a converter that maps between this enum's numeric and text representations */ - public static ProtoEnum.EnumConverter converter() { + public static EnumConverter converter() { return MissionStatusConverter.INSTANCE; } @@ -99,7 +99,7 @@ public final class MissionStatusOuterClass { return value == null ? other : value; } - enum MissionStatusConverter implements ProtoEnum.EnumConverter { + enum MissionStatusConverter implements EnumConverter { INSTANCE; private static final MissionStatus[] lookup = new MissionStatus[4]; diff --git a/src/generated/main/emu/lunarcore/proto/MsgTypeOuterClass.java b/src/generated/main/emu/lunarcore/proto/MsgTypeOuterClass.java index 986be24..6a7ac49 100644 --- a/src/generated/main/emu/lunarcore/proto/MsgTypeOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/MsgTypeOuterClass.java @@ -67,7 +67,7 @@ public final class MsgTypeOuterClass { /** * @return a converter that maps between this enum's numeric and text representations */ - public static ProtoEnum.EnumConverter converter() { + public static EnumConverter converter() { return MsgTypeConverter.INSTANCE; } @@ -89,7 +89,7 @@ public final class MsgTypeOuterClass { return value == null ? other : value; } - enum MsgTypeConverter implements ProtoEnum.EnumConverter { + enum MsgTypeConverter implements EnumConverter { INSTANCE; private static final MsgType[] lookup = new MsgType[3]; diff --git a/src/generated/main/emu/lunarcore/proto/MultiPathAvatarTypeOuterClass.java b/src/generated/main/emu/lunarcore/proto/MultiPathAvatarTypeOuterClass.java index 8a7274e..0fec6b9 100644 --- a/src/generated/main/emu/lunarcore/proto/MultiPathAvatarTypeOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/MultiPathAvatarTypeOuterClass.java @@ -127,7 +127,7 @@ public final class MultiPathAvatarTypeOuterClass { /** * @return a converter that maps between this enum's numeric and text representations */ - public static ProtoEnum.EnumConverter converter() { + public static EnumConverter converter() { return MultiPathAvatarTypeConverter.INSTANCE; } @@ -149,7 +149,7 @@ public final class MultiPathAvatarTypeOuterClass { return value == null ? other : value; } - enum MultiPathAvatarTypeConverter implements ProtoEnum.EnumConverter { + enum MultiPathAvatarTypeConverter implements EnumConverter { INSTANCE; @Override diff --git a/src/generated/main/emu/lunarcore/proto/NpcDialogueEventParamOuterClass.java b/src/generated/main/emu/lunarcore/proto/NpcDialogueEventParamOuterClass.java new file mode 100644 index 0000000..1f7da57 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/NpcDialogueEventParamOuterClass.java @@ -0,0 +1,341 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; + +public final class NpcDialogueEventParamOuterClass { + /** + * Protobuf type {@code NpcDialogueEventParam} + */ + public static final class NpcDialogueEventParam extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 rogue_dialogue_event_id = 12; + */ + private int rogueDialogueEventId; + + /** + * optional uint32 arg_id = 13; + */ + private int argId; + + private NpcDialogueEventParam() { + } + + /** + * @return a new empty instance of {@code NpcDialogueEventParam} + */ + public static NpcDialogueEventParam newInstance() { + return new NpcDialogueEventParam(); + } + + /** + * optional uint32 rogue_dialogue_event_id = 12; + * @return whether the rogueDialogueEventId field is set + */ + public boolean hasRogueDialogueEventId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 rogue_dialogue_event_id = 12; + * @return this + */ + public NpcDialogueEventParam clearRogueDialogueEventId() { + bitField0_ &= ~0x00000001; + rogueDialogueEventId = 0; + return this; + } + + /** + * optional uint32 rogue_dialogue_event_id = 12; + * @return the rogueDialogueEventId + */ + public int getRogueDialogueEventId() { + return rogueDialogueEventId; + } + + /** + * optional uint32 rogue_dialogue_event_id = 12; + * @param value the rogueDialogueEventId to set + * @return this + */ + public NpcDialogueEventParam setRogueDialogueEventId(final int value) { + bitField0_ |= 0x00000001; + rogueDialogueEventId = value; + return this; + } + + /** + * optional uint32 arg_id = 13; + * @return whether the argId field is set + */ + public boolean hasArgId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 arg_id = 13; + * @return this + */ + public NpcDialogueEventParam clearArgId() { + bitField0_ &= ~0x00000002; + argId = 0; + return this; + } + + /** + * optional uint32 arg_id = 13; + * @return the argId + */ + public int getArgId() { + return argId; + } + + /** + * optional uint32 arg_id = 13; + * @param value the argId to set + * @return this + */ + public NpcDialogueEventParam setArgId(final int value) { + bitField0_ |= 0x00000002; + argId = value; + return this; + } + + @Override + public NpcDialogueEventParam copyFrom(final NpcDialogueEventParam other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + rogueDialogueEventId = other.rogueDialogueEventId; + argId = other.argId; + } + return this; + } + + @Override + public NpcDialogueEventParam mergeFrom(final NpcDialogueEventParam other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRogueDialogueEventId()) { + setRogueDialogueEventId(other.rogueDialogueEventId); + } + if (other.hasArgId()) { + setArgId(other.argId); + } + return this; + } + + @Override + public NpcDialogueEventParam clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + rogueDialogueEventId = 0; + argId = 0; + return this; + } + + @Override + public NpcDialogueEventParam 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 NpcDialogueEventParam)) { + return false; + } + NpcDialogueEventParam other = (NpcDialogueEventParam) o; + return bitField0_ == other.bitField0_ + && (!hasRogueDialogueEventId() || rogueDialogueEventId == other.rogueDialogueEventId) + && (!hasArgId() || argId == other.argId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(rogueDialogueEventId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(argId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(rogueDialogueEventId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(argId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public NpcDialogueEventParam mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 96: { + // rogueDialogueEventId + rogueDialogueEventId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // argId + argId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.rogueDialogueEventId, rogueDialogueEventId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.argId, argId); + } + output.endObject(); + } + + @Override + public NpcDialogueEventParam mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 262816547: + case -963375038: { + if (input.isAtField(FieldNames.rogueDialogueEventId)) { + if (!input.trySkipNullValue()) { + rogueDialogueEventId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 93079057: + case -1409495132: { + if (input.isAtField(FieldNames.argId)) { + if (!input.trySkipNullValue()) { + argId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public NpcDialogueEventParam clone() { + return new NpcDialogueEventParam().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static NpcDialogueEventParam parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new NpcDialogueEventParam(), data).checkInitialized(); + } + + public static NpcDialogueEventParam parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new NpcDialogueEventParam(), input).checkInitialized(); + } + + public static NpcDialogueEventParam parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new NpcDialogueEventParam(), input).checkInitialized(); + } + + /** + * @return factory for creating NpcDialogueEventParam messages + */ + public static MessageFactory getFactory() { + return NpcDialogueEventParamFactory.INSTANCE; + } + + private enum NpcDialogueEventParamFactory implements MessageFactory { + INSTANCE; + + @Override + public NpcDialogueEventParam create() { + return NpcDialogueEventParam.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName rogueDialogueEventId = FieldName.forField("rogueDialogueEventId", "rogue_dialogue_event_id"); + + static final FieldName argId = FieldName.forField("argId", "arg_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/NpcRogueInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/NpcRogueInfoOuterClass.java index c79b918..89a80ea 100644 --- a/src/generated/main/emu/lunarcore/proto/NpcRogueInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/NpcRogueInfoOuterClass.java @@ -10,6 +10,7 @@ import us.hebi.quickbuf.MessageFactory; import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedMessage; public final class NpcRogueInfoOuterClass { /** @@ -19,18 +20,24 @@ public final class NpcRogueInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 rogue_npc_id = 11; + * optional uint32 OENLKDCLEOA = 2; */ - private int rogueNpcId; + private int oENLKDCLEOA; /** - *
-     *  ???
-     * 
- * - * optional uint32 dialogue_group_id = 12; + * optional uint32 event_unique_id = 4; */ - private int dialogueGroupId; + private int eventUniqueId; + + /** + * optional uint32 event_id = 11; + */ + private int eventId; + + /** + * optional uint32 dialogue_id = 12; + */ + private int dialogueId; /** * optional bool JFCBEHNMGNO = 1; @@ -38,18 +45,24 @@ public final class NpcRogueInfoOuterClass { private boolean jFCBEHNMGNO; /** - *
-     *  unk
-     * 
- * - * optional bool finish_dialogue = 9; + * optional bool JOFMIKFBGHP = 9; + */ + private boolean jOFMIKFBGHP; + + /** + * optional bool finish_dialogue = 15; */ private boolean finishDialogue; /** - * optional bool CLFMCIDHJLM = 15; + * repeated .NpcDialogueEventParam dialogue_event_param_list = 5; */ - private boolean cLFMCIDHJLM; + private final RepeatedMessage dialogueEventParamList = RepeatedMessage.newEmptyInstance(NpcDialogueEventParamOuterClass.NpcDialogueEventParam.getFactory()); + + /** + * repeated .NpcRogueInfo.FKDHDCGOIMFEntry FKDHDCGOIMF = 8; + */ + private final RepeatedMessage fKDHDCGOIMF = RepeatedMessage.newEmptyInstance(FKDHDCGOIMFEntry.getFactory()); private NpcRogueInfo() { } @@ -62,92 +75,150 @@ public final class NpcRogueInfoOuterClass { } /** - * optional uint32 rogue_npc_id = 11; - * @return whether the rogueNpcId field is set + * optional uint32 OENLKDCLEOA = 2; + * @return whether the oENLKDCLEOA field is set */ - public boolean hasRogueNpcId() { + public boolean hasOENLKDCLEOA() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 rogue_npc_id = 11; + * optional uint32 OENLKDCLEOA = 2; * @return this */ - public NpcRogueInfo clearRogueNpcId() { + public NpcRogueInfo clearOENLKDCLEOA() { bitField0_ &= ~0x00000001; - rogueNpcId = 0; + oENLKDCLEOA = 0; return this; } /** - * optional uint32 rogue_npc_id = 11; - * @return the rogueNpcId + * optional uint32 OENLKDCLEOA = 2; + * @return the oENLKDCLEOA */ - public int getRogueNpcId() { - return rogueNpcId; + public int getOENLKDCLEOA() { + return oENLKDCLEOA; } /** - * optional uint32 rogue_npc_id = 11; - * @param value the rogueNpcId to set + * optional uint32 OENLKDCLEOA = 2; + * @param value the oENLKDCLEOA to set * @return this */ - public NpcRogueInfo setRogueNpcId(final int value) { + public NpcRogueInfo setOENLKDCLEOA(final int value) { bitField0_ |= 0x00000001; - rogueNpcId = value; + oENLKDCLEOA = value; return this; } /** - *
-     *  ???
-     * 
- * - * optional uint32 dialogue_group_id = 12; - * @return whether the dialogueGroupId field is set + * optional uint32 event_unique_id = 4; + * @return whether the eventUniqueId field is set */ - public boolean hasDialogueGroupId() { + public boolean hasEventUniqueId() { return (bitField0_ & 0x00000002) != 0; } /** - *
-     *  ???
-     * 
- * - * optional uint32 dialogue_group_id = 12; + * optional uint32 event_unique_id = 4; * @return this */ - public NpcRogueInfo clearDialogueGroupId() { + public NpcRogueInfo clearEventUniqueId() { bitField0_ &= ~0x00000002; - dialogueGroupId = 0; + eventUniqueId = 0; return this; } /** - *
-     *  ???
-     * 
- * - * optional uint32 dialogue_group_id = 12; - * @return the dialogueGroupId + * optional uint32 event_unique_id = 4; + * @return the eventUniqueId */ - public int getDialogueGroupId() { - return dialogueGroupId; + public int getEventUniqueId() { + return eventUniqueId; } /** - *
-     *  ???
-     * 
- * - * optional uint32 dialogue_group_id = 12; - * @param value the dialogueGroupId to set + * optional uint32 event_unique_id = 4; + * @param value the eventUniqueId to set * @return this */ - public NpcRogueInfo setDialogueGroupId(final int value) { + public NpcRogueInfo setEventUniqueId(final int value) { bitField0_ |= 0x00000002; - dialogueGroupId = value; + eventUniqueId = value; + return this; + } + + /** + * optional uint32 event_id = 11; + * @return whether the eventId field is set + */ + public boolean hasEventId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 event_id = 11; + * @return this + */ + public NpcRogueInfo clearEventId() { + bitField0_ &= ~0x00000004; + eventId = 0; + return this; + } + + /** + * optional uint32 event_id = 11; + * @return the eventId + */ + public int getEventId() { + return eventId; + } + + /** + * optional uint32 event_id = 11; + * @param value the eventId to set + * @return this + */ + public NpcRogueInfo setEventId(final int value) { + bitField0_ |= 0x00000004; + eventId = value; + return this; + } + + /** + * optional uint32 dialogue_id = 12; + * @return whether the dialogueId field is set + */ + public boolean hasDialogueId() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 dialogue_id = 12; + * @return this + */ + public NpcRogueInfo clearDialogueId() { + bitField0_ &= ~0x00000008; + dialogueId = 0; + return this; + } + + /** + * optional uint32 dialogue_id = 12; + * @return the dialogueId + */ + public int getDialogueId() { + return dialogueId; + } + + /** + * optional uint32 dialogue_id = 12; + * @param value the dialogueId to set + * @return this + */ + public NpcRogueInfo setDialogueId(final int value) { + bitField0_ |= 0x00000008; + dialogueId = value; return this; } @@ -156,7 +227,7 @@ public final class NpcRogueInfoOuterClass { * @return whether the jFCBEHNMGNO field is set */ public boolean hasJFCBEHNMGNO() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000010) != 0; } /** @@ -164,7 +235,7 @@ public final class NpcRogueInfoOuterClass { * @return this */ public NpcRogueInfo clearJFCBEHNMGNO() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000010; jFCBEHNMGNO = false; return this; } @@ -183,43 +254,68 @@ public final class NpcRogueInfoOuterClass { * @return this */ public NpcRogueInfo setJFCBEHNMGNO(final boolean value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; jFCBEHNMGNO = value; return this; } /** - *
-     *  unk
-     * 
- * - * optional bool finish_dialogue = 9; - * @return whether the finishDialogue field is set + * optional bool JOFMIKFBGHP = 9; + * @return whether the jOFMIKFBGHP field is set */ - public boolean hasFinishDialogue() { - return (bitField0_ & 0x00000008) != 0; + public boolean hasJOFMIKFBGHP() { + return (bitField0_ & 0x00000020) != 0; } /** - *
-     *  unk
-     * 
- * - * optional bool finish_dialogue = 9; + * optional bool JOFMIKFBGHP = 9; + * @return this + */ + public NpcRogueInfo clearJOFMIKFBGHP() { + bitField0_ &= ~0x00000020; + jOFMIKFBGHP = false; + return this; + } + + /** + * optional bool JOFMIKFBGHP = 9; + * @return the jOFMIKFBGHP + */ + public boolean getJOFMIKFBGHP() { + return jOFMIKFBGHP; + } + + /** + * optional bool JOFMIKFBGHP = 9; + * @param value the jOFMIKFBGHP to set + * @return this + */ + public NpcRogueInfo setJOFMIKFBGHP(final boolean value) { + bitField0_ |= 0x00000020; + jOFMIKFBGHP = value; + return this; + } + + /** + * optional bool finish_dialogue = 15; + * @return whether the finishDialogue field is set + */ + public boolean hasFinishDialogue() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional bool finish_dialogue = 15; * @return this */ public NpcRogueInfo clearFinishDialogue() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000040; finishDialogue = false; return this; } /** - *
-     *  unk
-     * 
- * - * optional bool finish_dialogue = 9; + * optional bool finish_dialogue = 15; * @return the finishDialogue */ public boolean getFinishDialogue() { @@ -227,54 +323,153 @@ public final class NpcRogueInfoOuterClass { } /** - *
-     *  unk
-     * 
- * - * optional bool finish_dialogue = 9; + * optional bool finish_dialogue = 15; * @param value the finishDialogue to set * @return this */ public NpcRogueInfo setFinishDialogue(final boolean value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000040; finishDialogue = value; return this; } /** - * optional bool CLFMCIDHJLM = 15; - * @return whether the cLFMCIDHJLM field is set + * repeated .NpcDialogueEventParam dialogue_event_param_list = 5; + * @return whether the dialogueEventParamList field is set */ - public boolean hasCLFMCIDHJLM() { - return (bitField0_ & 0x00000010) != 0; + public boolean hasDialogueEventParamList() { + return (bitField0_ & 0x00000080) != 0; } /** - * optional bool CLFMCIDHJLM = 15; + * repeated .NpcDialogueEventParam dialogue_event_param_list = 5; * @return this */ - public NpcRogueInfo clearCLFMCIDHJLM() { - bitField0_ &= ~0x00000010; - cLFMCIDHJLM = false; + public NpcRogueInfo clearDialogueEventParamList() { + bitField0_ &= ~0x00000080; + dialogueEventParamList.clear(); return this; } /** - * optional bool CLFMCIDHJLM = 15; - * @return the cLFMCIDHJLM + * repeated .NpcDialogueEventParam dialogue_event_param_list = 5; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableDialogueEventParamList()} if you want to modify it. + * + * @return internal storage object for reading */ - public boolean getCLFMCIDHJLM() { - return cLFMCIDHJLM; + public RepeatedMessage getDialogueEventParamList( + ) { + return dialogueEventParamList; } /** - * optional bool CLFMCIDHJLM = 15; - * @param value the cLFMCIDHJLM to set + * repeated .NpcDialogueEventParam dialogue_event_param_list = 5; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableDialogueEventParamList( + ) { + bitField0_ |= 0x00000080; + return dialogueEventParamList; + } + + /** + * repeated .NpcDialogueEventParam dialogue_event_param_list = 5; + * @param value the dialogueEventParamList to add * @return this */ - public NpcRogueInfo setCLFMCIDHJLM(final boolean value) { - bitField0_ |= 0x00000010; - cLFMCIDHJLM = value; + public NpcRogueInfo addDialogueEventParamList( + final NpcDialogueEventParamOuterClass.NpcDialogueEventParam value) { + bitField0_ |= 0x00000080; + dialogueEventParamList.add(value); + return this; + } + + /** + * repeated .NpcDialogueEventParam dialogue_event_param_list = 5; + * @param values the dialogueEventParamList to add + * @return this + */ + public NpcRogueInfo addAllDialogueEventParamList( + final NpcDialogueEventParamOuterClass.NpcDialogueEventParam... values) { + bitField0_ |= 0x00000080; + dialogueEventParamList.addAll(values); + return this; + } + + /** + * repeated .NpcRogueInfo.FKDHDCGOIMFEntry FKDHDCGOIMF = 8; + * @return whether the fKDHDCGOIMF field is set + */ + public boolean hasFKDHDCGOIMF() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + * repeated .NpcRogueInfo.FKDHDCGOIMFEntry FKDHDCGOIMF = 8; + * @return this + */ + public NpcRogueInfo clearFKDHDCGOIMF() { + bitField0_ &= ~0x00000100; + fKDHDCGOIMF.clear(); + return this; + } + + /** + * repeated .NpcRogueInfo.FKDHDCGOIMFEntry FKDHDCGOIMF = 8; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableFKDHDCGOIMF()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getFKDHDCGOIMF() { + return fKDHDCGOIMF; + } + + /** + * repeated .NpcRogueInfo.FKDHDCGOIMFEntry FKDHDCGOIMF = 8; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableFKDHDCGOIMF() { + bitField0_ |= 0x00000100; + return fKDHDCGOIMF; + } + + /** + * repeated .NpcRogueInfo.FKDHDCGOIMFEntry FKDHDCGOIMF = 8; + * @param value the fKDHDCGOIMF to add + * @return this + */ + public NpcRogueInfo addFKDHDCGOIMF(final FKDHDCGOIMFEntry value) { + bitField0_ |= 0x00000100; + fKDHDCGOIMF.add(value); + return this; + } + + /** + * repeated .NpcRogueInfo.FKDHDCGOIMFEntry FKDHDCGOIMF = 8; + * @param values the fKDHDCGOIMF to add + * @return this + */ + public NpcRogueInfo addAllFKDHDCGOIMF(final FKDHDCGOIMFEntry... values) { + bitField0_ |= 0x00000100; + fKDHDCGOIMF.addAll(values); return this; } @@ -283,11 +478,15 @@ public final class NpcRogueInfoOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - rogueNpcId = other.rogueNpcId; - dialogueGroupId = other.dialogueGroupId; + oENLKDCLEOA = other.oENLKDCLEOA; + eventUniqueId = other.eventUniqueId; + eventId = other.eventId; + dialogueId = other.dialogueId; jFCBEHNMGNO = other.jFCBEHNMGNO; + jOFMIKFBGHP = other.jOFMIKFBGHP; finishDialogue = other.finishDialogue; - cLFMCIDHJLM = other.cLFMCIDHJLM; + dialogueEventParamList.copyFrom(other.dialogueEventParamList); + fKDHDCGOIMF.copyFrom(other.fKDHDCGOIMF); } return this; } @@ -298,20 +497,32 @@ public final class NpcRogueInfoOuterClass { return this; } cachedSize = -1; - if (other.hasRogueNpcId()) { - setRogueNpcId(other.rogueNpcId); + if (other.hasOENLKDCLEOA()) { + setOENLKDCLEOA(other.oENLKDCLEOA); } - if (other.hasDialogueGroupId()) { - setDialogueGroupId(other.dialogueGroupId); + if (other.hasEventUniqueId()) { + setEventUniqueId(other.eventUniqueId); + } + if (other.hasEventId()) { + setEventId(other.eventId); + } + if (other.hasDialogueId()) { + setDialogueId(other.dialogueId); } if (other.hasJFCBEHNMGNO()) { setJFCBEHNMGNO(other.jFCBEHNMGNO); } + if (other.hasJOFMIKFBGHP()) { + setJOFMIKFBGHP(other.jOFMIKFBGHP); + } if (other.hasFinishDialogue()) { setFinishDialogue(other.finishDialogue); } - if (other.hasCLFMCIDHJLM()) { - setCLFMCIDHJLM(other.cLFMCIDHJLM); + if (other.hasDialogueEventParamList()) { + getMutableDialogueEventParamList().addAll(other.dialogueEventParamList); + } + if (other.hasFKDHDCGOIMF()) { + getMutableFKDHDCGOIMF().addAll(other.fKDHDCGOIMF); } return this; } @@ -323,11 +534,15 @@ public final class NpcRogueInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - rogueNpcId = 0; - dialogueGroupId = 0; + oENLKDCLEOA = 0; + eventUniqueId = 0; + eventId = 0; + dialogueId = 0; jFCBEHNMGNO = false; + jOFMIKFBGHP = false; finishDialogue = false; - cLFMCIDHJLM = false; + dialogueEventParamList.clear(); + fKDHDCGOIMF.clear(); return this; } @@ -338,6 +553,8 @@ public final class NpcRogueInfoOuterClass { } cachedSize = -1; bitField0_ = 0; + dialogueEventParamList.clearQuick(); + fKDHDCGOIMF.clearQuick(); return this; } @@ -351,34 +568,58 @@ public final class NpcRogueInfoOuterClass { } NpcRogueInfo other = (NpcRogueInfo) o; return bitField0_ == other.bitField0_ - && (!hasRogueNpcId() || rogueNpcId == other.rogueNpcId) - && (!hasDialogueGroupId() || dialogueGroupId == other.dialogueGroupId) + && (!hasOENLKDCLEOA() || oENLKDCLEOA == other.oENLKDCLEOA) + && (!hasEventUniqueId() || eventUniqueId == other.eventUniqueId) + && (!hasEventId() || eventId == other.eventId) + && (!hasDialogueId() || dialogueId == other.dialogueId) && (!hasJFCBEHNMGNO() || jFCBEHNMGNO == other.jFCBEHNMGNO) + && (!hasJOFMIKFBGHP() || jOFMIKFBGHP == other.jOFMIKFBGHP) && (!hasFinishDialogue() || finishDialogue == other.finishDialogue) - && (!hasCLFMCIDHJLM() || cLFMCIDHJLM == other.cLFMCIDHJLM); + && (!hasDialogueEventParamList() || dialogueEventParamList.equals(other.dialogueEventParamList)) + && (!hasFKDHDCGOIMF() || fKDHDCGOIMF.equals(other.fKDHDCGOIMF)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 88); - output.writeUInt32NoTag(rogueNpcId); + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(oENLKDCLEOA); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 96); - output.writeUInt32NoTag(dialogueGroupId); + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(eventUniqueId); } if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(eventId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(dialogueId); + } + if ((bitField0_ & 0x00000010) != 0) { output.writeRawByte((byte) 8); output.writeBoolNoTag(jFCBEHNMGNO); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000020) != 0) { output.writeRawByte((byte) 72); + output.writeBoolNoTag(jOFMIKFBGHP); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 120); output.writeBoolNoTag(finishDialogue); } - if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 120); - output.writeBoolNoTag(cLFMCIDHJLM); + if ((bitField0_ & 0x00000080) != 0) { + for (int i = 0; i < dialogueEventParamList.length(); i++) { + output.writeRawByte((byte) 42); + output.writeMessageNoTag(dialogueEventParamList.get(i)); + } + } + if ((bitField0_ & 0x00000100) != 0) { + for (int i = 0; i < fKDHDCGOIMF.length(); i++) { + output.writeRawByte((byte) 66); + output.writeMessageNoTag(fKDHDCGOIMF.get(i)); + } } } @@ -386,20 +627,32 @@ public final class NpcRogueInfoOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(rogueNpcId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(oENLKDCLEOA); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(dialogueGroupId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(eventUniqueId); } if ((bitField0_ & 0x00000004) != 0) { - size += 2; + size += 1 + ProtoSink.computeUInt32SizeNoTag(eventId); } if ((bitField0_ & 0x00000008) != 0) { - size += 2; + size += 1 + ProtoSink.computeUInt32SizeNoTag(dialogueId); } if ((bitField0_ & 0x00000010) != 0) { size += 2; } + if ((bitField0_ & 0x00000020) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000040) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000080) != 0) { + size += (1 * dialogueEventParamList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(dialogueEventParamList); + } + if ((bitField0_ & 0x00000100) != 0) { + size += (1 * fKDHDCGOIMF.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(fKDHDCGOIMF); + } return size; } @@ -410,19 +663,37 @@ public final class NpcRogueInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 88: { - // rogueNpcId - rogueNpcId = input.readUInt32(); + case 16: { + // oENLKDCLEOA + oENLKDCLEOA = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // eventUniqueId + eventUniqueId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // eventId + eventId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); if (tag != 96) { break; } } case 96: { - // dialogueGroupId - dialogueGroupId = input.readUInt32(); - bitField0_ |= 0x00000002; + // dialogueId + dialogueId = input.readUInt32(); + bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 8) { break; @@ -431,26 +702,42 @@ public final class NpcRogueInfoOuterClass { case 8: { // jFCBEHNMGNO jFCBEHNMGNO = input.readBool(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; tag = input.readTag(); if (tag != 72) { break; } } case 72: { - // finishDialogue - finishDialogue = input.readBool(); - bitField0_ |= 0x00000008; + // jOFMIKFBGHP + jOFMIKFBGHP = input.readBool(); + bitField0_ |= 0x00000020; tag = input.readTag(); if (tag != 120) { break; } } case 120: { - // cLFMCIDHJLM - cLFMCIDHJLM = input.readBool(); - bitField0_ |= 0x00000010; + // finishDialogue + finishDialogue = input.readBool(); + bitField0_ |= 0x00000040; tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { + // dialogueEventParamList + tag = input.readRepeatedMessage(dialogueEventParamList, tag); + bitField0_ |= 0x00000080; + if (tag != 66) { + break; + } + } + case 66: { + // fKDHDCGOIMF + tag = input.readRepeatedMessage(fKDHDCGOIMF, tag); + bitField0_ |= 0x00000100; if (tag != 0) { break; } @@ -473,19 +760,31 @@ public final class NpcRogueInfoOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.rogueNpcId, rogueNpcId); + output.writeUInt32(FieldNames.oENLKDCLEOA, oENLKDCLEOA); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.dialogueGroupId, dialogueGroupId); + output.writeUInt32(FieldNames.eventUniqueId, eventUniqueId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeBool(FieldNames.jFCBEHNMGNO, jFCBEHNMGNO); + output.writeUInt32(FieldNames.eventId, eventId); } if ((bitField0_ & 0x00000008) != 0) { - output.writeBool(FieldNames.finishDialogue, finishDialogue); + output.writeUInt32(FieldNames.dialogueId, dialogueId); } if ((bitField0_ & 0x00000010) != 0) { - output.writeBool(FieldNames.cLFMCIDHJLM, cLFMCIDHJLM); + output.writeBool(FieldNames.jFCBEHNMGNO, jFCBEHNMGNO); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeBool(FieldNames.jOFMIKFBGHP, jOFMIKFBGHP); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeBool(FieldNames.finishDialogue, finishDialogue); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRepeatedMessage(FieldNames.dialogueEventParamList, dialogueEventParamList); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeRepeatedMessage(FieldNames.fKDHDCGOIMF, fKDHDCGOIMF); } output.endObject(); } @@ -497,11 +796,10 @@ public final class NpcRogueInfoOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -1140086238: - case 1751967038: { - if (input.isAtField(FieldNames.rogueNpcId)) { + case -983404159: { + if (input.isAtField(FieldNames.oENLKDCLEOA)) { if (!input.trySkipNullValue()) { - rogueNpcId = input.readUInt32(); + oENLKDCLEOA = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -509,11 +807,11 @@ public final class NpcRogueInfoOuterClass { } break; } - case 1758320386: - case 1899979106: { - if (input.isAtField(FieldNames.dialogueGroupId)) { + case 2091680134: + case -157385500: { + if (input.isAtField(FieldNames.eventUniqueId)) { if (!input.trySkipNullValue()) { - dialogueGroupId = input.readUInt32(); + eventUniqueId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -521,11 +819,46 @@ public final class NpcRogueInfoOuterClass { } break; } + case -1376502443: + case 278118624: { + if (input.isAtField(FieldNames.eventId)) { + if (!input.trySkipNullValue()) { + eventId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1384067821: + case 43591906: { + if (input.isAtField(FieldNames.dialogueId)) { + if (!input.trySkipNullValue()) { + dialogueId = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } case 763452523: { if (input.isAtField(FieldNames.jFCBEHNMGNO)) { if (!input.trySkipNullValue()) { jFCBEHNMGNO = input.readBool(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -808301787: { + if (input.isAtField(FieldNames.jOFMIKFBGHP)) { + if (!input.trySkipNullValue()) { + jOFMIKFBGHP = input.readBool(); + bitField0_ |= 0x00000020; } } else { input.skipUnknownField(); @@ -537,18 +870,30 @@ public final class NpcRogueInfoOuterClass { if (input.isAtField(FieldNames.finishDialogue)) { if (!input.trySkipNullValue()) { finishDialogue = input.readBool(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000040; } } else { input.skipUnknownField(); } break; } - case -1613982031: { - if (input.isAtField(FieldNames.cLFMCIDHJLM)) { + case -340413111: + case -612945060: { + if (input.isAtField(FieldNames.dialogueEventParamList)) { if (!input.trySkipNullValue()) { - cLFMCIDHJLM = input.readBool(); - bitField0_ |= 0x00000010; + input.readRepeatedMessage(dialogueEventParamList); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1696143474: { + if (input.isAtField(FieldNames.fKDHDCGOIMF)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(fKDHDCGOIMF); + bitField0_ |= 0x00000100; } } else { input.skipUnknownField(); @@ -594,6 +939,331 @@ public final class NpcRogueInfoOuterClass { return NpcRogueInfoFactory.INSTANCE; } + /** + * Protobuf type {@code FKDHDCGOIMFEntry} + */ + public static final class FKDHDCGOIMFEntry extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 key = 1; + */ + private int key; + + /** + * optional uint32 value = 2; + */ + private int value_; + + private FKDHDCGOIMFEntry() { + } + + /** + * @return a new empty instance of {@code FKDHDCGOIMFEntry} + */ + public static FKDHDCGOIMFEntry newInstance() { + return new FKDHDCGOIMFEntry(); + } + + /** + * optional uint32 key = 1; + * @return whether the key field is set + */ + public boolean hasKey() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 key = 1; + * @return this + */ + public FKDHDCGOIMFEntry clearKey() { + bitField0_ &= ~0x00000001; + key = 0; + return this; + } + + /** + * optional uint32 key = 1; + * @return the key + */ + public int getKey() { + return key; + } + + /** + * optional uint32 key = 1; + * @param value the key to set + * @return this + */ + public FKDHDCGOIMFEntry setKey(final int value) { + bitField0_ |= 0x00000001; + key = value; + return this; + } + + /** + * optional uint32 value = 2; + * @return whether the value_ field is set + */ + public boolean hasValue() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 value = 2; + * @return this + */ + public FKDHDCGOIMFEntry clearValue() { + bitField0_ &= ~0x00000002; + value_ = 0; + return this; + } + + /** + * optional uint32 value = 2; + * @return the value_ + */ + public int getValue() { + return value_; + } + + /** + * optional uint32 value = 2; + * @param value the value_ to set + * @return this + */ + public FKDHDCGOIMFEntry setValue(final int value) { + bitField0_ |= 0x00000002; + value_ = value; + return this; + } + + @Override + public FKDHDCGOIMFEntry copyFrom(final FKDHDCGOIMFEntry other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + key = other.key; + value_ = other.value_; + } + return this; + } + + @Override + public FKDHDCGOIMFEntry mergeFrom(final FKDHDCGOIMFEntry other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasKey()) { + setKey(other.key); + } + if (other.hasValue()) { + setValue(other.value_); + } + return this; + } + + @Override + public FKDHDCGOIMFEntry clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + key = 0; + value_ = 0; + return this; + } + + @Override + public FKDHDCGOIMFEntry 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 FKDHDCGOIMFEntry)) { + return false; + } + FKDHDCGOIMFEntry other = (FKDHDCGOIMFEntry) o; + return bitField0_ == other.bitField0_ + && (!hasKey() || key == other.key) + && (!hasValue() || value_ == other.value_); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(key); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(value_); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(key); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(value_); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public FKDHDCGOIMFEntry mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // key + key = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // value_ + value_ = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.key, key); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.value_, value_); + } + output.endObject(); + } + + @Override + public FKDHDCGOIMFEntry mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 106079: { + if (input.isAtField(FieldNames.key)) { + if (!input.trySkipNullValue()) { + key = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 111972721: { + if (input.isAtField(FieldNames.value_)) { + if (!input.trySkipNullValue()) { + value_ = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public FKDHDCGOIMFEntry clone() { + return new FKDHDCGOIMFEntry().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static FKDHDCGOIMFEntry parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new FKDHDCGOIMFEntry(), data).checkInitialized(); + } + + public static FKDHDCGOIMFEntry parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new FKDHDCGOIMFEntry(), input).checkInitialized(); + } + + public static FKDHDCGOIMFEntry parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new FKDHDCGOIMFEntry(), input).checkInitialized(); + } + + /** + * @return factory for creating FKDHDCGOIMFEntry messages + */ + public static MessageFactory getFactory() { + return FKDHDCGOIMFEntryFactory.INSTANCE; + } + + private enum FKDHDCGOIMFEntryFactory implements MessageFactory { + INSTANCE; + + @Override + public FKDHDCGOIMFEntry create() { + return FKDHDCGOIMFEntry.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName key = FieldName.forField("key"); + + static final FieldName value_ = FieldName.forField("value"); + } + } + private enum NpcRogueInfoFactory implements MessageFactory { INSTANCE; @@ -607,15 +1277,23 @@ public final class NpcRogueInfoOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName rogueNpcId = FieldName.forField("rogueNpcId", "rogue_npc_id"); + static final FieldName oENLKDCLEOA = FieldName.forField("OENLKDCLEOA"); - static final FieldName dialogueGroupId = FieldName.forField("dialogueGroupId", "dialogue_group_id"); + static final FieldName eventUniqueId = FieldName.forField("eventUniqueId", "event_unique_id"); + + static final FieldName eventId = FieldName.forField("eventId", "event_id"); + + static final FieldName dialogueId = FieldName.forField("dialogueId", "dialogue_id"); static final FieldName jFCBEHNMGNO = FieldName.forField("JFCBEHNMGNO"); + static final FieldName jOFMIKFBGHP = FieldName.forField("JOFMIKFBGHP"); + static final FieldName finishDialogue = FieldName.forField("finishDialogue", "finish_dialogue"); - static final FieldName cLFMCIDHJLM = FieldName.forField("CLFMCIDHJLM"); + static final FieldName dialogueEventParamList = FieldName.forField("dialogueEventParamList", "dialogue_event_param_list"); + + static final FieldName fKDHDCGOIMF = FieldName.forField("FKDHDCGOIMF"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/PlatformTypeOuterClass.java b/src/generated/main/emu/lunarcore/proto/PlatformTypeOuterClass.java index 4f78b06..79eff87 100644 --- a/src/generated/main/emu/lunarcore/proto/PlatformTypeOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/PlatformTypeOuterClass.java @@ -237,7 +237,7 @@ public final class PlatformTypeOuterClass { /** * @return a converter that maps between this enum's numeric and text representations */ - public static ProtoEnum.EnumConverter converter() { + public static EnumConverter converter() { return PlatformTypeConverter.INSTANCE; } @@ -259,7 +259,7 @@ public final class PlatformTypeOuterClass { return value == null ? other : value; } - enum PlatformTypeConverter implements ProtoEnum.EnumConverter { + enum PlatformTypeConverter implements EnumConverter { INSTANCE; private static final PlatformType[] lookup = new PlatformType[26]; diff --git a/src/generated/main/emu/lunarcore/proto/PlayingStateOuterClass.java b/src/generated/main/emu/lunarcore/proto/PlayingStateOuterClass.java index c3ef7c4..4b36071 100644 --- a/src/generated/main/emu/lunarcore/proto/PlayingStateOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/PlayingStateOuterClass.java @@ -117,7 +117,7 @@ public final class PlayingStateOuterClass { /** * @return a converter that maps between this enum's numeric and text representations */ - public static ProtoEnum.EnumConverter converter() { + public static EnumConverter converter() { return PlayingStateConverter.INSTANCE; } @@ -139,7 +139,7 @@ public final class PlayingStateOuterClass { return value == null ? other : value; } - enum PlayingStateConverter implements ProtoEnum.EnumConverter { + enum PlayingStateConverter implements EnumConverter { INSTANCE; private static final PlayingState[] lookup = new PlayingState[8]; diff --git a/src/generated/main/emu/lunarcore/proto/QuestStatusOuterClass.java b/src/generated/main/emu/lunarcore/proto/QuestStatusOuterClass.java index 985c275..4a8066e 100644 --- a/src/generated/main/emu/lunarcore/proto/QuestStatusOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/QuestStatusOuterClass.java @@ -87,7 +87,7 @@ public final class QuestStatusOuterClass { /** * @return a converter that maps between this enum's numeric and text representations */ - public static ProtoEnum.EnumConverter converter() { + public static EnumConverter converter() { return QuestStatusConverter.INSTANCE; } @@ -109,7 +109,7 @@ public final class QuestStatusOuterClass { return value == null ? other : value; } - enum QuestStatusConverter implements ProtoEnum.EnumConverter { + enum QuestStatusConverter implements EnumConverter { INSTANCE; private static final QuestStatus[] lookup = new QuestStatus[5]; diff --git a/src/generated/main/emu/lunarcore/proto/RogueAreaStatusOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueAreaStatusOuterClass.java index 58bf4aa..c545b11 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueAreaStatusOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RogueAreaStatusOuterClass.java @@ -77,7 +77,7 @@ public final class RogueAreaStatusOuterClass { /** * @return a converter that maps between this enum's numeric and text representations */ - public static ProtoEnum.EnumConverter converter() { + public static EnumConverter converter() { return RogueAreaStatusConverter.INSTANCE; } @@ -99,7 +99,7 @@ public final class RogueAreaStatusOuterClass { return value == null ? other : value; } - enum RogueAreaStatusConverter implements ProtoEnum.EnumConverter { + enum RogueAreaStatusConverter implements EnumConverter { INSTANCE; private static final RogueAreaStatus[] lookup = new RogueAreaStatus[4]; diff --git a/src/generated/main/emu/lunarcore/proto/RogueBuffSourceOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueBuffSourceOuterClass.java index 9b1e15f..3127e4b 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueBuffSourceOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RogueBuffSourceOuterClass.java @@ -137,7 +137,7 @@ public final class RogueBuffSourceOuterClass { /** * @return a converter that maps between this enum's numeric and text representations */ - public static ProtoEnum.EnumConverter converter() { + public static EnumConverter converter() { return RogueBuffSourceConverter.INSTANCE; } @@ -159,7 +159,7 @@ public final class RogueBuffSourceOuterClass { return value == null ? other : value; } - enum RogueBuffSourceConverter implements ProtoEnum.EnumConverter { + enum RogueBuffSourceConverter implements EnumConverter { INSTANCE; private static final RogueBuffSource[] lookup = new RogueBuffSource[10]; diff --git a/src/generated/main/emu/lunarcore/proto/RogueCommonActionResultDisplayTypeOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueCommonActionResultDisplayTypeOuterClass.java index 15d3664..08deb89 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueCommonActionResultDisplayTypeOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RogueCommonActionResultDisplayTypeOuterClass.java @@ -67,7 +67,7 @@ public final class RogueCommonActionResultDisplayTypeOuterClass { /** * @return a converter that maps between this enum's numeric and text representations */ - public static ProtoEnum.EnumConverter converter() { + public static EnumConverter converter() { return RogueCommonActionResultDisplayTypeConverter.INSTANCE; } @@ -90,7 +90,7 @@ public final class RogueCommonActionResultDisplayTypeOuterClass { return value == null ? other : value; } - enum RogueCommonActionResultDisplayTypeConverter implements ProtoEnum.EnumConverter { + enum RogueCommonActionResultDisplayTypeConverter implements EnumConverter { INSTANCE; private static final RogueCommonActionResultDisplayType[] lookup = new RogueCommonActionResultDisplayType[3]; diff --git a/src/generated/main/emu/lunarcore/proto/RogueCommonBuffSelectSourceOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueCommonBuffSelectSourceOuterClass.java index ed117d8..2de10ea 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueCommonBuffSelectSourceOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RogueCommonBuffSelectSourceOuterClass.java @@ -87,7 +87,7 @@ public final class RogueCommonBuffSelectSourceOuterClass { /** * @return a converter that maps between this enum's numeric and text representations */ - public static ProtoEnum.EnumConverter converter() { + public static EnumConverter converter() { return RogueCommonBuffSelectSourceConverter.INSTANCE; } @@ -110,7 +110,7 @@ public final class RogueCommonBuffSelectSourceOuterClass { return value == null ? other : value; } - enum RogueCommonBuffSelectSourceConverter implements ProtoEnum.EnumConverter { + enum RogueCommonBuffSelectSourceConverter implements EnumConverter { INSTANCE; private static final RogueCommonBuffSelectSource[] lookup = new RogueCommonBuffSelectSource[5]; diff --git a/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueBasicInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueBasicInfoOuterClass.java new file mode 100644 index 0000000..766ec3c --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueBasicInfoOuterClass.java @@ -0,0 +1,342 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; + +public final class RogueCommonDialogueBasicInfoOuterClass { + /** + * Protobuf type {@code RogueCommonDialogueBasicInfo} + */ + public static final class RogueCommonDialogueBasicInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 dialogue_id = 4; + */ + private int dialogueId; + + /** + * optional uint32 sus = 5; + */ + private int sus; + + private RogueCommonDialogueBasicInfo() { + } + + /** + * @return a new empty instance of {@code RogueCommonDialogueBasicInfo} + */ + public static RogueCommonDialogueBasicInfo newInstance() { + return new RogueCommonDialogueBasicInfo(); + } + + /** + * optional uint32 dialogue_id = 4; + * @return whether the dialogueId field is set + */ + public boolean hasDialogueId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 dialogue_id = 4; + * @return this + */ + public RogueCommonDialogueBasicInfo clearDialogueId() { + bitField0_ &= ~0x00000001; + dialogueId = 0; + return this; + } + + /** + * optional uint32 dialogue_id = 4; + * @return the dialogueId + */ + public int getDialogueId() { + return dialogueId; + } + + /** + * optional uint32 dialogue_id = 4; + * @param value the dialogueId to set + * @return this + */ + public RogueCommonDialogueBasicInfo setDialogueId(final int value) { + bitField0_ |= 0x00000001; + dialogueId = value; + return this; + } + + /** + * optional uint32 sus = 5; + * @return whether the sus field is set + */ + public boolean hasSus() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 sus = 5; + * @return this + */ + public RogueCommonDialogueBasicInfo clearSus() { + bitField0_ &= ~0x00000002; + sus = 0; + return this; + } + + /** + * optional uint32 sus = 5; + * @return the sus + */ + public int getSus() { + return sus; + } + + /** + * optional uint32 sus = 5; + * @param value the sus to set + * @return this + */ + public RogueCommonDialogueBasicInfo setSus(final int value) { + bitField0_ |= 0x00000002; + sus = value; + return this; + } + + @Override + public RogueCommonDialogueBasicInfo copyFrom(final RogueCommonDialogueBasicInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + dialogueId = other.dialogueId; + sus = other.sus; + } + return this; + } + + @Override + public RogueCommonDialogueBasicInfo mergeFrom(final RogueCommonDialogueBasicInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasDialogueId()) { + setDialogueId(other.dialogueId); + } + if (other.hasSus()) { + setSus(other.sus); + } + return this; + } + + @Override + public RogueCommonDialogueBasicInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + dialogueId = 0; + sus = 0; + return this; + } + + @Override + public RogueCommonDialogueBasicInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueCommonDialogueBasicInfo)) { + return false; + } + RogueCommonDialogueBasicInfo other = (RogueCommonDialogueBasicInfo) o; + return bitField0_ == other.bitField0_ + && (!hasDialogueId() || dialogueId == other.dialogueId) + && (!hasSus() || sus == other.sus); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(dialogueId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(sus); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(dialogueId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(sus); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueCommonDialogueBasicInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 32: { + // dialogueId + dialogueId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // sus + sus = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.dialogueId, dialogueId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.sus, sus); + } + output.endObject(); + } + + @Override + public RogueCommonDialogueBasicInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1384067821: + case 43591906: { + if (input.isAtField(FieldNames.dialogueId)) { + if (!input.trySkipNullValue()) { + dialogueId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 114257: { + if (input.isAtField(FieldNames.sus)) { + if (!input.trySkipNullValue()) { + sus = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueCommonDialogueBasicInfo clone() { + return new RogueCommonDialogueBasicInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueCommonDialogueBasicInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueCommonDialogueBasicInfo(), data).checkInitialized(); + } + + public static RogueCommonDialogueBasicInfo parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new RogueCommonDialogueBasicInfo(), input).checkInitialized(); + } + + public static RogueCommonDialogueBasicInfo parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new RogueCommonDialogueBasicInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueCommonDialogueBasicInfo messages + */ + public static MessageFactory getFactory() { + return RogueCommonDialogueBasicInfoFactory.INSTANCE; + } + + private enum RogueCommonDialogueBasicInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueCommonDialogueBasicInfo create() { + return RogueCommonDialogueBasicInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName dialogueId = FieldName.forField("dialogueId", "dialogue_id"); + + static final FieldName sus = FieldName.forField("sus"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueDataInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueDataInfoOuterClass.java new file mode 100644 index 0000000..6a261d7 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueDataInfoOuterClass.java @@ -0,0 +1,483 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedMessage; + +public final class RogueCommonDialogueDataInfoOuterClass { + /** + * Protobuf type {@code RogueCommonDialogueDataInfo} + */ + public static final class RogueCommonDialogueDataInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 event_unique_id = 15; + */ + private int eventUniqueId; + + /** + * optional .RogueCommonDialogueInfo dialogue_info = 4; + */ + private final RogueCommonDialogueInfoOuterClass.RogueCommonDialogueInfo dialogueInfo = RogueCommonDialogueInfoOuterClass.RogueCommonDialogueInfo.newInstance(); + + /** + * repeated .RogueCommonDialogueOptionInfo option_list = 1; + */ + private final RepeatedMessage optionList = RepeatedMessage.newEmptyInstance(RogueCommonDialogueOptionInfoOuterClass.RogueCommonDialogueOptionInfo.getFactory()); + + private RogueCommonDialogueDataInfo() { + } + + /** + * @return a new empty instance of {@code RogueCommonDialogueDataInfo} + */ + public static RogueCommonDialogueDataInfo newInstance() { + return new RogueCommonDialogueDataInfo(); + } + + /** + * optional uint32 event_unique_id = 15; + * @return whether the eventUniqueId field is set + */ + public boolean hasEventUniqueId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 event_unique_id = 15; + * @return this + */ + public RogueCommonDialogueDataInfo clearEventUniqueId() { + bitField0_ &= ~0x00000001; + eventUniqueId = 0; + return this; + } + + /** + * optional uint32 event_unique_id = 15; + * @return the eventUniqueId + */ + public int getEventUniqueId() { + return eventUniqueId; + } + + /** + * optional uint32 event_unique_id = 15; + * @param value the eventUniqueId to set + * @return this + */ + public RogueCommonDialogueDataInfo setEventUniqueId(final int value) { + bitField0_ |= 0x00000001; + eventUniqueId = value; + return this; + } + + /** + * optional .RogueCommonDialogueInfo dialogue_info = 4; + * @return whether the dialogueInfo field is set + */ + public boolean hasDialogueInfo() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .RogueCommonDialogueInfo dialogue_info = 4; + * @return this + */ + public RogueCommonDialogueDataInfo clearDialogueInfo() { + bitField0_ &= ~0x00000002; + dialogueInfo.clear(); + return this; + } + + /** + * optional .RogueCommonDialogueInfo dialogue_info = 4; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableDialogueInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueCommonDialogueInfoOuterClass.RogueCommonDialogueInfo getDialogueInfo() { + return dialogueInfo; + } + + /** + * optional .RogueCommonDialogueInfo dialogue_info = 4; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RogueCommonDialogueInfoOuterClass.RogueCommonDialogueInfo getMutableDialogueInfo() { + bitField0_ |= 0x00000002; + return dialogueInfo; + } + + /** + * optional .RogueCommonDialogueInfo dialogue_info = 4; + * @param value the dialogueInfo to set + * @return this + */ + public RogueCommonDialogueDataInfo setDialogueInfo( + final RogueCommonDialogueInfoOuterClass.RogueCommonDialogueInfo value) { + bitField0_ |= 0x00000002; + dialogueInfo.copyFrom(value); + return this; + } + + /** + * repeated .RogueCommonDialogueOptionInfo option_list = 1; + * @return whether the optionList field is set + */ + public boolean hasOptionList() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated .RogueCommonDialogueOptionInfo option_list = 1; + * @return this + */ + public RogueCommonDialogueDataInfo clearOptionList() { + bitField0_ &= ~0x00000004; + optionList.clear(); + return this; + } + + /** + * repeated .RogueCommonDialogueOptionInfo option_list = 1; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableOptionList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getOptionList( + ) { + return optionList; + } + + /** + * repeated .RogueCommonDialogueOptionInfo option_list = 1; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableOptionList( + ) { + bitField0_ |= 0x00000004; + return optionList; + } + + /** + * repeated .RogueCommonDialogueOptionInfo option_list = 1; + * @param value the optionList to add + * @return this + */ + public RogueCommonDialogueDataInfo addOptionList( + final RogueCommonDialogueOptionInfoOuterClass.RogueCommonDialogueOptionInfo value) { + bitField0_ |= 0x00000004; + optionList.add(value); + return this; + } + + /** + * repeated .RogueCommonDialogueOptionInfo option_list = 1; + * @param values the optionList to add + * @return this + */ + public RogueCommonDialogueDataInfo addAllOptionList( + final RogueCommonDialogueOptionInfoOuterClass.RogueCommonDialogueOptionInfo... values) { + bitField0_ |= 0x00000004; + optionList.addAll(values); + return this; + } + + @Override + public RogueCommonDialogueDataInfo copyFrom(final RogueCommonDialogueDataInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + eventUniqueId = other.eventUniqueId; + dialogueInfo.copyFrom(other.dialogueInfo); + optionList.copyFrom(other.optionList); + } + return this; + } + + @Override + public RogueCommonDialogueDataInfo mergeFrom(final RogueCommonDialogueDataInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasEventUniqueId()) { + setEventUniqueId(other.eventUniqueId); + } + if (other.hasDialogueInfo()) { + getMutableDialogueInfo().mergeFrom(other.dialogueInfo); + } + if (other.hasOptionList()) { + getMutableOptionList().addAll(other.optionList); + } + return this; + } + + @Override + public RogueCommonDialogueDataInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + eventUniqueId = 0; + dialogueInfo.clear(); + optionList.clear(); + return this; + } + + @Override + public RogueCommonDialogueDataInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + dialogueInfo.clearQuick(); + optionList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueCommonDialogueDataInfo)) { + return false; + } + RogueCommonDialogueDataInfo other = (RogueCommonDialogueDataInfo) o; + return bitField0_ == other.bitField0_ + && (!hasEventUniqueId() || eventUniqueId == other.eventUniqueId) + && (!hasDialogueInfo() || dialogueInfo.equals(other.dialogueInfo)) + && (!hasOptionList() || optionList.equals(other.optionList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(eventUniqueId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 34); + output.writeMessageNoTag(dialogueInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < optionList.length(); i++) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(optionList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(eventUniqueId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(dialogueInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * optionList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(optionList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueCommonDialogueDataInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 120: { + // eventUniqueId + eventUniqueId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // dialogueInfo + input.readMessage(dialogueInfo); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // optionList + tag = input.readRepeatedMessage(optionList, tag); + bitField0_ |= 0x00000004; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.eventUniqueId, eventUniqueId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.dialogueInfo, dialogueInfo); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedMessage(FieldNames.optionList, optionList); + } + output.endObject(); + } + + @Override + public RogueCommonDialogueDataInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 2091680134: + case -157385500: { + if (input.isAtField(FieldNames.eventUniqueId)) { + if (!input.trySkipNullValue()) { + eventUniqueId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1350698662: + case -1057838411: { + if (input.isAtField(FieldNames.dialogueInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(dialogueInfo); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1373334195: + case -358686168: { + if (input.isAtField(FieldNames.optionList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(optionList); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueCommonDialogueDataInfo clone() { + return new RogueCommonDialogueDataInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueCommonDialogueDataInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueCommonDialogueDataInfo(), data).checkInitialized(); + } + + public static RogueCommonDialogueDataInfo parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new RogueCommonDialogueDataInfo(), input).checkInitialized(); + } + + public static RogueCommonDialogueDataInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueCommonDialogueDataInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueCommonDialogueDataInfo messages + */ + public static MessageFactory getFactory() { + return RogueCommonDialogueDataInfoFactory.INSTANCE; + } + + private enum RogueCommonDialogueDataInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueCommonDialogueDataInfo create() { + return RogueCommonDialogueDataInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName eventUniqueId = FieldName.forField("eventUniqueId", "event_unique_id"); + + static final FieldName dialogueInfo = FieldName.forField("dialogueInfo", "dialogue_info"); + + static final FieldName optionList = FieldName.forField("optionList", "option_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueInfoOuterClass.java new file mode 100644 index 0000000..c120f42 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueInfoOuterClass.java @@ -0,0 +1,325 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; + +public final class RogueCommonDialogueInfoOuterClass { + /** + * Protobuf type {@code RogueCommonDialogueInfo} + */ + public static final class RogueCommonDialogueInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + *
+     * DIACKBJMGOM IECFCBIHCKG = 6;
+     * CBEPEJDDBHK HCNKEAOPIGF = 4;
+     * 
+ * + * optional .RogueCommonDialogueBasicInfo dialogue_basic_info = 13; + */ + private final RogueCommonDialogueBasicInfoOuterClass.RogueCommonDialogueBasicInfo dialogueBasicInfo = RogueCommonDialogueBasicInfoOuterClass.RogueCommonDialogueBasicInfo.newInstance(); + + private RogueCommonDialogueInfo() { + } + + /** + * @return a new empty instance of {@code RogueCommonDialogueInfo} + */ + public static RogueCommonDialogueInfo newInstance() { + return new RogueCommonDialogueInfo(); + } + + public boolean hasOBCDHEEJEFH() { + return (((bitField0_ & 0x00000001)) != 0); + } + + public RogueCommonDialogueInfo clearOBCDHEEJEFH() { + if (hasOBCDHEEJEFH()) { + clearDialogueBasicInfo(); + } + return this; + } + + /** + *
+     * DIACKBJMGOM IECFCBIHCKG = 6;
+     * CBEPEJDDBHK HCNKEAOPIGF = 4;
+     * 
+ * + * optional .RogueCommonDialogueBasicInfo dialogue_basic_info = 13; + * @return whether the dialogueBasicInfo field is set + */ + public boolean hasDialogueBasicInfo() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + *
+     * DIACKBJMGOM IECFCBIHCKG = 6;
+     * CBEPEJDDBHK HCNKEAOPIGF = 4;
+     * 
+ * + * optional .RogueCommonDialogueBasicInfo dialogue_basic_info = 13; + * @return this + */ + public RogueCommonDialogueInfo clearDialogueBasicInfo() { + bitField0_ &= ~0x00000001; + dialogueBasicInfo.clear(); + return this; + } + + /** + *
+     * DIACKBJMGOM IECFCBIHCKG = 6;
+     * CBEPEJDDBHK HCNKEAOPIGF = 4;
+     * 
+ * + * optional .RogueCommonDialogueBasicInfo dialogue_basic_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 #getMutableDialogueBasicInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueCommonDialogueBasicInfoOuterClass.RogueCommonDialogueBasicInfo getDialogueBasicInfo( + ) { + return dialogueBasicInfo; + } + + /** + *
+     * DIACKBJMGOM IECFCBIHCKG = 6;
+     * CBEPEJDDBHK HCNKEAOPIGF = 4;
+     * 
+ * + * optional .RogueCommonDialogueBasicInfo dialogue_basic_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 RogueCommonDialogueBasicInfoOuterClass.RogueCommonDialogueBasicInfo getMutableDialogueBasicInfo( + ) { + bitField0_ |= 0x00000001; + return dialogueBasicInfo; + } + + /** + *
+     * DIACKBJMGOM IECFCBIHCKG = 6;
+     * CBEPEJDDBHK HCNKEAOPIGF = 4;
+     * 
+ * + * optional .RogueCommonDialogueBasicInfo dialogue_basic_info = 13; + * @param value the dialogueBasicInfo to set + * @return this + */ + public RogueCommonDialogueInfo setDialogueBasicInfo( + final RogueCommonDialogueBasicInfoOuterClass.RogueCommonDialogueBasicInfo value) { + bitField0_ |= 0x00000001; + dialogueBasicInfo.copyFrom(value); + return this; + } + + @Override + public RogueCommonDialogueInfo copyFrom(final RogueCommonDialogueInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + dialogueBasicInfo.copyFrom(other.dialogueBasicInfo); + } + return this; + } + + @Override + public RogueCommonDialogueInfo mergeFrom(final RogueCommonDialogueInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasDialogueBasicInfo()) { + getMutableDialogueBasicInfo().mergeFrom(other.dialogueBasicInfo); + } + return this; + } + + @Override + public RogueCommonDialogueInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + dialogueBasicInfo.clear(); + return this; + } + + @Override + public RogueCommonDialogueInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + dialogueBasicInfo.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueCommonDialogueInfo)) { + return false; + } + RogueCommonDialogueInfo other = (RogueCommonDialogueInfo) o; + return bitField0_ == other.bitField0_ + && (!hasDialogueBasicInfo() || dialogueBasicInfo.equals(other.dialogueBasicInfo)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 106); + output.writeMessageNoTag(dialogueBasicInfo); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(dialogueBasicInfo); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueCommonDialogueInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 106: { + // dialogueBasicInfo + input.readMessage(dialogueBasicInfo); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeMessage(FieldNames.dialogueBasicInfo, dialogueBasicInfo); + } + output.endObject(); + } + + @Override + public RogueCommonDialogueInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1607581444: + case -1887626522: { + if (input.isAtField(FieldNames.dialogueBasicInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(dialogueBasicInfo); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueCommonDialogueInfo clone() { + return new RogueCommonDialogueInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueCommonDialogueInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueCommonDialogueInfo(), data).checkInitialized(); + } + + public static RogueCommonDialogueInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueCommonDialogueInfo(), input).checkInitialized(); + } + + public static RogueCommonDialogueInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueCommonDialogueInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueCommonDialogueInfo messages + */ + public static MessageFactory getFactory() { + return RogueCommonDialogueInfoFactory.INSTANCE; + } + + private enum RogueCommonDialogueInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueCommonDialogueInfo create() { + return RogueCommonDialogueInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName dialogueBasicInfo = FieldName.forField("dialogueBasicInfo", "dialogue_basic_info"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueOptionBattleResultInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueOptionBattleResultInfoOuterClass.java new file mode 100644 index 0000000..7698775 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueOptionBattleResultInfoOuterClass.java @@ -0,0 +1,266 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; + +public final class RogueCommonDialogueOptionBattleResultInfoOuterClass { + /** + * Protobuf type {@code RogueCommonDialogueOptionBattleResultInfo} + */ + public static final class RogueCommonDialogueOptionBattleResultInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 battle_event_id = 8; + */ + private int battleEventId; + + private RogueCommonDialogueOptionBattleResultInfo() { + } + + /** + * @return a new empty instance of {@code RogueCommonDialogueOptionBattleResultInfo} + */ + public static RogueCommonDialogueOptionBattleResultInfo newInstance() { + return new RogueCommonDialogueOptionBattleResultInfo(); + } + + /** + * optional uint32 battle_event_id = 8; + * @return whether the battleEventId field is set + */ + public boolean hasBattleEventId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 battle_event_id = 8; + * @return this + */ + public RogueCommonDialogueOptionBattleResultInfo clearBattleEventId() { + bitField0_ &= ~0x00000001; + battleEventId = 0; + return this; + } + + /** + * optional uint32 battle_event_id = 8; + * @return the battleEventId + */ + public int getBattleEventId() { + return battleEventId; + } + + /** + * optional uint32 battle_event_id = 8; + * @param value the battleEventId to set + * @return this + */ + public RogueCommonDialogueOptionBattleResultInfo setBattleEventId(final int value) { + bitField0_ |= 0x00000001; + battleEventId = value; + return this; + } + + @Override + public RogueCommonDialogueOptionBattleResultInfo copyFrom( + final RogueCommonDialogueOptionBattleResultInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + battleEventId = other.battleEventId; + } + return this; + } + + @Override + public RogueCommonDialogueOptionBattleResultInfo mergeFrom( + final RogueCommonDialogueOptionBattleResultInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBattleEventId()) { + setBattleEventId(other.battleEventId); + } + return this; + } + + @Override + public RogueCommonDialogueOptionBattleResultInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + battleEventId = 0; + return this; + } + + @Override + public RogueCommonDialogueOptionBattleResultInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueCommonDialogueOptionBattleResultInfo)) { + return false; + } + RogueCommonDialogueOptionBattleResultInfo other = (RogueCommonDialogueOptionBattleResultInfo) o; + return bitField0_ == other.bitField0_ + && (!hasBattleEventId() || battleEventId == other.battleEventId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(battleEventId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(battleEventId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueCommonDialogueOptionBattleResultInfo mergeFrom(final ProtoSource input) throws + IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 64: { + // battleEventId + battleEventId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.battleEventId, battleEventId); + } + output.endObject(); + } + + @Override + public RogueCommonDialogueOptionBattleResultInfo mergeFrom(final JsonSource input) throws + IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -79510147: + case -766250873: { + if (input.isAtField(FieldNames.battleEventId)) { + if (!input.trySkipNullValue()) { + battleEventId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueCommonDialogueOptionBattleResultInfo clone() { + return new RogueCommonDialogueOptionBattleResultInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueCommonDialogueOptionBattleResultInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueCommonDialogueOptionBattleResultInfo(), data).checkInitialized(); + } + + public static RogueCommonDialogueOptionBattleResultInfo parseFrom(final ProtoSource input) + throws IOException { + return ProtoMessage.mergeFrom(new RogueCommonDialogueOptionBattleResultInfo(), input).checkInitialized(); + } + + public static RogueCommonDialogueOptionBattleResultInfo parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new RogueCommonDialogueOptionBattleResultInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueCommonDialogueOptionBattleResultInfo messages + */ + public static MessageFactory getFactory() { + return RogueCommonDialogueOptionBattleResultInfoFactory.INSTANCE; + } + + private enum RogueCommonDialogueOptionBattleResultInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueCommonDialogueOptionBattleResultInfo create() { + return RogueCommonDialogueOptionBattleResultInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName battleEventId = FieldName.forField("battleEventId", "battle_event_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueOptionDisplayInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueOptionDisplayInfoOuterClass.java new file mode 100644 index 0000000..bc11846 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueOptionDisplayInfoOuterClass.java @@ -0,0 +1,348 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.ProtoUtil; + +public final class RogueCommonDialogueOptionDisplayInfoOuterClass { + /** + * Protobuf type {@code RogueCommonDialogueOptionDisplayInfo} + */ + public static final class RogueCommonDialogueOptionDisplayInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional float display_float_value = 10; + */ + private float displayFloatValue; + + /** + * optional int32 display_int_value = 6; + */ + private int displayIntValue; + + private RogueCommonDialogueOptionDisplayInfo() { + } + + /** + * @return a new empty instance of {@code RogueCommonDialogueOptionDisplayInfo} + */ + public static RogueCommonDialogueOptionDisplayInfo newInstance() { + return new RogueCommonDialogueOptionDisplayInfo(); + } + + /** + * optional float display_float_value = 10; + * @return whether the displayFloatValue field is set + */ + public boolean hasDisplayFloatValue() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional float display_float_value = 10; + * @return this + */ + public RogueCommonDialogueOptionDisplayInfo clearDisplayFloatValue() { + bitField0_ &= ~0x00000001; + displayFloatValue = 0F; + return this; + } + + /** + * optional float display_float_value = 10; + * @return the displayFloatValue + */ + public float getDisplayFloatValue() { + return displayFloatValue; + } + + /** + * optional float display_float_value = 10; + * @param value the displayFloatValue to set + * @return this + */ + public RogueCommonDialogueOptionDisplayInfo setDisplayFloatValue(final float value) { + bitField0_ |= 0x00000001; + displayFloatValue = value; + return this; + } + + /** + * optional int32 display_int_value = 6; + * @return whether the displayIntValue field is set + */ + public boolean hasDisplayIntValue() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional int32 display_int_value = 6; + * @return this + */ + public RogueCommonDialogueOptionDisplayInfo clearDisplayIntValue() { + bitField0_ &= ~0x00000002; + displayIntValue = 0; + return this; + } + + /** + * optional int32 display_int_value = 6; + * @return the displayIntValue + */ + public int getDisplayIntValue() { + return displayIntValue; + } + + /** + * optional int32 display_int_value = 6; + * @param value the displayIntValue to set + * @return this + */ + public RogueCommonDialogueOptionDisplayInfo setDisplayIntValue(final int value) { + bitField0_ |= 0x00000002; + displayIntValue = value; + return this; + } + + @Override + public RogueCommonDialogueOptionDisplayInfo copyFrom( + final RogueCommonDialogueOptionDisplayInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + displayFloatValue = other.displayFloatValue; + displayIntValue = other.displayIntValue; + } + return this; + } + + @Override + public RogueCommonDialogueOptionDisplayInfo mergeFrom( + final RogueCommonDialogueOptionDisplayInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasDisplayFloatValue()) { + setDisplayFloatValue(other.displayFloatValue); + } + if (other.hasDisplayIntValue()) { + setDisplayIntValue(other.displayIntValue); + } + return this; + } + + @Override + public RogueCommonDialogueOptionDisplayInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + displayFloatValue = 0F; + displayIntValue = 0; + return this; + } + + @Override + public RogueCommonDialogueOptionDisplayInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueCommonDialogueOptionDisplayInfo)) { + return false; + } + RogueCommonDialogueOptionDisplayInfo other = (RogueCommonDialogueOptionDisplayInfo) o; + return bitField0_ == other.bitField0_ + && (!hasDisplayFloatValue() || ProtoUtil.isEqual(displayFloatValue, other.displayFloatValue)) + && (!hasDisplayIntValue() || displayIntValue == other.displayIntValue); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 85); + output.writeFloatNoTag(displayFloatValue); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 48); + output.writeInt32NoTag(displayIntValue); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 5; + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeInt32SizeNoTag(displayIntValue); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueCommonDialogueOptionDisplayInfo mergeFrom(final ProtoSource input) throws + IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 85: { + // displayFloatValue + displayFloatValue = input.readFloat(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // displayIntValue + displayIntValue = input.readInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeFloat(FieldNames.displayFloatValue, displayFloatValue); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeInt32(FieldNames.displayIntValue, displayIntValue); + } + output.endObject(); + } + + @Override + public RogueCommonDialogueOptionDisplayInfo mergeFrom(final JsonSource input) throws + IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1495597783: + case -1607645743: { + if (input.isAtField(FieldNames.displayFloatValue)) { + if (!input.trySkipNullValue()) { + displayFloatValue = input.readFloat(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -639090268: + case -626645532: { + if (input.isAtField(FieldNames.displayIntValue)) { + if (!input.trySkipNullValue()) { + displayIntValue = input.readInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueCommonDialogueOptionDisplayInfo clone() { + return new RogueCommonDialogueOptionDisplayInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueCommonDialogueOptionDisplayInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueCommonDialogueOptionDisplayInfo(), data).checkInitialized(); + } + + public static RogueCommonDialogueOptionDisplayInfo parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new RogueCommonDialogueOptionDisplayInfo(), input).checkInitialized(); + } + + public static RogueCommonDialogueOptionDisplayInfo parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new RogueCommonDialogueOptionDisplayInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueCommonDialogueOptionDisplayInfo messages + */ + public static MessageFactory getFactory() { + return RogueCommonDialogueOptionDisplayInfoFactory.INSTANCE; + } + + private enum RogueCommonDialogueOptionDisplayInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueCommonDialogueOptionDisplayInfo create() { + return RogueCommonDialogueOptionDisplayInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName displayFloatValue = FieldName.forField("displayFloatValue", "display_float_value"); + + static final FieldName displayIntValue = FieldName.forField("displayIntValue", "display_int_value"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueOptionInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueOptionInfoOuterClass.java new file mode 100644 index 0000000..c667bf0 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueOptionInfoOuterClass.java @@ -0,0 +1,728 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedMessage; + +public final class RogueCommonDialogueOptionInfoOuterClass { + /** + * Protobuf type {@code RogueCommonDialogueOptionInfo} + */ + public static final class RogueCommonDialogueOptionInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 arg_id = 6; + */ + private int argId; + + /** + * optional uint32 option_id = 9; + */ + private int optionId; + + /** + * optional bool is_valid = 5; + */ + private boolean isValid; + + /** + * optional bool confirm = 13; + */ + private boolean confirm; + + /** + * optional .RogueCommonDialogueOptionDisplayInfo display_value = 14; + */ + private final RogueCommonDialogueOptionDisplayInfoOuterClass.RogueCommonDialogueOptionDisplayInfo displayValue = RogueCommonDialogueOptionDisplayInfoOuterClass.RogueCommonDialogueOptionDisplayInfo.newInstance(); + + /** + * repeated .RogueCommonDialogueOptionResultInfo option_result_info = 8; + */ + private final RepeatedMessage optionResultInfo = RepeatedMessage.newEmptyInstance(RogueCommonDialogueOptionResultInfoOuterClass.RogueCommonDialogueOptionResultInfo.getFactory()); + + private RogueCommonDialogueOptionInfo() { + } + + /** + * @return a new empty instance of {@code RogueCommonDialogueOptionInfo} + */ + public static RogueCommonDialogueOptionInfo newInstance() { + return new RogueCommonDialogueOptionInfo(); + } + + /** + * optional uint32 arg_id = 6; + * @return whether the argId field is set + */ + public boolean hasArgId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 arg_id = 6; + * @return this + */ + public RogueCommonDialogueOptionInfo clearArgId() { + bitField0_ &= ~0x00000001; + argId = 0; + return this; + } + + /** + * optional uint32 arg_id = 6; + * @return the argId + */ + public int getArgId() { + return argId; + } + + /** + * optional uint32 arg_id = 6; + * @param value the argId to set + * @return this + */ + public RogueCommonDialogueOptionInfo setArgId(final int value) { + bitField0_ |= 0x00000001; + argId = value; + return this; + } + + /** + * optional uint32 option_id = 9; + * @return whether the optionId field is set + */ + public boolean hasOptionId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 option_id = 9; + * @return this + */ + public RogueCommonDialogueOptionInfo clearOptionId() { + bitField0_ &= ~0x00000002; + optionId = 0; + return this; + } + + /** + * optional uint32 option_id = 9; + * @return the optionId + */ + public int getOptionId() { + return optionId; + } + + /** + * optional uint32 option_id = 9; + * @param value the optionId to set + * @return this + */ + public RogueCommonDialogueOptionInfo setOptionId(final int value) { + bitField0_ |= 0x00000002; + optionId = value; + return this; + } + + /** + * optional bool is_valid = 5; + * @return whether the isValid field is set + */ + public boolean hasIsValid() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bool is_valid = 5; + * @return this + */ + public RogueCommonDialogueOptionInfo clearIsValid() { + bitField0_ &= ~0x00000004; + isValid = false; + return this; + } + + /** + * optional bool is_valid = 5; + * @return the isValid + */ + public boolean getIsValid() { + return isValid; + } + + /** + * optional bool is_valid = 5; + * @param value the isValid to set + * @return this + */ + public RogueCommonDialogueOptionInfo setIsValid(final boolean value) { + bitField0_ |= 0x00000004; + isValid = value; + return this; + } + + /** + * optional bool confirm = 13; + * @return whether the confirm field is set + */ + public boolean hasConfirm() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional bool confirm = 13; + * @return this + */ + public RogueCommonDialogueOptionInfo clearConfirm() { + bitField0_ &= ~0x00000008; + confirm = false; + return this; + } + + /** + * optional bool confirm = 13; + * @return the confirm + */ + public boolean getConfirm() { + return confirm; + } + + /** + * optional bool confirm = 13; + * @param value the confirm to set + * @return this + */ + public RogueCommonDialogueOptionInfo setConfirm(final boolean value) { + bitField0_ |= 0x00000008; + confirm = value; + return this; + } + + /** + * optional .RogueCommonDialogueOptionDisplayInfo display_value = 14; + * @return whether the displayValue field is set + */ + public boolean hasDisplayValue() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional .RogueCommonDialogueOptionDisplayInfo display_value = 14; + * @return this + */ + public RogueCommonDialogueOptionInfo clearDisplayValue() { + bitField0_ &= ~0x00000010; + displayValue.clear(); + return this; + } + + /** + * optional .RogueCommonDialogueOptionDisplayInfo display_value = 14; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableDisplayValue()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueCommonDialogueOptionDisplayInfoOuterClass.RogueCommonDialogueOptionDisplayInfo getDisplayValue( + ) { + return displayValue; + } + + /** + * optional .RogueCommonDialogueOptionDisplayInfo display_value = 14; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RogueCommonDialogueOptionDisplayInfoOuterClass.RogueCommonDialogueOptionDisplayInfo getMutableDisplayValue( + ) { + bitField0_ |= 0x00000010; + return displayValue; + } + + /** + * optional .RogueCommonDialogueOptionDisplayInfo display_value = 14; + * @param value the displayValue to set + * @return this + */ + public RogueCommonDialogueOptionInfo setDisplayValue( + final RogueCommonDialogueOptionDisplayInfoOuterClass.RogueCommonDialogueOptionDisplayInfo value) { + bitField0_ |= 0x00000010; + displayValue.copyFrom(value); + return this; + } + + /** + * repeated .RogueCommonDialogueOptionResultInfo option_result_info = 8; + * @return whether the optionResultInfo field is set + */ + public boolean hasOptionResultInfo() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * repeated .RogueCommonDialogueOptionResultInfo option_result_info = 8; + * @return this + */ + public RogueCommonDialogueOptionInfo clearOptionResultInfo() { + bitField0_ &= ~0x00000020; + optionResultInfo.clear(); + return this; + } + + /** + * repeated .RogueCommonDialogueOptionResultInfo option_result_info = 8; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableOptionResultInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getOptionResultInfo( + ) { + return optionResultInfo; + } + + /** + * repeated .RogueCommonDialogueOptionResultInfo option_result_info = 8; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableOptionResultInfo( + ) { + bitField0_ |= 0x00000020; + return optionResultInfo; + } + + /** + * repeated .RogueCommonDialogueOptionResultInfo option_result_info = 8; + * @param value the optionResultInfo to add + * @return this + */ + public RogueCommonDialogueOptionInfo addOptionResultInfo( + final RogueCommonDialogueOptionResultInfoOuterClass.RogueCommonDialogueOptionResultInfo value) { + bitField0_ |= 0x00000020; + optionResultInfo.add(value); + return this; + } + + /** + * repeated .RogueCommonDialogueOptionResultInfo option_result_info = 8; + * @param values the optionResultInfo to add + * @return this + */ + public RogueCommonDialogueOptionInfo addAllOptionResultInfo( + final RogueCommonDialogueOptionResultInfoOuterClass.RogueCommonDialogueOptionResultInfo... values) { + bitField0_ |= 0x00000020; + optionResultInfo.addAll(values); + return this; + } + + @Override + public RogueCommonDialogueOptionInfo copyFrom(final RogueCommonDialogueOptionInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + argId = other.argId; + optionId = other.optionId; + isValid = other.isValid; + confirm = other.confirm; + displayValue.copyFrom(other.displayValue); + optionResultInfo.copyFrom(other.optionResultInfo); + } + return this; + } + + @Override + public RogueCommonDialogueOptionInfo mergeFrom(final RogueCommonDialogueOptionInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasArgId()) { + setArgId(other.argId); + } + if (other.hasOptionId()) { + setOptionId(other.optionId); + } + if (other.hasIsValid()) { + setIsValid(other.isValid); + } + if (other.hasConfirm()) { + setConfirm(other.confirm); + } + if (other.hasDisplayValue()) { + getMutableDisplayValue().mergeFrom(other.displayValue); + } + if (other.hasOptionResultInfo()) { + getMutableOptionResultInfo().addAll(other.optionResultInfo); + } + return this; + } + + @Override + public RogueCommonDialogueOptionInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + argId = 0; + optionId = 0; + isValid = false; + confirm = false; + displayValue.clear(); + optionResultInfo.clear(); + return this; + } + + @Override + public RogueCommonDialogueOptionInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + displayValue.clearQuick(); + optionResultInfo.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueCommonDialogueOptionInfo)) { + return false; + } + RogueCommonDialogueOptionInfo other = (RogueCommonDialogueOptionInfo) o; + return bitField0_ == other.bitField0_ + && (!hasArgId() || argId == other.argId) + && (!hasOptionId() || optionId == other.optionId) + && (!hasIsValid() || isValid == other.isValid) + && (!hasConfirm() || confirm == other.confirm) + && (!hasDisplayValue() || displayValue.equals(other.displayValue)) + && (!hasOptionResultInfo() || optionResultInfo.equals(other.optionResultInfo)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(argId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(optionId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 40); + output.writeBoolNoTag(isValid); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 104); + output.writeBoolNoTag(confirm); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 114); + output.writeMessageNoTag(displayValue); + } + if ((bitField0_ & 0x00000020) != 0) { + for (int i = 0; i < optionResultInfo.length(); i++) { + output.writeRawByte((byte) 66); + output.writeMessageNoTag(optionResultInfo.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(argId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(optionId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(displayValue); + } + if ((bitField0_ & 0x00000020) != 0) { + size += (1 * optionResultInfo.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(optionResultInfo); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueCommonDialogueOptionInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 48: { + // argId + argId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // optionId + optionId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // isValid + isValid = input.readBool(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // confirm + confirm = input.readBool(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 114) { + break; + } + } + case 114: { + // displayValue + input.readMessage(displayValue); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 66) { + break; + } + } + case 66: { + // optionResultInfo + tag = input.readRepeatedMessage(optionResultInfo, tag); + bitField0_ |= 0x00000020; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.argId, argId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.optionId, optionId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBool(FieldNames.isValid, isValid); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBool(FieldNames.confirm, confirm); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeMessage(FieldNames.displayValue, displayValue); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRepeatedMessage(FieldNames.optionResultInfo, optionResultInfo); + } + output.endObject(); + } + + @Override + public RogueCommonDialogueOptionInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 93079057: + case -1409495132: { + if (input.isAtField(FieldNames.argId)) { + if (!input.trySkipNullValue()) { + argId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -79017872: + case 1845434661: { + if (input.isAtField(FieldNames.optionId)) { + if (!input.trySkipNullValue()) { + optionId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2073378034: + case 126941351: { + if (input.isAtField(FieldNames.isValid)) { + if (!input.trySkipNullValue()) { + isValid = input.readBool(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 951117504: { + if (input.isAtField(FieldNames.confirm)) { + if (!input.trySkipNullValue()) { + confirm = input.readBool(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1606398415: + case -1464536140: { + if (input.isAtField(FieldNames.displayValue)) { + if (!input.trySkipNullValue()) { + input.readMessage(displayValue); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -276995904: + case -1123762490: { + if (input.isAtField(FieldNames.optionResultInfo)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(optionResultInfo); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueCommonDialogueOptionInfo clone() { + return new RogueCommonDialogueOptionInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueCommonDialogueOptionInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueCommonDialogueOptionInfo(), data).checkInitialized(); + } + + public static RogueCommonDialogueOptionInfo parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new RogueCommonDialogueOptionInfo(), input).checkInitialized(); + } + + public static RogueCommonDialogueOptionInfo parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new RogueCommonDialogueOptionInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueCommonDialogueOptionInfo messages + */ + public static MessageFactory getFactory() { + return RogueCommonDialogueOptionInfoFactory.INSTANCE; + } + + private enum RogueCommonDialogueOptionInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueCommonDialogueOptionInfo create() { + return RogueCommonDialogueOptionInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName argId = FieldName.forField("argId", "arg_id"); + + static final FieldName optionId = FieldName.forField("optionId", "option_id"); + + static final FieldName isValid = FieldName.forField("isValid", "is_valid"); + + static final FieldName confirm = FieldName.forField("confirm"); + + static final FieldName displayValue = FieldName.forField("displayValue", "display_value"); + + static final FieldName optionResultInfo = FieldName.forField("optionResultInfo", "option_result_info"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueOptionResultInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueOptionResultInfoOuterClass.java new file mode 100644 index 0000000..1facdb1 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueOptionResultInfoOuterClass.java @@ -0,0 +1,325 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; + +public final class RogueCommonDialogueOptionResultInfoOuterClass { + /** + * Protobuf type {@code RogueCommonDialogueOptionResultInfo} + */ + public static final class RogueCommonDialogueOptionResultInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + *
+     * OJAHMDLNMAK ACHLGHPPMNO = 3;
+     * 
+ * + * optional .RogueCommonDialogueOptionBattleResultInfo battle_result_info = 11; + */ + private final RogueCommonDialogueOptionBattleResultInfoOuterClass.RogueCommonDialogueOptionBattleResultInfo battleResultInfo = RogueCommonDialogueOptionBattleResultInfoOuterClass.RogueCommonDialogueOptionBattleResultInfo.newInstance(); + + private RogueCommonDialogueOptionResultInfo() { + } + + /** + * @return a new empty instance of {@code RogueCommonDialogueOptionResultInfo} + */ + public static RogueCommonDialogueOptionResultInfo newInstance() { + return new RogueCommonDialogueOptionResultInfo(); + } + + public boolean hasOptionResult() { + return (((bitField0_ & 0x00000001)) != 0); + } + + public RogueCommonDialogueOptionResultInfo clearOptionResult() { + if (hasOptionResult()) { + clearBattleResultInfo(); + } + return this; + } + + /** + *
+     * OJAHMDLNMAK ACHLGHPPMNO = 3;
+     * 
+ * + * optional .RogueCommonDialogueOptionBattleResultInfo battle_result_info = 11; + * @return whether the battleResultInfo field is set + */ + public boolean hasBattleResultInfo() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + *
+     * OJAHMDLNMAK ACHLGHPPMNO = 3;
+     * 
+ * + * optional .RogueCommonDialogueOptionBattleResultInfo battle_result_info = 11; + * @return this + */ + public RogueCommonDialogueOptionResultInfo clearBattleResultInfo() { + bitField0_ &= ~0x00000001; + battleResultInfo.clear(); + return this; + } + + /** + *
+     * OJAHMDLNMAK ACHLGHPPMNO = 3;
+     * 
+ * + * optional .RogueCommonDialogueOptionBattleResultInfo battle_result_info = 11; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableBattleResultInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueCommonDialogueOptionBattleResultInfoOuterClass.RogueCommonDialogueOptionBattleResultInfo getBattleResultInfo( + ) { + return battleResultInfo; + } + + /** + *
+     * OJAHMDLNMAK ACHLGHPPMNO = 3;
+     * 
+ * + * optional .RogueCommonDialogueOptionBattleResultInfo battle_result_info = 11; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RogueCommonDialogueOptionBattleResultInfoOuterClass.RogueCommonDialogueOptionBattleResultInfo getMutableBattleResultInfo( + ) { + bitField0_ |= 0x00000001; + return battleResultInfo; + } + + /** + *
+     * OJAHMDLNMAK ACHLGHPPMNO = 3;
+     * 
+ * + * optional .RogueCommonDialogueOptionBattleResultInfo battle_result_info = 11; + * @param value the battleResultInfo to set + * @return this + */ + public RogueCommonDialogueOptionResultInfo setBattleResultInfo( + final RogueCommonDialogueOptionBattleResultInfoOuterClass.RogueCommonDialogueOptionBattleResultInfo value) { + bitField0_ |= 0x00000001; + battleResultInfo.copyFrom(value); + return this; + } + + @Override + public RogueCommonDialogueOptionResultInfo copyFrom( + final RogueCommonDialogueOptionResultInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + battleResultInfo.copyFrom(other.battleResultInfo); + } + return this; + } + + @Override + public RogueCommonDialogueOptionResultInfo mergeFrom( + final RogueCommonDialogueOptionResultInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBattleResultInfo()) { + getMutableBattleResultInfo().mergeFrom(other.battleResultInfo); + } + return this; + } + + @Override + public RogueCommonDialogueOptionResultInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + battleResultInfo.clear(); + return this; + } + + @Override + public RogueCommonDialogueOptionResultInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + battleResultInfo.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RogueCommonDialogueOptionResultInfo)) { + return false; + } + RogueCommonDialogueOptionResultInfo other = (RogueCommonDialogueOptionResultInfo) o; + return bitField0_ == other.bitField0_ + && (!hasBattleResultInfo() || battleResultInfo.equals(other.battleResultInfo)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 90); + output.writeMessageNoTag(battleResultInfo); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(battleResultInfo); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueCommonDialogueOptionResultInfo mergeFrom(final ProtoSource input) throws + IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 90: { + // battleResultInfo + input.readMessage(battleResultInfo); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeMessage(FieldNames.battleResultInfo, battleResultInfo); + } + output.endObject(); + } + + @Override + public RogueCommonDialogueOptionResultInfo mergeFrom(final JsonSource input) throws + IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 599519555: + case -605996407: { + if (input.isAtField(FieldNames.battleResultInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(battleResultInfo); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueCommonDialogueOptionResultInfo clone() { + return new RogueCommonDialogueOptionResultInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueCommonDialogueOptionResultInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueCommonDialogueOptionResultInfo(), data).checkInitialized(); + } + + public static RogueCommonDialogueOptionResultInfo parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new RogueCommonDialogueOptionResultInfo(), input).checkInitialized(); + } + + public static RogueCommonDialogueOptionResultInfo parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new RogueCommonDialogueOptionResultInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueCommonDialogueOptionResultInfo messages + */ + public static MessageFactory getFactory() { + return RogueCommonDialogueOptionResultInfoFactory.INSTANCE; + } + + private enum RogueCommonDialogueOptionResultInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueCommonDialogueOptionResultInfo create() { + return RogueCommonDialogueOptionResultInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName battleResultInfo = FieldName.forField("battleResultInfo", "battle_result_info"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueMiracleSourceOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueMiracleSourceOuterClass.java index 5cadec1..e74106c 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueMiracleSourceOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RogueMiracleSourceOuterClass.java @@ -167,7 +167,7 @@ public final class RogueMiracleSourceOuterClass { /** * @return a converter that maps between this enum's numeric and text representations */ - public static ProtoEnum.EnumConverter converter() { + public static EnumConverter converter() { return RogueMiracleSourceConverter.INSTANCE; } @@ -189,7 +189,7 @@ public final class RogueMiracleSourceOuterClass { return value == null ? other : value; } - enum RogueMiracleSourceConverter implements ProtoEnum.EnumConverter { + enum RogueMiracleSourceConverter implements EnumConverter { INSTANCE; private static final RogueMiracleSource[] lookup = new RogueMiracleSource[13]; diff --git a/src/generated/main/emu/lunarcore/proto/RogueNpcDisappearCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueNpcDisappearCsReqOuterClass.java index 6230151..a6239a6 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueNpcDisappearCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RogueNpcDisappearCsReqOuterClass.java @@ -19,9 +19,9 @@ public final class RogueNpcDisappearCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 entity_id = 15; + * optional uint32 disappear_npc_entity_id = 15; */ - private int entityId; + private int disappearNpcEntityId; private RogueNpcDisappearCsReq() { } @@ -34,39 +34,39 @@ public final class RogueNpcDisappearCsReqOuterClass { } /** - * optional uint32 entity_id = 15; - * @return whether the entityId field is set + * optional uint32 disappear_npc_entity_id = 15; + * @return whether the disappearNpcEntityId field is set */ - public boolean hasEntityId() { + public boolean hasDisappearNpcEntityId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 entity_id = 15; + * optional uint32 disappear_npc_entity_id = 15; * @return this */ - public RogueNpcDisappearCsReq clearEntityId() { + public RogueNpcDisappearCsReq clearDisappearNpcEntityId() { bitField0_ &= ~0x00000001; - entityId = 0; + disappearNpcEntityId = 0; return this; } /** - * optional uint32 entity_id = 15; - * @return the entityId + * optional uint32 disappear_npc_entity_id = 15; + * @return the disappearNpcEntityId */ - public int getEntityId() { - return entityId; + public int getDisappearNpcEntityId() { + return disappearNpcEntityId; } /** - * optional uint32 entity_id = 15; - * @param value the entityId to set + * optional uint32 disappear_npc_entity_id = 15; + * @param value the disappearNpcEntityId to set * @return this */ - public RogueNpcDisappearCsReq setEntityId(final int value) { + public RogueNpcDisappearCsReq setDisappearNpcEntityId(final int value) { bitField0_ |= 0x00000001; - entityId = value; + disappearNpcEntityId = value; return this; } @@ -75,7 +75,7 @@ public final class RogueNpcDisappearCsReqOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - entityId = other.entityId; + disappearNpcEntityId = other.disappearNpcEntityId; } return this; } @@ -86,8 +86,8 @@ public final class RogueNpcDisappearCsReqOuterClass { return this; } cachedSize = -1; - if (other.hasEntityId()) { - setEntityId(other.entityId); + if (other.hasDisappearNpcEntityId()) { + setDisappearNpcEntityId(other.disappearNpcEntityId); } return this; } @@ -99,7 +99,7 @@ public final class RogueNpcDisappearCsReqOuterClass { } cachedSize = -1; bitField0_ = 0; - entityId = 0; + disappearNpcEntityId = 0; return this; } @@ -123,14 +123,14 @@ public final class RogueNpcDisappearCsReqOuterClass { } RogueNpcDisappearCsReq other = (RogueNpcDisappearCsReq) o; return bitField0_ == other.bitField0_ - && (!hasEntityId() || entityId == other.entityId); + && (!hasDisappearNpcEntityId() || disappearNpcEntityId == other.disappearNpcEntityId); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { output.writeRawByte((byte) 120); - output.writeUInt32NoTag(entityId); + output.writeUInt32NoTag(disappearNpcEntityId); } } @@ -138,7 +138,7 @@ public final class RogueNpcDisappearCsReqOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(entityId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(disappearNpcEntityId); } return size; } @@ -151,8 +151,8 @@ public final class RogueNpcDisappearCsReqOuterClass { while (true) { switch (tag) { case 120: { - // entityId - entityId = input.readUInt32(); + // disappearNpcEntityId + disappearNpcEntityId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 0) { @@ -177,7 +177,7 @@ public final class RogueNpcDisappearCsReqOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.entityId, entityId); + output.writeUInt32(FieldNames.disappearNpcEntityId, disappearNpcEntityId); } output.endObject(); } @@ -189,11 +189,11 @@ public final class RogueNpcDisappearCsReqOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -2102099874: - case -740565257: { - if (input.isAtField(FieldNames.entityId)) { + case -1209630020: + case -1719695491: { + if (input.isAtField(FieldNames.disappearNpcEntityId)) { if (!input.trySkipNullValue()) { - entityId = input.readUInt32(); + disappearNpcEntityId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -254,7 +254,7 @@ public final class RogueNpcDisappearCsReqOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName entityId = FieldName.forField("entityId", "entity_id"); + static final FieldName disappearNpcEntityId = FieldName.forField("disappearNpcEntityId", "disappear_npc_entity_id"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/RogueNpcDisappearScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueNpcDisappearScRspOuterClass.java new file mode 100644 index 0000000..bc31e46 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RogueNpcDisappearScRspOuterClass.java @@ -0,0 +1,259 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; + +public final class RogueNpcDisappearScRspOuterClass { + /** + * Protobuf type {@code RogueNpcDisappearScRsp} + */ + public static final class RogueNpcDisappearScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 2; + */ + private int retcode; + + private RogueNpcDisappearScRsp() { + } + + /** + * @return a new empty instance of {@code RogueNpcDisappearScRsp} + */ + public static RogueNpcDisappearScRsp newInstance() { + return new RogueNpcDisappearScRsp(); + } + + /** + * optional uint32 retcode = 2; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 2; + * @return this + */ + public RogueNpcDisappearScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 2; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 2; + * @param value the retcode to set + * @return this + */ + public RogueNpcDisappearScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + @Override + public RogueNpcDisappearScRsp copyFrom(final RogueNpcDisappearScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + } + return this; + } + + @Override + public RogueNpcDisappearScRsp mergeFrom(final RogueNpcDisappearScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + return this; + } + + @Override + public RogueNpcDisappearScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + return this; + } + + @Override + public RogueNpcDisappearScRsp 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 RogueNpcDisappearScRsp)) { + return false; + } + RogueNpcDisappearScRsp other = (RogueNpcDisappearScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(retcode); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RogueNpcDisappearScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + output.endObject(); + } + + @Override + public RogueNpcDisappearScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RogueNpcDisappearScRsp clone() { + return new RogueNpcDisappearScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RogueNpcDisappearScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RogueNpcDisappearScRsp(), data).checkInitialized(); + } + + public static RogueNpcDisappearScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueNpcDisappearScRsp(), input).checkInitialized(); + } + + public static RogueNpcDisappearScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RogueNpcDisappearScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating RogueNpcDisappearScRsp messages + */ + public static MessageFactory getFactory() { + return RogueNpcDisappearScRspFactory.INSTANCE; + } + + private enum RogueNpcDisappearScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public RogueNpcDisappearScRsp create() { + return RogueNpcDisappearScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueRoomStatusOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueRoomStatusOuterClass.java index 5011a2a..4707342 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueRoomStatusOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RogueRoomStatusOuterClass.java @@ -87,7 +87,7 @@ public final class RogueRoomStatusOuterClass { /** * @return a converter that maps between this enum's numeric and text representations */ - public static ProtoEnum.EnumConverter converter() { + public static EnumConverter converter() { return RogueRoomStatusConverter.INSTANCE; } @@ -109,7 +109,7 @@ public final class RogueRoomStatusOuterClass { return value == null ? other : value; } - enum RogueRoomStatusConverter implements ProtoEnum.EnumConverter { + enum RogueRoomStatusConverter implements EnumConverter { INSTANCE; private static final RogueRoomStatus[] lookup = new RogueRoomStatus[5]; diff --git a/src/generated/main/emu/lunarcore/proto/RogueStatusOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueStatusOuterClass.java index d89fdde..c9d079c 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueStatusOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RogueStatusOuterClass.java @@ -87,7 +87,7 @@ public final class RogueStatusOuterClass { /** * @return a converter that maps between this enum's numeric and text representations */ - public static ProtoEnum.EnumConverter converter() { + public static EnumConverter converter() { return RogueStatusConverter.INSTANCE; } @@ -109,7 +109,7 @@ public final class RogueStatusOuterClass { return value == null ? other : value; } - enum RogueStatusConverter implements ProtoEnum.EnumConverter { + enum RogueStatusConverter implements EnumConverter { INSTANCE; private static final RogueStatus[] lookup = new RogueStatus[5]; diff --git a/src/generated/main/emu/lunarcore/proto/RogueTalentStatusOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueTalentStatusOuterClass.java index c3f22cb..25658e2 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueTalentStatusOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RogueTalentStatusOuterClass.java @@ -67,7 +67,7 @@ public final class RogueTalentStatusOuterClass { /** * @return a converter that maps between this enum's numeric and text representations */ - public static ProtoEnum.EnumConverter converter() { + public static EnumConverter converter() { return RogueTalentStatusConverter.INSTANCE; } @@ -89,7 +89,7 @@ public final class RogueTalentStatusOuterClass { return value == null ? other : value; } - enum RogueTalentStatusConverter implements ProtoEnum.EnumConverter { + enum RogueTalentStatusConverter implements EnumConverter { INSTANCE; private static final RogueTalentStatus[] lookup = new RogueTalentStatus[3]; diff --git a/src/generated/main/emu/lunarcore/proto/SceneCastSkillOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneCastSkillOuterClass.java index 6181856..0684275 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneCastSkillOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneCastSkillOuterClass.java @@ -67,7 +67,7 @@ public final class SceneCastSkillOuterClass { /** * @return a converter that maps between this enum's numeric and text representations */ - public static ProtoEnum.EnumConverter converter() { + public static EnumConverter converter() { return SceneCastSkillConverter.INSTANCE; } @@ -89,7 +89,7 @@ public final class SceneCastSkillOuterClass { return value == null ? other : value; } - enum SceneCastSkillConverter implements ProtoEnum.EnumConverter { + enum SceneCastSkillConverter implements EnumConverter { INSTANCE; private static final SceneCastSkill[] lookup = new SceneCastSkill[3]; diff --git a/src/generated/main/emu/lunarcore/proto/SceneGroupRefreshTypeOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneGroupRefreshTypeOuterClass.java index d0500bf..5c281e2 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneGroupRefreshTypeOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneGroupRefreshTypeOuterClass.java @@ -67,7 +67,7 @@ public final class SceneGroupRefreshTypeOuterClass { /** * @return a converter that maps between this enum's numeric and text representations */ - public static ProtoEnum.EnumConverter converter() { + public static EnumConverter converter() { return SceneGroupRefreshTypeConverter.INSTANCE; } @@ -89,7 +89,7 @@ public final class SceneGroupRefreshTypeOuterClass { return value == null ? other : value; } - enum SceneGroupRefreshTypeConverter implements ProtoEnum.EnumConverter { + enum SceneGroupRefreshTypeConverter implements EnumConverter { INSTANCE; private static final SceneGroupRefreshType[] lookup = new SceneGroupRefreshType[3]; diff --git a/src/generated/main/emu/lunarcore/proto/SelectRogueCommonDialogueOptionCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SelectRogueCommonDialogueOptionCsReqOuterClass.java new file mode 100644 index 0000000..02770c3 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SelectRogueCommonDialogueOptionCsReqOuterClass.java @@ -0,0 +1,347 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; + +public final class SelectRogueCommonDialogueOptionCsReqOuterClass { + /** + * Protobuf type {@code SelectRogueCommonDialogueOptionCsReq} + */ + public static final class SelectRogueCommonDialogueOptionCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 event_unique_id = 4; + */ + private int eventUniqueId; + + /** + * optional uint32 option_id = 9; + */ + private int optionId; + + private SelectRogueCommonDialogueOptionCsReq() { + } + + /** + * @return a new empty instance of {@code SelectRogueCommonDialogueOptionCsReq} + */ + public static SelectRogueCommonDialogueOptionCsReq newInstance() { + return new SelectRogueCommonDialogueOptionCsReq(); + } + + /** + * optional uint32 event_unique_id = 4; + * @return whether the eventUniqueId field is set + */ + public boolean hasEventUniqueId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 event_unique_id = 4; + * @return this + */ + public SelectRogueCommonDialogueOptionCsReq clearEventUniqueId() { + bitField0_ &= ~0x00000001; + eventUniqueId = 0; + return this; + } + + /** + * optional uint32 event_unique_id = 4; + * @return the eventUniqueId + */ + public int getEventUniqueId() { + return eventUniqueId; + } + + /** + * optional uint32 event_unique_id = 4; + * @param value the eventUniqueId to set + * @return this + */ + public SelectRogueCommonDialogueOptionCsReq setEventUniqueId(final int value) { + bitField0_ |= 0x00000001; + eventUniqueId = value; + return this; + } + + /** + * optional uint32 option_id = 9; + * @return whether the optionId field is set + */ + public boolean hasOptionId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 option_id = 9; + * @return this + */ + public SelectRogueCommonDialogueOptionCsReq clearOptionId() { + bitField0_ &= ~0x00000002; + optionId = 0; + return this; + } + + /** + * optional uint32 option_id = 9; + * @return the optionId + */ + public int getOptionId() { + return optionId; + } + + /** + * optional uint32 option_id = 9; + * @param value the optionId to set + * @return this + */ + public SelectRogueCommonDialogueOptionCsReq setOptionId(final int value) { + bitField0_ |= 0x00000002; + optionId = value; + return this; + } + + @Override + public SelectRogueCommonDialogueOptionCsReq copyFrom( + final SelectRogueCommonDialogueOptionCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + eventUniqueId = other.eventUniqueId; + optionId = other.optionId; + } + return this; + } + + @Override + public SelectRogueCommonDialogueOptionCsReq mergeFrom( + final SelectRogueCommonDialogueOptionCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasEventUniqueId()) { + setEventUniqueId(other.eventUniqueId); + } + if (other.hasOptionId()) { + setOptionId(other.optionId); + } + return this; + } + + @Override + public SelectRogueCommonDialogueOptionCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + eventUniqueId = 0; + optionId = 0; + return this; + } + + @Override + public SelectRogueCommonDialogueOptionCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SelectRogueCommonDialogueOptionCsReq)) { + return false; + } + SelectRogueCommonDialogueOptionCsReq other = (SelectRogueCommonDialogueOptionCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasEventUniqueId() || eventUniqueId == other.eventUniqueId) + && (!hasOptionId() || optionId == other.optionId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(eventUniqueId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(optionId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(eventUniqueId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(optionId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SelectRogueCommonDialogueOptionCsReq mergeFrom(final ProtoSource input) throws + IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 32: { + // eventUniqueId + eventUniqueId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // optionId + optionId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.eventUniqueId, eventUniqueId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.optionId, optionId); + } + output.endObject(); + } + + @Override + public SelectRogueCommonDialogueOptionCsReq mergeFrom(final JsonSource input) throws + IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 2091680134: + case -157385500: { + if (input.isAtField(FieldNames.eventUniqueId)) { + if (!input.trySkipNullValue()) { + eventUniqueId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -79017872: + case 1845434661: { + if (input.isAtField(FieldNames.optionId)) { + if (!input.trySkipNullValue()) { + optionId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SelectRogueCommonDialogueOptionCsReq clone() { + return new SelectRogueCommonDialogueOptionCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SelectRogueCommonDialogueOptionCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SelectRogueCommonDialogueOptionCsReq(), data).checkInitialized(); + } + + public static SelectRogueCommonDialogueOptionCsReq parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new SelectRogueCommonDialogueOptionCsReq(), input).checkInitialized(); + } + + public static SelectRogueCommonDialogueOptionCsReq parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new SelectRogueCommonDialogueOptionCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating SelectRogueCommonDialogueOptionCsReq messages + */ + public static MessageFactory getFactory() { + return SelectRogueCommonDialogueOptionCsReqFactory.INSTANCE; + } + + private enum SelectRogueCommonDialogueOptionCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public SelectRogueCommonDialogueOptionCsReq create() { + return SelectRogueCommonDialogueOptionCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName eventUniqueId = FieldName.forField("eventUniqueId", "event_unique_id"); + + static final FieldName optionId = FieldName.forField("optionId", "option_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SelectRogueCommonDialogueOptionScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SelectRogueCommonDialogueOptionScRspOuterClass.java new file mode 100644 index 0000000..5abf53c --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SelectRogueCommonDialogueOptionScRspOuterClass.java @@ -0,0 +1,734 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedInt; + +public final class SelectRogueCommonDialogueOptionScRspOuterClass { + /** + * Protobuf type {@code SelectRogueCommonDialogueOptionScRsp} + */ + public static final class SelectRogueCommonDialogueOptionScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 2; + */ + private int retcode; + + /** + * optional uint32 option_id = 10; + */ + private int optionId; + + /** + * optional uint32 event_unique_id = 12; + */ + private int eventUniqueId; + + /** + * optional bool event_has_effect = 8; + */ + private boolean eventHasEffect; + + /** + * optional .RogueCommonDialogueDataInfo dialogue_data = 4; + */ + private final RogueCommonDialogueDataInfoOuterClass.RogueCommonDialogueDataInfo dialogueData = RogueCommonDialogueDataInfoOuterClass.RogueCommonDialogueDataInfo.newInstance(); + + /** + * repeated uint32 effect_event_id_list = 1; + */ + private final RepeatedInt effectEventIdList = RepeatedInt.newEmptyInstance(); + + private SelectRogueCommonDialogueOptionScRsp() { + } + + /** + * @return a new empty instance of {@code SelectRogueCommonDialogueOptionScRsp} + */ + public static SelectRogueCommonDialogueOptionScRsp newInstance() { + return new SelectRogueCommonDialogueOptionScRsp(); + } + + /** + * optional uint32 retcode = 2; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 2; + * @return this + */ + public SelectRogueCommonDialogueOptionScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 2; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 2; + * @param value the retcode to set + * @return this + */ + public SelectRogueCommonDialogueOptionScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional uint32 option_id = 10; + * @return whether the optionId field is set + */ + public boolean hasOptionId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 option_id = 10; + * @return this + */ + public SelectRogueCommonDialogueOptionScRsp clearOptionId() { + bitField0_ &= ~0x00000002; + optionId = 0; + return this; + } + + /** + * optional uint32 option_id = 10; + * @return the optionId + */ + public int getOptionId() { + return optionId; + } + + /** + * optional uint32 option_id = 10; + * @param value the optionId to set + * @return this + */ + public SelectRogueCommonDialogueOptionScRsp setOptionId(final int value) { + bitField0_ |= 0x00000002; + optionId = value; + return this; + } + + /** + * optional uint32 event_unique_id = 12; + * @return whether the eventUniqueId field is set + */ + public boolean hasEventUniqueId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 event_unique_id = 12; + * @return this + */ + public SelectRogueCommonDialogueOptionScRsp clearEventUniqueId() { + bitField0_ &= ~0x00000004; + eventUniqueId = 0; + return this; + } + + /** + * optional uint32 event_unique_id = 12; + * @return the eventUniqueId + */ + public int getEventUniqueId() { + return eventUniqueId; + } + + /** + * optional uint32 event_unique_id = 12; + * @param value the eventUniqueId to set + * @return this + */ + public SelectRogueCommonDialogueOptionScRsp setEventUniqueId(final int value) { + bitField0_ |= 0x00000004; + eventUniqueId = value; + return this; + } + + /** + * optional bool event_has_effect = 8; + * @return whether the eventHasEffect field is set + */ + public boolean hasEventHasEffect() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional bool event_has_effect = 8; + * @return this + */ + public SelectRogueCommonDialogueOptionScRsp clearEventHasEffect() { + bitField0_ &= ~0x00000008; + eventHasEffect = false; + return this; + } + + /** + * optional bool event_has_effect = 8; + * @return the eventHasEffect + */ + public boolean getEventHasEffect() { + return eventHasEffect; + } + + /** + * optional bool event_has_effect = 8; + * @param value the eventHasEffect to set + * @return this + */ + public SelectRogueCommonDialogueOptionScRsp setEventHasEffect(final boolean value) { + bitField0_ |= 0x00000008; + eventHasEffect = value; + return this; + } + + /** + * optional .RogueCommonDialogueDataInfo dialogue_data = 4; + * @return whether the dialogueData field is set + */ + public boolean hasDialogueData() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional .RogueCommonDialogueDataInfo dialogue_data = 4; + * @return this + */ + public SelectRogueCommonDialogueOptionScRsp clearDialogueData() { + bitField0_ &= ~0x00000010; + dialogueData.clear(); + return this; + } + + /** + * optional .RogueCommonDialogueDataInfo dialogue_data = 4; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableDialogueData()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueCommonDialogueDataInfoOuterClass.RogueCommonDialogueDataInfo getDialogueData() { + return dialogueData; + } + + /** + * optional .RogueCommonDialogueDataInfo dialogue_data = 4; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RogueCommonDialogueDataInfoOuterClass.RogueCommonDialogueDataInfo getMutableDialogueData( + ) { + bitField0_ |= 0x00000010; + return dialogueData; + } + + /** + * optional .RogueCommonDialogueDataInfo dialogue_data = 4; + * @param value the dialogueData to set + * @return this + */ + public SelectRogueCommonDialogueOptionScRsp setDialogueData( + final RogueCommonDialogueDataInfoOuterClass.RogueCommonDialogueDataInfo value) { + bitField0_ |= 0x00000010; + dialogueData.copyFrom(value); + return this; + } + + /** + * repeated uint32 effect_event_id_list = 1; + * @return whether the effectEventIdList field is set + */ + public boolean hasEffectEventIdList() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * repeated uint32 effect_event_id_list = 1; + * @return this + */ + public SelectRogueCommonDialogueOptionScRsp clearEffectEventIdList() { + bitField0_ &= ~0x00000020; + effectEventIdList.clear(); + return this; + } + + /** + * repeated uint32 effect_event_id_list = 1; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableEffectEventIdList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getEffectEventIdList() { + return effectEventIdList; + } + + /** + * repeated uint32 effect_event_id_list = 1; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedInt getMutableEffectEventIdList() { + bitField0_ |= 0x00000020; + return effectEventIdList; + } + + /** + * repeated uint32 effect_event_id_list = 1; + * @param value the effectEventIdList to add + * @return this + */ + public SelectRogueCommonDialogueOptionScRsp addEffectEventIdList(final int value) { + bitField0_ |= 0x00000020; + effectEventIdList.add(value); + return this; + } + + /** + * repeated uint32 effect_event_id_list = 1; + * @param values the effectEventIdList to add + * @return this + */ + public SelectRogueCommonDialogueOptionScRsp addAllEffectEventIdList(final int... values) { + bitField0_ |= 0x00000020; + effectEventIdList.addAll(values); + return this; + } + + @Override + public SelectRogueCommonDialogueOptionScRsp copyFrom( + final SelectRogueCommonDialogueOptionScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + optionId = other.optionId; + eventUniqueId = other.eventUniqueId; + eventHasEffect = other.eventHasEffect; + dialogueData.copyFrom(other.dialogueData); + effectEventIdList.copyFrom(other.effectEventIdList); + } + return this; + } + + @Override + public SelectRogueCommonDialogueOptionScRsp mergeFrom( + final SelectRogueCommonDialogueOptionScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasOptionId()) { + setOptionId(other.optionId); + } + if (other.hasEventUniqueId()) { + setEventUniqueId(other.eventUniqueId); + } + if (other.hasEventHasEffect()) { + setEventHasEffect(other.eventHasEffect); + } + if (other.hasDialogueData()) { + getMutableDialogueData().mergeFrom(other.dialogueData); + } + if (other.hasEffectEventIdList()) { + getMutableEffectEventIdList().addAll(other.effectEventIdList); + } + return this; + } + + @Override + public SelectRogueCommonDialogueOptionScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + optionId = 0; + eventUniqueId = 0; + eventHasEffect = false; + dialogueData.clear(); + effectEventIdList.clear(); + return this; + } + + @Override + public SelectRogueCommonDialogueOptionScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + dialogueData.clearQuick(); + effectEventIdList.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SelectRogueCommonDialogueOptionScRsp)) { + return false; + } + SelectRogueCommonDialogueOptionScRsp other = (SelectRogueCommonDialogueOptionScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasOptionId() || optionId == other.optionId) + && (!hasEventUniqueId() || eventUniqueId == other.eventUniqueId) + && (!hasEventHasEffect() || eventHasEffect == other.eventHasEffect) + && (!hasDialogueData() || dialogueData.equals(other.dialogueData)) + && (!hasEffectEventIdList() || effectEventIdList.equals(other.effectEventIdList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(optionId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(eventUniqueId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 64); + output.writeBoolNoTag(eventHasEffect); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 34); + output.writeMessageNoTag(dialogueData); + } + if ((bitField0_ & 0x00000020) != 0) { + for (int i = 0; i < effectEventIdList.length(); i++) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(effectEventIdList.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(optionId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(eventUniqueId); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(dialogueData); + } + if ((bitField0_ & 0x00000020) != 0) { + size += (1 * effectEventIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(effectEventIdList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SelectRogueCommonDialogueOptionScRsp mergeFrom(final ProtoSource input) throws + IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // optionId + optionId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // eventUniqueId + eventUniqueId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { + // eventHasEffect + eventHasEffect = input.readBool(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // dialogueData + input.readMessage(dialogueData); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // effectEventIdList [packed=true] + input.readPackedUInt32(effectEventIdList, tag); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 8: { + // effectEventIdList [packed=false] + tag = input.readRepeatedUInt32(effectEventIdList, tag); + bitField0_ |= 0x00000020; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.optionId, optionId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.eventUniqueId, eventUniqueId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBool(FieldNames.eventHasEffect, eventHasEffect); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeMessage(FieldNames.dialogueData, dialogueData); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRepeatedUInt32(FieldNames.effectEventIdList, effectEventIdList); + } + output.endObject(); + } + + @Override + public SelectRogueCommonDialogueOptionScRsp mergeFrom(final JsonSource input) throws + IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -79017872: + case 1845434661: { + if (input.isAtField(FieldNames.optionId)) { + if (!input.trySkipNullValue()) { + optionId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2091680134: + case -157385500: { + if (input.isAtField(FieldNames.eventUniqueId)) { + if (!input.trySkipNullValue()) { + eventUniqueId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 269571921: + case 693895579: { + if (input.isAtField(FieldNames.eventHasEffect)) { + if (!input.trySkipNullValue()) { + eventHasEffect = input.readBool(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1350537634: + case -1057999439: { + if (input.isAtField(FieldNames.dialogueData)) { + if (!input.trySkipNullValue()) { + input.readMessage(dialogueData); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1375491774: + case -1217188241: { + if (input.isAtField(FieldNames.effectEventIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(effectEventIdList); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SelectRogueCommonDialogueOptionScRsp clone() { + return new SelectRogueCommonDialogueOptionScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SelectRogueCommonDialogueOptionScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SelectRogueCommonDialogueOptionScRsp(), data).checkInitialized(); + } + + public static SelectRogueCommonDialogueOptionScRsp parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new SelectRogueCommonDialogueOptionScRsp(), input).checkInitialized(); + } + + public static SelectRogueCommonDialogueOptionScRsp parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new SelectRogueCommonDialogueOptionScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating SelectRogueCommonDialogueOptionScRsp messages + */ + public static MessageFactory getFactory() { + return SelectRogueCommonDialogueOptionScRspFactory.INSTANCE; + } + + private enum SelectRogueCommonDialogueOptionScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public SelectRogueCommonDialogueOptionScRsp create() { + return SelectRogueCommonDialogueOptionScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName optionId = FieldName.forField("optionId", "option_id"); + + static final FieldName eventUniqueId = FieldName.forField("eventUniqueId", "event_unique_id"); + + static final FieldName eventHasEffect = FieldName.forField("eventHasEffect", "event_has_effect"); + + static final FieldName dialogueData = FieldName.forField("dialogueData", "dialogue_data"); + + static final FieldName effectEventIdList = FieldName.forField("effectEventIdList", "effect_event_id_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SyncReasonOuterClass.java b/src/generated/main/emu/lunarcore/proto/SyncReasonOuterClass.java index 518ff6a..f2a647f 100644 --- a/src/generated/main/emu/lunarcore/proto/SyncReasonOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SyncReasonOuterClass.java @@ -87,7 +87,7 @@ public final class SyncReasonOuterClass { /** * @return a converter that maps between this enum's numeric and text representations */ - public static ProtoEnum.EnumConverter converter() { + public static EnumConverter converter() { return SyncReasonConverter.INSTANCE; } @@ -109,7 +109,7 @@ public final class SyncReasonOuterClass { return value == null ? other : value; } - enum SyncReasonConverter implements ProtoEnum.EnumConverter { + enum SyncReasonConverter implements EnumConverter { INSTANCE; private static final SyncReason[] lookup = new SyncReason[5]; diff --git a/src/generated/main/emu/lunarcore/proto/SyncRogueCommonDialogueDataScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/SyncRogueCommonDialogueDataScNotifyOuterClass.java new file mode 100644 index 0000000..6775b22 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SyncRogueCommonDialogueDataScNotifyOuterClass.java @@ -0,0 +1,304 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedMessage; + +public final class SyncRogueCommonDialogueDataScNotifyOuterClass { + /** + * Protobuf type {@code SyncRogueCommonDialogueDataScNotify} + */ + public static final class SyncRogueCommonDialogueDataScNotify extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * repeated .RogueCommonDialogueDataInfo dialogue_data_list = 10; + */ + private final RepeatedMessage dialogueDataList = RepeatedMessage.newEmptyInstance(RogueCommonDialogueDataInfoOuterClass.RogueCommonDialogueDataInfo.getFactory()); + + private SyncRogueCommonDialogueDataScNotify() { + } + + /** + * @return a new empty instance of {@code SyncRogueCommonDialogueDataScNotify} + */ + public static SyncRogueCommonDialogueDataScNotify newInstance() { + return new SyncRogueCommonDialogueDataScNotify(); + } + + /** + * repeated .RogueCommonDialogueDataInfo dialogue_data_list = 10; + * @return whether the dialogueDataList field is set + */ + public boolean hasDialogueDataList() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * repeated .RogueCommonDialogueDataInfo dialogue_data_list = 10; + * @return this + */ + public SyncRogueCommonDialogueDataScNotify clearDialogueDataList() { + bitField0_ &= ~0x00000001; + dialogueDataList.clear(); + return this; + } + + /** + * repeated .RogueCommonDialogueDataInfo dialogue_data_list = 10; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableDialogueDataList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getDialogueDataList( + ) { + return dialogueDataList; + } + + /** + * repeated .RogueCommonDialogueDataInfo dialogue_data_list = 10; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableDialogueDataList( + ) { + bitField0_ |= 0x00000001; + return dialogueDataList; + } + + /** + * repeated .RogueCommonDialogueDataInfo dialogue_data_list = 10; + * @param value the dialogueDataList to add + * @return this + */ + public SyncRogueCommonDialogueDataScNotify addDialogueDataList( + final RogueCommonDialogueDataInfoOuterClass.RogueCommonDialogueDataInfo value) { + bitField0_ |= 0x00000001; + dialogueDataList.add(value); + return this; + } + + /** + * repeated .RogueCommonDialogueDataInfo dialogue_data_list = 10; + * @param values the dialogueDataList to add + * @return this + */ + public SyncRogueCommonDialogueDataScNotify addAllDialogueDataList( + final RogueCommonDialogueDataInfoOuterClass.RogueCommonDialogueDataInfo... values) { + bitField0_ |= 0x00000001; + dialogueDataList.addAll(values); + return this; + } + + @Override + public SyncRogueCommonDialogueDataScNotify copyFrom( + final SyncRogueCommonDialogueDataScNotify other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + dialogueDataList.copyFrom(other.dialogueDataList); + } + return this; + } + + @Override + public SyncRogueCommonDialogueDataScNotify mergeFrom( + final SyncRogueCommonDialogueDataScNotify other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasDialogueDataList()) { + getMutableDialogueDataList().addAll(other.dialogueDataList); + } + return this; + } + + @Override + public SyncRogueCommonDialogueDataScNotify clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + dialogueDataList.clear(); + return this; + } + + @Override + public SyncRogueCommonDialogueDataScNotify clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + dialogueDataList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SyncRogueCommonDialogueDataScNotify)) { + return false; + } + SyncRogueCommonDialogueDataScNotify other = (SyncRogueCommonDialogueDataScNotify) o; + return bitField0_ == other.bitField0_ + && (!hasDialogueDataList() || dialogueDataList.equals(other.dialogueDataList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + for (int i = 0; i < dialogueDataList.length(); i++) { + output.writeRawByte((byte) 82); + output.writeMessageNoTag(dialogueDataList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += (1 * dialogueDataList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(dialogueDataList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SyncRogueCommonDialogueDataScNotify mergeFrom(final ProtoSource input) throws + IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 82: { + // dialogueDataList + tag = input.readRepeatedMessage(dialogueDataList, tag); + bitField0_ |= 0x00000001; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeRepeatedMessage(FieldNames.dialogueDataList, dialogueDataList); + } + output.endObject(); + } + + @Override + public SyncRogueCommonDialogueDataScNotify mergeFrom(final JsonSource input) throws + IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -44165792: + case -111142292: { + if (input.isAtField(FieldNames.dialogueDataList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(dialogueDataList); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SyncRogueCommonDialogueDataScNotify clone() { + return new SyncRogueCommonDialogueDataScNotify().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SyncRogueCommonDialogueDataScNotify parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SyncRogueCommonDialogueDataScNotify(), data).checkInitialized(); + } + + public static SyncRogueCommonDialogueDataScNotify parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new SyncRogueCommonDialogueDataScNotify(), input).checkInitialized(); + } + + public static SyncRogueCommonDialogueDataScNotify parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new SyncRogueCommonDialogueDataScNotify(), input).checkInitialized(); + } + + /** + * @return factory for creating SyncRogueCommonDialogueDataScNotify messages + */ + public static MessageFactory getFactory() { + return SyncRogueCommonDialogueDataScNotifyFactory.INSTANCE; + } + + private enum SyncRogueCommonDialogueDataScNotifyFactory implements MessageFactory { + INSTANCE; + + @Override + public SyncRogueCommonDialogueDataScNotify create() { + return SyncRogueCommonDialogueDataScNotify.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName dialogueDataList = FieldName.forField("dialogueDataList", "dialogue_data_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SyncRogueCommonDialogueOptionFinishScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/SyncRogueCommonDialogueOptionFinishScNotifyOuterClass.java new file mode 100644 index 0000000..6b60c53 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SyncRogueCommonDialogueOptionFinishScNotifyOuterClass.java @@ -0,0 +1,556 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; + +public final class SyncRogueCommonDialogueOptionFinishScNotifyOuterClass { + /** + * Protobuf type {@code SyncRogueCommonDialogueOptionFinishScNotify} + */ + public static final class SyncRogueCommonDialogueOptionFinishScNotify extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 event_unique_id = 3; + */ + private int eventUniqueId; + + /** + * optional uint32 option_id = 7; + */ + private int optionId; + + /** + * optional .RogueCommonDialogueOptionInfo result_option_info = 2; + */ + private final RogueCommonDialogueOptionInfoOuterClass.RogueCommonDialogueOptionInfo resultOptionInfo = RogueCommonDialogueOptionInfoOuterClass.RogueCommonDialogueOptionInfo.newInstance(); + + /** + * optional .RogueCommonDialogueDataInfo dialogue_data = 12; + */ + private final RogueCommonDialogueDataInfoOuterClass.RogueCommonDialogueDataInfo dialogueData = RogueCommonDialogueDataInfoOuterClass.RogueCommonDialogueDataInfo.newInstance(); + + private SyncRogueCommonDialogueOptionFinishScNotify() { + } + + /** + * @return a new empty instance of {@code SyncRogueCommonDialogueOptionFinishScNotify} + */ + public static SyncRogueCommonDialogueOptionFinishScNotify newInstance() { + return new SyncRogueCommonDialogueOptionFinishScNotify(); + } + + /** + * optional uint32 event_unique_id = 3; + * @return whether the eventUniqueId field is set + */ + public boolean hasEventUniqueId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 event_unique_id = 3; + * @return this + */ + public SyncRogueCommonDialogueOptionFinishScNotify clearEventUniqueId() { + bitField0_ &= ~0x00000001; + eventUniqueId = 0; + return this; + } + + /** + * optional uint32 event_unique_id = 3; + * @return the eventUniqueId + */ + public int getEventUniqueId() { + return eventUniqueId; + } + + /** + * optional uint32 event_unique_id = 3; + * @param value the eventUniqueId to set + * @return this + */ + public SyncRogueCommonDialogueOptionFinishScNotify setEventUniqueId(final int value) { + bitField0_ |= 0x00000001; + eventUniqueId = value; + return this; + } + + /** + * optional uint32 option_id = 7; + * @return whether the optionId field is set + */ + public boolean hasOptionId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 option_id = 7; + * @return this + */ + public SyncRogueCommonDialogueOptionFinishScNotify clearOptionId() { + bitField0_ &= ~0x00000002; + optionId = 0; + return this; + } + + /** + * optional uint32 option_id = 7; + * @return the optionId + */ + public int getOptionId() { + return optionId; + } + + /** + * optional uint32 option_id = 7; + * @param value the optionId to set + * @return this + */ + public SyncRogueCommonDialogueOptionFinishScNotify setOptionId(final int value) { + bitField0_ |= 0x00000002; + optionId = value; + return this; + } + + /** + * optional .RogueCommonDialogueOptionInfo result_option_info = 2; + * @return whether the resultOptionInfo field is set + */ + public boolean hasResultOptionInfo() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .RogueCommonDialogueOptionInfo result_option_info = 2; + * @return this + */ + public SyncRogueCommonDialogueOptionFinishScNotify clearResultOptionInfo() { + bitField0_ &= ~0x00000004; + resultOptionInfo.clear(); + return this; + } + + /** + * optional .RogueCommonDialogueOptionInfo result_option_info = 2; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableResultOptionInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueCommonDialogueOptionInfoOuterClass.RogueCommonDialogueOptionInfo getResultOptionInfo( + ) { + return resultOptionInfo; + } + + /** + * optional .RogueCommonDialogueOptionInfo result_option_info = 2; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RogueCommonDialogueOptionInfoOuterClass.RogueCommonDialogueOptionInfo getMutableResultOptionInfo( + ) { + bitField0_ |= 0x00000004; + return resultOptionInfo; + } + + /** + * optional .RogueCommonDialogueOptionInfo result_option_info = 2; + * @param value the resultOptionInfo to set + * @return this + */ + public SyncRogueCommonDialogueOptionFinishScNotify setResultOptionInfo( + final RogueCommonDialogueOptionInfoOuterClass.RogueCommonDialogueOptionInfo value) { + bitField0_ |= 0x00000004; + resultOptionInfo.copyFrom(value); + return this; + } + + /** + * optional .RogueCommonDialogueDataInfo dialogue_data = 12; + * @return whether the dialogueData field is set + */ + public boolean hasDialogueData() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .RogueCommonDialogueDataInfo dialogue_data = 12; + * @return this + */ + public SyncRogueCommonDialogueOptionFinishScNotify clearDialogueData() { + bitField0_ &= ~0x00000008; + dialogueData.clear(); + return this; + } + + /** + * optional .RogueCommonDialogueDataInfo dialogue_data = 12; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableDialogueData()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RogueCommonDialogueDataInfoOuterClass.RogueCommonDialogueDataInfo getDialogueData() { + return dialogueData; + } + + /** + * optional .RogueCommonDialogueDataInfo dialogue_data = 12; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RogueCommonDialogueDataInfoOuterClass.RogueCommonDialogueDataInfo getMutableDialogueData( + ) { + bitField0_ |= 0x00000008; + return dialogueData; + } + + /** + * optional .RogueCommonDialogueDataInfo dialogue_data = 12; + * @param value the dialogueData to set + * @return this + */ + public SyncRogueCommonDialogueOptionFinishScNotify setDialogueData( + final RogueCommonDialogueDataInfoOuterClass.RogueCommonDialogueDataInfo value) { + bitField0_ |= 0x00000008; + dialogueData.copyFrom(value); + return this; + } + + @Override + public SyncRogueCommonDialogueOptionFinishScNotify copyFrom( + final SyncRogueCommonDialogueOptionFinishScNotify other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + eventUniqueId = other.eventUniqueId; + optionId = other.optionId; + resultOptionInfo.copyFrom(other.resultOptionInfo); + dialogueData.copyFrom(other.dialogueData); + } + return this; + } + + @Override + public SyncRogueCommonDialogueOptionFinishScNotify mergeFrom( + final SyncRogueCommonDialogueOptionFinishScNotify other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasEventUniqueId()) { + setEventUniqueId(other.eventUniqueId); + } + if (other.hasOptionId()) { + setOptionId(other.optionId); + } + if (other.hasResultOptionInfo()) { + getMutableResultOptionInfo().mergeFrom(other.resultOptionInfo); + } + if (other.hasDialogueData()) { + getMutableDialogueData().mergeFrom(other.dialogueData); + } + return this; + } + + @Override + public SyncRogueCommonDialogueOptionFinishScNotify clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + eventUniqueId = 0; + optionId = 0; + resultOptionInfo.clear(); + dialogueData.clear(); + return this; + } + + @Override + public SyncRogueCommonDialogueOptionFinishScNotify clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + resultOptionInfo.clearQuick(); + dialogueData.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SyncRogueCommonDialogueOptionFinishScNotify)) { + return false; + } + SyncRogueCommonDialogueOptionFinishScNotify other = (SyncRogueCommonDialogueOptionFinishScNotify) o; + return bitField0_ == other.bitField0_ + && (!hasEventUniqueId() || eventUniqueId == other.eventUniqueId) + && (!hasOptionId() || optionId == other.optionId) + && (!hasResultOptionInfo() || resultOptionInfo.equals(other.resultOptionInfo)) + && (!hasDialogueData() || dialogueData.equals(other.dialogueData)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(eventUniqueId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(optionId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(resultOptionInfo); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 98); + output.writeMessageNoTag(dialogueData); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(eventUniqueId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(optionId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(resultOptionInfo); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(dialogueData); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SyncRogueCommonDialogueOptionFinishScNotify mergeFrom(final ProtoSource input) throws + IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 24: { + // eventUniqueId + eventUniqueId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // optionId + optionId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // resultOptionInfo + input.readMessage(resultOptionInfo); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 98) { + break; + } + } + case 98: { + // dialogueData + input.readMessage(dialogueData); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.eventUniqueId, eventUniqueId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.optionId, optionId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.resultOptionInfo, resultOptionInfo); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeMessage(FieldNames.dialogueData, dialogueData); + } + output.endObject(); + } + + @Override + public SyncRogueCommonDialogueOptionFinishScNotify mergeFrom(final JsonSource input) throws + IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 2091680134: + case -157385500: { + if (input.isAtField(FieldNames.eventUniqueId)) { + if (!input.trySkipNullValue()) { + eventUniqueId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -79017872: + case 1845434661: { + if (input.isAtField(FieldNames.optionId)) { + if (!input.trySkipNullValue()) { + optionId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -565706048: + case -465340138: { + if (input.isAtField(FieldNames.resultOptionInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(resultOptionInfo); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1350537634: + case -1057999439: { + if (input.isAtField(FieldNames.dialogueData)) { + if (!input.trySkipNullValue()) { + input.readMessage(dialogueData); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SyncRogueCommonDialogueOptionFinishScNotify clone() { + return new SyncRogueCommonDialogueOptionFinishScNotify().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SyncRogueCommonDialogueOptionFinishScNotify parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SyncRogueCommonDialogueOptionFinishScNotify(), data).checkInitialized(); + } + + public static SyncRogueCommonDialogueOptionFinishScNotify parseFrom(final ProtoSource input) + throws IOException { + return ProtoMessage.mergeFrom(new SyncRogueCommonDialogueOptionFinishScNotify(), input).checkInitialized(); + } + + public static SyncRogueCommonDialogueOptionFinishScNotify parseFrom(final JsonSource input) + throws IOException { + return ProtoMessage.mergeFrom(new SyncRogueCommonDialogueOptionFinishScNotify(), input).checkInitialized(); + } + + /** + * @return factory for creating SyncRogueCommonDialogueOptionFinishScNotify messages + */ + public static MessageFactory getFactory() { + return SyncRogueCommonDialogueOptionFinishScNotifyFactory.INSTANCE; + } + + private enum SyncRogueCommonDialogueOptionFinishScNotifyFactory implements MessageFactory { + INSTANCE; + + @Override + public SyncRogueCommonDialogueOptionFinishScNotify create() { + return SyncRogueCommonDialogueOptionFinishScNotify.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName eventUniqueId = FieldName.forField("eventUniqueId", "event_unique_id"); + + static final FieldName optionId = FieldName.forField("optionId", "option_id"); + + static final FieldName resultOptionInfo = FieldName.forField("resultOptionInfo", "result_option_info"); + + static final FieldName dialogueData = FieldName.forField("dialogueData", "dialogue_data"); + } + } +} diff --git a/src/main/java/emu/lunarcore/data/GameData.java b/src/main/java/emu/lunarcore/data/GameData.java index c693451..3253409 100644 --- a/src/main/java/emu/lunarcore/data/GameData.java +++ b/src/main/java/emu/lunarcore/data/GameData.java @@ -55,6 +55,7 @@ public class GameData { @Getter private static Int2ObjectMap rogueRoomExcelMap = new Int2ObjectOpenHashMap<>(); @Getter private static Int2ObjectMap rogueMapExcelMap = new Int2ObjectOpenHashMap<>(); @Getter private static Int2ObjectMap rogueMonsterExcelMap = new Int2ObjectOpenHashMap<>(); + @Getter private static Int2ObjectMap rogueNPCExcelMap = new Int2ObjectOpenHashMap<>(); @Getter private static Int2ObjectMap rogueDialogueEventList = new Int2ObjectOpenHashMap<>(); @Getter private static Int2ObjectMap rogueBuffGroupExcelMap = new Int2ObjectOpenHashMap<>(); @Getter private static Int2ObjectMap rogueBuffTagExcelMap = new Int2ObjectOpenHashMap<>(); diff --git a/src/main/java/emu/lunarcore/data/GameDepot.java b/src/main/java/emu/lunarcore/data/GameDepot.java index 7ce3d9c..280cc9f 100644 --- a/src/main/java/emu/lunarcore/data/GameDepot.java +++ b/src/main/java/emu/lunarcore/data/GameDepot.java @@ -35,7 +35,6 @@ public class GameDepot { @Getter private static List rogueRandomBuffList = new ArrayList<>(); @Getter private static List rogueRandomCommonBonusList = new ArrayList<>(); @Getter private static List rogueRandomMiracleList = new ArrayList<>(); - @Getter private static List rogueRandomNpcList = new ArrayList<>(); private static Int2ObjectMap> rogueMapDepot = new Int2ObjectOpenHashMap<>(); public static void addRelicMainAffix(RelicMainAffixExcel affix) { diff --git a/src/main/java/emu/lunarcore/data/ResourceLoader.java b/src/main/java/emu/lunarcore/data/ResourceLoader.java index 3fa6dbc..a5e6d7d 100644 --- a/src/main/java/emu/lunarcore/data/ResourceLoader.java +++ b/src/main/java/emu/lunarcore/data/ResourceLoader.java @@ -9,6 +9,9 @@ import java.util.stream.Stream; import emu.lunarcore.data.config.*; +import emu.lunarcore.data.config.rogue.RogueDialogueEventConfigInfo; +import emu.lunarcore.data.config.rogue.RogueDialogueEventOptionConfigInfo; +import emu.lunarcore.data.config.rogue.RogueNPCConfigInfo; import org.reflections.Reflections; import com.google.gson.Gson; @@ -354,18 +357,35 @@ public class ResourceLoader { // Loaded configs count int count = 0; // Load dialogue event configs - for (var dialogueEventExcel : GameData.getRogueDialogueEventList().values()) { + for (var npcEventExcel : GameData.getRogueNPCExcelMap().values()) { // Get file - File file = new File(LunarCore.getConfig().getResourceDir() + "/" + dialogueEventExcel.getJsonPath()); + if (npcEventExcel.getNPCJsonPath().isEmpty()) { + count++; + continue; + } + File file = new File(LunarCore.getConfig().getResourceDir() + "/" + npcEventExcel.getNPCJsonPath()); if (!file.exists()) { - file = new File(LunarCore.getConfig().getResourceDir() + "/" + dialogueEventExcel.getSecondPath()); - if (!file.exists()) continue; + continue; } try (FileReader reader = new FileReader(file)) { - RogueDialogueEventInfo info = gson.fromJson(reader, RogueDialogueEventInfo.class); - dialogueEventExcel.setInfo(info); + RogueNPCConfigInfo info = gson.fromJson(reader, RogueNPCConfigInfo.class); + npcEventExcel.setRogueNpcConfig(info); + + // Load dialogue option + for (var dialogue : info.DialogueList) { + if (dialogue.getOptionPath() == null) { + count++; + continue; + } + File optionFile = new File(LunarCore.getConfig().getResourceDir() + "/" + dialogue.getOptionPath()); + if (!file.exists()) { + continue; + } + RogueDialogueEventConfigInfo optionInfo = gson.fromJson(new FileReader(optionFile), RogueDialogueEventConfigInfo.class); + dialogue.setOptionInfo(optionInfo); + } count++; } catch (Exception e) { e.printStackTrace(); @@ -374,7 +394,7 @@ public class ResourceLoader { // Notify the server owner if we are missing any files if (count < GameData.getRogueDialogueEventList().size()) { - //LunarCore.getLogger().warn("Rogue dialogue event configs are missing, please check your resources folder: {resources}/Config/Level/RogueDialogue/RogueDialogueEvent/Act. Rogue event may not work!"); + LunarCore.getLogger().warn("Rogue dialogue event configs are missing, please check your resources folder: {resources}/Config/Level/Rogue/. Rogue event may not work!"); } // Done LunarCore.getLogger().info("Loaded " + count + " rogue events."); diff --git a/src/main/java/emu/lunarcore/data/config/RogueDialogueEventInfo.java b/src/main/java/emu/lunarcore/data/config/RogueDialogueEventInfo.java deleted file mode 100644 index c96e5cb..0000000 --- a/src/main/java/emu/lunarcore/data/config/RogueDialogueEventInfo.java +++ /dev/null @@ -1,39 +0,0 @@ -package emu.lunarcore.data.config; - -import com.google.gson.annotations.SerializedName; -import lombok.Getter; - -import java.util.ArrayList; -import java.util.List; - -/** - * Original name: LevelRogueDialogueEvent - */ -@Getter -public class RogueDialogueEventInfo { - private List OnInitSequece = new ArrayList<>(); - private List OnStartSequece = new ArrayList<>(); - - @Getter - public static class RogueDialogueEvent { - private List TaskList = new ArrayList<>(); - } - - @Getter - public static class TaskListInfo { - @SerializedName("$type") public String Type = ""; - private List OptionList = new ArrayList<>(); - private CustomStringInfo CustomString = new CustomStringInfo(); - } - - @Getter - public static class OptionListInfo { - private String TriggerCustomString; - private int DialogueEventID; - } - - @Getter - public static class CustomStringInfo { - private String Value; - } -} diff --git a/src/main/java/emu/lunarcore/data/config/rogue/RogueDialogueBaseConfigInfo.java b/src/main/java/emu/lunarcore/data/config/rogue/RogueDialogueBaseConfigInfo.java new file mode 100644 index 0000000..db03b4f --- /dev/null +++ b/src/main/java/emu/lunarcore/data/config/rogue/RogueDialogueBaseConfigInfo.java @@ -0,0 +1,19 @@ +package emu.lunarcore.data.config.rogue; + +import lombok.Getter; +import lombok.Setter; + +import javax.annotation.Nullable; + +/** + * Original Name: RogueDialogueBaseConfig + */ +@Getter +public class RogueDialogueBaseConfigInfo { + public String OptionPath; + public String DialoguePath; + + @Nullable + @Setter + public RogueDialogueEventConfigInfo OptionInfo; +} diff --git a/src/main/java/emu/lunarcore/data/config/rogue/RogueDialogueEventConfigInfo.java b/src/main/java/emu/lunarcore/data/config/rogue/RogueDialogueEventConfigInfo.java new file mode 100644 index 0000000..3d794b8 --- /dev/null +++ b/src/main/java/emu/lunarcore/data/config/rogue/RogueDialogueEventConfigInfo.java @@ -0,0 +1,14 @@ +package emu.lunarcore.data.config.rogue; + +import lombok.Getter; + +import java.util.ArrayList; +import java.util.List; + +/** + * Original Name: RogueDialogueEventConfig + */ +@Getter +public class RogueDialogueEventConfigInfo { + public List OptionList = new ArrayList<>(); +} diff --git a/src/main/java/emu/lunarcore/data/config/rogue/RogueDialogueEventOptionConfigInfo.java b/src/main/java/emu/lunarcore/data/config/rogue/RogueDialogueEventOptionConfigInfo.java new file mode 100644 index 0000000..72d29d2 --- /dev/null +++ b/src/main/java/emu/lunarcore/data/config/rogue/RogueDialogueEventOptionConfigInfo.java @@ -0,0 +1,22 @@ +package emu.lunarcore.data.config.rogue; + +import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; +import lombok.Getter; + +import java.util.Map; + +/** + * Original Name: RogueDialogueEventOptionConfig + */ +@Getter +public class RogueDialogueEventOptionConfigInfo { + + public int OptionID; + public int DisplayID; + public int SpecialOptionID; + public Map DynamicMap = new Int2ObjectOpenHashMap(); + public int DescValue; + public int DescValue2; + public int DescValue3; + public int DescValue4; +} diff --git a/src/main/java/emu/lunarcore/data/config/rogue/RogueDialogueEventOptionDynamicConfigInfo.java b/src/main/java/emu/lunarcore/data/config/rogue/RogueDialogueEventOptionDynamicConfigInfo.java new file mode 100644 index 0000000..2e799ab --- /dev/null +++ b/src/main/java/emu/lunarcore/data/config/rogue/RogueDialogueEventOptionDynamicConfigInfo.java @@ -0,0 +1,9 @@ +package emu.lunarcore.data.config.rogue; + +/** + * Original Name: RogueDialogueEventOptionDynamicConfig + */ +public class RogueDialogueEventOptionDynamicConfigInfo { + public int DisplayID; + public int DisplayID2; +} diff --git a/src/main/java/emu/lunarcore/data/config/rogue/RogueNPCConfigInfo.java b/src/main/java/emu/lunarcore/data/config/rogue/RogueNPCConfigInfo.java new file mode 100644 index 0000000..6d69cea --- /dev/null +++ b/src/main/java/emu/lunarcore/data/config/rogue/RogueNPCConfigInfo.java @@ -0,0 +1,13 @@ +package emu.lunarcore.data.config.rogue; + +import emu.lunarcore.game.enums.RogueDialogueType; +import lombok.Getter; + +import java.util.ArrayList; +import java.util.List; + +@Getter +public class RogueNPCConfigInfo { + public RogueDialogueType DialogueType; + public List DialogueList = new ArrayList<>(); +} diff --git a/src/main/java/emu/lunarcore/data/config/rogue/RogueNPCDialogueConfigInfo.java b/src/main/java/emu/lunarcore/data/config/rogue/RogueNPCDialogueConfigInfo.java new file mode 100644 index 0000000..6efde72 --- /dev/null +++ b/src/main/java/emu/lunarcore/data/config/rogue/RogueNPCDialogueConfigInfo.java @@ -0,0 +1,7 @@ +package emu.lunarcore.data.config.rogue; + +public class RogueNPCDialogueConfigInfo extends RogueDialogueBaseConfigInfo { + public int DialogueProgress; + public int UnlockID; + public int TalkNameID; +} diff --git a/src/main/java/emu/lunarcore/data/excel/DialogueEventExcel.java b/src/main/java/emu/lunarcore/data/excel/DialogueEventExcel.java index 0038ab7..8308002 100644 --- a/src/main/java/emu/lunarcore/data/excel/DialogueEventExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/DialogueEventExcel.java @@ -3,13 +3,11 @@ package emu.lunarcore.data.excel; import emu.lunarcore.data.GameData; import emu.lunarcore.data.GameResource; import emu.lunarcore.data.ResourceType; -import emu.lunarcore.data.config.RogueDialogueEventInfo; import emu.lunarcore.game.enums.DialogueEventCostType; import emu.lunarcore.game.enums.DialogueEventType; import emu.lunarcore.game.rogue.RogueBuffType; import it.unimi.dsi.fastutil.ints.IntArrayList; import lombok.Getter; -import lombok.Setter; @Getter @ResourceType(name = {"DialogueEvent.json"}) @@ -22,8 +20,6 @@ public class DialogueEventExcel extends GameResource { public IntArrayList ConditionIDList; public RogueBuffType AeonOption; - @Setter private RogueDialogueEventInfo info; - @Override public int getId() { return EventID; @@ -33,12 +29,4 @@ public class DialogueEventExcel extends GameResource { public void onLoad() { GameData.getRogueDialogueEventList().put(EventID, this); } - - public String getJsonPath() { - return "Config/Level/RogueDialogue/RogueDialogueEvent/Act/Act00" + this.getId() + ".json"; - } - - public String getSecondPath() { - return "Config/Level/RogueDialogue/RogueDialogueEvent/Act/Act4038" + this.getId() + ".json"; - } } diff --git a/src/main/java/emu/lunarcore/data/excel/RogueNPCExcel.java b/src/main/java/emu/lunarcore/data/excel/RogueNPCExcel.java index 015324e..c817bc2 100644 --- a/src/main/java/emu/lunarcore/data/excel/RogueNPCExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/RogueNPCExcel.java @@ -1,25 +1,27 @@ package emu.lunarcore.data.excel; +import emu.lunarcore.data.GameData; import emu.lunarcore.data.GameDepot; import emu.lunarcore.data.GameResource; import emu.lunarcore.data.ResourceType; +import emu.lunarcore.data.config.rogue.RogueNPCConfigInfo; import lombok.Getter; +import lombok.Setter; + +import javax.annotation.Nullable; @Getter @ResourceType(name = {"RogueNPC.json"}) public class RogueNPCExcel extends GameResource { - private int RogueNPCID; - private int NPCID; + public int RogueNPCID; + public String NPCJsonPath; + + @Setter + @Nullable + public RogueNPCConfigInfo RogueNpcConfig; @Override public int getId() { return RogueNPCID; } - - @Override - public void onLoad() { - if (NPCID == 3013 && RogueNPCID >= 10000 && RogueNPCID <= 19999) { - GameDepot.getRogueRandomNpcList().add(this); - } - } } diff --git a/src/main/java/emu/lunarcore/game/enums/RogueDialogueType.java b/src/main/java/emu/lunarcore/game/enums/RogueDialogueType.java new file mode 100644 index 0000000..0423240 --- /dev/null +++ b/src/main/java/emu/lunarcore/game/enums/RogueDialogueType.java @@ -0,0 +1,8 @@ +package emu.lunarcore.game.enums; + +public enum RogueDialogueType { + None, + Story, + Event, + Store +} diff --git a/src/main/java/emu/lunarcore/game/rogue/RogueEntityLoader.java b/src/main/java/emu/lunarcore/game/rogue/RogueEntityLoader.java index b8b56fc..814870f 100644 --- a/src/main/java/emu/lunarcore/game/rogue/RogueEntityLoader.java +++ b/src/main/java/emu/lunarcore/game/rogue/RogueEntityLoader.java @@ -1,7 +1,6 @@ package emu.lunarcore.game.rogue; import emu.lunarcore.data.GameData; -import emu.lunarcore.data.GameDepot; import emu.lunarcore.data.config.GroupInfo; import emu.lunarcore.data.config.MonsterInfo; import emu.lunarcore.data.config.NpcInfo; @@ -11,13 +10,14 @@ import emu.lunarcore.data.excel.PropExcel; import emu.lunarcore.data.excel.RogueMonsterExcel; import emu.lunarcore.data.excel.RogueNPCExcel; import emu.lunarcore.game.enums.PropState; +import emu.lunarcore.game.rogue.event.RogueEventInstance; import emu.lunarcore.game.scene.Scene; import emu.lunarcore.game.scene.SceneEntityLoader; import emu.lunarcore.game.scene.entity.EntityMonster; import emu.lunarcore.game.scene.entity.EntityNpc; import emu.lunarcore.game.scene.entity.EntityProp; import emu.lunarcore.game.scene.entity.extra.PropRogueData; -import emu.lunarcore.server.packet.send.PacketSyncRogueDialogueEventDataScNotify; +import emu.lunarcore.server.packet.send.PacketSyncRogueCommonDialogueDataScNotify; import emu.lunarcore.util.Utils; public class RogueEntityLoader extends SceneEntityLoader { @@ -140,17 +140,16 @@ public class RogueEntityLoader extends SceneEntityLoader { if (npc.getNpcId() == 3013) { int npcId; RogueInstance instance; + RogueEventInstance eventInstance; do { - RogueNPCExcel rogueNpcExcel = Utils.randomElement(GameDepot.getRogueRandomNpcList()); + RogueNPCExcel rogueNpcExcel = Utils.randomElement(GameData.getRogueNPCExcelMap().values().stream().toList()); npcId = rogueNpcExcel.getId(); instance = scene.getPlayer().getRogueInstance(); - } while (instance.setDialogueParams(npcId) == null); + eventInstance = instance.generateEvent(npcId, npc); + } while (eventInstance == null); - instance.getEventManager().setNowPercentage(0); - npc.setRogueNpcId(npcId); - npc.setEventId(++instance.eventUniqueId); - scene.getPlayer().sendPacket(new PacketSyncRogueDialogueEventDataScNotify(npcId, instance.curDialogueParams.get(npcId), - instance.eventUniqueId)); + npc.setEventInstance(eventInstance); + scene.getPlayer().sendPacket(new PacketSyncRogueCommonDialogueDataScNotify(eventInstance)); } return npc; diff --git a/src/main/java/emu/lunarcore/game/rogue/RogueEventManager.java b/src/main/java/emu/lunarcore/game/rogue/RogueEventManager.java index 894c754..5b53e79 100644 --- a/src/main/java/emu/lunarcore/game/rogue/RogueEventManager.java +++ b/src/main/java/emu/lunarcore/game/rogue/RogueEventManager.java @@ -3,7 +3,9 @@ package emu.lunarcore.game.rogue; import emu.lunarcore.LunarCore; import emu.lunarcore.data.GameData; import emu.lunarcore.game.player.Player; +import emu.lunarcore.game.rogue.event.RogueEventResultInfo; import emu.lunarcore.proto.RogueDialogueEventParamOuterClass.RogueDialogueEventParam; +import emu.lunarcore.server.packet.send.PacketSyncRogueCommonDialogueOptionFinishScNotify; import emu.lunarcore.util.Utils; import emu.lunarcore.util.WeightedList; import it.unimi.dsi.fastutil.ints.IntArrayList; @@ -14,22 +16,32 @@ import lombok.Setter; public class RogueEventManager { private RogueInstance rogueInstance; private Player player; - @Setter private int nowPercentage = 0; public RogueEventManager(RogueInstance rogueInstance) { this.rogueInstance = rogueInstance; this.player = rogueInstance.getPlayer(); } - public int handleEvent(int eventId, int npcId) { - var event = GameData.getRogueDialogueEventList().get(eventId); + public int handleEvent(int optionId, int eventUniqueId) { + var event = GameData.getRogueDialogueEventList().get(optionId); if (event == null || event.getRogueEffectType() == null) return 0; IntArrayList param = event.getRogueEffectParamList(); + var instance = this.getRogueInstance().getRunningEvents().get(eventUniqueId); + boolean isEvent = false; + if (instance != null && instance.SelectedOptionId == 0) { + instance.SelectedOptionId = optionId; + isEvent = true; + } switch (event.getRogueEffectType()) { case GetItem -> rogueInstance.addDialogueCoin(param.getInt(1)); case TriggerBattle -> { - this.getPlayer().getServer().getBattleService().startBattle(player, param.getInt(0)); // handle in SceneEnterStageCsReq + var battleId = param.getInt(0); + var option = this.getRogueInstance().getRunningEvents().get(eventUniqueId).Options.stream().filter(x -> x.OptionId == optionId).findFirst(); + if (option.isEmpty()) return 0; + var result = new RogueEventResultInfo(); + result.BattleEventId = battleId; + option.get().Results.add(result); } case TriggerRogueMiracleSelect -> this.getRogueInstance().createMiracleSelect(1); case TriggerRogueBuffSelect -> { @@ -59,10 +71,8 @@ public class RogueEventManager { } case TriggerDialogueEventList -> { for (var id : param) { - this.handleEvent(id, npcId); - this.getRogueInstance().getCurDialogueParams().get(npcId).add(RogueDialogueEventParam.newInstance() - .setDialogueEventId(id) - .setIsValid(true)); + this.handleEvent(id, eventUniqueId); + this.getRogueInstance().getRunningEvents().get(eventUniqueId).EffectEventId.add(id); } } case TriggerRandomEventList -> { @@ -77,8 +87,8 @@ public class RogueEventManager { nextEventId = 0; } int randomEventId = weightList.next(); - handleCost(eventId); - this.handleEvent(randomEventId, npcId); + handleCost(optionId); + this.handleEvent(randomEventId, eventUniqueId); return randomEventId; } case GetAllRogueBuffInGroupAndGetItem -> { @@ -90,29 +100,27 @@ public class RogueEventManager { var failEventId = param.getInt(0); var initialPercent = param.getInt(1); var increasePercent = param.getInt(2); - if (this.nowPercentage != 0) - this.nowPercentage = initialPercent; + var option = this.getRogueInstance().getRunningEvents().get(eventUniqueId).Options.stream().filter(x -> x.OptionId == optionId).findFirst(); + if (option.isEmpty()) return 0; + var nowPercentage = option.get().Ratio; + if (nowPercentage != 0) + nowPercentage = initialPercent; var weightList = new WeightedList(); for (int i = 3; i < param.size(); i += 2) { weightList.add(param.getInt(i + 1), param.getInt(i)); } - int randomNum = Utils.randomRange(0, 100); - if (randomNum <= this.nowPercentage) { - handleCost(eventId); - //this.handleEvent(failEventId, npcId); - this.getRogueInstance().getCurDialogueParams().get(npcId).add(RogueDialogueEventParam.newInstance() - .setDialogueEventId(failEventId) - .setIsValid(true)); + int randomNum = Utils.randomRange(0, 10000); + handleCost(optionId); + if (randomNum <= nowPercentage * 10000) { + this.handleEvent(failEventId, eventUniqueId); + this.getRogueInstance().getRunningEvents().get(eventUniqueId).EffectEventId.add(failEventId); return 0; } else { - this.nowPercentage += increasePercent; - handleCost(eventId); int nextEventId = weightList.next(); - this.handleEvent(nextEventId, npcId); - this.getRogueInstance().getCurDialogueParams().get(npcId).add(RogueDialogueEventParam.newInstance() - .setDialogueEventId(nextEventId) - .setIsValid(true) - .setRatio(this.nowPercentage)); // not working + // add percentage + option.get().Ratio += increasePercent / 100f; + this.handleEvent(nextEventId, eventUniqueId); + this.getRogueInstance().getRunningEvents().get(eventUniqueId).EffectEventId.add(nextEventId); return 0; } } @@ -140,7 +148,12 @@ public class RogueEventManager { LunarCore.getLogger().info("RogueEventManager: unhandled event type: " + event.getRogueEffectType()); // DEBUG } } - handleCost(eventId); + handleCost(optionId); + + if (isEvent) { + // Sync + this.getRogueInstance().getPlayer().sendPacket(new PacketSyncRogueCommonDialogueOptionFinishScNotify(instance)); + } return 0; } diff --git a/src/main/java/emu/lunarcore/game/rogue/RogueInstance.java b/src/main/java/emu/lunarcore/game/rogue/RogueInstance.java index 43a3347..85acb26 100644 --- a/src/main/java/emu/lunarcore/game/rogue/RogueInstance.java +++ b/src/main/java/emu/lunarcore/game/rogue/RogueInstance.java @@ -8,8 +8,11 @@ import emu.lunarcore.data.config.AnchorInfo; import emu.lunarcore.data.excel.*; import emu.lunarcore.game.battle.Battle; import emu.lunarcore.game.enums.RogueBuffAeonType; +import emu.lunarcore.game.enums.RogueDialogueType; import emu.lunarcore.game.player.Player; import emu.lunarcore.game.player.lineup.PlayerLineup; +import emu.lunarcore.game.rogue.event.RogueEventInstance; +import emu.lunarcore.game.scene.entity.EntityNpc; import emu.lunarcore.proto.AvatarTypeOuterClass.AvatarType; import emu.lunarcore.proto.BattleEndStatusOuterClass.BattleEndStatus; import emu.lunarcore.proto.BattleStatisticsOuterClass.BattleStatistics; @@ -22,7 +25,6 @@ import emu.lunarcore.proto.RogueBuffOuterClass.RogueBuff; import emu.lunarcore.proto.RogueBuffSourceOuterClass.RogueBuffSource; import emu.lunarcore.proto.RogueCommonPendingActionOuterClass.RogueCommonPendingAction; import emu.lunarcore.proto.RogueCurrentInfoOuterClass.RogueCurrentInfo; -import emu.lunarcore.proto.RogueDialogueEventParamOuterClass.RogueDialogueEventParam; import emu.lunarcore.proto.RogueFinishInfoOuterClass.RogueFinishInfo; import emu.lunarcore.proto.RogueMapInfoOuterClass.RogueMapInfo; import emu.lunarcore.proto.RogueMiracleInfoOuterClass.RogueMiracleInfo; @@ -70,7 +72,7 @@ public class RogueInstance { private int coin; // universal debris public int actionUniqueId = 0; public int eventUniqueId = 690; - public Int2ObjectMap> curDialogueParams = new Int2ObjectOpenHashMap<>(); + public Int2ObjectMap runningEvents = new Int2ObjectOpenHashMap<>(); private final Set normalBuff = GameData.getRogueBuffGroupExcelMap().get(100005).getRogueBuffList(); private final Set uncommonBuff = GameData.getRogueBuffGroupExcelMap().get(100003).getRogueBuffList(); @@ -442,57 +444,22 @@ public class RogueInstance { this.getPlayer().sendPacket(new PacketPickRogueAvatarScRsp(newAvatarIds)); } - public synchronized List setDialogueParams(int npcId) { + public synchronized RogueEventInstance generateEvent(int npcId, EntityNpc npcEntity) { try { - this.curDialogueParams.clear(); + this.runningEvents.clear(); - DialogueEventExcel event = GameData.getRogueDialogueEventList().get(npcId); - var sequence = event.getInfo().getOnStartSequece(); + RogueNPCExcel npc = GameData.getRogueNPCExcelMap().get(npcId); - ArrayList params = new ArrayList<>(); - Int2ObjectMap map = new Int2ObjectOpenHashMap<>(); - Map argMap = new HashMap<>(); - for (var e : sequence) { - var talkList = e.getTaskList(); - var tempName = ""; - - for (var talk : talkList) { - if (talk.getOptionList() != null && !talk.getOptionList().isEmpty()){ - for (var option : talk.getOptionList()) { - if (option.getDialogueEventID() != 0) { - map.put(option.getDialogueEventID(), option.getTriggerCustomString()); - } - } - continue; - } - - if (talk.Type.equals("RPG.GameCore.WaitCustomString")) { - tempName = talk.getCustomString().getValue(); - continue; - } - - if (!Objects.equals(tempName, "") && talk.Type.equals("RPG.GameCore.TriggerCustomString")) { - argMap.put(tempName, talk.getCustomString().getValue()); - tempName = ""; - } - } + if (npc == null || npc.getRogueNpcConfig() == null || + npc.getRogueNpcConfig().DialogueType != RogueDialogueType.Event) { // make sure the npc is an event npc + return null; } + + var instance = new RogueEventInstance(npc, npcEntity, this.eventUniqueId++); + + this.getRunningEvents().put(instance.EventUniqueId, instance); - map.forEach((k, v) -> { - var param = RogueDialogueEventParam.newInstance() - .setDialogueEventId(k) - .setIsValid(true); - - if (argMap.containsKey(v) && argMap.get(v).equals("RelateToBuff")) { - param.setArgId(this.getAeonId()); - } - - params.add(param); - }); - - this.getCurDialogueParams().put(npcId, params); - - return params; + return instance; } catch (Exception e) { return null; } @@ -557,8 +524,14 @@ public class RogueInstance { // Dialogue stuff - public int onSelectDialogue(int dialogueEventId, int npcId) { - return this.eventManager.handleEvent(dialogueEventId, npcId); + public int onSelectDialogue(int dialogueEventId, int eventUniqueId) { + var instance = this.getRunningEvents().get(eventUniqueId); + if (instance == null) { + return 0; + } + + instance.SelectedOptionId = 0; // reset selected option + return this.eventManager.handleEvent(dialogueEventId, eventUniqueId); } // Battle diff --git a/src/main/java/emu/lunarcore/game/rogue/event/RogueEventInstance.java b/src/main/java/emu/lunarcore/game/rogue/event/RogueEventInstance.java new file mode 100644 index 0000000..7ca9877 --- /dev/null +++ b/src/main/java/emu/lunarcore/game/rogue/event/RogueEventInstance.java @@ -0,0 +1,54 @@ +package emu.lunarcore.game.rogue.event; + +import emu.lunarcore.data.excel.RogueNPCExcel; +import emu.lunarcore.game.scene.entity.EntityNpc; +import emu.lunarcore.proto.RogueCommonDialogueBasicInfoOuterClass.RogueCommonDialogueBasicInfo; +import emu.lunarcore.proto.RogueCommonDialogueDataInfoOuterClass.RogueCommonDialogueDataInfo; +import emu.lunarcore.proto.RogueCommonDialogueInfoOuterClass.RogueCommonDialogueInfo; + +import java.util.ArrayList; +import java.util.List; + +public class RogueEventInstance +{ + public RogueEventInstance(RogueNPCExcel excel, EntityNpc npc, int uniqueId)// check in RogueInstance.cs + { + EventId = excel.getRogueNPCID(); + EventEntity = npc; + EventUniqueId = uniqueId; + + for (var option: excel.RogueNpcConfig.DialogueList.get(0).OptionInfo.OptionList) + { + var param = new RogueEventParam(); + param.OptionId = option.OptionID; + Options.add(param); + } + } + + public int EventId; + public boolean Finished; + public EntityNpc EventEntity; + public List Options = new ArrayList<>(); + public int EventUniqueId; + public int SelectedOptionId = 0; + public List EffectEventId = new ArrayList<>(); + + public RogueCommonDialogueDataInfo toProto() + { + var proto = RogueCommonDialogueDataInfo.newInstance() + .setDialogueInfo(toDialogueInfo()) + .setEventUniqueId(EventUniqueId); + + for (var option: Options) proto.addOptionList(option.ToProto()); + + System.out.println("RogueEventInstance.toProto: " + proto); + return proto; + } + + public RogueCommonDialogueInfo toDialogueInfo() + { + return RogueCommonDialogueInfo.newInstance() + .setDialogueBasicInfo(RogueCommonDialogueBasicInfo.newInstance() + .setDialogueId(EventId)); + } +} diff --git a/src/main/java/emu/lunarcore/game/rogue/event/RogueEventParam.java b/src/main/java/emu/lunarcore/game/rogue/event/RogueEventParam.java new file mode 100644 index 0000000..e127290 --- /dev/null +++ b/src/main/java/emu/lunarcore/game/rogue/event/RogueEventParam.java @@ -0,0 +1,38 @@ +package emu.lunarcore.game.rogue.event; + +import emu.lunarcore.proto.NpcDialogueEventParamOuterClass.NpcDialogueEventParam; +import emu.lunarcore.proto.RogueCommonDialogueOptionDisplayInfoOuterClass.RogueCommonDialogueOptionDisplayInfo; +import emu.lunarcore.proto.RogueCommonDialogueOptionInfoOuterClass.RogueCommonDialogueOptionInfo; + +import java.util.ArrayList; +import java.util.List; + +public class RogueEventParam +{ + public int OptionId; + public int ArgId; + public float Ratio; + public boolean IsSelected; + public Boolean OverrideSelected = null; + public List Results = new ArrayList<>(); + + public RogueCommonDialogueOptionInfo ToProto() + { + var proto = RogueCommonDialogueOptionInfo.newInstance() + .setArgId(ArgId) + .setIsValid(true) + .setOptionId(OptionId) + .setDisplayValue(RogueCommonDialogueOptionDisplayInfo.newInstance() + .setDisplayFloatValue(Ratio)) + .setConfirm(OverrideSelected != null ? OverrideSelected : IsSelected); + + for (var result: Results) proto.addOptionResultInfo(result.ToProto()); + return proto; + } + + public NpcDialogueEventParam toNpcProto() { + return NpcDialogueEventParam.newInstance() + .setRogueDialogueEventId(OptionId) + .setArgId(ArgId); + } +} diff --git a/src/main/java/emu/lunarcore/game/rogue/event/RogueEventResultInfo.java b/src/main/java/emu/lunarcore/game/rogue/event/RogueEventResultInfo.java new file mode 100644 index 0000000..a7c7ebf --- /dev/null +++ b/src/main/java/emu/lunarcore/game/rogue/event/RogueEventResultInfo.java @@ -0,0 +1,14 @@ +package emu.lunarcore.game.rogue.event; + +import emu.lunarcore.proto.RogueCommonDialogueOptionBattleResultInfoOuterClass; +import emu.lunarcore.proto.RogueCommonDialogueOptionResultInfoOuterClass; + +public class RogueEventResultInfo { + public int BattleEventId; + + public RogueCommonDialogueOptionResultInfoOuterClass.RogueCommonDialogueOptionResultInfo ToProto() { + return RogueCommonDialogueOptionResultInfoOuterClass.RogueCommonDialogueOptionResultInfo.newInstance() + .setBattleResultInfo(RogueCommonDialogueOptionBattleResultInfoOuterClass.RogueCommonDialogueOptionBattleResultInfo.newInstance() + .setBattleEventId(BattleEventId)); + } +} diff --git a/src/main/java/emu/lunarcore/game/scene/entity/EntityNpc.java b/src/main/java/emu/lunarcore/game/scene/entity/EntityNpc.java index 9b338de..16753cc 100644 --- a/src/main/java/emu/lunarcore/game/scene/entity/EntityNpc.java +++ b/src/main/java/emu/lunarcore/game/scene/entity/EntityNpc.java @@ -2,6 +2,7 @@ package emu.lunarcore.game.scene.entity; import emu.lunarcore.data.config.GroupInfo; import emu.lunarcore.data.config.NpcInfo; +import emu.lunarcore.game.rogue.event.RogueEventInstance; import emu.lunarcore.game.scene.Scene; import emu.lunarcore.proto.MotionInfoOuterClass.MotionInfo; import emu.lunarcore.proto.NpcRogueInfoOuterClass.NpcRogueInfo; @@ -22,9 +23,7 @@ public class EntityNpc implements GameEntity { private final Position pos; private final Position rot; - @Setter private int rogueNpcId; - @Setter private boolean isDialogueFinished = false; - @Setter private int eventId = 0; + @Setter private RogueEventInstance eventInstance; public EntityNpc(Scene scene, GroupInfo group, NpcInfo npcInfo) { this.scene = scene; @@ -42,11 +41,14 @@ public class EntityNpc implements GameEntity { .setNpcId(this.getNpcId()); // Rogue data - if (this.rogueNpcId > 0) { + if (this.eventInstance != null) { var rogue = NpcRogueInfo.newInstance() - .setRogueNpcId(this.rogueNpcId) - .setFinishDialogue(isDialogueFinished) - .setDialogueGroupId(eventId); + .setEventId(this.eventInstance.EventId) + .setFinishDialogue(this.eventInstance.Finished) + .setEventUniqueId(this.eventInstance.EventUniqueId); + + for (var option: this.eventInstance.Options) + rogue.addDialogueEventParamList(option.toNpcProto()); npc.getMutableExtraInfo().setRogueInfo(rogue); } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerFinishRogueCommonDialogueCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerFinishRogueCommonDialogueCsReq.java new file mode 100644 index 0000000..9cff8bf --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerFinishRogueCommonDialogueCsReq.java @@ -0,0 +1,24 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.game.scene.entity.EntityNpc; +import emu.lunarcore.proto.FinishRogueCommonDialogueCsReqOuterClass.FinishRogueCommonDialogueCsReq; +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; +import emu.lunarcore.server.packet.send.PacketSceneGroupRefreshScNotify; + +@Opcodes(CmdId.FinishRogueCommonDialogueCsReq) +public class HandlerFinishRogueCommonDialogueCsReq extends PacketHandler { + @Override + public void handle(GameSession session, byte[] data) throws Exception { + var req = FinishRogueCommonDialogueCsReq.parseFrom(data); + + var instance = session.getPlayer().getRogueInstance().getRunningEvents().get(req.getEventUniqueId()); + if (instance == null) return; + instance.Finished = true; + session.send(new PacketSceneGroupRefreshScNotify(instance.EventEntity, null)); + + session.send(CmdId.FinishRogueCommonDialogueScRsp); + } +} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerFinishRogueDialogueGroupCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerFinishRogueDialogueGroupCsReq.java deleted file mode 100644 index 245f429..0000000 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerFinishRogueDialogueGroupCsReq.java +++ /dev/null @@ -1,25 +0,0 @@ -package emu.lunarcore.server.packet.recv; - -import emu.lunarcore.game.scene.entity.EntityNpc; -import emu.lunarcore.proto.FinishRogueDialogueGroupCsReqOuterClass.FinishRogueDialogueGroupCsReq; -import emu.lunarcore.server.game.GameSession; -import emu.lunarcore.server.packet.CmdId; -import emu.lunarcore.server.packet.Opcodes; -import emu.lunarcore.server.packet.PacketHandler; -import emu.lunarcore.server.packet.send.PacketSceneGroupRefreshScNotify; - -//@Opcodes(CmdId.FinishRogueDialogueGroupCsReq) -@Opcodes(CmdId.NONE) -public class HandlerFinishRogueDialogueGroupCsReq extends PacketHandler { - @Override - public void handle(GameSession session, byte[] data) throws Exception { - var req = FinishRogueDialogueGroupCsReq.parseFrom(data); - - EntityNpc npc = (EntityNpc)session.getPlayer().getScene().getEntityById(req.getEntityId()); - if (npc == null) return; - npc.setDialogueFinished(true); - session.send(new PacketSceneGroupRefreshScNotify(npc, null)); - - //session.send(CmdId.FinishRogueDialogueGroupScRsp); - } -} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerRogueNpcDisappearCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerRogueNpcDisappearCsReq.java index 7b0f85c..30d8a4b 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerRogueNpcDisappearCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerRogueNpcDisappearCsReq.java @@ -14,7 +14,7 @@ public class HandlerRogueNpcDisappearCsReq extends PacketHandler { public void handle(GameSession session, byte[] data) throws Exception { var req = RogueNpcDisappearCsReq.parseFrom(data); - GameEntity entity = session.getPlayer().getScene().getEntityById(req.getEntityId()); + GameEntity entity = session.getPlayer().getScene().getEntityById(req.getDisappearNpcEntityId()); if (entity != null) { session.send(CmdId.RogueNpcDisappearScRsp); diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSelectRogueCommonDialogueOptionCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSelectRogueCommonDialogueOptionCsReq.java new file mode 100644 index 0000000..0ef1bd7 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSelectRogueCommonDialogueOptionCsReq.java @@ -0,0 +1,30 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.game.rogue.event.RogueEventInstance; +import emu.lunarcore.proto.SelectRogueCommonDialogueOptionCsReqOuterClass.SelectRogueCommonDialogueOptionCsReq; +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; +import emu.lunarcore.server.packet.send.PacketSelectRogueCommonDialogueOptionScRsp; + +@Opcodes(CmdId.SelectRogueCommonDialogueOptionCsReq) +public class HandlerSelectRogueCommonDialogueOptionCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + var req = SelectRogueCommonDialogueOptionCsReq.parseFrom(data); + + + if (session.getPlayer().getRogueInstance() == null) return; + + session.getPlayer().getRogueInstance().onSelectDialogue(req.getOptionId(), req.getEventUniqueId()); + RogueEventInstance eventInstance = session.getPlayer().getRogueInstance().getRunningEvents().get(req.getEventUniqueId()); + if (eventInstance == null) { + return; + } + + session.send(new PacketSelectRogueCommonDialogueOptionScRsp(eventInstance)); + } + +} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSelectRogueDialogueEventCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSelectRogueDialogueEventCsReq.java deleted file mode 100644 index 5d77030..0000000 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSelectRogueDialogueEventCsReq.java +++ /dev/null @@ -1,31 +0,0 @@ -package emu.lunarcore.server.packet.recv; - -import emu.lunarcore.game.scene.entity.EntityNpc; -import emu.lunarcore.proto.SelectRogueDialogueEventCsReqOuterClass.SelectRogueDialogueEventCsReq; -import emu.lunarcore.server.game.GameSession; -import emu.lunarcore.server.packet.CmdId; -import emu.lunarcore.server.packet.Opcodes; -import emu.lunarcore.server.packet.PacketHandler; -import emu.lunarcore.server.packet.send.PacketSelectRogueDialogueEventScRsp; - -//@Opcodes(CmdId.SelectRogueDialogueEventCsReq) -@Opcodes(CmdId.NONE) -public class HandlerSelectRogueDialogueEventCsReq extends PacketHandler { - - @Override - public void handle(GameSession session, byte[] data) throws Exception { - var req = SelectRogueDialogueEventCsReq.parseFrom(data); - - EntityNpc npc = (EntityNpc)session.getPlayer().getScene().getEntityById(req.getEntityId()); - - if (npc == null) return; - - int callback = 0; - if (session.getPlayer().getRogueInstance() != null) { - callback = session.getPlayer().getRogueInstance().onSelectDialogue(req.getDialogueEventId(), npc.getRogueNpcId()); - } - - session.send(new PacketSelectRogueDialogueEventScRsp(req.getDialogueEventId(), npc, callback)); - } - -} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSelectRogueCommonDialogueOptionScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSelectRogueCommonDialogueOptionScRsp.java new file mode 100644 index 0000000..2a1e8ed --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketSelectRogueCommonDialogueOptionScRsp.java @@ -0,0 +1,25 @@ +package emu.lunarcore.server.packet.send; + +import emu.lunarcore.game.rogue.event.RogueEventInstance; +import emu.lunarcore.proto.SelectRogueCommonDialogueOptionScRspOuterClass.SelectRogueCommonDialogueOptionScRsp; +import emu.lunarcore.server.packet.BasePacket; +import emu.lunarcore.server.packet.CmdId; + +public class PacketSelectRogueCommonDialogueOptionScRsp extends BasePacket { + + public PacketSelectRogueCommonDialogueOptionScRsp(RogueEventInstance instance) { + super(CmdId.SelectRogueCommonDialogueOptionScRsp); + + var data = SelectRogueCommonDialogueOptionScRsp.newInstance() + .setDialogueData(instance.toProto()) + .setOptionId(instance.SelectedOptionId) + .setEventUniqueId(instance.EventUniqueId) + .setEventHasEffect(true); // TODO: improve it (if any option is selected) + + for (var eVi : instance.EffectEventId) { + data.addEffectEventIdList(eVi); + } + + this.setData(data); + } +} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSelectRogueDialogueEventScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSelectRogueDialogueEventScRsp.java deleted file mode 100644 index a8f119d..0000000 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketSelectRogueDialogueEventScRsp.java +++ /dev/null @@ -1,46 +0,0 @@ -package emu.lunarcore.server.packet.send; - -import emu.lunarcore.game.scene.entity.EntityNpc; -import emu.lunarcore.proto.DialogueResultOuterClass.DialogueResult; -import emu.lunarcore.proto.RogueDialogueEventOuterClass.RogueDialogueEvent; -import emu.lunarcore.proto.RogueDialogueEventParamOuterClass.RogueDialogueEventParam; -import emu.lunarcore.proto.SelectRogueDialogueEventScRspOuterClass.SelectRogueDialogueEventScRsp; -import emu.lunarcore.server.packet.BasePacket; -import emu.lunarcore.server.packet.CmdId; - -public class PacketSelectRogueDialogueEventScRsp extends BasePacket { - - public PacketSelectRogueDialogueEventScRsp(int dialogueEventId, EntityNpc npc, int nextEventId) { - //super(CmdId.SelectRogueDialogueEventScRsp); - super(CmdId.NONE); - - var data = SelectRogueDialogueEventScRsp.newInstance() - .setDialogueEventId(dialogueEventId); - - var instance = npc.getScene().getPlayer().getRogueInstance(); - - var params = instance.curDialogueParams.get(npc.getRogueNpcId()); - if (params == null) { - params = instance.setDialogueParams(npc.getRogueNpcId()); - } - - var event = RogueDialogueEvent.newInstance() - .setNpcId(npc.getRogueNpcId()) - .setGameModeType(5) - .addSelectEventId(dialogueEventId) - //.setEventUniqueId(instance.getEventUniqueId()) - .addAllRogueDialogueEventParam(params.toArray(RogueDialogueEventParam[]::new)); - - var l = DialogueResult.newInstance(); - for (var param : params) { - l.addEventIds(param.getDialogueEventId()); - } - if (nextEventId != 0) { - l.addEventIds(nextEventId); - } - data.setDialogueResult(l); - data.setEventData(event); - - this.setData(data); - } -} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueCommonDialogueDataScNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueCommonDialogueDataScNotify.java new file mode 100644 index 0000000..9b00c56 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueCommonDialogueDataScNotify.java @@ -0,0 +1,17 @@ +package emu.lunarcore.server.packet.send; + +import emu.lunarcore.game.rogue.event.RogueEventInstance; +import emu.lunarcore.proto.SyncRogueCommonDialogueDataScNotifyOuterClass.SyncRogueCommonDialogueDataScNotify; +import emu.lunarcore.server.packet.BasePacket; +import emu.lunarcore.server.packet.CmdId; + +public class PacketSyncRogueCommonDialogueDataScNotify extends BasePacket { + public PacketSyncRogueCommonDialogueDataScNotify(RogueEventInstance event) { + super(CmdId.SyncRogueCommonDialogueDataScNotify); + + var proto = SyncRogueCommonDialogueDataScNotify.newInstance() + .addDialogueDataList(event.toProto()); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueCommonDialogueOptionFinishScNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueCommonDialogueOptionFinishScNotify.java new file mode 100644 index 0000000..dcd2954 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueCommonDialogueOptionFinishScNotify.java @@ -0,0 +1,20 @@ +package emu.lunarcore.server.packet.send; + +import emu.lunarcore.game.rogue.event.RogueEventInstance; +import emu.lunarcore.proto.SyncRogueCommonDialogueOptionFinishScNotifyOuterClass.SyncRogueCommonDialogueOptionFinishScNotify; +import emu.lunarcore.server.packet.BasePacket; +import emu.lunarcore.server.packet.CmdId; + +public class PacketSyncRogueCommonDialogueOptionFinishScNotify extends BasePacket { + + public PacketSyncRogueCommonDialogueOptionFinishScNotify(RogueEventInstance instance) { + super(CmdId.SelectRogueCommonDialogueOptionScRsp); + + var proto = SyncRogueCommonDialogueOptionFinishScNotify.newInstance() + .setEventUniqueId(instance.EventUniqueId) + .setOptionId(instance.SelectedOptionId) + .setResultOptionInfo(instance.Options.stream().filter(o -> o.OptionId == instance.SelectedOptionId).findFirst().get().ToProto()); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueDialogueEventDataScNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueDialogueEventDataScNotify.java deleted file mode 100644 index 01ce5a9..0000000 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueDialogueEventDataScNotify.java +++ /dev/null @@ -1,29 +0,0 @@ -package emu.lunarcore.server.packet.send; - -import emu.lunarcore.proto.RogueDialogueEventOuterClass.RogueDialogueEvent; -import emu.lunarcore.proto.RogueDialogueEventParamOuterClass.RogueDialogueEventParam; -import emu.lunarcore.proto.SyncRogueDialogueEventDataScNotifyOuterClass.SyncRogueDialogueEventDataScNotify; -import emu.lunarcore.server.packet.BasePacket; -import emu.lunarcore.server.packet.CmdId; - -import java.util.List; - -public class PacketSyncRogueDialogueEventDataScNotify extends BasePacket { - public PacketSyncRogueDialogueEventDataScNotify(RogueDialogueEvent event) { - //super(CmdId.SyncRogueDialogueEventDataScNotify); - super(CmdId.NONE); - - var proto = SyncRogueDialogueEventDataScNotify.newInstance() - .addRogueDialogueEvent(event); - - this.setData(proto); - } - - public PacketSyncRogueDialogueEventDataScNotify(int rogueNpcId, List params, int eventId) { - this(RogueDialogueEvent.newInstance() - .setGameModeType(5) // rogue explore - .setNpcId(rogueNpcId) - //.setEventUniqueId(eventId) - .addAllRogueDialogueEventParam(params.toArray(RogueDialogueEventParam[]::new))); - } -}