mirror of
https://github.com/Melledy/LunarCore.git
synced 2026-02-04 06:55:05 +01:00
Implement Rogue Event (#98)
* Implement Rogue Event * Remove Unused Proto --------- Co-authored-by: StopWuyu <wuyustop@outlook.com>
This commit is contained in:
@@ -87,7 +87,7 @@ public final class AvatarTypeOuterClass {
|
|||||||
/**
|
/**
|
||||||
* @return a converter that maps between this enum's numeric and text representations
|
* @return a converter that maps between this enum's numeric and text representations
|
||||||
*/
|
*/
|
||||||
public static ProtoEnum.EnumConverter<AvatarType> converter() {
|
public static EnumConverter<AvatarType> converter() {
|
||||||
return AvatarTypeConverter.INSTANCE;
|
return AvatarTypeConverter.INSTANCE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -109,7 +109,7 @@ public final class AvatarTypeOuterClass {
|
|||||||
return value == null ? other : value;
|
return value == null ? other : value;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum AvatarTypeConverter implements ProtoEnum.EnumConverter<AvatarType> {
|
enum AvatarTypeConverter implements EnumConverter<AvatarType> {
|
||||||
INSTANCE;
|
INSTANCE;
|
||||||
|
|
||||||
private static final AvatarType[] lookup = new AvatarType[5];
|
private static final AvatarType[] lookup = new AvatarType[5];
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ public final class BattleEndReasonOuterClass {
|
|||||||
/**
|
/**
|
||||||
* @return a converter that maps between this enum's numeric and text representations
|
* @return a converter that maps between this enum's numeric and text representations
|
||||||
*/
|
*/
|
||||||
public static ProtoEnum.EnumConverter<BattleEndReason> converter() {
|
public static EnumConverter<BattleEndReason> converter() {
|
||||||
return BattleEndReasonConverter.INSTANCE;
|
return BattleEndReasonConverter.INSTANCE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -89,7 +89,7 @@ public final class BattleEndReasonOuterClass {
|
|||||||
return value == null ? other : value;
|
return value == null ? other : value;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum BattleEndReasonConverter implements ProtoEnum.EnumConverter<BattleEndReason> {
|
enum BattleEndReasonConverter implements EnumConverter<BattleEndReason> {
|
||||||
INSTANCE;
|
INSTANCE;
|
||||||
|
|
||||||
private static final BattleEndReason[] lookup = new BattleEndReason[3];
|
private static final BattleEndReason[] lookup = new BattleEndReason[3];
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ public final class BattleEndStatusOuterClass {
|
|||||||
/**
|
/**
|
||||||
* @return a converter that maps between this enum's numeric and text representations
|
* @return a converter that maps between this enum's numeric and text representations
|
||||||
*/
|
*/
|
||||||
public static ProtoEnum.EnumConverter<BattleEndStatus> converter() {
|
public static EnumConverter<BattleEndStatus> converter() {
|
||||||
return BattleEndStatusConverter.INSTANCE;
|
return BattleEndStatusConverter.INSTANCE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -99,7 +99,7 @@ public final class BattleEndStatusOuterClass {
|
|||||||
return value == null ? other : value;
|
return value == null ? other : value;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum BattleEndStatusConverter implements ProtoEnum.EnumConverter<BattleEndStatus> {
|
enum BattleEndStatusConverter implements EnumConverter<BattleEndStatus> {
|
||||||
INSTANCE;
|
INSTANCE;
|
||||||
|
|
||||||
private static final BattleEndStatus[] lookup = new BattleEndStatus[4];
|
private static final BattleEndStatus[] lookup = new BattleEndStatus[4];
|
||||||
|
|||||||
@@ -1161,7 +1161,7 @@ public final class BattlePassInfoNotifyOuterClass {
|
|||||||
/**
|
/**
|
||||||
* @return a converter that maps between this enum's numeric and text representations
|
* @return a converter that maps between this enum's numeric and text representations
|
||||||
*/
|
*/
|
||||||
public static ProtoEnum.EnumConverter<BpTierType> converter() {
|
public static EnumConverter<BpTierType> converter() {
|
||||||
return BpTierTypeConverter.INSTANCE;
|
return BpTierTypeConverter.INSTANCE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1183,7 +1183,7 @@ public final class BattlePassInfoNotifyOuterClass {
|
|||||||
return value == null ? other : value;
|
return value == null ? other : value;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum BpTierTypeConverter implements ProtoEnum.EnumConverter<BpTierType> {
|
enum BpTierTypeConverter implements EnumConverter<BpTierType> {
|
||||||
INSTANCE;
|
INSTANCE;
|
||||||
|
|
||||||
private static final BpTierType[] lookup = new BpTierType[4];
|
private static final BpTierType[] lookup = new BpTierType[4];
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ public final class ChallengeStatusOuterClass {
|
|||||||
/**
|
/**
|
||||||
* @return a converter that maps between this enum's numeric and text representations
|
* @return a converter that maps between this enum's numeric and text representations
|
||||||
*/
|
*/
|
||||||
public static ProtoEnum.EnumConverter<ChallengeStatus> converter() {
|
public static EnumConverter<ChallengeStatus> converter() {
|
||||||
return ChallengeStatusConverter.INSTANCE;
|
return ChallengeStatusConverter.INSTANCE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -99,7 +99,7 @@ public final class ChallengeStatusOuterClass {
|
|||||||
return value == null ? other : value;
|
return value == null ? other : value;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum ChallengeStatusConverter implements ProtoEnum.EnumConverter<ChallengeStatus> {
|
enum ChallengeStatusConverter implements EnumConverter<ChallengeStatus> {
|
||||||
INSTANCE;
|
INSTANCE;
|
||||||
|
|
||||||
private static final ChallengeStatus[] lookup = new ChallengeStatus[4];
|
private static final ChallengeStatus[] lookup = new ChallengeStatus[4];
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ public final class ChatTypeOuterClass {
|
|||||||
/**
|
/**
|
||||||
* @return a converter that maps between this enum's numeric and text representations
|
* @return a converter that maps between this enum's numeric and text representations
|
||||||
*/
|
*/
|
||||||
public static ProtoEnum.EnumConverter<ChatType> converter() {
|
public static EnumConverter<ChatType> converter() {
|
||||||
return ChatTypeConverter.INSTANCE;
|
return ChatTypeConverter.INSTANCE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -89,7 +89,7 @@ public final class ChatTypeOuterClass {
|
|||||||
return value == null ? other : value;
|
return value == null ? other : value;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum ChatTypeConverter implements ProtoEnum.EnumConverter<ChatType> {
|
enum ChatTypeConverter implements EnumConverter<ChatType> {
|
||||||
INSTANCE;
|
INSTANCE;
|
||||||
|
|
||||||
private static final ChatType[] lookup = new ChatType[3];
|
private static final ChatType[] lookup = new ChatType[3];
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ public final class ContentPackageStatusOuterClass {
|
|||||||
/**
|
/**
|
||||||
* @return a converter that maps between this enum's numeric and text representations
|
* @return a converter that maps between this enum's numeric and text representations
|
||||||
*/
|
*/
|
||||||
public static ProtoEnum.EnumConverter<ContentPackageStatus> converter() {
|
public static EnumConverter<ContentPackageStatus> converter() {
|
||||||
return ContentPackageStatusConverter.INSTANCE;
|
return ContentPackageStatusConverter.INSTANCE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -99,7 +99,7 @@ public final class ContentPackageStatusOuterClass {
|
|||||||
return value == null ? other : value;
|
return value == null ? other : value;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum ContentPackageStatusConverter implements ProtoEnum.EnumConverter<ContentPackageStatus> {
|
enum ContentPackageStatusConverter implements EnumConverter<ContentPackageStatus> {
|
||||||
INSTANCE;
|
INSTANCE;
|
||||||
|
|
||||||
private static final ContentPackageStatus[] lookup = new ContentPackageStatus[4];
|
private static final ContentPackageStatus[] lookup = new ContentPackageStatus[4];
|
||||||
|
|||||||
@@ -167,7 +167,7 @@ public final class DevelopmentTypeOuterClass {
|
|||||||
/**
|
/**
|
||||||
* @return a converter that maps between this enum's numeric and text representations
|
* @return a converter that maps between this enum's numeric and text representations
|
||||||
*/
|
*/
|
||||||
public static ProtoEnum.EnumConverter<DevelopmentType> converter() {
|
public static EnumConverter<DevelopmentType> converter() {
|
||||||
return DevelopmentTypeConverter.INSTANCE;
|
return DevelopmentTypeConverter.INSTANCE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -189,7 +189,7 @@ public final class DevelopmentTypeOuterClass {
|
|||||||
return value == null ? other : value;
|
return value == null ? other : value;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum DevelopmentTypeConverter implements ProtoEnum.EnumConverter<DevelopmentType> {
|
enum DevelopmentTypeConverter implements EnumConverter<DevelopmentType> {
|
||||||
INSTANCE;
|
INSTANCE;
|
||||||
|
|
||||||
private static final DevelopmentType[] lookup = new DevelopmentType[13];
|
private static final DevelopmentType[] lookup = new DevelopmentType[13];
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ public final class DisplayRecordTypeOuterClass {
|
|||||||
/**
|
/**
|
||||||
* @return a converter that maps between this enum's numeric and text representations
|
* @return a converter that maps between this enum's numeric and text representations
|
||||||
*/
|
*/
|
||||||
public static ProtoEnum.EnumConverter<DisplayRecordType> converter() {
|
public static EnumConverter<DisplayRecordType> converter() {
|
||||||
return DisplayRecordTypeConverter.INSTANCE;
|
return DisplayRecordTypeConverter.INSTANCE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -89,7 +89,7 @@ public final class DisplayRecordTypeOuterClass {
|
|||||||
return value == null ? other : value;
|
return value == null ? other : value;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum DisplayRecordTypeConverter implements ProtoEnum.EnumConverter<DisplayRecordType> {
|
enum DisplayRecordTypeConverter implements EnumConverter<DisplayRecordType> {
|
||||||
INSTANCE;
|
INSTANCE;
|
||||||
|
|
||||||
private static final DisplayRecordType[] lookup = new DisplayRecordType[3];
|
private static final DisplayRecordType[] lookup = new DisplayRecordType[3];
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ public final class EnterSceneReasonOuterClass {
|
|||||||
/**
|
/**
|
||||||
* @return a converter that maps between this enum's numeric and text representations
|
* @return a converter that maps between this enum's numeric and text representations
|
||||||
*/
|
*/
|
||||||
public static ProtoEnum.EnumConverter<EnterSceneReason> converter() {
|
public static EnumConverter<EnterSceneReason> converter() {
|
||||||
return EnterSceneReasonConverter.INSTANCE;
|
return EnterSceneReasonConverter.INSTANCE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -89,7 +89,7 @@ public final class EnterSceneReasonOuterClass {
|
|||||||
return value == null ? other : value;
|
return value == null ? other : value;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum EnterSceneReasonConverter implements ProtoEnum.EnumConverter<EnterSceneReason> {
|
enum EnterSceneReasonConverter implements EnumConverter<EnterSceneReason> {
|
||||||
INSTANCE;
|
INSTANCE;
|
||||||
|
|
||||||
private static final EnterSceneReason[] lookup = new EnterSceneReason[3];
|
private static final EnterSceneReason[] lookup = new EnterSceneReason[3];
|
||||||
|
|||||||
@@ -167,7 +167,7 @@ public final class ExtraLineupTypeOuterClass {
|
|||||||
/**
|
/**
|
||||||
* @return a converter that maps between this enum's numeric and text representations
|
* @return a converter that maps between this enum's numeric and text representations
|
||||||
*/
|
*/
|
||||||
public static ProtoEnum.EnumConverter<ExtraLineupType> converter() {
|
public static EnumConverter<ExtraLineupType> converter() {
|
||||||
return ExtraLineupTypeConverter.INSTANCE;
|
return ExtraLineupTypeConverter.INSTANCE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -189,7 +189,7 @@ public final class ExtraLineupTypeOuterClass {
|
|||||||
return value == null ? other : value;
|
return value == null ? other : value;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum ExtraLineupTypeConverter implements ProtoEnum.EnumConverter<ExtraLineupType> {
|
enum ExtraLineupTypeConverter implements EnumConverter<ExtraLineupType> {
|
||||||
INSTANCE;
|
INSTANCE;
|
||||||
|
|
||||||
private static final ExtraLineupType[] lookup = new ExtraLineupType[14];
|
private static final ExtraLineupType[] lookup = new ExtraLineupType[14];
|
||||||
|
|||||||
@@ -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<FinishRogueCommonDialogueCsReq> implements Cloneable {
|
||||||
|
private static final long serialVersionUID = 0L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 event_unique_id = 9;</code>
|
||||||
|
*/
|
||||||
|
private int eventUniqueId;
|
||||||
|
|
||||||
|
private FinishRogueCommonDialogueCsReq() {
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return a new empty instance of {@code FinishRogueCommonDialogueCsReq}
|
||||||
|
*/
|
||||||
|
public static FinishRogueCommonDialogueCsReq newInstance() {
|
||||||
|
return new FinishRogueCommonDialogueCsReq();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 event_unique_id = 9;</code>
|
||||||
|
* @return whether the eventUniqueId field is set
|
||||||
|
*/
|
||||||
|
public boolean hasEventUniqueId() {
|
||||||
|
return (bitField0_ & 0x00000001) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 event_unique_id = 9;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public FinishRogueCommonDialogueCsReq clearEventUniqueId() {
|
||||||
|
bitField0_ &= ~0x00000001;
|
||||||
|
eventUniqueId = 0;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 event_unique_id = 9;</code>
|
||||||
|
* @return the eventUniqueId
|
||||||
|
*/
|
||||||
|
public int getEventUniqueId() {
|
||||||
|
return eventUniqueId;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 event_unique_id = 9;</code>
|
||||||
|
* @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<FinishRogueCommonDialogueCsReq> getFactory() {
|
||||||
|
return FinishRogueCommonDialogueCsReqFactory.INSTANCE;
|
||||||
|
}
|
||||||
|
|
||||||
|
private enum FinishRogueCommonDialogueCsReqFactory implements MessageFactory<FinishRogueCommonDialogueCsReq> {
|
||||||
|
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");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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<FinishRogueCommonDialogueScRsp> implements Cloneable {
|
||||||
|
private static final long serialVersionUID = 0L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 retcode = 5;</code>
|
||||||
|
*/
|
||||||
|
private int retcode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 event_unique_id = 13;</code>
|
||||||
|
*/
|
||||||
|
private int eventUniqueId;
|
||||||
|
|
||||||
|
private FinishRogueCommonDialogueScRsp() {
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return a new empty instance of {@code FinishRogueCommonDialogueScRsp}
|
||||||
|
*/
|
||||||
|
public static FinishRogueCommonDialogueScRsp newInstance() {
|
||||||
|
return new FinishRogueCommonDialogueScRsp();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 retcode = 5;</code>
|
||||||
|
* @return whether the retcode field is set
|
||||||
|
*/
|
||||||
|
public boolean hasRetcode() {
|
||||||
|
return (bitField0_ & 0x00000001) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 retcode = 5;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public FinishRogueCommonDialogueScRsp clearRetcode() {
|
||||||
|
bitField0_ &= ~0x00000001;
|
||||||
|
retcode = 0;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 retcode = 5;</code>
|
||||||
|
* @return the retcode
|
||||||
|
*/
|
||||||
|
public int getRetcode() {
|
||||||
|
return retcode;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 retcode = 5;</code>
|
||||||
|
* @param value the retcode to set
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public FinishRogueCommonDialogueScRsp setRetcode(final int value) {
|
||||||
|
bitField0_ |= 0x00000001;
|
||||||
|
retcode = value;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 event_unique_id = 13;</code>
|
||||||
|
* @return whether the eventUniqueId field is set
|
||||||
|
*/
|
||||||
|
public boolean hasEventUniqueId() {
|
||||||
|
return (bitField0_ & 0x00000002) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 event_unique_id = 13;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public FinishRogueCommonDialogueScRsp clearEventUniqueId() {
|
||||||
|
bitField0_ &= ~0x00000002;
|
||||||
|
eventUniqueId = 0;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 event_unique_id = 13;</code>
|
||||||
|
* @return the eventUniqueId
|
||||||
|
*/
|
||||||
|
public int getEventUniqueId() {
|
||||||
|
return eventUniqueId;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 event_unique_id = 13;</code>
|
||||||
|
* @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<FinishRogueCommonDialogueScRsp> getFactory() {
|
||||||
|
return FinishRogueCommonDialogueScRspFactory.INSTANCE;
|
||||||
|
}
|
||||||
|
|
||||||
|
private enum FinishRogueCommonDialogueScRspFactory implements MessageFactory<FinishRogueCommonDialogueScRsp> {
|
||||||
|
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");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -97,7 +97,7 @@ public final class FriendApplySourceOuterClass {
|
|||||||
/**
|
/**
|
||||||
* @return a converter that maps between this enum's numeric and text representations
|
* @return a converter that maps between this enum's numeric and text representations
|
||||||
*/
|
*/
|
||||||
public static ProtoEnum.EnumConverter<FriendApplySource> converter() {
|
public static EnumConverter<FriendApplySource> converter() {
|
||||||
return FriendApplySourceConverter.INSTANCE;
|
return FriendApplySourceConverter.INSTANCE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -119,7 +119,7 @@ public final class FriendApplySourceOuterClass {
|
|||||||
return value == null ? other : value;
|
return value == null ? other : value;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum FriendApplySourceConverter implements ProtoEnum.EnumConverter<FriendApplySource> {
|
enum FriendApplySourceConverter implements EnumConverter<FriendApplySource> {
|
||||||
INSTANCE;
|
INSTANCE;
|
||||||
|
|
||||||
private static final FriendApplySource[] lookup = new FriendApplySource[6];
|
private static final FriendApplySource[] lookup = new FriendApplySource[6];
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ public final class FriendOnlineStatusOuterClass {
|
|||||||
/**
|
/**
|
||||||
* @return a converter that maps between this enum's numeric and text representations
|
* @return a converter that maps between this enum's numeric and text representations
|
||||||
*/
|
*/
|
||||||
public static ProtoEnum.EnumConverter<FriendOnlineStatus> converter() {
|
public static EnumConverter<FriendOnlineStatus> converter() {
|
||||||
return FriendOnlineStatusConverter.INSTANCE;
|
return FriendOnlineStatusConverter.INSTANCE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -79,7 +79,7 @@ public final class FriendOnlineStatusOuterClass {
|
|||||||
return value == null ? other : value;
|
return value == null ? other : value;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum FriendOnlineStatusConverter implements ProtoEnum.EnumConverter<FriendOnlineStatus> {
|
enum FriendOnlineStatusConverter implements EnumConverter<FriendOnlineStatus> {
|
||||||
INSTANCE;
|
INSTANCE;
|
||||||
|
|
||||||
private static final FriendOnlineStatus[] lookup = new FriendOnlineStatus[2];
|
private static final FriendOnlineStatus[] lookup = new FriendOnlineStatus[2];
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ public final class GenderOuterClass {
|
|||||||
/**
|
/**
|
||||||
* @return a converter that maps between this enum's numeric and text representations
|
* @return a converter that maps between this enum's numeric and text representations
|
||||||
*/
|
*/
|
||||||
public static ProtoEnum.EnumConverter<Gender> converter() {
|
public static EnumConverter<Gender> converter() {
|
||||||
return GenderConverter.INSTANCE;
|
return GenderConverter.INSTANCE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -89,7 +89,7 @@ public final class GenderOuterClass {
|
|||||||
return value == null ? other : value;
|
return value == null ? other : value;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum GenderConverter implements ProtoEnum.EnumConverter<Gender> {
|
enum GenderConverter implements EnumConverter<Gender> {
|
||||||
INSTANCE;
|
INSTANCE;
|
||||||
|
|
||||||
private static final Gender[] lookup = new Gender[3];
|
private static final Gender[] lookup = new Gender[3];
|
||||||
|
|||||||
@@ -187,7 +187,7 @@ public final class HeroBasicTypeOuterClass {
|
|||||||
/**
|
/**
|
||||||
* @return a converter that maps between this enum's numeric and text representations
|
* @return a converter that maps between this enum's numeric and text representations
|
||||||
*/
|
*/
|
||||||
public static ProtoEnum.EnumConverter<HeroBasicType> converter() {
|
public static EnumConverter<HeroBasicType> converter() {
|
||||||
return HeroBasicTypeConverter.INSTANCE;
|
return HeroBasicTypeConverter.INSTANCE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -209,7 +209,7 @@ public final class HeroBasicTypeOuterClass {
|
|||||||
return value == null ? other : value;
|
return value == null ? other : value;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum HeroBasicTypeConverter implements ProtoEnum.EnumConverter<HeroBasicType> {
|
enum HeroBasicTypeConverter implements EnumConverter<HeroBasicType> {
|
||||||
INSTANCE;
|
INSTANCE;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -177,7 +177,7 @@ public final class LanguageTypeOuterClass {
|
|||||||
/**
|
/**
|
||||||
* @return a converter that maps between this enum's numeric and text representations
|
* @return a converter that maps between this enum's numeric and text representations
|
||||||
*/
|
*/
|
||||||
public static ProtoEnum.EnumConverter<LanguageType> converter() {
|
public static EnumConverter<LanguageType> converter() {
|
||||||
return LanguageTypeConverter.INSTANCE;
|
return LanguageTypeConverter.INSTANCE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -199,7 +199,7 @@ public final class LanguageTypeOuterClass {
|
|||||||
return value == null ? other : value;
|
return value == null ? other : value;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum LanguageTypeConverter implements ProtoEnum.EnumConverter<LanguageType> {
|
enum LanguageTypeConverter implements EnumConverter<LanguageType> {
|
||||||
INSTANCE;
|
INSTANCE;
|
||||||
|
|
||||||
private static final LanguageType[] lookup = new LanguageType[14];
|
private static final LanguageType[] lookup = new LanguageType[14];
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ public final class MailTypeOuterClass {
|
|||||||
/**
|
/**
|
||||||
* @return a converter that maps between this enum's numeric and text representations
|
* @return a converter that maps between this enum's numeric and text representations
|
||||||
*/
|
*/
|
||||||
public static ProtoEnum.EnumConverter<MailType> converter() {
|
public static EnumConverter<MailType> converter() {
|
||||||
return MailTypeConverter.INSTANCE;
|
return MailTypeConverter.INSTANCE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -79,7 +79,7 @@ public final class MailTypeOuterClass {
|
|||||||
return value == null ? other : value;
|
return value == null ? other : value;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum MailTypeConverter implements ProtoEnum.EnumConverter<MailType> {
|
enum MailTypeConverter implements EnumConverter<MailType> {
|
||||||
INSTANCE;
|
INSTANCE;
|
||||||
|
|
||||||
private static final MailType[] lookup = new MailType[2];
|
private static final MailType[] lookup = new MailType[2];
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ public final class MapInfoChestTypeOuterClass {
|
|||||||
/**
|
/**
|
||||||
* @return a converter that maps between this enum's numeric and text representations
|
* @return a converter that maps between this enum's numeric and text representations
|
||||||
*/
|
*/
|
||||||
public static ProtoEnum.EnumConverter<MapInfoChestType> converter() {
|
public static EnumConverter<MapInfoChestType> converter() {
|
||||||
return MapInfoChestTypeConverter.INSTANCE;
|
return MapInfoChestTypeConverter.INSTANCE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -99,7 +99,7 @@ public final class MapInfoChestTypeOuterClass {
|
|||||||
return value == null ? other : value;
|
return value == null ? other : value;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum MapInfoChestTypeConverter implements ProtoEnum.EnumConverter<MapInfoChestType> {
|
enum MapInfoChestTypeConverter implements EnumConverter<MapInfoChestType> {
|
||||||
INSTANCE;
|
INSTANCE;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ public final class MissionStatusOuterClass {
|
|||||||
/**
|
/**
|
||||||
* @return a converter that maps between this enum's numeric and text representations
|
* @return a converter that maps between this enum's numeric and text representations
|
||||||
*/
|
*/
|
||||||
public static ProtoEnum.EnumConverter<MissionStatus> converter() {
|
public static EnumConverter<MissionStatus> converter() {
|
||||||
return MissionStatusConverter.INSTANCE;
|
return MissionStatusConverter.INSTANCE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -99,7 +99,7 @@ public final class MissionStatusOuterClass {
|
|||||||
return value == null ? other : value;
|
return value == null ? other : value;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum MissionStatusConverter implements ProtoEnum.EnumConverter<MissionStatus> {
|
enum MissionStatusConverter implements EnumConverter<MissionStatus> {
|
||||||
INSTANCE;
|
INSTANCE;
|
||||||
|
|
||||||
private static final MissionStatus[] lookup = new MissionStatus[4];
|
private static final MissionStatus[] lookup = new MissionStatus[4];
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ public final class MsgTypeOuterClass {
|
|||||||
/**
|
/**
|
||||||
* @return a converter that maps between this enum's numeric and text representations
|
* @return a converter that maps between this enum's numeric and text representations
|
||||||
*/
|
*/
|
||||||
public static ProtoEnum.EnumConverter<MsgType> converter() {
|
public static EnumConverter<MsgType> converter() {
|
||||||
return MsgTypeConverter.INSTANCE;
|
return MsgTypeConverter.INSTANCE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -89,7 +89,7 @@ public final class MsgTypeOuterClass {
|
|||||||
return value == null ? other : value;
|
return value == null ? other : value;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum MsgTypeConverter implements ProtoEnum.EnumConverter<MsgType> {
|
enum MsgTypeConverter implements EnumConverter<MsgType> {
|
||||||
INSTANCE;
|
INSTANCE;
|
||||||
|
|
||||||
private static final MsgType[] lookup = new MsgType[3];
|
private static final MsgType[] lookup = new MsgType[3];
|
||||||
|
|||||||
@@ -127,7 +127,7 @@ public final class MultiPathAvatarTypeOuterClass {
|
|||||||
/**
|
/**
|
||||||
* @return a converter that maps between this enum's numeric and text representations
|
* @return a converter that maps between this enum's numeric and text representations
|
||||||
*/
|
*/
|
||||||
public static ProtoEnum.EnumConverter<MultiPathAvatarType> converter() {
|
public static EnumConverter<MultiPathAvatarType> converter() {
|
||||||
return MultiPathAvatarTypeConverter.INSTANCE;
|
return MultiPathAvatarTypeConverter.INSTANCE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -149,7 +149,7 @@ public final class MultiPathAvatarTypeOuterClass {
|
|||||||
return value == null ? other : value;
|
return value == null ? other : value;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum MultiPathAvatarTypeConverter implements ProtoEnum.EnumConverter<MultiPathAvatarType> {
|
enum MultiPathAvatarTypeConverter implements EnumConverter<MultiPathAvatarType> {
|
||||||
INSTANCE;
|
INSTANCE;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -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<NpcDialogueEventParam> implements Cloneable {
|
||||||
|
private static final long serialVersionUID = 0L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 rogue_dialogue_event_id = 12;</code>
|
||||||
|
*/
|
||||||
|
private int rogueDialogueEventId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 arg_id = 13;</code>
|
||||||
|
*/
|
||||||
|
private int argId;
|
||||||
|
|
||||||
|
private NpcDialogueEventParam() {
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return a new empty instance of {@code NpcDialogueEventParam}
|
||||||
|
*/
|
||||||
|
public static NpcDialogueEventParam newInstance() {
|
||||||
|
return new NpcDialogueEventParam();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 rogue_dialogue_event_id = 12;</code>
|
||||||
|
* @return whether the rogueDialogueEventId field is set
|
||||||
|
*/
|
||||||
|
public boolean hasRogueDialogueEventId() {
|
||||||
|
return (bitField0_ & 0x00000001) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 rogue_dialogue_event_id = 12;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public NpcDialogueEventParam clearRogueDialogueEventId() {
|
||||||
|
bitField0_ &= ~0x00000001;
|
||||||
|
rogueDialogueEventId = 0;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 rogue_dialogue_event_id = 12;</code>
|
||||||
|
* @return the rogueDialogueEventId
|
||||||
|
*/
|
||||||
|
public int getRogueDialogueEventId() {
|
||||||
|
return rogueDialogueEventId;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 rogue_dialogue_event_id = 12;</code>
|
||||||
|
* @param value the rogueDialogueEventId to set
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public NpcDialogueEventParam setRogueDialogueEventId(final int value) {
|
||||||
|
bitField0_ |= 0x00000001;
|
||||||
|
rogueDialogueEventId = value;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 arg_id = 13;</code>
|
||||||
|
* @return whether the argId field is set
|
||||||
|
*/
|
||||||
|
public boolean hasArgId() {
|
||||||
|
return (bitField0_ & 0x00000002) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 arg_id = 13;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public NpcDialogueEventParam clearArgId() {
|
||||||
|
bitField0_ &= ~0x00000002;
|
||||||
|
argId = 0;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 arg_id = 13;</code>
|
||||||
|
* @return the argId
|
||||||
|
*/
|
||||||
|
public int getArgId() {
|
||||||
|
return argId;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 arg_id = 13;</code>
|
||||||
|
* @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<NpcDialogueEventParam> getFactory() {
|
||||||
|
return NpcDialogueEventParamFactory.INSTANCE;
|
||||||
|
}
|
||||||
|
|
||||||
|
private enum NpcDialogueEventParamFactory implements MessageFactory<NpcDialogueEventParam> {
|
||||||
|
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");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -237,7 +237,7 @@ public final class PlatformTypeOuterClass {
|
|||||||
/**
|
/**
|
||||||
* @return a converter that maps between this enum's numeric and text representations
|
* @return a converter that maps between this enum's numeric and text representations
|
||||||
*/
|
*/
|
||||||
public static ProtoEnum.EnumConverter<PlatformType> converter() {
|
public static EnumConverter<PlatformType> converter() {
|
||||||
return PlatformTypeConverter.INSTANCE;
|
return PlatformTypeConverter.INSTANCE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -259,7 +259,7 @@ public final class PlatformTypeOuterClass {
|
|||||||
return value == null ? other : value;
|
return value == null ? other : value;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum PlatformTypeConverter implements ProtoEnum.EnumConverter<PlatformType> {
|
enum PlatformTypeConverter implements EnumConverter<PlatformType> {
|
||||||
INSTANCE;
|
INSTANCE;
|
||||||
|
|
||||||
private static final PlatformType[] lookup = new PlatformType[26];
|
private static final PlatformType[] lookup = new PlatformType[26];
|
||||||
|
|||||||
@@ -117,7 +117,7 @@ public final class PlayingStateOuterClass {
|
|||||||
/**
|
/**
|
||||||
* @return a converter that maps between this enum's numeric and text representations
|
* @return a converter that maps between this enum's numeric and text representations
|
||||||
*/
|
*/
|
||||||
public static ProtoEnum.EnumConverter<PlayingState> converter() {
|
public static EnumConverter<PlayingState> converter() {
|
||||||
return PlayingStateConverter.INSTANCE;
|
return PlayingStateConverter.INSTANCE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -139,7 +139,7 @@ public final class PlayingStateOuterClass {
|
|||||||
return value == null ? other : value;
|
return value == null ? other : value;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum PlayingStateConverter implements ProtoEnum.EnumConverter<PlayingState> {
|
enum PlayingStateConverter implements EnumConverter<PlayingState> {
|
||||||
INSTANCE;
|
INSTANCE;
|
||||||
|
|
||||||
private static final PlayingState[] lookup = new PlayingState[8];
|
private static final PlayingState[] lookup = new PlayingState[8];
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ public final class QuestStatusOuterClass {
|
|||||||
/**
|
/**
|
||||||
* @return a converter that maps between this enum's numeric and text representations
|
* @return a converter that maps between this enum's numeric and text representations
|
||||||
*/
|
*/
|
||||||
public static ProtoEnum.EnumConverter<QuestStatus> converter() {
|
public static EnumConverter<QuestStatus> converter() {
|
||||||
return QuestStatusConverter.INSTANCE;
|
return QuestStatusConverter.INSTANCE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -109,7 +109,7 @@ public final class QuestStatusOuterClass {
|
|||||||
return value == null ? other : value;
|
return value == null ? other : value;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum QuestStatusConverter implements ProtoEnum.EnumConverter<QuestStatus> {
|
enum QuestStatusConverter implements EnumConverter<QuestStatus> {
|
||||||
INSTANCE;
|
INSTANCE;
|
||||||
|
|
||||||
private static final QuestStatus[] lookup = new QuestStatus[5];
|
private static final QuestStatus[] lookup = new QuestStatus[5];
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ public final class RogueAreaStatusOuterClass {
|
|||||||
/**
|
/**
|
||||||
* @return a converter that maps between this enum's numeric and text representations
|
* @return a converter that maps between this enum's numeric and text representations
|
||||||
*/
|
*/
|
||||||
public static ProtoEnum.EnumConverter<RogueAreaStatus> converter() {
|
public static EnumConverter<RogueAreaStatus> converter() {
|
||||||
return RogueAreaStatusConverter.INSTANCE;
|
return RogueAreaStatusConverter.INSTANCE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -99,7 +99,7 @@ public final class RogueAreaStatusOuterClass {
|
|||||||
return value == null ? other : value;
|
return value == null ? other : value;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum RogueAreaStatusConverter implements ProtoEnum.EnumConverter<RogueAreaStatus> {
|
enum RogueAreaStatusConverter implements EnumConverter<RogueAreaStatus> {
|
||||||
INSTANCE;
|
INSTANCE;
|
||||||
|
|
||||||
private static final RogueAreaStatus[] lookup = new RogueAreaStatus[4];
|
private static final RogueAreaStatus[] lookup = new RogueAreaStatus[4];
|
||||||
|
|||||||
@@ -137,7 +137,7 @@ public final class RogueBuffSourceOuterClass {
|
|||||||
/**
|
/**
|
||||||
* @return a converter that maps between this enum's numeric and text representations
|
* @return a converter that maps between this enum's numeric and text representations
|
||||||
*/
|
*/
|
||||||
public static ProtoEnum.EnumConverter<RogueBuffSource> converter() {
|
public static EnumConverter<RogueBuffSource> converter() {
|
||||||
return RogueBuffSourceConverter.INSTANCE;
|
return RogueBuffSourceConverter.INSTANCE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -159,7 +159,7 @@ public final class RogueBuffSourceOuterClass {
|
|||||||
return value == null ? other : value;
|
return value == null ? other : value;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum RogueBuffSourceConverter implements ProtoEnum.EnumConverter<RogueBuffSource> {
|
enum RogueBuffSourceConverter implements EnumConverter<RogueBuffSource> {
|
||||||
INSTANCE;
|
INSTANCE;
|
||||||
|
|
||||||
private static final RogueBuffSource[] lookup = new RogueBuffSource[10];
|
private static final RogueBuffSource[] lookup = new RogueBuffSource[10];
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ public final class RogueCommonActionResultDisplayTypeOuterClass {
|
|||||||
/**
|
/**
|
||||||
* @return a converter that maps between this enum's numeric and text representations
|
* @return a converter that maps between this enum's numeric and text representations
|
||||||
*/
|
*/
|
||||||
public static ProtoEnum.EnumConverter<RogueCommonActionResultDisplayType> converter() {
|
public static EnumConverter<RogueCommonActionResultDisplayType> converter() {
|
||||||
return RogueCommonActionResultDisplayTypeConverter.INSTANCE;
|
return RogueCommonActionResultDisplayTypeConverter.INSTANCE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -90,7 +90,7 @@ public final class RogueCommonActionResultDisplayTypeOuterClass {
|
|||||||
return value == null ? other : value;
|
return value == null ? other : value;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum RogueCommonActionResultDisplayTypeConverter implements ProtoEnum.EnumConverter<RogueCommonActionResultDisplayType> {
|
enum RogueCommonActionResultDisplayTypeConverter implements EnumConverter<RogueCommonActionResultDisplayType> {
|
||||||
INSTANCE;
|
INSTANCE;
|
||||||
|
|
||||||
private static final RogueCommonActionResultDisplayType[] lookup = new RogueCommonActionResultDisplayType[3];
|
private static final RogueCommonActionResultDisplayType[] lookup = new RogueCommonActionResultDisplayType[3];
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ public final class RogueCommonBuffSelectSourceOuterClass {
|
|||||||
/**
|
/**
|
||||||
* @return a converter that maps between this enum's numeric and text representations
|
* @return a converter that maps between this enum's numeric and text representations
|
||||||
*/
|
*/
|
||||||
public static ProtoEnum.EnumConverter<RogueCommonBuffSelectSource> converter() {
|
public static EnumConverter<RogueCommonBuffSelectSource> converter() {
|
||||||
return RogueCommonBuffSelectSourceConverter.INSTANCE;
|
return RogueCommonBuffSelectSourceConverter.INSTANCE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -110,7 +110,7 @@ public final class RogueCommonBuffSelectSourceOuterClass {
|
|||||||
return value == null ? other : value;
|
return value == null ? other : value;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum RogueCommonBuffSelectSourceConverter implements ProtoEnum.EnumConverter<RogueCommonBuffSelectSource> {
|
enum RogueCommonBuffSelectSourceConverter implements EnumConverter<RogueCommonBuffSelectSource> {
|
||||||
INSTANCE;
|
INSTANCE;
|
||||||
|
|
||||||
private static final RogueCommonBuffSelectSource[] lookup = new RogueCommonBuffSelectSource[5];
|
private static final RogueCommonBuffSelectSource[] lookup = new RogueCommonBuffSelectSource[5];
|
||||||
|
|||||||
@@ -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<RogueCommonDialogueBasicInfo> implements Cloneable {
|
||||||
|
private static final long serialVersionUID = 0L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 dialogue_id = 4;</code>
|
||||||
|
*/
|
||||||
|
private int dialogueId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 sus = 5;</code>
|
||||||
|
*/
|
||||||
|
private int sus;
|
||||||
|
|
||||||
|
private RogueCommonDialogueBasicInfo() {
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return a new empty instance of {@code RogueCommonDialogueBasicInfo}
|
||||||
|
*/
|
||||||
|
public static RogueCommonDialogueBasicInfo newInstance() {
|
||||||
|
return new RogueCommonDialogueBasicInfo();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 dialogue_id = 4;</code>
|
||||||
|
* @return whether the dialogueId field is set
|
||||||
|
*/
|
||||||
|
public boolean hasDialogueId() {
|
||||||
|
return (bitField0_ & 0x00000001) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 dialogue_id = 4;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public RogueCommonDialogueBasicInfo clearDialogueId() {
|
||||||
|
bitField0_ &= ~0x00000001;
|
||||||
|
dialogueId = 0;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 dialogue_id = 4;</code>
|
||||||
|
* @return the dialogueId
|
||||||
|
*/
|
||||||
|
public int getDialogueId() {
|
||||||
|
return dialogueId;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 dialogue_id = 4;</code>
|
||||||
|
* @param value the dialogueId to set
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public RogueCommonDialogueBasicInfo setDialogueId(final int value) {
|
||||||
|
bitField0_ |= 0x00000001;
|
||||||
|
dialogueId = value;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 sus = 5;</code>
|
||||||
|
* @return whether the sus field is set
|
||||||
|
*/
|
||||||
|
public boolean hasSus() {
|
||||||
|
return (bitField0_ & 0x00000002) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 sus = 5;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public RogueCommonDialogueBasicInfo clearSus() {
|
||||||
|
bitField0_ &= ~0x00000002;
|
||||||
|
sus = 0;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 sus = 5;</code>
|
||||||
|
* @return the sus
|
||||||
|
*/
|
||||||
|
public int getSus() {
|
||||||
|
return sus;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 sus = 5;</code>
|
||||||
|
* @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<RogueCommonDialogueBasicInfo> getFactory() {
|
||||||
|
return RogueCommonDialogueBasicInfoFactory.INSTANCE;
|
||||||
|
}
|
||||||
|
|
||||||
|
private enum RogueCommonDialogueBasicInfoFactory implements MessageFactory<RogueCommonDialogueBasicInfo> {
|
||||||
|
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");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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<RogueCommonDialogueDataInfo> implements Cloneable {
|
||||||
|
private static final long serialVersionUID = 0L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 event_unique_id = 15;</code>
|
||||||
|
*/
|
||||||
|
private int eventUniqueId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .RogueCommonDialogueInfo dialogue_info = 4;</code>
|
||||||
|
*/
|
||||||
|
private final RogueCommonDialogueInfoOuterClass.RogueCommonDialogueInfo dialogueInfo = RogueCommonDialogueInfoOuterClass.RogueCommonDialogueInfo.newInstance();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .RogueCommonDialogueOptionInfo option_list = 1;</code>
|
||||||
|
*/
|
||||||
|
private final RepeatedMessage<RogueCommonDialogueOptionInfoOuterClass.RogueCommonDialogueOptionInfo> optionList = RepeatedMessage.newEmptyInstance(RogueCommonDialogueOptionInfoOuterClass.RogueCommonDialogueOptionInfo.getFactory());
|
||||||
|
|
||||||
|
private RogueCommonDialogueDataInfo() {
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return a new empty instance of {@code RogueCommonDialogueDataInfo}
|
||||||
|
*/
|
||||||
|
public static RogueCommonDialogueDataInfo newInstance() {
|
||||||
|
return new RogueCommonDialogueDataInfo();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 event_unique_id = 15;</code>
|
||||||
|
* @return whether the eventUniqueId field is set
|
||||||
|
*/
|
||||||
|
public boolean hasEventUniqueId() {
|
||||||
|
return (bitField0_ & 0x00000001) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 event_unique_id = 15;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public RogueCommonDialogueDataInfo clearEventUniqueId() {
|
||||||
|
bitField0_ &= ~0x00000001;
|
||||||
|
eventUniqueId = 0;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 event_unique_id = 15;</code>
|
||||||
|
* @return the eventUniqueId
|
||||||
|
*/
|
||||||
|
public int getEventUniqueId() {
|
||||||
|
return eventUniqueId;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 event_unique_id = 15;</code>
|
||||||
|
* @param value the eventUniqueId to set
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public RogueCommonDialogueDataInfo setEventUniqueId(final int value) {
|
||||||
|
bitField0_ |= 0x00000001;
|
||||||
|
eventUniqueId = value;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .RogueCommonDialogueInfo dialogue_info = 4;</code>
|
||||||
|
* @return whether the dialogueInfo field is set
|
||||||
|
*/
|
||||||
|
public boolean hasDialogueInfo() {
|
||||||
|
return (bitField0_ & 0x00000002) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .RogueCommonDialogueInfo dialogue_info = 4;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public RogueCommonDialogueDataInfo clearDialogueInfo() {
|
||||||
|
bitField0_ &= ~0x00000002;
|
||||||
|
dialogueInfo.clear();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .RogueCommonDialogueInfo dialogue_info = 4;</code>
|
||||||
|
*
|
||||||
|
* This method returns 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;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .RogueCommonDialogueInfo dialogue_info = 4;</code>
|
||||||
|
*
|
||||||
|
* This method returns the internal storage object and sets the corresponding
|
||||||
|
* has state. The returned object will become part of 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;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .RogueCommonDialogueInfo dialogue_info = 4;</code>
|
||||||
|
* @param value the dialogueInfo to set
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public RogueCommonDialogueDataInfo setDialogueInfo(
|
||||||
|
final RogueCommonDialogueInfoOuterClass.RogueCommonDialogueInfo value) {
|
||||||
|
bitField0_ |= 0x00000002;
|
||||||
|
dialogueInfo.copyFrom(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .RogueCommonDialogueOptionInfo option_list = 1;</code>
|
||||||
|
* @return whether the optionList field is set
|
||||||
|
*/
|
||||||
|
public boolean hasOptionList() {
|
||||||
|
return (bitField0_ & 0x00000004) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .RogueCommonDialogueOptionInfo option_list = 1;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public RogueCommonDialogueDataInfo clearOptionList() {
|
||||||
|
bitField0_ &= ~0x00000004;
|
||||||
|
optionList.clear();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .RogueCommonDialogueOptionInfo option_list = 1;</code>
|
||||||
|
*
|
||||||
|
* This method returns 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<RogueCommonDialogueOptionInfoOuterClass.RogueCommonDialogueOptionInfo> getOptionList(
|
||||||
|
) {
|
||||||
|
return optionList;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .RogueCommonDialogueOptionInfo option_list = 1;</code>
|
||||||
|
*
|
||||||
|
* This method returns the internal storage object and sets the corresponding
|
||||||
|
* has state. The returned object will become part of 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<RogueCommonDialogueOptionInfoOuterClass.RogueCommonDialogueOptionInfo> getMutableOptionList(
|
||||||
|
) {
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
return optionList;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .RogueCommonDialogueOptionInfo option_list = 1;</code>
|
||||||
|
* @param value the optionList to add
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public RogueCommonDialogueDataInfo addOptionList(
|
||||||
|
final RogueCommonDialogueOptionInfoOuterClass.RogueCommonDialogueOptionInfo value) {
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
optionList.add(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .RogueCommonDialogueOptionInfo option_list = 1;</code>
|
||||||
|
* @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<RogueCommonDialogueDataInfo> getFactory() {
|
||||||
|
return RogueCommonDialogueDataInfoFactory.INSTANCE;
|
||||||
|
}
|
||||||
|
|
||||||
|
private enum RogueCommonDialogueDataInfoFactory implements MessageFactory<RogueCommonDialogueDataInfo> {
|
||||||
|
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");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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<RogueCommonDialogueInfo> implements Cloneable {
|
||||||
|
private static final long serialVersionUID = 0L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <pre>
|
||||||
|
* DIACKBJMGOM IECFCBIHCKG = 6;
|
||||||
|
* CBEPEJDDBHK HCNKEAOPIGF = 4;
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* <code>optional .RogueCommonDialogueBasicInfo dialogue_basic_info = 13;</code>
|
||||||
|
*/
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <pre>
|
||||||
|
* DIACKBJMGOM IECFCBIHCKG = 6;
|
||||||
|
* CBEPEJDDBHK HCNKEAOPIGF = 4;
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* <code>optional .RogueCommonDialogueBasicInfo dialogue_basic_info = 13;</code>
|
||||||
|
* @return whether the dialogueBasicInfo field is set
|
||||||
|
*/
|
||||||
|
public boolean hasDialogueBasicInfo() {
|
||||||
|
return (bitField0_ & 0x00000001) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <pre>
|
||||||
|
* DIACKBJMGOM IECFCBIHCKG = 6;
|
||||||
|
* CBEPEJDDBHK HCNKEAOPIGF = 4;
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* <code>optional .RogueCommonDialogueBasicInfo dialogue_basic_info = 13;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public RogueCommonDialogueInfo clearDialogueBasicInfo() {
|
||||||
|
bitField0_ &= ~0x00000001;
|
||||||
|
dialogueBasicInfo.clear();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <pre>
|
||||||
|
* DIACKBJMGOM IECFCBIHCKG = 6;
|
||||||
|
* CBEPEJDDBHK HCNKEAOPIGF = 4;
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* <code>optional .RogueCommonDialogueBasicInfo dialogue_basic_info = 13;</code>
|
||||||
|
*
|
||||||
|
* This method returns 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;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <pre>
|
||||||
|
* DIACKBJMGOM IECFCBIHCKG = 6;
|
||||||
|
* CBEPEJDDBHK HCNKEAOPIGF = 4;
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* <code>optional .RogueCommonDialogueBasicInfo dialogue_basic_info = 13;</code>
|
||||||
|
*
|
||||||
|
* This method returns the internal storage object and sets the corresponding
|
||||||
|
* has state. The returned object will become part of 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;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <pre>
|
||||||
|
* DIACKBJMGOM IECFCBIHCKG = 6;
|
||||||
|
* CBEPEJDDBHK HCNKEAOPIGF = 4;
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* <code>optional .RogueCommonDialogueBasicInfo dialogue_basic_info = 13;</code>
|
||||||
|
* @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<RogueCommonDialogueInfo> getFactory() {
|
||||||
|
return RogueCommonDialogueInfoFactory.INSTANCE;
|
||||||
|
}
|
||||||
|
|
||||||
|
private enum RogueCommonDialogueInfoFactory implements MessageFactory<RogueCommonDialogueInfo> {
|
||||||
|
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");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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<RogueCommonDialogueOptionBattleResultInfo> implements Cloneable {
|
||||||
|
private static final long serialVersionUID = 0L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 battle_event_id = 8;</code>
|
||||||
|
*/
|
||||||
|
private int battleEventId;
|
||||||
|
|
||||||
|
private RogueCommonDialogueOptionBattleResultInfo() {
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return a new empty instance of {@code RogueCommonDialogueOptionBattleResultInfo}
|
||||||
|
*/
|
||||||
|
public static RogueCommonDialogueOptionBattleResultInfo newInstance() {
|
||||||
|
return new RogueCommonDialogueOptionBattleResultInfo();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 battle_event_id = 8;</code>
|
||||||
|
* @return whether the battleEventId field is set
|
||||||
|
*/
|
||||||
|
public boolean hasBattleEventId() {
|
||||||
|
return (bitField0_ & 0x00000001) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 battle_event_id = 8;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public RogueCommonDialogueOptionBattleResultInfo clearBattleEventId() {
|
||||||
|
bitField0_ &= ~0x00000001;
|
||||||
|
battleEventId = 0;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 battle_event_id = 8;</code>
|
||||||
|
* @return the battleEventId
|
||||||
|
*/
|
||||||
|
public int getBattleEventId() {
|
||||||
|
return battleEventId;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 battle_event_id = 8;</code>
|
||||||
|
* @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<RogueCommonDialogueOptionBattleResultInfo> getFactory() {
|
||||||
|
return RogueCommonDialogueOptionBattleResultInfoFactory.INSTANCE;
|
||||||
|
}
|
||||||
|
|
||||||
|
private enum RogueCommonDialogueOptionBattleResultInfoFactory implements MessageFactory<RogueCommonDialogueOptionBattleResultInfo> {
|
||||||
|
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");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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<RogueCommonDialogueOptionDisplayInfo> implements Cloneable {
|
||||||
|
private static final long serialVersionUID = 0L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional float display_float_value = 10;</code>
|
||||||
|
*/
|
||||||
|
private float displayFloatValue;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional int32 display_int_value = 6;</code>
|
||||||
|
*/
|
||||||
|
private int displayIntValue;
|
||||||
|
|
||||||
|
private RogueCommonDialogueOptionDisplayInfo() {
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return a new empty instance of {@code RogueCommonDialogueOptionDisplayInfo}
|
||||||
|
*/
|
||||||
|
public static RogueCommonDialogueOptionDisplayInfo newInstance() {
|
||||||
|
return new RogueCommonDialogueOptionDisplayInfo();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional float display_float_value = 10;</code>
|
||||||
|
* @return whether the displayFloatValue field is set
|
||||||
|
*/
|
||||||
|
public boolean hasDisplayFloatValue() {
|
||||||
|
return (bitField0_ & 0x00000001) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional float display_float_value = 10;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public RogueCommonDialogueOptionDisplayInfo clearDisplayFloatValue() {
|
||||||
|
bitField0_ &= ~0x00000001;
|
||||||
|
displayFloatValue = 0F;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional float display_float_value = 10;</code>
|
||||||
|
* @return the displayFloatValue
|
||||||
|
*/
|
||||||
|
public float getDisplayFloatValue() {
|
||||||
|
return displayFloatValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional float display_float_value = 10;</code>
|
||||||
|
* @param value the displayFloatValue to set
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public RogueCommonDialogueOptionDisplayInfo setDisplayFloatValue(final float value) {
|
||||||
|
bitField0_ |= 0x00000001;
|
||||||
|
displayFloatValue = value;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional int32 display_int_value = 6;</code>
|
||||||
|
* @return whether the displayIntValue field is set
|
||||||
|
*/
|
||||||
|
public boolean hasDisplayIntValue() {
|
||||||
|
return (bitField0_ & 0x00000002) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional int32 display_int_value = 6;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public RogueCommonDialogueOptionDisplayInfo clearDisplayIntValue() {
|
||||||
|
bitField0_ &= ~0x00000002;
|
||||||
|
displayIntValue = 0;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional int32 display_int_value = 6;</code>
|
||||||
|
* @return the displayIntValue
|
||||||
|
*/
|
||||||
|
public int getDisplayIntValue() {
|
||||||
|
return displayIntValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional int32 display_int_value = 6;</code>
|
||||||
|
* @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<RogueCommonDialogueOptionDisplayInfo> getFactory() {
|
||||||
|
return RogueCommonDialogueOptionDisplayInfoFactory.INSTANCE;
|
||||||
|
}
|
||||||
|
|
||||||
|
private enum RogueCommonDialogueOptionDisplayInfoFactory implements MessageFactory<RogueCommonDialogueOptionDisplayInfo> {
|
||||||
|
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");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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<RogueCommonDialogueOptionInfo> implements Cloneable {
|
||||||
|
private static final long serialVersionUID = 0L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 arg_id = 6;</code>
|
||||||
|
*/
|
||||||
|
private int argId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 option_id = 9;</code>
|
||||||
|
*/
|
||||||
|
private int optionId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional bool is_valid = 5;</code>
|
||||||
|
*/
|
||||||
|
private boolean isValid;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional bool confirm = 13;</code>
|
||||||
|
*/
|
||||||
|
private boolean confirm;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .RogueCommonDialogueOptionDisplayInfo display_value = 14;</code>
|
||||||
|
*/
|
||||||
|
private final RogueCommonDialogueOptionDisplayInfoOuterClass.RogueCommonDialogueOptionDisplayInfo displayValue = RogueCommonDialogueOptionDisplayInfoOuterClass.RogueCommonDialogueOptionDisplayInfo.newInstance();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .RogueCommonDialogueOptionResultInfo option_result_info = 8;</code>
|
||||||
|
*/
|
||||||
|
private final RepeatedMessage<RogueCommonDialogueOptionResultInfoOuterClass.RogueCommonDialogueOptionResultInfo> optionResultInfo = RepeatedMessage.newEmptyInstance(RogueCommonDialogueOptionResultInfoOuterClass.RogueCommonDialogueOptionResultInfo.getFactory());
|
||||||
|
|
||||||
|
private RogueCommonDialogueOptionInfo() {
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return a new empty instance of {@code RogueCommonDialogueOptionInfo}
|
||||||
|
*/
|
||||||
|
public static RogueCommonDialogueOptionInfo newInstance() {
|
||||||
|
return new RogueCommonDialogueOptionInfo();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 arg_id = 6;</code>
|
||||||
|
* @return whether the argId field is set
|
||||||
|
*/
|
||||||
|
public boolean hasArgId() {
|
||||||
|
return (bitField0_ & 0x00000001) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 arg_id = 6;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public RogueCommonDialogueOptionInfo clearArgId() {
|
||||||
|
bitField0_ &= ~0x00000001;
|
||||||
|
argId = 0;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 arg_id = 6;</code>
|
||||||
|
* @return the argId
|
||||||
|
*/
|
||||||
|
public int getArgId() {
|
||||||
|
return argId;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 arg_id = 6;</code>
|
||||||
|
* @param value the argId to set
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public RogueCommonDialogueOptionInfo setArgId(final int value) {
|
||||||
|
bitField0_ |= 0x00000001;
|
||||||
|
argId = value;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 option_id = 9;</code>
|
||||||
|
* @return whether the optionId field is set
|
||||||
|
*/
|
||||||
|
public boolean hasOptionId() {
|
||||||
|
return (bitField0_ & 0x00000002) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 option_id = 9;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public RogueCommonDialogueOptionInfo clearOptionId() {
|
||||||
|
bitField0_ &= ~0x00000002;
|
||||||
|
optionId = 0;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 option_id = 9;</code>
|
||||||
|
* @return the optionId
|
||||||
|
*/
|
||||||
|
public int getOptionId() {
|
||||||
|
return optionId;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 option_id = 9;</code>
|
||||||
|
* @param value the optionId to set
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public RogueCommonDialogueOptionInfo setOptionId(final int value) {
|
||||||
|
bitField0_ |= 0x00000002;
|
||||||
|
optionId = value;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional bool is_valid = 5;</code>
|
||||||
|
* @return whether the isValid field is set
|
||||||
|
*/
|
||||||
|
public boolean hasIsValid() {
|
||||||
|
return (bitField0_ & 0x00000004) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional bool is_valid = 5;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public RogueCommonDialogueOptionInfo clearIsValid() {
|
||||||
|
bitField0_ &= ~0x00000004;
|
||||||
|
isValid = false;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional bool is_valid = 5;</code>
|
||||||
|
* @return the isValid
|
||||||
|
*/
|
||||||
|
public boolean getIsValid() {
|
||||||
|
return isValid;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional bool is_valid = 5;</code>
|
||||||
|
* @param value the isValid to set
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public RogueCommonDialogueOptionInfo setIsValid(final boolean value) {
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
isValid = value;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional bool confirm = 13;</code>
|
||||||
|
* @return whether the confirm field is set
|
||||||
|
*/
|
||||||
|
public boolean hasConfirm() {
|
||||||
|
return (bitField0_ & 0x00000008) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional bool confirm = 13;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public RogueCommonDialogueOptionInfo clearConfirm() {
|
||||||
|
bitField0_ &= ~0x00000008;
|
||||||
|
confirm = false;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional bool confirm = 13;</code>
|
||||||
|
* @return the confirm
|
||||||
|
*/
|
||||||
|
public boolean getConfirm() {
|
||||||
|
return confirm;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional bool confirm = 13;</code>
|
||||||
|
* @param value the confirm to set
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public RogueCommonDialogueOptionInfo setConfirm(final boolean value) {
|
||||||
|
bitField0_ |= 0x00000008;
|
||||||
|
confirm = value;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .RogueCommonDialogueOptionDisplayInfo display_value = 14;</code>
|
||||||
|
* @return whether the displayValue field is set
|
||||||
|
*/
|
||||||
|
public boolean hasDisplayValue() {
|
||||||
|
return (bitField0_ & 0x00000010) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .RogueCommonDialogueOptionDisplayInfo display_value = 14;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public RogueCommonDialogueOptionInfo clearDisplayValue() {
|
||||||
|
bitField0_ &= ~0x00000010;
|
||||||
|
displayValue.clear();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .RogueCommonDialogueOptionDisplayInfo display_value = 14;</code>
|
||||||
|
*
|
||||||
|
* This method returns 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;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .RogueCommonDialogueOptionDisplayInfo display_value = 14;</code>
|
||||||
|
*
|
||||||
|
* This method returns the internal storage object and sets the corresponding
|
||||||
|
* has state. The returned object will become part of 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;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .RogueCommonDialogueOptionDisplayInfo display_value = 14;</code>
|
||||||
|
* @param value the displayValue to set
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public RogueCommonDialogueOptionInfo setDisplayValue(
|
||||||
|
final RogueCommonDialogueOptionDisplayInfoOuterClass.RogueCommonDialogueOptionDisplayInfo value) {
|
||||||
|
bitField0_ |= 0x00000010;
|
||||||
|
displayValue.copyFrom(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .RogueCommonDialogueOptionResultInfo option_result_info = 8;</code>
|
||||||
|
* @return whether the optionResultInfo field is set
|
||||||
|
*/
|
||||||
|
public boolean hasOptionResultInfo() {
|
||||||
|
return (bitField0_ & 0x00000020) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .RogueCommonDialogueOptionResultInfo option_result_info = 8;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public RogueCommonDialogueOptionInfo clearOptionResultInfo() {
|
||||||
|
bitField0_ &= ~0x00000020;
|
||||||
|
optionResultInfo.clear();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .RogueCommonDialogueOptionResultInfo option_result_info = 8;</code>
|
||||||
|
*
|
||||||
|
* This method returns 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<RogueCommonDialogueOptionResultInfoOuterClass.RogueCommonDialogueOptionResultInfo> getOptionResultInfo(
|
||||||
|
) {
|
||||||
|
return optionResultInfo;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .RogueCommonDialogueOptionResultInfo option_result_info = 8;</code>
|
||||||
|
*
|
||||||
|
* This method returns the internal storage object and sets the corresponding
|
||||||
|
* has state. The returned object will become part of 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<RogueCommonDialogueOptionResultInfoOuterClass.RogueCommonDialogueOptionResultInfo> getMutableOptionResultInfo(
|
||||||
|
) {
|
||||||
|
bitField0_ |= 0x00000020;
|
||||||
|
return optionResultInfo;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .RogueCommonDialogueOptionResultInfo option_result_info = 8;</code>
|
||||||
|
* @param value the optionResultInfo to add
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public RogueCommonDialogueOptionInfo addOptionResultInfo(
|
||||||
|
final RogueCommonDialogueOptionResultInfoOuterClass.RogueCommonDialogueOptionResultInfo value) {
|
||||||
|
bitField0_ |= 0x00000020;
|
||||||
|
optionResultInfo.add(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .RogueCommonDialogueOptionResultInfo option_result_info = 8;</code>
|
||||||
|
* @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<RogueCommonDialogueOptionInfo> getFactory() {
|
||||||
|
return RogueCommonDialogueOptionInfoFactory.INSTANCE;
|
||||||
|
}
|
||||||
|
|
||||||
|
private enum RogueCommonDialogueOptionInfoFactory implements MessageFactory<RogueCommonDialogueOptionInfo> {
|
||||||
|
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");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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<RogueCommonDialogueOptionResultInfo> implements Cloneable {
|
||||||
|
private static final long serialVersionUID = 0L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <pre>
|
||||||
|
* OJAHMDLNMAK ACHLGHPPMNO = 3;
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* <code>optional .RogueCommonDialogueOptionBattleResultInfo battle_result_info = 11;</code>
|
||||||
|
*/
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <pre>
|
||||||
|
* OJAHMDLNMAK ACHLGHPPMNO = 3;
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* <code>optional .RogueCommonDialogueOptionBattleResultInfo battle_result_info = 11;</code>
|
||||||
|
* @return whether the battleResultInfo field is set
|
||||||
|
*/
|
||||||
|
public boolean hasBattleResultInfo() {
|
||||||
|
return (bitField0_ & 0x00000001) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <pre>
|
||||||
|
* OJAHMDLNMAK ACHLGHPPMNO = 3;
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* <code>optional .RogueCommonDialogueOptionBattleResultInfo battle_result_info = 11;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public RogueCommonDialogueOptionResultInfo clearBattleResultInfo() {
|
||||||
|
bitField0_ &= ~0x00000001;
|
||||||
|
battleResultInfo.clear();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <pre>
|
||||||
|
* OJAHMDLNMAK ACHLGHPPMNO = 3;
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* <code>optional .RogueCommonDialogueOptionBattleResultInfo battle_result_info = 11;</code>
|
||||||
|
*
|
||||||
|
* This method returns 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;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <pre>
|
||||||
|
* OJAHMDLNMAK ACHLGHPPMNO = 3;
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* <code>optional .RogueCommonDialogueOptionBattleResultInfo battle_result_info = 11;</code>
|
||||||
|
*
|
||||||
|
* This method returns the internal storage object and sets the corresponding
|
||||||
|
* has state. The returned object will become part of 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;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <pre>
|
||||||
|
* OJAHMDLNMAK ACHLGHPPMNO = 3;
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* <code>optional .RogueCommonDialogueOptionBattleResultInfo battle_result_info = 11;</code>
|
||||||
|
* @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<RogueCommonDialogueOptionResultInfo> getFactory() {
|
||||||
|
return RogueCommonDialogueOptionResultInfoFactory.INSTANCE;
|
||||||
|
}
|
||||||
|
|
||||||
|
private enum RogueCommonDialogueOptionResultInfoFactory implements MessageFactory<RogueCommonDialogueOptionResultInfo> {
|
||||||
|
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");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -167,7 +167,7 @@ public final class RogueMiracleSourceOuterClass {
|
|||||||
/**
|
/**
|
||||||
* @return a converter that maps between this enum's numeric and text representations
|
* @return a converter that maps between this enum's numeric and text representations
|
||||||
*/
|
*/
|
||||||
public static ProtoEnum.EnumConverter<RogueMiracleSource> converter() {
|
public static EnumConverter<RogueMiracleSource> converter() {
|
||||||
return RogueMiracleSourceConverter.INSTANCE;
|
return RogueMiracleSourceConverter.INSTANCE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -189,7 +189,7 @@ public final class RogueMiracleSourceOuterClass {
|
|||||||
return value == null ? other : value;
|
return value == null ? other : value;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum RogueMiracleSourceConverter implements ProtoEnum.EnumConverter<RogueMiracleSource> {
|
enum RogueMiracleSourceConverter implements EnumConverter<RogueMiracleSource> {
|
||||||
INSTANCE;
|
INSTANCE;
|
||||||
|
|
||||||
private static final RogueMiracleSource[] lookup = new RogueMiracleSource[13];
|
private static final RogueMiracleSource[] lookup = new RogueMiracleSource[13];
|
||||||
|
|||||||
@@ -19,9 +19,9 @@ public final class RogueNpcDisappearCsReqOuterClass {
|
|||||||
private static final long serialVersionUID = 0L;
|
private static final long serialVersionUID = 0L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <code>optional uint32 entity_id = 15;</code>
|
* <code>optional uint32 disappear_npc_entity_id = 15;</code>
|
||||||
*/
|
*/
|
||||||
private int entityId;
|
private int disappearNpcEntityId;
|
||||||
|
|
||||||
private RogueNpcDisappearCsReq() {
|
private RogueNpcDisappearCsReq() {
|
||||||
}
|
}
|
||||||
@@ -34,39 +34,39 @@ public final class RogueNpcDisappearCsReqOuterClass {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <code>optional uint32 entity_id = 15;</code>
|
* <code>optional uint32 disappear_npc_entity_id = 15;</code>
|
||||||
* @return whether the entityId field is set
|
* @return whether the disappearNpcEntityId field is set
|
||||||
*/
|
*/
|
||||||
public boolean hasEntityId() {
|
public boolean hasDisappearNpcEntityId() {
|
||||||
return (bitField0_ & 0x00000001) != 0;
|
return (bitField0_ & 0x00000001) != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <code>optional uint32 entity_id = 15;</code>
|
* <code>optional uint32 disappear_npc_entity_id = 15;</code>
|
||||||
* @return this
|
* @return this
|
||||||
*/
|
*/
|
||||||
public RogueNpcDisappearCsReq clearEntityId() {
|
public RogueNpcDisappearCsReq clearDisappearNpcEntityId() {
|
||||||
bitField0_ &= ~0x00000001;
|
bitField0_ &= ~0x00000001;
|
||||||
entityId = 0;
|
disappearNpcEntityId = 0;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <code>optional uint32 entity_id = 15;</code>
|
* <code>optional uint32 disappear_npc_entity_id = 15;</code>
|
||||||
* @return the entityId
|
* @return the disappearNpcEntityId
|
||||||
*/
|
*/
|
||||||
public int getEntityId() {
|
public int getDisappearNpcEntityId() {
|
||||||
return entityId;
|
return disappearNpcEntityId;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <code>optional uint32 entity_id = 15;</code>
|
* <code>optional uint32 disappear_npc_entity_id = 15;</code>
|
||||||
* @param value the entityId to set
|
* @param value the disappearNpcEntityId to set
|
||||||
* @return this
|
* @return this
|
||||||
*/
|
*/
|
||||||
public RogueNpcDisappearCsReq setEntityId(final int value) {
|
public RogueNpcDisappearCsReq setDisappearNpcEntityId(final int value) {
|
||||||
bitField0_ |= 0x00000001;
|
bitField0_ |= 0x00000001;
|
||||||
entityId = value;
|
disappearNpcEntityId = value;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -75,7 +75,7 @@ public final class RogueNpcDisappearCsReqOuterClass {
|
|||||||
cachedSize = other.cachedSize;
|
cachedSize = other.cachedSize;
|
||||||
if ((bitField0_ | other.bitField0_) != 0) {
|
if ((bitField0_ | other.bitField0_) != 0) {
|
||||||
bitField0_ = other.bitField0_;
|
bitField0_ = other.bitField0_;
|
||||||
entityId = other.entityId;
|
disappearNpcEntityId = other.disappearNpcEntityId;
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -86,8 +86,8 @@ public final class RogueNpcDisappearCsReqOuterClass {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
cachedSize = -1;
|
cachedSize = -1;
|
||||||
if (other.hasEntityId()) {
|
if (other.hasDisappearNpcEntityId()) {
|
||||||
setEntityId(other.entityId);
|
setDisappearNpcEntityId(other.disappearNpcEntityId);
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -99,7 +99,7 @@ public final class RogueNpcDisappearCsReqOuterClass {
|
|||||||
}
|
}
|
||||||
cachedSize = -1;
|
cachedSize = -1;
|
||||||
bitField0_ = 0;
|
bitField0_ = 0;
|
||||||
entityId = 0;
|
disappearNpcEntityId = 0;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -123,14 +123,14 @@ public final class RogueNpcDisappearCsReqOuterClass {
|
|||||||
}
|
}
|
||||||
RogueNpcDisappearCsReq other = (RogueNpcDisappearCsReq) o;
|
RogueNpcDisappearCsReq other = (RogueNpcDisappearCsReq) o;
|
||||||
return bitField0_ == other.bitField0_
|
return bitField0_ == other.bitField0_
|
||||||
&& (!hasEntityId() || entityId == other.entityId);
|
&& (!hasDisappearNpcEntityId() || disappearNpcEntityId == other.disappearNpcEntityId);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void writeTo(final ProtoSink output) throws IOException {
|
public void writeTo(final ProtoSink output) throws IOException {
|
||||||
if ((bitField0_ & 0x00000001) != 0) {
|
if ((bitField0_ & 0x00000001) != 0) {
|
||||||
output.writeRawByte((byte) 120);
|
output.writeRawByte((byte) 120);
|
||||||
output.writeUInt32NoTag(entityId);
|
output.writeUInt32NoTag(disappearNpcEntityId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -138,7 +138,7 @@ public final class RogueNpcDisappearCsReqOuterClass {
|
|||||||
protected int computeSerializedSize() {
|
protected int computeSerializedSize() {
|
||||||
int size = 0;
|
int size = 0;
|
||||||
if ((bitField0_ & 0x00000001) != 0) {
|
if ((bitField0_ & 0x00000001) != 0) {
|
||||||
size += 1 + ProtoSink.computeUInt32SizeNoTag(entityId);
|
size += 1 + ProtoSink.computeUInt32SizeNoTag(disappearNpcEntityId);
|
||||||
}
|
}
|
||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
@@ -151,8 +151,8 @@ public final class RogueNpcDisappearCsReqOuterClass {
|
|||||||
while (true) {
|
while (true) {
|
||||||
switch (tag) {
|
switch (tag) {
|
||||||
case 120: {
|
case 120: {
|
||||||
// entityId
|
// disappearNpcEntityId
|
||||||
entityId = input.readUInt32();
|
disappearNpcEntityId = input.readUInt32();
|
||||||
bitField0_ |= 0x00000001;
|
bitField0_ |= 0x00000001;
|
||||||
tag = input.readTag();
|
tag = input.readTag();
|
||||||
if (tag != 0) {
|
if (tag != 0) {
|
||||||
@@ -177,7 +177,7 @@ public final class RogueNpcDisappearCsReqOuterClass {
|
|||||||
public void writeTo(final JsonSink output) throws IOException {
|
public void writeTo(final JsonSink output) throws IOException {
|
||||||
output.beginObject();
|
output.beginObject();
|
||||||
if ((bitField0_ & 0x00000001) != 0) {
|
if ((bitField0_ & 0x00000001) != 0) {
|
||||||
output.writeUInt32(FieldNames.entityId, entityId);
|
output.writeUInt32(FieldNames.disappearNpcEntityId, disappearNpcEntityId);
|
||||||
}
|
}
|
||||||
output.endObject();
|
output.endObject();
|
||||||
}
|
}
|
||||||
@@ -189,11 +189,11 @@ public final class RogueNpcDisappearCsReqOuterClass {
|
|||||||
}
|
}
|
||||||
while (!input.isAtEnd()) {
|
while (!input.isAtEnd()) {
|
||||||
switch (input.readFieldHash()) {
|
switch (input.readFieldHash()) {
|
||||||
case -2102099874:
|
case -1209630020:
|
||||||
case -740565257: {
|
case -1719695491: {
|
||||||
if (input.isAtField(FieldNames.entityId)) {
|
if (input.isAtField(FieldNames.disappearNpcEntityId)) {
|
||||||
if (!input.trySkipNullValue()) {
|
if (!input.trySkipNullValue()) {
|
||||||
entityId = input.readUInt32();
|
disappearNpcEntityId = input.readUInt32();
|
||||||
bitField0_ |= 0x00000001;
|
bitField0_ |= 0x00000001;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@@ -254,7 +254,7 @@ public final class RogueNpcDisappearCsReqOuterClass {
|
|||||||
* Contains name constants used for serializing JSON
|
* Contains name constants used for serializing JSON
|
||||||
*/
|
*/
|
||||||
static class FieldNames {
|
static class FieldNames {
|
||||||
static final FieldName entityId = FieldName.forField("entityId", "entity_id");
|
static final FieldName disappearNpcEntityId = FieldName.forField("disappearNpcEntityId", "disappear_npc_entity_id");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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<RogueNpcDisappearScRsp> implements Cloneable {
|
||||||
|
private static final long serialVersionUID = 0L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 retcode = 2;</code>
|
||||||
|
*/
|
||||||
|
private int retcode;
|
||||||
|
|
||||||
|
private RogueNpcDisappearScRsp() {
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return a new empty instance of {@code RogueNpcDisappearScRsp}
|
||||||
|
*/
|
||||||
|
public static RogueNpcDisappearScRsp newInstance() {
|
||||||
|
return new RogueNpcDisappearScRsp();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 retcode = 2;</code>
|
||||||
|
* @return whether the retcode field is set
|
||||||
|
*/
|
||||||
|
public boolean hasRetcode() {
|
||||||
|
return (bitField0_ & 0x00000001) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 retcode = 2;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public RogueNpcDisappearScRsp clearRetcode() {
|
||||||
|
bitField0_ &= ~0x00000001;
|
||||||
|
retcode = 0;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 retcode = 2;</code>
|
||||||
|
* @return the retcode
|
||||||
|
*/
|
||||||
|
public int getRetcode() {
|
||||||
|
return retcode;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 retcode = 2;</code>
|
||||||
|
* @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<RogueNpcDisappearScRsp> getFactory() {
|
||||||
|
return RogueNpcDisappearScRspFactory.INSTANCE;
|
||||||
|
}
|
||||||
|
|
||||||
|
private enum RogueNpcDisappearScRspFactory implements MessageFactory<RogueNpcDisappearScRsp> {
|
||||||
|
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");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -87,7 +87,7 @@ public final class RogueRoomStatusOuterClass {
|
|||||||
/**
|
/**
|
||||||
* @return a converter that maps between this enum's numeric and text representations
|
* @return a converter that maps between this enum's numeric and text representations
|
||||||
*/
|
*/
|
||||||
public static ProtoEnum.EnumConverter<RogueRoomStatus> converter() {
|
public static EnumConverter<RogueRoomStatus> converter() {
|
||||||
return RogueRoomStatusConverter.INSTANCE;
|
return RogueRoomStatusConverter.INSTANCE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -109,7 +109,7 @@ public final class RogueRoomStatusOuterClass {
|
|||||||
return value == null ? other : value;
|
return value == null ? other : value;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum RogueRoomStatusConverter implements ProtoEnum.EnumConverter<RogueRoomStatus> {
|
enum RogueRoomStatusConverter implements EnumConverter<RogueRoomStatus> {
|
||||||
INSTANCE;
|
INSTANCE;
|
||||||
|
|
||||||
private static final RogueRoomStatus[] lookup = new RogueRoomStatus[5];
|
private static final RogueRoomStatus[] lookup = new RogueRoomStatus[5];
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ public final class RogueStatusOuterClass {
|
|||||||
/**
|
/**
|
||||||
* @return a converter that maps between this enum's numeric and text representations
|
* @return a converter that maps between this enum's numeric and text representations
|
||||||
*/
|
*/
|
||||||
public static ProtoEnum.EnumConverter<RogueStatus> converter() {
|
public static EnumConverter<RogueStatus> converter() {
|
||||||
return RogueStatusConverter.INSTANCE;
|
return RogueStatusConverter.INSTANCE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -109,7 +109,7 @@ public final class RogueStatusOuterClass {
|
|||||||
return value == null ? other : value;
|
return value == null ? other : value;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum RogueStatusConverter implements ProtoEnum.EnumConverter<RogueStatus> {
|
enum RogueStatusConverter implements EnumConverter<RogueStatus> {
|
||||||
INSTANCE;
|
INSTANCE;
|
||||||
|
|
||||||
private static final RogueStatus[] lookup = new RogueStatus[5];
|
private static final RogueStatus[] lookup = new RogueStatus[5];
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ public final class RogueTalentStatusOuterClass {
|
|||||||
/**
|
/**
|
||||||
* @return a converter that maps between this enum's numeric and text representations
|
* @return a converter that maps between this enum's numeric and text representations
|
||||||
*/
|
*/
|
||||||
public static ProtoEnum.EnumConverter<RogueTalentStatus> converter() {
|
public static EnumConverter<RogueTalentStatus> converter() {
|
||||||
return RogueTalentStatusConverter.INSTANCE;
|
return RogueTalentStatusConverter.INSTANCE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -89,7 +89,7 @@ public final class RogueTalentStatusOuterClass {
|
|||||||
return value == null ? other : value;
|
return value == null ? other : value;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum RogueTalentStatusConverter implements ProtoEnum.EnumConverter<RogueTalentStatus> {
|
enum RogueTalentStatusConverter implements EnumConverter<RogueTalentStatus> {
|
||||||
INSTANCE;
|
INSTANCE;
|
||||||
|
|
||||||
private static final RogueTalentStatus[] lookup = new RogueTalentStatus[3];
|
private static final RogueTalentStatus[] lookup = new RogueTalentStatus[3];
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ public final class SceneCastSkillOuterClass {
|
|||||||
/**
|
/**
|
||||||
* @return a converter that maps between this enum's numeric and text representations
|
* @return a converter that maps between this enum's numeric and text representations
|
||||||
*/
|
*/
|
||||||
public static ProtoEnum.EnumConverter<SceneCastSkill> converter() {
|
public static EnumConverter<SceneCastSkill> converter() {
|
||||||
return SceneCastSkillConverter.INSTANCE;
|
return SceneCastSkillConverter.INSTANCE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -89,7 +89,7 @@ public final class SceneCastSkillOuterClass {
|
|||||||
return value == null ? other : value;
|
return value == null ? other : value;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum SceneCastSkillConverter implements ProtoEnum.EnumConverter<SceneCastSkill> {
|
enum SceneCastSkillConverter implements EnumConverter<SceneCastSkill> {
|
||||||
INSTANCE;
|
INSTANCE;
|
||||||
|
|
||||||
private static final SceneCastSkill[] lookup = new SceneCastSkill[3];
|
private static final SceneCastSkill[] lookup = new SceneCastSkill[3];
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ public final class SceneGroupRefreshTypeOuterClass {
|
|||||||
/**
|
/**
|
||||||
* @return a converter that maps between this enum's numeric and text representations
|
* @return a converter that maps between this enum's numeric and text representations
|
||||||
*/
|
*/
|
||||||
public static ProtoEnum.EnumConverter<SceneGroupRefreshType> converter() {
|
public static EnumConverter<SceneGroupRefreshType> converter() {
|
||||||
return SceneGroupRefreshTypeConverter.INSTANCE;
|
return SceneGroupRefreshTypeConverter.INSTANCE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -89,7 +89,7 @@ public final class SceneGroupRefreshTypeOuterClass {
|
|||||||
return value == null ? other : value;
|
return value == null ? other : value;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum SceneGroupRefreshTypeConverter implements ProtoEnum.EnumConverter<SceneGroupRefreshType> {
|
enum SceneGroupRefreshTypeConverter implements EnumConverter<SceneGroupRefreshType> {
|
||||||
INSTANCE;
|
INSTANCE;
|
||||||
|
|
||||||
private static final SceneGroupRefreshType[] lookup = new SceneGroupRefreshType[3];
|
private static final SceneGroupRefreshType[] lookup = new SceneGroupRefreshType[3];
|
||||||
|
|||||||
@@ -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<SelectRogueCommonDialogueOptionCsReq> implements Cloneable {
|
||||||
|
private static final long serialVersionUID = 0L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 event_unique_id = 4;</code>
|
||||||
|
*/
|
||||||
|
private int eventUniqueId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 option_id = 9;</code>
|
||||||
|
*/
|
||||||
|
private int optionId;
|
||||||
|
|
||||||
|
private SelectRogueCommonDialogueOptionCsReq() {
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return a new empty instance of {@code SelectRogueCommonDialogueOptionCsReq}
|
||||||
|
*/
|
||||||
|
public static SelectRogueCommonDialogueOptionCsReq newInstance() {
|
||||||
|
return new SelectRogueCommonDialogueOptionCsReq();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 event_unique_id = 4;</code>
|
||||||
|
* @return whether the eventUniqueId field is set
|
||||||
|
*/
|
||||||
|
public boolean hasEventUniqueId() {
|
||||||
|
return (bitField0_ & 0x00000001) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 event_unique_id = 4;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public SelectRogueCommonDialogueOptionCsReq clearEventUniqueId() {
|
||||||
|
bitField0_ &= ~0x00000001;
|
||||||
|
eventUniqueId = 0;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 event_unique_id = 4;</code>
|
||||||
|
* @return the eventUniqueId
|
||||||
|
*/
|
||||||
|
public int getEventUniqueId() {
|
||||||
|
return eventUniqueId;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 event_unique_id = 4;</code>
|
||||||
|
* @param value the eventUniqueId to set
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public SelectRogueCommonDialogueOptionCsReq setEventUniqueId(final int value) {
|
||||||
|
bitField0_ |= 0x00000001;
|
||||||
|
eventUniqueId = value;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 option_id = 9;</code>
|
||||||
|
* @return whether the optionId field is set
|
||||||
|
*/
|
||||||
|
public boolean hasOptionId() {
|
||||||
|
return (bitField0_ & 0x00000002) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 option_id = 9;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public SelectRogueCommonDialogueOptionCsReq clearOptionId() {
|
||||||
|
bitField0_ &= ~0x00000002;
|
||||||
|
optionId = 0;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 option_id = 9;</code>
|
||||||
|
* @return the optionId
|
||||||
|
*/
|
||||||
|
public int getOptionId() {
|
||||||
|
return optionId;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 option_id = 9;</code>
|
||||||
|
* @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<SelectRogueCommonDialogueOptionCsReq> getFactory() {
|
||||||
|
return SelectRogueCommonDialogueOptionCsReqFactory.INSTANCE;
|
||||||
|
}
|
||||||
|
|
||||||
|
private enum SelectRogueCommonDialogueOptionCsReqFactory implements MessageFactory<SelectRogueCommonDialogueOptionCsReq> {
|
||||||
|
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");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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<SelectRogueCommonDialogueOptionScRsp> implements Cloneable {
|
||||||
|
private static final long serialVersionUID = 0L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 retcode = 2;</code>
|
||||||
|
*/
|
||||||
|
private int retcode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 option_id = 10;</code>
|
||||||
|
*/
|
||||||
|
private int optionId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 event_unique_id = 12;</code>
|
||||||
|
*/
|
||||||
|
private int eventUniqueId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional bool event_has_effect = 8;</code>
|
||||||
|
*/
|
||||||
|
private boolean eventHasEffect;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .RogueCommonDialogueDataInfo dialogue_data = 4;</code>
|
||||||
|
*/
|
||||||
|
private final RogueCommonDialogueDataInfoOuterClass.RogueCommonDialogueDataInfo dialogueData = RogueCommonDialogueDataInfoOuterClass.RogueCommonDialogueDataInfo.newInstance();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated uint32 effect_event_id_list = 1;</code>
|
||||||
|
*/
|
||||||
|
private final RepeatedInt effectEventIdList = RepeatedInt.newEmptyInstance();
|
||||||
|
|
||||||
|
private SelectRogueCommonDialogueOptionScRsp() {
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return a new empty instance of {@code SelectRogueCommonDialogueOptionScRsp}
|
||||||
|
*/
|
||||||
|
public static SelectRogueCommonDialogueOptionScRsp newInstance() {
|
||||||
|
return new SelectRogueCommonDialogueOptionScRsp();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 retcode = 2;</code>
|
||||||
|
* @return whether the retcode field is set
|
||||||
|
*/
|
||||||
|
public boolean hasRetcode() {
|
||||||
|
return (bitField0_ & 0x00000001) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 retcode = 2;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public SelectRogueCommonDialogueOptionScRsp clearRetcode() {
|
||||||
|
bitField0_ &= ~0x00000001;
|
||||||
|
retcode = 0;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 retcode = 2;</code>
|
||||||
|
* @return the retcode
|
||||||
|
*/
|
||||||
|
public int getRetcode() {
|
||||||
|
return retcode;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 retcode = 2;</code>
|
||||||
|
* @param value the retcode to set
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public SelectRogueCommonDialogueOptionScRsp setRetcode(final int value) {
|
||||||
|
bitField0_ |= 0x00000001;
|
||||||
|
retcode = value;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 option_id = 10;</code>
|
||||||
|
* @return whether the optionId field is set
|
||||||
|
*/
|
||||||
|
public boolean hasOptionId() {
|
||||||
|
return (bitField0_ & 0x00000002) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 option_id = 10;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public SelectRogueCommonDialogueOptionScRsp clearOptionId() {
|
||||||
|
bitField0_ &= ~0x00000002;
|
||||||
|
optionId = 0;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 option_id = 10;</code>
|
||||||
|
* @return the optionId
|
||||||
|
*/
|
||||||
|
public int getOptionId() {
|
||||||
|
return optionId;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 option_id = 10;</code>
|
||||||
|
* @param value the optionId to set
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public SelectRogueCommonDialogueOptionScRsp setOptionId(final int value) {
|
||||||
|
bitField0_ |= 0x00000002;
|
||||||
|
optionId = value;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 event_unique_id = 12;</code>
|
||||||
|
* @return whether the eventUniqueId field is set
|
||||||
|
*/
|
||||||
|
public boolean hasEventUniqueId() {
|
||||||
|
return (bitField0_ & 0x00000004) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 event_unique_id = 12;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public SelectRogueCommonDialogueOptionScRsp clearEventUniqueId() {
|
||||||
|
bitField0_ &= ~0x00000004;
|
||||||
|
eventUniqueId = 0;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 event_unique_id = 12;</code>
|
||||||
|
* @return the eventUniqueId
|
||||||
|
*/
|
||||||
|
public int getEventUniqueId() {
|
||||||
|
return eventUniqueId;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 event_unique_id = 12;</code>
|
||||||
|
* @param value the eventUniqueId to set
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public SelectRogueCommonDialogueOptionScRsp setEventUniqueId(final int value) {
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
eventUniqueId = value;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional bool event_has_effect = 8;</code>
|
||||||
|
* @return whether the eventHasEffect field is set
|
||||||
|
*/
|
||||||
|
public boolean hasEventHasEffect() {
|
||||||
|
return (bitField0_ & 0x00000008) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional bool event_has_effect = 8;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public SelectRogueCommonDialogueOptionScRsp clearEventHasEffect() {
|
||||||
|
bitField0_ &= ~0x00000008;
|
||||||
|
eventHasEffect = false;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional bool event_has_effect = 8;</code>
|
||||||
|
* @return the eventHasEffect
|
||||||
|
*/
|
||||||
|
public boolean getEventHasEffect() {
|
||||||
|
return eventHasEffect;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional bool event_has_effect = 8;</code>
|
||||||
|
* @param value the eventHasEffect to set
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public SelectRogueCommonDialogueOptionScRsp setEventHasEffect(final boolean value) {
|
||||||
|
bitField0_ |= 0x00000008;
|
||||||
|
eventHasEffect = value;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .RogueCommonDialogueDataInfo dialogue_data = 4;</code>
|
||||||
|
* @return whether the dialogueData field is set
|
||||||
|
*/
|
||||||
|
public boolean hasDialogueData() {
|
||||||
|
return (bitField0_ & 0x00000010) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .RogueCommonDialogueDataInfo dialogue_data = 4;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public SelectRogueCommonDialogueOptionScRsp clearDialogueData() {
|
||||||
|
bitField0_ &= ~0x00000010;
|
||||||
|
dialogueData.clear();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .RogueCommonDialogueDataInfo dialogue_data = 4;</code>
|
||||||
|
*
|
||||||
|
* This method returns 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;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .RogueCommonDialogueDataInfo dialogue_data = 4;</code>
|
||||||
|
*
|
||||||
|
* This method returns the internal storage object and sets the corresponding
|
||||||
|
* has state. The returned object will become part of 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;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .RogueCommonDialogueDataInfo dialogue_data = 4;</code>
|
||||||
|
* @param value the dialogueData to set
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public SelectRogueCommonDialogueOptionScRsp setDialogueData(
|
||||||
|
final RogueCommonDialogueDataInfoOuterClass.RogueCommonDialogueDataInfo value) {
|
||||||
|
bitField0_ |= 0x00000010;
|
||||||
|
dialogueData.copyFrom(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated uint32 effect_event_id_list = 1;</code>
|
||||||
|
* @return whether the effectEventIdList field is set
|
||||||
|
*/
|
||||||
|
public boolean hasEffectEventIdList() {
|
||||||
|
return (bitField0_ & 0x00000020) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated uint32 effect_event_id_list = 1;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public SelectRogueCommonDialogueOptionScRsp clearEffectEventIdList() {
|
||||||
|
bitField0_ &= ~0x00000020;
|
||||||
|
effectEventIdList.clear();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated uint32 effect_event_id_list = 1;</code>
|
||||||
|
*
|
||||||
|
* This method returns 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;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated uint32 effect_event_id_list = 1;</code>
|
||||||
|
*
|
||||||
|
* This method returns the internal storage object and sets the corresponding
|
||||||
|
* has state. The returned object will become part of 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;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated uint32 effect_event_id_list = 1;</code>
|
||||||
|
* @param value the effectEventIdList to add
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public SelectRogueCommonDialogueOptionScRsp addEffectEventIdList(final int value) {
|
||||||
|
bitField0_ |= 0x00000020;
|
||||||
|
effectEventIdList.add(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated uint32 effect_event_id_list = 1;</code>
|
||||||
|
* @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<SelectRogueCommonDialogueOptionScRsp> getFactory() {
|
||||||
|
return SelectRogueCommonDialogueOptionScRspFactory.INSTANCE;
|
||||||
|
}
|
||||||
|
|
||||||
|
private enum SelectRogueCommonDialogueOptionScRspFactory implements MessageFactory<SelectRogueCommonDialogueOptionScRsp> {
|
||||||
|
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");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -87,7 +87,7 @@ public final class SyncReasonOuterClass {
|
|||||||
/**
|
/**
|
||||||
* @return a converter that maps between this enum's numeric and text representations
|
* @return a converter that maps between this enum's numeric and text representations
|
||||||
*/
|
*/
|
||||||
public static ProtoEnum.EnumConverter<SyncReason> converter() {
|
public static EnumConverter<SyncReason> converter() {
|
||||||
return SyncReasonConverter.INSTANCE;
|
return SyncReasonConverter.INSTANCE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -109,7 +109,7 @@ public final class SyncReasonOuterClass {
|
|||||||
return value == null ? other : value;
|
return value == null ? other : value;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum SyncReasonConverter implements ProtoEnum.EnumConverter<SyncReason> {
|
enum SyncReasonConverter implements EnumConverter<SyncReason> {
|
||||||
INSTANCE;
|
INSTANCE;
|
||||||
|
|
||||||
private static final SyncReason[] lookup = new SyncReason[5];
|
private static final SyncReason[] lookup = new SyncReason[5];
|
||||||
|
|||||||
@@ -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<SyncRogueCommonDialogueDataScNotify> implements Cloneable {
|
||||||
|
private static final long serialVersionUID = 0L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .RogueCommonDialogueDataInfo dialogue_data_list = 10;</code>
|
||||||
|
*/
|
||||||
|
private final RepeatedMessage<RogueCommonDialogueDataInfoOuterClass.RogueCommonDialogueDataInfo> dialogueDataList = RepeatedMessage.newEmptyInstance(RogueCommonDialogueDataInfoOuterClass.RogueCommonDialogueDataInfo.getFactory());
|
||||||
|
|
||||||
|
private SyncRogueCommonDialogueDataScNotify() {
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return a new empty instance of {@code SyncRogueCommonDialogueDataScNotify}
|
||||||
|
*/
|
||||||
|
public static SyncRogueCommonDialogueDataScNotify newInstance() {
|
||||||
|
return new SyncRogueCommonDialogueDataScNotify();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .RogueCommonDialogueDataInfo dialogue_data_list = 10;</code>
|
||||||
|
* @return whether the dialogueDataList field is set
|
||||||
|
*/
|
||||||
|
public boolean hasDialogueDataList() {
|
||||||
|
return (bitField0_ & 0x00000001) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .RogueCommonDialogueDataInfo dialogue_data_list = 10;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public SyncRogueCommonDialogueDataScNotify clearDialogueDataList() {
|
||||||
|
bitField0_ &= ~0x00000001;
|
||||||
|
dialogueDataList.clear();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .RogueCommonDialogueDataInfo dialogue_data_list = 10;</code>
|
||||||
|
*
|
||||||
|
* This method returns 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<RogueCommonDialogueDataInfoOuterClass.RogueCommonDialogueDataInfo> getDialogueDataList(
|
||||||
|
) {
|
||||||
|
return dialogueDataList;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .RogueCommonDialogueDataInfo dialogue_data_list = 10;</code>
|
||||||
|
*
|
||||||
|
* This method returns the internal storage object and sets the corresponding
|
||||||
|
* has state. The returned object will become part of 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<RogueCommonDialogueDataInfoOuterClass.RogueCommonDialogueDataInfo> getMutableDialogueDataList(
|
||||||
|
) {
|
||||||
|
bitField0_ |= 0x00000001;
|
||||||
|
return dialogueDataList;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .RogueCommonDialogueDataInfo dialogue_data_list = 10;</code>
|
||||||
|
* @param value the dialogueDataList to add
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public SyncRogueCommonDialogueDataScNotify addDialogueDataList(
|
||||||
|
final RogueCommonDialogueDataInfoOuterClass.RogueCommonDialogueDataInfo value) {
|
||||||
|
bitField0_ |= 0x00000001;
|
||||||
|
dialogueDataList.add(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .RogueCommonDialogueDataInfo dialogue_data_list = 10;</code>
|
||||||
|
* @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<SyncRogueCommonDialogueDataScNotify> getFactory() {
|
||||||
|
return SyncRogueCommonDialogueDataScNotifyFactory.INSTANCE;
|
||||||
|
}
|
||||||
|
|
||||||
|
private enum SyncRogueCommonDialogueDataScNotifyFactory implements MessageFactory<SyncRogueCommonDialogueDataScNotify> {
|
||||||
|
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");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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<SyncRogueCommonDialogueOptionFinishScNotify> implements Cloneable {
|
||||||
|
private static final long serialVersionUID = 0L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 event_unique_id = 3;</code>
|
||||||
|
*/
|
||||||
|
private int eventUniqueId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 option_id = 7;</code>
|
||||||
|
*/
|
||||||
|
private int optionId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .RogueCommonDialogueOptionInfo result_option_info = 2;</code>
|
||||||
|
*/
|
||||||
|
private final RogueCommonDialogueOptionInfoOuterClass.RogueCommonDialogueOptionInfo resultOptionInfo = RogueCommonDialogueOptionInfoOuterClass.RogueCommonDialogueOptionInfo.newInstance();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .RogueCommonDialogueDataInfo dialogue_data = 12;</code>
|
||||||
|
*/
|
||||||
|
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();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 event_unique_id = 3;</code>
|
||||||
|
* @return whether the eventUniqueId field is set
|
||||||
|
*/
|
||||||
|
public boolean hasEventUniqueId() {
|
||||||
|
return (bitField0_ & 0x00000001) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 event_unique_id = 3;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public SyncRogueCommonDialogueOptionFinishScNotify clearEventUniqueId() {
|
||||||
|
bitField0_ &= ~0x00000001;
|
||||||
|
eventUniqueId = 0;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 event_unique_id = 3;</code>
|
||||||
|
* @return the eventUniqueId
|
||||||
|
*/
|
||||||
|
public int getEventUniqueId() {
|
||||||
|
return eventUniqueId;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 event_unique_id = 3;</code>
|
||||||
|
* @param value the eventUniqueId to set
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public SyncRogueCommonDialogueOptionFinishScNotify setEventUniqueId(final int value) {
|
||||||
|
bitField0_ |= 0x00000001;
|
||||||
|
eventUniqueId = value;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 option_id = 7;</code>
|
||||||
|
* @return whether the optionId field is set
|
||||||
|
*/
|
||||||
|
public boolean hasOptionId() {
|
||||||
|
return (bitField0_ & 0x00000002) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 option_id = 7;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public SyncRogueCommonDialogueOptionFinishScNotify clearOptionId() {
|
||||||
|
bitField0_ &= ~0x00000002;
|
||||||
|
optionId = 0;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 option_id = 7;</code>
|
||||||
|
* @return the optionId
|
||||||
|
*/
|
||||||
|
public int getOptionId() {
|
||||||
|
return optionId;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 option_id = 7;</code>
|
||||||
|
* @param value the optionId to set
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public SyncRogueCommonDialogueOptionFinishScNotify setOptionId(final int value) {
|
||||||
|
bitField0_ |= 0x00000002;
|
||||||
|
optionId = value;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .RogueCommonDialogueOptionInfo result_option_info = 2;</code>
|
||||||
|
* @return whether the resultOptionInfo field is set
|
||||||
|
*/
|
||||||
|
public boolean hasResultOptionInfo() {
|
||||||
|
return (bitField0_ & 0x00000004) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .RogueCommonDialogueOptionInfo result_option_info = 2;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public SyncRogueCommonDialogueOptionFinishScNotify clearResultOptionInfo() {
|
||||||
|
bitField0_ &= ~0x00000004;
|
||||||
|
resultOptionInfo.clear();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .RogueCommonDialogueOptionInfo result_option_info = 2;</code>
|
||||||
|
*
|
||||||
|
* This method returns 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;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .RogueCommonDialogueOptionInfo result_option_info = 2;</code>
|
||||||
|
*
|
||||||
|
* This method returns the internal storage object and sets the corresponding
|
||||||
|
* has state. The returned object will become part of 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;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .RogueCommonDialogueOptionInfo result_option_info = 2;</code>
|
||||||
|
* @param value the resultOptionInfo to set
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public SyncRogueCommonDialogueOptionFinishScNotify setResultOptionInfo(
|
||||||
|
final RogueCommonDialogueOptionInfoOuterClass.RogueCommonDialogueOptionInfo value) {
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
resultOptionInfo.copyFrom(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .RogueCommonDialogueDataInfo dialogue_data = 12;</code>
|
||||||
|
* @return whether the dialogueData field is set
|
||||||
|
*/
|
||||||
|
public boolean hasDialogueData() {
|
||||||
|
return (bitField0_ & 0x00000008) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .RogueCommonDialogueDataInfo dialogue_data = 12;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public SyncRogueCommonDialogueOptionFinishScNotify clearDialogueData() {
|
||||||
|
bitField0_ &= ~0x00000008;
|
||||||
|
dialogueData.clear();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .RogueCommonDialogueDataInfo dialogue_data = 12;</code>
|
||||||
|
*
|
||||||
|
* This method returns 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;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .RogueCommonDialogueDataInfo dialogue_data = 12;</code>
|
||||||
|
*
|
||||||
|
* This method returns the internal storage object and sets the corresponding
|
||||||
|
* has state. The returned object will become part of 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;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional .RogueCommonDialogueDataInfo dialogue_data = 12;</code>
|
||||||
|
* @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<SyncRogueCommonDialogueOptionFinishScNotify> getFactory() {
|
||||||
|
return SyncRogueCommonDialogueOptionFinishScNotifyFactory.INSTANCE;
|
||||||
|
}
|
||||||
|
|
||||||
|
private enum SyncRogueCommonDialogueOptionFinishScNotifyFactory implements MessageFactory<SyncRogueCommonDialogueOptionFinishScNotify> {
|
||||||
|
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");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -55,6 +55,7 @@ public class GameData {
|
|||||||
@Getter private static Int2ObjectMap<RogueRoomExcel> rogueRoomExcelMap = new Int2ObjectOpenHashMap<>();
|
@Getter private static Int2ObjectMap<RogueRoomExcel> rogueRoomExcelMap = new Int2ObjectOpenHashMap<>();
|
||||||
@Getter private static Int2ObjectMap<RogueMapExcel> rogueMapExcelMap = new Int2ObjectOpenHashMap<>();
|
@Getter private static Int2ObjectMap<RogueMapExcel> rogueMapExcelMap = new Int2ObjectOpenHashMap<>();
|
||||||
@Getter private static Int2ObjectMap<RogueMonsterExcel> rogueMonsterExcelMap = new Int2ObjectOpenHashMap<>();
|
@Getter private static Int2ObjectMap<RogueMonsterExcel> rogueMonsterExcelMap = new Int2ObjectOpenHashMap<>();
|
||||||
|
@Getter private static Int2ObjectMap<RogueNPCExcel> rogueNPCExcelMap = new Int2ObjectOpenHashMap<>();
|
||||||
@Getter private static Int2ObjectMap<DialogueEventExcel> rogueDialogueEventList = new Int2ObjectOpenHashMap<>();
|
@Getter private static Int2ObjectMap<DialogueEventExcel> rogueDialogueEventList = new Int2ObjectOpenHashMap<>();
|
||||||
@Getter private static Int2ObjectMap<RogueBuffGroupExcel> rogueBuffGroupExcelMap = new Int2ObjectOpenHashMap<>();
|
@Getter private static Int2ObjectMap<RogueBuffGroupExcel> rogueBuffGroupExcelMap = new Int2ObjectOpenHashMap<>();
|
||||||
@Getter private static Int2ObjectMap<RogueBuffExcel> rogueBuffTagExcelMap = new Int2ObjectOpenHashMap<>();
|
@Getter private static Int2ObjectMap<RogueBuffExcel> rogueBuffTagExcelMap = new Int2ObjectOpenHashMap<>();
|
||||||
|
|||||||
@@ -35,7 +35,6 @@ public class GameDepot {
|
|||||||
@Getter private static List<RogueBuffExcel> rogueRandomBuffList = new ArrayList<>();
|
@Getter private static List<RogueBuffExcel> rogueRandomBuffList = new ArrayList<>();
|
||||||
@Getter private static List<RogueBonusExcel> rogueRandomCommonBonusList = new ArrayList<>();
|
@Getter private static List<RogueBonusExcel> rogueRandomCommonBonusList = new ArrayList<>();
|
||||||
@Getter private static List<RogueMiracleExcel> rogueRandomMiracleList = new ArrayList<>();
|
@Getter private static List<RogueMiracleExcel> rogueRandomMiracleList = new ArrayList<>();
|
||||||
@Getter private static List<RogueNPCExcel> rogueRandomNpcList = new ArrayList<>();
|
|
||||||
private static Int2ObjectMap<List<RogueMapExcel>> rogueMapDepot = new Int2ObjectOpenHashMap<>();
|
private static Int2ObjectMap<List<RogueMapExcel>> rogueMapDepot = new Int2ObjectOpenHashMap<>();
|
||||||
|
|
||||||
public static void addRelicMainAffix(RelicMainAffixExcel affix) {
|
public static void addRelicMainAffix(RelicMainAffixExcel affix) {
|
||||||
|
|||||||
@@ -9,6 +9,9 @@ import java.util.stream.Stream;
|
|||||||
|
|
||||||
import emu.lunarcore.data.config.*;
|
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 org.reflections.Reflections;
|
||||||
|
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
@@ -354,18 +357,35 @@ public class ResourceLoader {
|
|||||||
// Loaded configs count
|
// Loaded configs count
|
||||||
int count = 0;
|
int count = 0;
|
||||||
// Load dialogue event configs
|
// Load dialogue event configs
|
||||||
for (var dialogueEventExcel : GameData.getRogueDialogueEventList().values()) {
|
for (var npcEventExcel : GameData.getRogueNPCExcelMap().values()) {
|
||||||
|
|
||||||
// Get file
|
// 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()) {
|
if (!file.exists()) {
|
||||||
file = new File(LunarCore.getConfig().getResourceDir() + "/" + dialogueEventExcel.getSecondPath());
|
continue;
|
||||||
if (!file.exists()) continue;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
try (FileReader reader = new FileReader(file)) {
|
try (FileReader reader = new FileReader(file)) {
|
||||||
RogueDialogueEventInfo info = gson.fromJson(reader, RogueDialogueEventInfo.class);
|
RogueNPCConfigInfo info = gson.fromJson(reader, RogueNPCConfigInfo.class);
|
||||||
dialogueEventExcel.setInfo(info);
|
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++;
|
count++;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@@ -374,7 +394,7 @@ public class ResourceLoader {
|
|||||||
|
|
||||||
// Notify the server owner if we are missing any files
|
// Notify the server owner if we are missing any files
|
||||||
if (count < GameData.getRogueDialogueEventList().size()) {
|
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
|
// Done
|
||||||
LunarCore.getLogger().info("Loaded " + count + " rogue events.");
|
LunarCore.getLogger().info("Loaded " + count + " rogue events.");
|
||||||
|
|||||||
@@ -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<RogueDialogueEvent> OnInitSequece = new ArrayList<>();
|
|
||||||
private List<RogueDialogueEvent> OnStartSequece = new ArrayList<>();
|
|
||||||
|
|
||||||
@Getter
|
|
||||||
public static class RogueDialogueEvent {
|
|
||||||
private List<TaskListInfo> TaskList = new ArrayList<>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Getter
|
|
||||||
public static class TaskListInfo {
|
|
||||||
@SerializedName("$type") public String Type = "";
|
|
||||||
private List<OptionListInfo> 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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -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;
|
||||||
|
}
|
||||||
@@ -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<RogueDialogueEventOptionConfigInfo> OptionList = new ArrayList<>();
|
||||||
|
}
|
||||||
@@ -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<Integer, RogueDialogueEventOptionDynamicConfigInfo> DynamicMap = new Int2ObjectOpenHashMap<RogueDialogueEventOptionDynamicConfigInfo>();
|
||||||
|
public int DescValue;
|
||||||
|
public int DescValue2;
|
||||||
|
public int DescValue3;
|
||||||
|
public int DescValue4;
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
package emu.lunarcore.data.config.rogue;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Original Name: RogueDialogueEventOptionDynamicConfig
|
||||||
|
*/
|
||||||
|
public class RogueDialogueEventOptionDynamicConfigInfo {
|
||||||
|
public int DisplayID;
|
||||||
|
public int DisplayID2;
|
||||||
|
}
|
||||||
@@ -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<RogueNPCDialogueConfigInfo> DialogueList = new ArrayList<>();
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
package emu.lunarcore.data.config.rogue;
|
||||||
|
|
||||||
|
public class RogueNPCDialogueConfigInfo extends RogueDialogueBaseConfigInfo {
|
||||||
|
public int DialogueProgress;
|
||||||
|
public int UnlockID;
|
||||||
|
public int TalkNameID;
|
||||||
|
}
|
||||||
@@ -3,13 +3,11 @@ package emu.lunarcore.data.excel;
|
|||||||
import emu.lunarcore.data.GameData;
|
import emu.lunarcore.data.GameData;
|
||||||
import emu.lunarcore.data.GameResource;
|
import emu.lunarcore.data.GameResource;
|
||||||
import emu.lunarcore.data.ResourceType;
|
import emu.lunarcore.data.ResourceType;
|
||||||
import emu.lunarcore.data.config.RogueDialogueEventInfo;
|
|
||||||
import emu.lunarcore.game.enums.DialogueEventCostType;
|
import emu.lunarcore.game.enums.DialogueEventCostType;
|
||||||
import emu.lunarcore.game.enums.DialogueEventType;
|
import emu.lunarcore.game.enums.DialogueEventType;
|
||||||
import emu.lunarcore.game.rogue.RogueBuffType;
|
import emu.lunarcore.game.rogue.RogueBuffType;
|
||||||
import it.unimi.dsi.fastutil.ints.IntArrayList;
|
import it.unimi.dsi.fastutil.ints.IntArrayList;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.Setter;
|
|
||||||
|
|
||||||
@Getter
|
@Getter
|
||||||
@ResourceType(name = {"DialogueEvent.json"})
|
@ResourceType(name = {"DialogueEvent.json"})
|
||||||
@@ -22,8 +20,6 @@ public class DialogueEventExcel extends GameResource {
|
|||||||
public IntArrayList ConditionIDList;
|
public IntArrayList ConditionIDList;
|
||||||
public RogueBuffType AeonOption;
|
public RogueBuffType AeonOption;
|
||||||
|
|
||||||
@Setter private RogueDialogueEventInfo info;
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getId() {
|
public int getId() {
|
||||||
return EventID;
|
return EventID;
|
||||||
@@ -33,12 +29,4 @@ public class DialogueEventExcel extends GameResource {
|
|||||||
public void onLoad() {
|
public void onLoad() {
|
||||||
GameData.getRogueDialogueEventList().put(EventID, this);
|
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";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,25 +1,27 @@
|
|||||||
package emu.lunarcore.data.excel;
|
package emu.lunarcore.data.excel;
|
||||||
|
|
||||||
|
import emu.lunarcore.data.GameData;
|
||||||
import emu.lunarcore.data.GameDepot;
|
import emu.lunarcore.data.GameDepot;
|
||||||
import emu.lunarcore.data.GameResource;
|
import emu.lunarcore.data.GameResource;
|
||||||
import emu.lunarcore.data.ResourceType;
|
import emu.lunarcore.data.ResourceType;
|
||||||
|
import emu.lunarcore.data.config.rogue.RogueNPCConfigInfo;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
|
||||||
|
import javax.annotation.Nullable;
|
||||||
|
|
||||||
@Getter
|
@Getter
|
||||||
@ResourceType(name = {"RogueNPC.json"})
|
@ResourceType(name = {"RogueNPC.json"})
|
||||||
public class RogueNPCExcel extends GameResource {
|
public class RogueNPCExcel extends GameResource {
|
||||||
private int RogueNPCID;
|
public int RogueNPCID;
|
||||||
private int NPCID;
|
public String NPCJsonPath;
|
||||||
|
|
||||||
|
@Setter
|
||||||
|
@Nullable
|
||||||
|
public RogueNPCConfigInfo RogueNpcConfig;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getId() {
|
public int getId() {
|
||||||
return RogueNPCID;
|
return RogueNPCID;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onLoad() {
|
|
||||||
if (NPCID == 3013 && RogueNPCID >= 10000 && RogueNPCID <= 19999) {
|
|
||||||
GameDepot.getRogueRandomNpcList().add(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
package emu.lunarcore.game.enums;
|
||||||
|
|
||||||
|
public enum RogueDialogueType {
|
||||||
|
None,
|
||||||
|
Story,
|
||||||
|
Event,
|
||||||
|
Store
|
||||||
|
}
|
||||||
@@ -1,7 +1,6 @@
|
|||||||
package emu.lunarcore.game.rogue;
|
package emu.lunarcore.game.rogue;
|
||||||
|
|
||||||
import emu.lunarcore.data.GameData;
|
import emu.lunarcore.data.GameData;
|
||||||
import emu.lunarcore.data.GameDepot;
|
|
||||||
import emu.lunarcore.data.config.GroupInfo;
|
import emu.lunarcore.data.config.GroupInfo;
|
||||||
import emu.lunarcore.data.config.MonsterInfo;
|
import emu.lunarcore.data.config.MonsterInfo;
|
||||||
import emu.lunarcore.data.config.NpcInfo;
|
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.RogueMonsterExcel;
|
||||||
import emu.lunarcore.data.excel.RogueNPCExcel;
|
import emu.lunarcore.data.excel.RogueNPCExcel;
|
||||||
import emu.lunarcore.game.enums.PropState;
|
import emu.lunarcore.game.enums.PropState;
|
||||||
|
import emu.lunarcore.game.rogue.event.RogueEventInstance;
|
||||||
import emu.lunarcore.game.scene.Scene;
|
import emu.lunarcore.game.scene.Scene;
|
||||||
import emu.lunarcore.game.scene.SceneEntityLoader;
|
import emu.lunarcore.game.scene.SceneEntityLoader;
|
||||||
import emu.lunarcore.game.scene.entity.EntityMonster;
|
import emu.lunarcore.game.scene.entity.EntityMonster;
|
||||||
import emu.lunarcore.game.scene.entity.EntityNpc;
|
import emu.lunarcore.game.scene.entity.EntityNpc;
|
||||||
import emu.lunarcore.game.scene.entity.EntityProp;
|
import emu.lunarcore.game.scene.entity.EntityProp;
|
||||||
import emu.lunarcore.game.scene.entity.extra.PropRogueData;
|
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;
|
import emu.lunarcore.util.Utils;
|
||||||
|
|
||||||
public class RogueEntityLoader extends SceneEntityLoader {
|
public class RogueEntityLoader extends SceneEntityLoader {
|
||||||
@@ -140,17 +140,16 @@ public class RogueEntityLoader extends SceneEntityLoader {
|
|||||||
if (npc.getNpcId() == 3013) {
|
if (npc.getNpcId() == 3013) {
|
||||||
int npcId;
|
int npcId;
|
||||||
RogueInstance instance;
|
RogueInstance instance;
|
||||||
|
RogueEventInstance eventInstance;
|
||||||
do {
|
do {
|
||||||
RogueNPCExcel rogueNpcExcel = Utils.randomElement(GameDepot.getRogueRandomNpcList());
|
RogueNPCExcel rogueNpcExcel = Utils.randomElement(GameData.getRogueNPCExcelMap().values().stream().toList());
|
||||||
npcId = rogueNpcExcel.getId();
|
npcId = rogueNpcExcel.getId();
|
||||||
instance = scene.getPlayer().getRogueInstance();
|
instance = scene.getPlayer().getRogueInstance();
|
||||||
} while (instance.setDialogueParams(npcId) == null);
|
eventInstance = instance.generateEvent(npcId, npc);
|
||||||
|
} while (eventInstance == null);
|
||||||
|
|
||||||
instance.getEventManager().setNowPercentage(0);
|
npc.setEventInstance(eventInstance);
|
||||||
npc.setRogueNpcId(npcId);
|
scene.getPlayer().sendPacket(new PacketSyncRogueCommonDialogueDataScNotify(eventInstance));
|
||||||
npc.setEventId(++instance.eventUniqueId);
|
|
||||||
scene.getPlayer().sendPacket(new PacketSyncRogueDialogueEventDataScNotify(npcId, instance.curDialogueParams.get(npcId),
|
|
||||||
instance.eventUniqueId));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return npc;
|
return npc;
|
||||||
|
|||||||
@@ -3,7 +3,9 @@ package emu.lunarcore.game.rogue;
|
|||||||
import emu.lunarcore.LunarCore;
|
import emu.lunarcore.LunarCore;
|
||||||
import emu.lunarcore.data.GameData;
|
import emu.lunarcore.data.GameData;
|
||||||
import emu.lunarcore.game.player.Player;
|
import emu.lunarcore.game.player.Player;
|
||||||
|
import emu.lunarcore.game.rogue.event.RogueEventResultInfo;
|
||||||
import emu.lunarcore.proto.RogueDialogueEventParamOuterClass.RogueDialogueEventParam;
|
import emu.lunarcore.proto.RogueDialogueEventParamOuterClass.RogueDialogueEventParam;
|
||||||
|
import emu.lunarcore.server.packet.send.PacketSyncRogueCommonDialogueOptionFinishScNotify;
|
||||||
import emu.lunarcore.util.Utils;
|
import emu.lunarcore.util.Utils;
|
||||||
import emu.lunarcore.util.WeightedList;
|
import emu.lunarcore.util.WeightedList;
|
||||||
import it.unimi.dsi.fastutil.ints.IntArrayList;
|
import it.unimi.dsi.fastutil.ints.IntArrayList;
|
||||||
@@ -14,22 +16,32 @@ import lombok.Setter;
|
|||||||
public class RogueEventManager {
|
public class RogueEventManager {
|
||||||
private RogueInstance rogueInstance;
|
private RogueInstance rogueInstance;
|
||||||
private Player player;
|
private Player player;
|
||||||
@Setter private int nowPercentage = 0;
|
|
||||||
|
|
||||||
public RogueEventManager(RogueInstance rogueInstance) {
|
public RogueEventManager(RogueInstance rogueInstance) {
|
||||||
this.rogueInstance = rogueInstance;
|
this.rogueInstance = rogueInstance;
|
||||||
this.player = rogueInstance.getPlayer();
|
this.player = rogueInstance.getPlayer();
|
||||||
}
|
}
|
||||||
|
|
||||||
public int handleEvent(int eventId, int npcId) {
|
public int handleEvent(int optionId, int eventUniqueId) {
|
||||||
var event = GameData.getRogueDialogueEventList().get(eventId);
|
var event = GameData.getRogueDialogueEventList().get(optionId);
|
||||||
if (event == null || event.getRogueEffectType() == null) return 0;
|
if (event == null || event.getRogueEffectType() == null) return 0;
|
||||||
IntArrayList param = event.getRogueEffectParamList();
|
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()) {
|
switch (event.getRogueEffectType()) {
|
||||||
case GetItem -> rogueInstance.addDialogueCoin(param.getInt(1));
|
case GetItem -> rogueInstance.addDialogueCoin(param.getInt(1));
|
||||||
case TriggerBattle -> {
|
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 TriggerRogueMiracleSelect -> this.getRogueInstance().createMiracleSelect(1);
|
||||||
case TriggerRogueBuffSelect -> {
|
case TriggerRogueBuffSelect -> {
|
||||||
@@ -59,10 +71,8 @@ public class RogueEventManager {
|
|||||||
}
|
}
|
||||||
case TriggerDialogueEventList -> {
|
case TriggerDialogueEventList -> {
|
||||||
for (var id : param) {
|
for (var id : param) {
|
||||||
this.handleEvent(id, npcId);
|
this.handleEvent(id, eventUniqueId);
|
||||||
this.getRogueInstance().getCurDialogueParams().get(npcId).add(RogueDialogueEventParam.newInstance()
|
this.getRogueInstance().getRunningEvents().get(eventUniqueId).EffectEventId.add(id);
|
||||||
.setDialogueEventId(id)
|
|
||||||
.setIsValid(true));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
case TriggerRandomEventList -> {
|
case TriggerRandomEventList -> {
|
||||||
@@ -77,8 +87,8 @@ public class RogueEventManager {
|
|||||||
nextEventId = 0;
|
nextEventId = 0;
|
||||||
}
|
}
|
||||||
int randomEventId = weightList.next();
|
int randomEventId = weightList.next();
|
||||||
handleCost(eventId);
|
handleCost(optionId);
|
||||||
this.handleEvent(randomEventId, npcId);
|
this.handleEvent(randomEventId, eventUniqueId);
|
||||||
return randomEventId;
|
return randomEventId;
|
||||||
}
|
}
|
||||||
case GetAllRogueBuffInGroupAndGetItem -> {
|
case GetAllRogueBuffInGroupAndGetItem -> {
|
||||||
@@ -90,29 +100,27 @@ public class RogueEventManager {
|
|||||||
var failEventId = param.getInt(0);
|
var failEventId = param.getInt(0);
|
||||||
var initialPercent = param.getInt(1);
|
var initialPercent = param.getInt(1);
|
||||||
var increasePercent = param.getInt(2);
|
var increasePercent = param.getInt(2);
|
||||||
if (this.nowPercentage != 0)
|
var option = this.getRogueInstance().getRunningEvents().get(eventUniqueId).Options.stream().filter(x -> x.OptionId == optionId).findFirst();
|
||||||
this.nowPercentage = initialPercent;
|
if (option.isEmpty()) return 0;
|
||||||
|
var nowPercentage = option.get().Ratio;
|
||||||
|
if (nowPercentage != 0)
|
||||||
|
nowPercentage = initialPercent;
|
||||||
var weightList = new WeightedList<Integer>();
|
var weightList = new WeightedList<Integer>();
|
||||||
for (int i = 3; i < param.size(); i += 2) {
|
for (int i = 3; i < param.size(); i += 2) {
|
||||||
weightList.add(param.getInt(i + 1), param.getInt(i));
|
weightList.add(param.getInt(i + 1), param.getInt(i));
|
||||||
}
|
}
|
||||||
int randomNum = Utils.randomRange(0, 100);
|
int randomNum = Utils.randomRange(0, 10000);
|
||||||
if (randomNum <= this.nowPercentage) {
|
handleCost(optionId);
|
||||||
handleCost(eventId);
|
if (randomNum <= nowPercentage * 10000) {
|
||||||
//this.handleEvent(failEventId, npcId);
|
this.handleEvent(failEventId, eventUniqueId);
|
||||||
this.getRogueInstance().getCurDialogueParams().get(npcId).add(RogueDialogueEventParam.newInstance()
|
this.getRogueInstance().getRunningEvents().get(eventUniqueId).EffectEventId.add(failEventId);
|
||||||
.setDialogueEventId(failEventId)
|
|
||||||
.setIsValid(true));
|
|
||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
this.nowPercentage += increasePercent;
|
|
||||||
handleCost(eventId);
|
|
||||||
int nextEventId = weightList.next();
|
int nextEventId = weightList.next();
|
||||||
this.handleEvent(nextEventId, npcId);
|
// add percentage
|
||||||
this.getRogueInstance().getCurDialogueParams().get(npcId).add(RogueDialogueEventParam.newInstance()
|
option.get().Ratio += increasePercent / 100f;
|
||||||
.setDialogueEventId(nextEventId)
|
this.handleEvent(nextEventId, eventUniqueId);
|
||||||
.setIsValid(true)
|
this.getRogueInstance().getRunningEvents().get(eventUniqueId).EffectEventId.add(nextEventId);
|
||||||
.setRatio(this.nowPercentage)); // not working
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -140,7 +148,12 @@ public class RogueEventManager {
|
|||||||
LunarCore.getLogger().info("RogueEventManager: unhandled event type: " + event.getRogueEffectType()); // DEBUG
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -8,8 +8,11 @@ import emu.lunarcore.data.config.AnchorInfo;
|
|||||||
import emu.lunarcore.data.excel.*;
|
import emu.lunarcore.data.excel.*;
|
||||||
import emu.lunarcore.game.battle.Battle;
|
import emu.lunarcore.game.battle.Battle;
|
||||||
import emu.lunarcore.game.enums.RogueBuffAeonType;
|
import emu.lunarcore.game.enums.RogueBuffAeonType;
|
||||||
|
import emu.lunarcore.game.enums.RogueDialogueType;
|
||||||
import emu.lunarcore.game.player.Player;
|
import emu.lunarcore.game.player.Player;
|
||||||
import emu.lunarcore.game.player.lineup.PlayerLineup;
|
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.AvatarTypeOuterClass.AvatarType;
|
||||||
import emu.lunarcore.proto.BattleEndStatusOuterClass.BattleEndStatus;
|
import emu.lunarcore.proto.BattleEndStatusOuterClass.BattleEndStatus;
|
||||||
import emu.lunarcore.proto.BattleStatisticsOuterClass.BattleStatistics;
|
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.RogueBuffSourceOuterClass.RogueBuffSource;
|
||||||
import emu.lunarcore.proto.RogueCommonPendingActionOuterClass.RogueCommonPendingAction;
|
import emu.lunarcore.proto.RogueCommonPendingActionOuterClass.RogueCommonPendingAction;
|
||||||
import emu.lunarcore.proto.RogueCurrentInfoOuterClass.RogueCurrentInfo;
|
import emu.lunarcore.proto.RogueCurrentInfoOuterClass.RogueCurrentInfo;
|
||||||
import emu.lunarcore.proto.RogueDialogueEventParamOuterClass.RogueDialogueEventParam;
|
|
||||||
import emu.lunarcore.proto.RogueFinishInfoOuterClass.RogueFinishInfo;
|
import emu.lunarcore.proto.RogueFinishInfoOuterClass.RogueFinishInfo;
|
||||||
import emu.lunarcore.proto.RogueMapInfoOuterClass.RogueMapInfo;
|
import emu.lunarcore.proto.RogueMapInfoOuterClass.RogueMapInfo;
|
||||||
import emu.lunarcore.proto.RogueMiracleInfoOuterClass.RogueMiracleInfo;
|
import emu.lunarcore.proto.RogueMiracleInfoOuterClass.RogueMiracleInfo;
|
||||||
@@ -70,7 +72,7 @@ public class RogueInstance {
|
|||||||
private int coin; // universal debris
|
private int coin; // universal debris
|
||||||
public int actionUniqueId = 0;
|
public int actionUniqueId = 0;
|
||||||
public int eventUniqueId = 690;
|
public int eventUniqueId = 690;
|
||||||
public Int2ObjectMap<List<RogueDialogueEventParam>> curDialogueParams = new Int2ObjectOpenHashMap<>();
|
public Int2ObjectMap<RogueEventInstance> runningEvents = new Int2ObjectOpenHashMap<>();
|
||||||
private final Set<RogueBuffData> normalBuff = GameData.getRogueBuffGroupExcelMap().get(100005).getRogueBuffList();
|
private final Set<RogueBuffData> normalBuff = GameData.getRogueBuffGroupExcelMap().get(100005).getRogueBuffList();
|
||||||
private final Set<RogueBuffData> uncommonBuff = GameData.getRogueBuffGroupExcelMap().get(100003).getRogueBuffList();
|
private final Set<RogueBuffData> uncommonBuff = GameData.getRogueBuffGroupExcelMap().get(100003).getRogueBuffList();
|
||||||
|
|
||||||
@@ -442,57 +444,22 @@ public class RogueInstance {
|
|||||||
this.getPlayer().sendPacket(new PacketPickRogueAvatarScRsp(newAvatarIds));
|
this.getPlayer().sendPacket(new PacketPickRogueAvatarScRsp(newAvatarIds));
|
||||||
}
|
}
|
||||||
|
|
||||||
public synchronized List<RogueDialogueEventParam> setDialogueParams(int npcId) {
|
public synchronized RogueEventInstance generateEvent(int npcId, EntityNpc npcEntity) {
|
||||||
try {
|
try {
|
||||||
this.curDialogueParams.clear();
|
this.runningEvents.clear();
|
||||||
|
|
||||||
DialogueEventExcel event = GameData.getRogueDialogueEventList().get(npcId);
|
RogueNPCExcel npc = GameData.getRogueNPCExcelMap().get(npcId);
|
||||||
var sequence = event.getInfo().getOnStartSequece();
|
|
||||||
|
|
||||||
ArrayList<RogueDialogueEventParam> params = new ArrayList<>();
|
if (npc == null || npc.getRogueNpcConfig() == null ||
|
||||||
Int2ObjectMap<String> map = new Int2ObjectOpenHashMap<>();
|
npc.getRogueNpcConfig().DialogueType != RogueDialogueType.Event) { // make sure the npc is an event npc
|
||||||
Map<String, String> argMap = new HashMap<>();
|
return null;
|
||||||
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")) {
|
var instance = new RogueEventInstance(npc, npcEntity, this.eventUniqueId++);
|
||||||
tempName = talk.getCustomString().getValue();
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!Objects.equals(tempName, "") && talk.Type.equals("RPG.GameCore.TriggerCustomString")) {
|
this.getRunningEvents().put(instance.EventUniqueId, instance);
|
||||||
argMap.put(tempName, talk.getCustomString().getValue());
|
|
||||||
tempName = "";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
map.forEach((k, v) -> {
|
return instance;
|
||||||
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;
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@@ -557,8 +524,14 @@ public class RogueInstance {
|
|||||||
|
|
||||||
// Dialogue stuff
|
// Dialogue stuff
|
||||||
|
|
||||||
public int onSelectDialogue(int dialogueEventId, int npcId) {
|
public int onSelectDialogue(int dialogueEventId, int eventUniqueId) {
|
||||||
return this.eventManager.handleEvent(dialogueEventId, npcId);
|
var instance = this.getRunningEvents().get(eventUniqueId);
|
||||||
|
if (instance == null) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
instance.SelectedOptionId = 0; // reset selected option
|
||||||
|
return this.eventManager.handleEvent(dialogueEventId, eventUniqueId);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Battle
|
// Battle
|
||||||
|
|||||||
@@ -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<RogueEventParam> Options = new ArrayList<>();
|
||||||
|
public int EventUniqueId;
|
||||||
|
public int SelectedOptionId = 0;
|
||||||
|
public List<Integer> 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));
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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<RogueEventResultInfo> 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);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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));
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -2,6 +2,7 @@ package emu.lunarcore.game.scene.entity;
|
|||||||
|
|
||||||
import emu.lunarcore.data.config.GroupInfo;
|
import emu.lunarcore.data.config.GroupInfo;
|
||||||
import emu.lunarcore.data.config.NpcInfo;
|
import emu.lunarcore.data.config.NpcInfo;
|
||||||
|
import emu.lunarcore.game.rogue.event.RogueEventInstance;
|
||||||
import emu.lunarcore.game.scene.Scene;
|
import emu.lunarcore.game.scene.Scene;
|
||||||
import emu.lunarcore.proto.MotionInfoOuterClass.MotionInfo;
|
import emu.lunarcore.proto.MotionInfoOuterClass.MotionInfo;
|
||||||
import emu.lunarcore.proto.NpcRogueInfoOuterClass.NpcRogueInfo;
|
import emu.lunarcore.proto.NpcRogueInfoOuterClass.NpcRogueInfo;
|
||||||
@@ -22,9 +23,7 @@ public class EntityNpc implements GameEntity {
|
|||||||
private final Position pos;
|
private final Position pos;
|
||||||
private final Position rot;
|
private final Position rot;
|
||||||
|
|
||||||
@Setter private int rogueNpcId;
|
@Setter private RogueEventInstance eventInstance;
|
||||||
@Setter private boolean isDialogueFinished = false;
|
|
||||||
@Setter private int eventId = 0;
|
|
||||||
|
|
||||||
public EntityNpc(Scene scene, GroupInfo group, NpcInfo npcInfo) {
|
public EntityNpc(Scene scene, GroupInfo group, NpcInfo npcInfo) {
|
||||||
this.scene = scene;
|
this.scene = scene;
|
||||||
@@ -42,11 +41,14 @@ public class EntityNpc implements GameEntity {
|
|||||||
.setNpcId(this.getNpcId());
|
.setNpcId(this.getNpcId());
|
||||||
|
|
||||||
// Rogue data
|
// Rogue data
|
||||||
if (this.rogueNpcId > 0) {
|
if (this.eventInstance != null) {
|
||||||
var rogue = NpcRogueInfo.newInstance()
|
var rogue = NpcRogueInfo.newInstance()
|
||||||
.setRogueNpcId(this.rogueNpcId)
|
.setEventId(this.eventInstance.EventId)
|
||||||
.setFinishDialogue(isDialogueFinished)
|
.setFinishDialogue(this.eventInstance.Finished)
|
||||||
.setDialogueGroupId(eventId);
|
.setEventUniqueId(this.eventInstance.EventUniqueId);
|
||||||
|
|
||||||
|
for (var option: this.eventInstance.Options)
|
||||||
|
rogue.addDialogueEventParamList(option.toNpcProto());
|
||||||
|
|
||||||
npc.getMutableExtraInfo().setRogueInfo(rogue);
|
npc.getMutableExtraInfo().setRogueInfo(rogue);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -14,7 +14,7 @@ public class HandlerRogueNpcDisappearCsReq extends PacketHandler {
|
|||||||
public void handle(GameSession session, byte[] data) throws Exception {
|
public void handle(GameSession session, byte[] data) throws Exception {
|
||||||
var req = RogueNpcDisappearCsReq.parseFrom(data);
|
var req = RogueNpcDisappearCsReq.parseFrom(data);
|
||||||
|
|
||||||
GameEntity entity = session.getPlayer().getScene().getEntityById(req.getEntityId());
|
GameEntity entity = session.getPlayer().getScene().getEntityById(req.getDisappearNpcEntityId());
|
||||||
|
|
||||||
if (entity != null) {
|
if (entity != null) {
|
||||||
session.send(CmdId.RogueNpcDisappearScRsp);
|
session.send(CmdId.RogueNpcDisappearScRsp);
|
||||||
|
|||||||
@@ -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));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -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));
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -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);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -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);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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<RogueDialogueEventParam> params, int eventId) {
|
|
||||||
this(RogueDialogueEvent.newInstance()
|
|
||||||
.setGameModeType(5) // rogue explore
|
|
||||||
.setNpcId(rogueNpcId)
|
|
||||||
//.setEventUniqueId(eventId)
|
|
||||||
.addAllRogueDialogueEventParam(params.toArray(RogueDialogueEventParam[]::new)));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user