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