mirror of
https://github.com/Anime-Game-Servers/AGSLunarCore.git
synced 2024-11-26 22:00:35 +00:00
start minimal missions (still broken)
This commit is contained in:
parent
132747c1db
commit
adc4a35c67
@ -0,0 +1,490 @@
|
||||
// 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;
|
||||
import us.hebi.quickbuf.Utf8String;
|
||||
|
||||
public final class FinishTalkMissionCsReqOuterClass {
|
||||
/**
|
||||
* Protobuf type {@code FinishTalkMissionCsReq}
|
||||
*/
|
||||
public static final class FinishTalkMissionCsReq extends ProtoMessage<FinishTalkMissionCsReq> implements Cloneable {
|
||||
private static final long serialVersionUID = 0L;
|
||||
|
||||
/**
|
||||
* <code>optional uint32 sub_mission_id = 13;</code>
|
||||
*/
|
||||
private int subMissionId;
|
||||
|
||||
/**
|
||||
* <code>optional string talk_str = 8;</code>
|
||||
*/
|
||||
private final Utf8String talkStr = Utf8String.newEmptyInstance();
|
||||
|
||||
/**
|
||||
* <code>repeated .MissionCustomValueData custom_value_list = 3;</code>
|
||||
*/
|
||||
private final RepeatedMessage<MissionCustomValueDataOuterClass.MissionCustomValueData> customValueList = RepeatedMessage.newEmptyInstance(MissionCustomValueDataOuterClass.MissionCustomValueData.getFactory());
|
||||
|
||||
private FinishTalkMissionCsReq() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return a new empty instance of {@code FinishTalkMissionCsReq}
|
||||
*/
|
||||
public static FinishTalkMissionCsReq newInstance() {
|
||||
return new FinishTalkMissionCsReq();
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 sub_mission_id = 13;</code>
|
||||
* @return whether the subMissionId field is set
|
||||
*/
|
||||
public boolean hasSubMissionId() {
|
||||
return (bitField0_ & 0x00000001) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 sub_mission_id = 13;</code>
|
||||
* @return this
|
||||
*/
|
||||
public FinishTalkMissionCsReq clearSubMissionId() {
|
||||
bitField0_ &= ~0x00000001;
|
||||
subMissionId = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 sub_mission_id = 13;</code>
|
||||
* @return the subMissionId
|
||||
*/
|
||||
public int getSubMissionId() {
|
||||
return subMissionId;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 sub_mission_id = 13;</code>
|
||||
* @param value the subMissionId to set
|
||||
* @return this
|
||||
*/
|
||||
public FinishTalkMissionCsReq setSubMissionId(final int value) {
|
||||
bitField0_ |= 0x00000001;
|
||||
subMissionId = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional string talk_str = 8;</code>
|
||||
* @return whether the talkStr field is set
|
||||
*/
|
||||
public boolean hasTalkStr() {
|
||||
return (bitField0_ & 0x00000002) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional string talk_str = 8;</code>
|
||||
* @return this
|
||||
*/
|
||||
public FinishTalkMissionCsReq clearTalkStr() {
|
||||
bitField0_ &= ~0x00000002;
|
||||
talkStr.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional string talk_str = 8;</code>
|
||||
* @return the talkStr
|
||||
*/
|
||||
public String getTalkStr() {
|
||||
return talkStr.getString();
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional string talk_str = 8;</code>
|
||||
* @return internal {@code Utf8String} representation of talkStr for reading
|
||||
*/
|
||||
public Utf8String getTalkStrBytes() {
|
||||
return this.talkStr;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional string talk_str = 8;</code>
|
||||
* @return internal {@code Utf8String} representation of talkStr for modifications
|
||||
*/
|
||||
public Utf8String getMutableTalkStrBytes() {
|
||||
bitField0_ |= 0x00000002;
|
||||
return this.talkStr;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional string talk_str = 8;</code>
|
||||
* @param value the talkStr to set
|
||||
* @return this
|
||||
*/
|
||||
public FinishTalkMissionCsReq setTalkStr(final CharSequence value) {
|
||||
bitField0_ |= 0x00000002;
|
||||
talkStr.copyFrom(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional string talk_str = 8;</code>
|
||||
* @param value the talkStr to set
|
||||
* @return this
|
||||
*/
|
||||
public FinishTalkMissionCsReq setTalkStr(final Utf8String value) {
|
||||
bitField0_ |= 0x00000002;
|
||||
talkStr.copyFrom(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .MissionCustomValueData custom_value_list = 3;</code>
|
||||
* @return whether the customValueList field is set
|
||||
*/
|
||||
public boolean hasCustomValueList() {
|
||||
return (bitField0_ & 0x00000004) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .MissionCustomValueData custom_value_list = 3;</code>
|
||||
* @return this
|
||||
*/
|
||||
public FinishTalkMissionCsReq clearCustomValueList() {
|
||||
bitField0_ &= ~0x00000004;
|
||||
customValueList.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .MissionCustomValueData custom_value_list = 3;</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 #getMutableCustomValueList()} if you want to modify it.
|
||||
*
|
||||
* @return internal storage object for reading
|
||||
*/
|
||||
public RepeatedMessage<MissionCustomValueDataOuterClass.MissionCustomValueData> getCustomValueList(
|
||||
) {
|
||||
return customValueList;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .MissionCustomValueData custom_value_list = 3;</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<MissionCustomValueDataOuterClass.MissionCustomValueData> getMutableCustomValueList(
|
||||
) {
|
||||
bitField0_ |= 0x00000004;
|
||||
return customValueList;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .MissionCustomValueData custom_value_list = 3;</code>
|
||||
* @param value the customValueList to add
|
||||
* @return this
|
||||
*/
|
||||
public FinishTalkMissionCsReq addCustomValueList(
|
||||
final MissionCustomValueDataOuterClass.MissionCustomValueData value) {
|
||||
bitField0_ |= 0x00000004;
|
||||
customValueList.add(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .MissionCustomValueData custom_value_list = 3;</code>
|
||||
* @param values the customValueList to add
|
||||
* @return this
|
||||
*/
|
||||
public FinishTalkMissionCsReq addAllCustomValueList(
|
||||
final MissionCustomValueDataOuterClass.MissionCustomValueData... values) {
|
||||
bitField0_ |= 0x00000004;
|
||||
customValueList.addAll(values);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public FinishTalkMissionCsReq copyFrom(final FinishTalkMissionCsReq other) {
|
||||
cachedSize = other.cachedSize;
|
||||
if ((bitField0_ | other.bitField0_) != 0) {
|
||||
bitField0_ = other.bitField0_;
|
||||
subMissionId = other.subMissionId;
|
||||
talkStr.copyFrom(other.talkStr);
|
||||
customValueList.copyFrom(other.customValueList);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public FinishTalkMissionCsReq mergeFrom(final FinishTalkMissionCsReq other) {
|
||||
if (other.isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
if (other.hasSubMissionId()) {
|
||||
setSubMissionId(other.subMissionId);
|
||||
}
|
||||
if (other.hasTalkStr()) {
|
||||
getMutableTalkStrBytes().copyFrom(other.talkStr);
|
||||
}
|
||||
if (other.hasCustomValueList()) {
|
||||
getMutableCustomValueList().addAll(other.customValueList);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public FinishTalkMissionCsReq clear() {
|
||||
if (isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
bitField0_ = 0;
|
||||
subMissionId = 0;
|
||||
talkStr.clear();
|
||||
customValueList.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public FinishTalkMissionCsReq clearQuick() {
|
||||
if (isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
bitField0_ = 0;
|
||||
talkStr.clear();
|
||||
customValueList.clearQuick();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(o instanceof FinishTalkMissionCsReq)) {
|
||||
return false;
|
||||
}
|
||||
FinishTalkMissionCsReq other = (FinishTalkMissionCsReq) o;
|
||||
return bitField0_ == other.bitField0_
|
||||
&& (!hasSubMissionId() || subMissionId == other.subMissionId)
|
||||
&& (!hasTalkStr() || talkStr.equals(other.talkStr))
|
||||
&& (!hasCustomValueList() || customValueList.equals(other.customValueList));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeTo(final ProtoSink output) throws IOException {
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
output.writeRawByte((byte) 104);
|
||||
output.writeUInt32NoTag(subMissionId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
output.writeRawByte((byte) 66);
|
||||
output.writeStringNoTag(talkStr);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
for (int i = 0; i < customValueList.length(); i++) {
|
||||
output.writeRawByte((byte) 26);
|
||||
output.writeMessageNoTag(customValueList.get(i));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int computeSerializedSize() {
|
||||
int size = 0;
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
size += 1 + ProtoSink.computeUInt32SizeNoTag(subMissionId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
size += 1 + ProtoSink.computeStringSizeNoTag(talkStr);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
size += (1 * customValueList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(customValueList);
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("fallthrough")
|
||||
public FinishTalkMissionCsReq mergeFrom(final ProtoSource input) throws IOException {
|
||||
// Enabled Fall-Through Optimization (QuickBuffers)
|
||||
int tag = input.readTag();
|
||||
while (true) {
|
||||
switch (tag) {
|
||||
case 104: {
|
||||
// subMissionId
|
||||
subMissionId = input.readUInt32();
|
||||
bitField0_ |= 0x00000001;
|
||||
tag = input.readTag();
|
||||
if (tag != 66) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 66: {
|
||||
// talkStr
|
||||
input.readString(talkStr);
|
||||
bitField0_ |= 0x00000002;
|
||||
tag = input.readTag();
|
||||
if (tag != 26) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 26: {
|
||||
// customValueList
|
||||
tag = input.readRepeatedMessage(customValueList, tag);
|
||||
bitField0_ |= 0x00000004;
|
||||
if (tag != 0) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 0: {
|
||||
return this;
|
||||
}
|
||||
default: {
|
||||
if (!input.skipField(tag)) {
|
||||
return this;
|
||||
}
|
||||
tag = input.readTag();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeTo(final JsonSink output) throws IOException {
|
||||
output.beginObject();
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
output.writeUInt32(FieldNames.subMissionId, subMissionId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
output.writeString(FieldNames.talkStr, talkStr);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
output.writeRepeatedMessage(FieldNames.customValueList, customValueList);
|
||||
}
|
||||
output.endObject();
|
||||
}
|
||||
|
||||
@Override
|
||||
public FinishTalkMissionCsReq mergeFrom(final JsonSource input) throws IOException {
|
||||
if (!input.beginObject()) {
|
||||
return this;
|
||||
}
|
||||
while (!input.isAtEnd()) {
|
||||
switch (input.readFieldHash()) {
|
||||
case -955858585:
|
||||
case -1513479155: {
|
||||
if (input.isAtField(FieldNames.subMissionId)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
subMissionId = input.readUInt32();
|
||||
bitField0_ |= 0x00000001;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case -1543716379:
|
||||
case -610210786: {
|
||||
if (input.isAtField(FieldNames.talkStr)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
input.readString(talkStr);
|
||||
bitField0_ |= 0x00000002;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 2009823550:
|
||||
case 1803812922: {
|
||||
if (input.isAtField(FieldNames.customValueList)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
input.readRepeatedMessage(customValueList);
|
||||
bitField0_ |= 0x00000004;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
input.skipUnknownField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
input.endObject();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public FinishTalkMissionCsReq clone() {
|
||||
return new FinishTalkMissionCsReq().copyFrom(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return ((bitField0_) == 0);
|
||||
}
|
||||
|
||||
public static FinishTalkMissionCsReq parseFrom(final byte[] data) throws
|
||||
InvalidProtocolBufferException {
|
||||
return ProtoMessage.mergeFrom(new FinishTalkMissionCsReq(), data).checkInitialized();
|
||||
}
|
||||
|
||||
public static FinishTalkMissionCsReq parseFrom(final ProtoSource input) throws IOException {
|
||||
return ProtoMessage.mergeFrom(new FinishTalkMissionCsReq(), input).checkInitialized();
|
||||
}
|
||||
|
||||
public static FinishTalkMissionCsReq parseFrom(final JsonSource input) throws IOException {
|
||||
return ProtoMessage.mergeFrom(new FinishTalkMissionCsReq(), input).checkInitialized();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return factory for creating FinishTalkMissionCsReq messages
|
||||
*/
|
||||
public static MessageFactory<FinishTalkMissionCsReq> getFactory() {
|
||||
return FinishTalkMissionCsReqFactory.INSTANCE;
|
||||
}
|
||||
|
||||
private enum FinishTalkMissionCsReqFactory implements MessageFactory<FinishTalkMissionCsReq> {
|
||||
INSTANCE;
|
||||
|
||||
@Override
|
||||
public FinishTalkMissionCsReq create() {
|
||||
return FinishTalkMissionCsReq.newInstance();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Contains name constants used for serializing JSON
|
||||
*/
|
||||
static class FieldNames {
|
||||
static final FieldName subMissionId = FieldName.forField("subMissionId", "sub_mission_id");
|
||||
|
||||
static final FieldName talkStr = FieldName.forField("talkStr", "talk_str");
|
||||
|
||||
static final FieldName customValueList = FieldName.forField("customValueList", "custom_value_list");
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,570 @@
|
||||
// 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;
|
||||
import us.hebi.quickbuf.Utf8String;
|
||||
|
||||
public final class FinishTalkMissionScRspOuterClass {
|
||||
/**
|
||||
* Protobuf type {@code FinishTalkMissionScRsp}
|
||||
*/
|
||||
public static final class FinishTalkMissionScRsp extends ProtoMessage<FinishTalkMissionScRsp> implements Cloneable {
|
||||
private static final long serialVersionUID = 0L;
|
||||
|
||||
/**
|
||||
* <code>optional uint32 retcode = 2;</code>
|
||||
*/
|
||||
private int retcode;
|
||||
|
||||
/**
|
||||
* <code>optional uint32 sub_mission_id = 4;</code>
|
||||
*/
|
||||
private int subMissionId;
|
||||
|
||||
/**
|
||||
* <code>optional string talk_str = 12;</code>
|
||||
*/
|
||||
private final Utf8String talkStr = Utf8String.newEmptyInstance();
|
||||
|
||||
/**
|
||||
* <code>repeated .MissionCustomValueData custom_value_list = 3;</code>
|
||||
*/
|
||||
private final RepeatedMessage<MissionCustomValueDataOuterClass.MissionCustomValueData> customValueList = RepeatedMessage.newEmptyInstance(MissionCustomValueDataOuterClass.MissionCustomValueData.getFactory());
|
||||
|
||||
private FinishTalkMissionScRsp() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return a new empty instance of {@code FinishTalkMissionScRsp}
|
||||
*/
|
||||
public static FinishTalkMissionScRsp newInstance() {
|
||||
return new FinishTalkMissionScRsp();
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 retcode = 2;</code>
|
||||
* @return whether the retcode field is set
|
||||
*/
|
||||
public boolean hasRetcode() {
|
||||
return (bitField0_ & 0x00000001) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 retcode = 2;</code>
|
||||
* @return this
|
||||
*/
|
||||
public FinishTalkMissionScRsp clearRetcode() {
|
||||
bitField0_ &= ~0x00000001;
|
||||
retcode = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 retcode = 2;</code>
|
||||
* @return the retcode
|
||||
*/
|
||||
public int getRetcode() {
|
||||
return retcode;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 retcode = 2;</code>
|
||||
* @param value the retcode to set
|
||||
* @return this
|
||||
*/
|
||||
public FinishTalkMissionScRsp setRetcode(final int value) {
|
||||
bitField0_ |= 0x00000001;
|
||||
retcode = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 sub_mission_id = 4;</code>
|
||||
* @return whether the subMissionId field is set
|
||||
*/
|
||||
public boolean hasSubMissionId() {
|
||||
return (bitField0_ & 0x00000002) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 sub_mission_id = 4;</code>
|
||||
* @return this
|
||||
*/
|
||||
public FinishTalkMissionScRsp clearSubMissionId() {
|
||||
bitField0_ &= ~0x00000002;
|
||||
subMissionId = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 sub_mission_id = 4;</code>
|
||||
* @return the subMissionId
|
||||
*/
|
||||
public int getSubMissionId() {
|
||||
return subMissionId;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 sub_mission_id = 4;</code>
|
||||
* @param value the subMissionId to set
|
||||
* @return this
|
||||
*/
|
||||
public FinishTalkMissionScRsp setSubMissionId(final int value) {
|
||||
bitField0_ |= 0x00000002;
|
||||
subMissionId = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional string talk_str = 12;</code>
|
||||
* @return whether the talkStr field is set
|
||||
*/
|
||||
public boolean hasTalkStr() {
|
||||
return (bitField0_ & 0x00000004) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional string talk_str = 12;</code>
|
||||
* @return this
|
||||
*/
|
||||
public FinishTalkMissionScRsp clearTalkStr() {
|
||||
bitField0_ &= ~0x00000004;
|
||||
talkStr.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional string talk_str = 12;</code>
|
||||
* @return the talkStr
|
||||
*/
|
||||
public String getTalkStr() {
|
||||
return talkStr.getString();
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional string talk_str = 12;</code>
|
||||
* @return internal {@code Utf8String} representation of talkStr for reading
|
||||
*/
|
||||
public Utf8String getTalkStrBytes() {
|
||||
return this.talkStr;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional string talk_str = 12;</code>
|
||||
* @return internal {@code Utf8String} representation of talkStr for modifications
|
||||
*/
|
||||
public Utf8String getMutableTalkStrBytes() {
|
||||
bitField0_ |= 0x00000004;
|
||||
return this.talkStr;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional string talk_str = 12;</code>
|
||||
* @param value the talkStr to set
|
||||
* @return this
|
||||
*/
|
||||
public FinishTalkMissionScRsp setTalkStr(final CharSequence value) {
|
||||
bitField0_ |= 0x00000004;
|
||||
talkStr.copyFrom(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional string talk_str = 12;</code>
|
||||
* @param value the talkStr to set
|
||||
* @return this
|
||||
*/
|
||||
public FinishTalkMissionScRsp setTalkStr(final Utf8String value) {
|
||||
bitField0_ |= 0x00000004;
|
||||
talkStr.copyFrom(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .MissionCustomValueData custom_value_list = 3;</code>
|
||||
* @return whether the customValueList field is set
|
||||
*/
|
||||
public boolean hasCustomValueList() {
|
||||
return (bitField0_ & 0x00000008) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .MissionCustomValueData custom_value_list = 3;</code>
|
||||
* @return this
|
||||
*/
|
||||
public FinishTalkMissionScRsp clearCustomValueList() {
|
||||
bitField0_ &= ~0x00000008;
|
||||
customValueList.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .MissionCustomValueData custom_value_list = 3;</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 #getMutableCustomValueList()} if you want to modify it.
|
||||
*
|
||||
* @return internal storage object for reading
|
||||
*/
|
||||
public RepeatedMessage<MissionCustomValueDataOuterClass.MissionCustomValueData> getCustomValueList(
|
||||
) {
|
||||
return customValueList;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .MissionCustomValueData custom_value_list = 3;</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<MissionCustomValueDataOuterClass.MissionCustomValueData> getMutableCustomValueList(
|
||||
) {
|
||||
bitField0_ |= 0x00000008;
|
||||
return customValueList;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .MissionCustomValueData custom_value_list = 3;</code>
|
||||
* @param value the customValueList to add
|
||||
* @return this
|
||||
*/
|
||||
public FinishTalkMissionScRsp addCustomValueList(
|
||||
final MissionCustomValueDataOuterClass.MissionCustomValueData value) {
|
||||
bitField0_ |= 0x00000008;
|
||||
customValueList.add(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .MissionCustomValueData custom_value_list = 3;</code>
|
||||
* @param values the customValueList to add
|
||||
* @return this
|
||||
*/
|
||||
public FinishTalkMissionScRsp addAllCustomValueList(
|
||||
final MissionCustomValueDataOuterClass.MissionCustomValueData... values) {
|
||||
bitField0_ |= 0x00000008;
|
||||
customValueList.addAll(values);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public FinishTalkMissionScRsp copyFrom(final FinishTalkMissionScRsp other) {
|
||||
cachedSize = other.cachedSize;
|
||||
if ((bitField0_ | other.bitField0_) != 0) {
|
||||
bitField0_ = other.bitField0_;
|
||||
retcode = other.retcode;
|
||||
subMissionId = other.subMissionId;
|
||||
talkStr.copyFrom(other.talkStr);
|
||||
customValueList.copyFrom(other.customValueList);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public FinishTalkMissionScRsp mergeFrom(final FinishTalkMissionScRsp other) {
|
||||
if (other.isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
if (other.hasRetcode()) {
|
||||
setRetcode(other.retcode);
|
||||
}
|
||||
if (other.hasSubMissionId()) {
|
||||
setSubMissionId(other.subMissionId);
|
||||
}
|
||||
if (other.hasTalkStr()) {
|
||||
getMutableTalkStrBytes().copyFrom(other.talkStr);
|
||||
}
|
||||
if (other.hasCustomValueList()) {
|
||||
getMutableCustomValueList().addAll(other.customValueList);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public FinishTalkMissionScRsp clear() {
|
||||
if (isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
bitField0_ = 0;
|
||||
retcode = 0;
|
||||
subMissionId = 0;
|
||||
talkStr.clear();
|
||||
customValueList.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public FinishTalkMissionScRsp clearQuick() {
|
||||
if (isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
bitField0_ = 0;
|
||||
talkStr.clear();
|
||||
customValueList.clearQuick();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(o instanceof FinishTalkMissionScRsp)) {
|
||||
return false;
|
||||
}
|
||||
FinishTalkMissionScRsp other = (FinishTalkMissionScRsp) o;
|
||||
return bitField0_ == other.bitField0_
|
||||
&& (!hasRetcode() || retcode == other.retcode)
|
||||
&& (!hasSubMissionId() || subMissionId == other.subMissionId)
|
||||
&& (!hasTalkStr() || talkStr.equals(other.talkStr))
|
||||
&& (!hasCustomValueList() || customValueList.equals(other.customValueList));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeTo(final ProtoSink output) throws IOException {
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
output.writeRawByte((byte) 16);
|
||||
output.writeUInt32NoTag(retcode);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
output.writeRawByte((byte) 32);
|
||||
output.writeUInt32NoTag(subMissionId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
output.writeRawByte((byte) 98);
|
||||
output.writeStringNoTag(talkStr);
|
||||
}
|
||||
if ((bitField0_ & 0x00000008) != 0) {
|
||||
for (int i = 0; i < customValueList.length(); i++) {
|
||||
output.writeRawByte((byte) 26);
|
||||
output.writeMessageNoTag(customValueList.get(i));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int computeSerializedSize() {
|
||||
int size = 0;
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
size += 1 + ProtoSink.computeUInt32SizeNoTag(subMissionId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
size += 1 + ProtoSink.computeStringSizeNoTag(talkStr);
|
||||
}
|
||||
if ((bitField0_ & 0x00000008) != 0) {
|
||||
size += (1 * customValueList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(customValueList);
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("fallthrough")
|
||||
public FinishTalkMissionScRsp mergeFrom(final ProtoSource input) throws IOException {
|
||||
// Enabled Fall-Through Optimization (QuickBuffers)
|
||||
int tag = input.readTag();
|
||||
while (true) {
|
||||
switch (tag) {
|
||||
case 16: {
|
||||
// retcode
|
||||
retcode = input.readUInt32();
|
||||
bitField0_ |= 0x00000001;
|
||||
tag = input.readTag();
|
||||
if (tag != 32) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 32: {
|
||||
// subMissionId
|
||||
subMissionId = input.readUInt32();
|
||||
bitField0_ |= 0x00000002;
|
||||
tag = input.readTag();
|
||||
if (tag != 98) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 98: {
|
||||
// talkStr
|
||||
input.readString(talkStr);
|
||||
bitField0_ |= 0x00000004;
|
||||
tag = input.readTag();
|
||||
if (tag != 26) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 26: {
|
||||
// customValueList
|
||||
tag = input.readRepeatedMessage(customValueList, tag);
|
||||
bitField0_ |= 0x00000008;
|
||||
if (tag != 0) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 0: {
|
||||
return this;
|
||||
}
|
||||
default: {
|
||||
if (!input.skipField(tag)) {
|
||||
return this;
|
||||
}
|
||||
tag = input.readTag();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeTo(final JsonSink output) throws IOException {
|
||||
output.beginObject();
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
output.writeUInt32(FieldNames.retcode, retcode);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
output.writeUInt32(FieldNames.subMissionId, subMissionId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
output.writeString(FieldNames.talkStr, talkStr);
|
||||
}
|
||||
if ((bitField0_ & 0x00000008) != 0) {
|
||||
output.writeRepeatedMessage(FieldNames.customValueList, customValueList);
|
||||
}
|
||||
output.endObject();
|
||||
}
|
||||
|
||||
@Override
|
||||
public FinishTalkMissionScRsp 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 -955858585:
|
||||
case -1513479155: {
|
||||
if (input.isAtField(FieldNames.subMissionId)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
subMissionId = input.readUInt32();
|
||||
bitField0_ |= 0x00000002;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case -1543716379:
|
||||
case -610210786: {
|
||||
if (input.isAtField(FieldNames.talkStr)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
input.readString(talkStr);
|
||||
bitField0_ |= 0x00000004;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 2009823550:
|
||||
case 1803812922: {
|
||||
if (input.isAtField(FieldNames.customValueList)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
input.readRepeatedMessage(customValueList);
|
||||
bitField0_ |= 0x00000008;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
input.skipUnknownField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
input.endObject();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public FinishTalkMissionScRsp clone() {
|
||||
return new FinishTalkMissionScRsp().copyFrom(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return ((bitField0_) == 0);
|
||||
}
|
||||
|
||||
public static FinishTalkMissionScRsp parseFrom(final byte[] data) throws
|
||||
InvalidProtocolBufferException {
|
||||
return ProtoMessage.mergeFrom(new FinishTalkMissionScRsp(), data).checkInitialized();
|
||||
}
|
||||
|
||||
public static FinishTalkMissionScRsp parseFrom(final ProtoSource input) throws IOException {
|
||||
return ProtoMessage.mergeFrom(new FinishTalkMissionScRsp(), input).checkInitialized();
|
||||
}
|
||||
|
||||
public static FinishTalkMissionScRsp parseFrom(final JsonSource input) throws IOException {
|
||||
return ProtoMessage.mergeFrom(new FinishTalkMissionScRsp(), input).checkInitialized();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return factory for creating FinishTalkMissionScRsp messages
|
||||
*/
|
||||
public static MessageFactory<FinishTalkMissionScRsp> getFactory() {
|
||||
return FinishTalkMissionScRspFactory.INSTANCE;
|
||||
}
|
||||
|
||||
private enum FinishTalkMissionScRspFactory implements MessageFactory<FinishTalkMissionScRsp> {
|
||||
INSTANCE;
|
||||
|
||||
@Override
|
||||
public FinishTalkMissionScRsp create() {
|
||||
return FinishTalkMissionScRsp.newInstance();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Contains name constants used for serializing JSON
|
||||
*/
|
||||
static class FieldNames {
|
||||
static final FieldName retcode = FieldName.forField("retcode");
|
||||
|
||||
static final FieldName subMissionId = FieldName.forField("subMissionId", "sub_mission_id");
|
||||
|
||||
static final FieldName talkStr = FieldName.forField("talkStr", "talk_str");
|
||||
|
||||
static final FieldName customValueList = FieldName.forField("customValueList", "custom_value_list");
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,174 @@
|
||||
// Code generated by protocol buffer compiler. Do not edit!
|
||||
package emu.lunarcore.proto;
|
||||
|
||||
import java.io.IOException;
|
||||
import us.hebi.quickbuf.InvalidProtocolBufferException;
|
||||
import us.hebi.quickbuf.JsonSink;
|
||||
import us.hebi.quickbuf.JsonSource;
|
||||
import us.hebi.quickbuf.MessageFactory;
|
||||
import us.hebi.quickbuf.ProtoMessage;
|
||||
import us.hebi.quickbuf.ProtoSink;
|
||||
import us.hebi.quickbuf.ProtoSource;
|
||||
|
||||
public final class GetVideoVersionKeyCsReqOuterClass {
|
||||
/**
|
||||
* Protobuf type {@code GetVideoVersionKeyCsReq}
|
||||
*/
|
||||
public static final class GetVideoVersionKeyCsReq extends ProtoMessage<GetVideoVersionKeyCsReq> implements Cloneable {
|
||||
private static final long serialVersionUID = 0L;
|
||||
|
||||
private GetVideoVersionKeyCsReq() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return a new empty instance of {@code GetVideoVersionKeyCsReq}
|
||||
*/
|
||||
public static GetVideoVersionKeyCsReq newInstance() {
|
||||
return new GetVideoVersionKeyCsReq();
|
||||
}
|
||||
|
||||
@Override
|
||||
public GetVideoVersionKeyCsReq copyFrom(final GetVideoVersionKeyCsReq other) {
|
||||
cachedSize = other.cachedSize;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public GetVideoVersionKeyCsReq mergeFrom(final GetVideoVersionKeyCsReq other) {
|
||||
if (other.isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public GetVideoVersionKeyCsReq clear() {
|
||||
if (isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public GetVideoVersionKeyCsReq clearQuick() {
|
||||
if (isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(o instanceof GetVideoVersionKeyCsReq)) {
|
||||
return false;
|
||||
}
|
||||
GetVideoVersionKeyCsReq other = (GetVideoVersionKeyCsReq) o;
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeTo(final ProtoSink output) throws IOException {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int computeSerializedSize() {
|
||||
int size = 0;
|
||||
return size;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("fallthrough")
|
||||
public GetVideoVersionKeyCsReq mergeFrom(final ProtoSource input) throws IOException {
|
||||
// Enabled Fall-Through Optimization (QuickBuffers)
|
||||
int tag = input.readTag();
|
||||
while (true) {
|
||||
switch (tag) {
|
||||
case 0: {
|
||||
return this;
|
||||
}
|
||||
default: {
|
||||
if (!input.skipField(tag)) {
|
||||
return this;
|
||||
}
|
||||
tag = input.readTag();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeTo(final JsonSink output) throws IOException {
|
||||
output.beginObject();
|
||||
output.endObject();
|
||||
}
|
||||
|
||||
@Override
|
||||
public GetVideoVersionKeyCsReq mergeFrom(final JsonSource input) throws IOException {
|
||||
if (!input.beginObject()) {
|
||||
return this;
|
||||
}
|
||||
while (!input.isAtEnd()) {
|
||||
switch (input.readFieldHash()) {
|
||||
default: {
|
||||
input.skipUnknownField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
input.endObject();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public GetVideoVersionKeyCsReq clone() {
|
||||
return new GetVideoVersionKeyCsReq().copyFrom(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return ((bitField0_) == 0);
|
||||
}
|
||||
|
||||
public static GetVideoVersionKeyCsReq parseFrom(final byte[] data) throws
|
||||
InvalidProtocolBufferException {
|
||||
return ProtoMessage.mergeFrom(new GetVideoVersionKeyCsReq(), data).checkInitialized();
|
||||
}
|
||||
|
||||
public static GetVideoVersionKeyCsReq parseFrom(final ProtoSource input) throws IOException {
|
||||
return ProtoMessage.mergeFrom(new GetVideoVersionKeyCsReq(), input).checkInitialized();
|
||||
}
|
||||
|
||||
public static GetVideoVersionKeyCsReq parseFrom(final JsonSource input) throws IOException {
|
||||
return ProtoMessage.mergeFrom(new GetVideoVersionKeyCsReq(), input).checkInitialized();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return factory for creating GetVideoVersionKeyCsReq messages
|
||||
*/
|
||||
public static MessageFactory<GetVideoVersionKeyCsReq> getFactory() {
|
||||
return GetVideoVersionKeyCsReqFactory.INSTANCE;
|
||||
}
|
||||
|
||||
private enum GetVideoVersionKeyCsReqFactory implements MessageFactory<GetVideoVersionKeyCsReq> {
|
||||
INSTANCE;
|
||||
|
||||
@Override
|
||||
public GetVideoVersionKeyCsReq create() {
|
||||
return GetVideoVersionKeyCsReq.newInstance();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Contains name constants used for serializing JSON
|
||||
*/
|
||||
static class FieldNames {
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,373 @@
|
||||
// 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 GetVideoVersionKeyScRspOuterClass {
|
||||
/**
|
||||
* Protobuf type {@code GetVideoVersionKeyScRsp}
|
||||
*/
|
||||
public static final class GetVideoVersionKeyScRsp extends ProtoMessage<GetVideoVersionKeyScRsp> implements Cloneable {
|
||||
private static final long serialVersionUID = 0L;
|
||||
|
||||
/**
|
||||
* <code>optional uint32 retcode = 2;</code>
|
||||
*/
|
||||
private int retcode;
|
||||
|
||||
/**
|
||||
* <code>repeated .KeyData keys = 7;</code>
|
||||
*/
|
||||
private final RepeatedMessage<KeyDataOuterClass.KeyData> keys = RepeatedMessage.newEmptyInstance(KeyDataOuterClass.KeyData.getFactory());
|
||||
|
||||
private GetVideoVersionKeyScRsp() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return a new empty instance of {@code GetVideoVersionKeyScRsp}
|
||||
*/
|
||||
public static GetVideoVersionKeyScRsp newInstance() {
|
||||
return new GetVideoVersionKeyScRsp();
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 retcode = 2;</code>
|
||||
* @return whether the retcode field is set
|
||||
*/
|
||||
public boolean hasRetcode() {
|
||||
return (bitField0_ & 0x00000001) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 retcode = 2;</code>
|
||||
* @return this
|
||||
*/
|
||||
public GetVideoVersionKeyScRsp clearRetcode() {
|
||||
bitField0_ &= ~0x00000001;
|
||||
retcode = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 retcode = 2;</code>
|
||||
* @return the retcode
|
||||
*/
|
||||
public int getRetcode() {
|
||||
return retcode;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 retcode = 2;</code>
|
||||
* @param value the retcode to set
|
||||
* @return this
|
||||
*/
|
||||
public GetVideoVersionKeyScRsp setRetcode(final int value) {
|
||||
bitField0_ |= 0x00000001;
|
||||
retcode = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .KeyData keys = 7;</code>
|
||||
* @return whether the keys field is set
|
||||
*/
|
||||
public boolean hasKeys() {
|
||||
return (bitField0_ & 0x00000002) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .KeyData keys = 7;</code>
|
||||
* @return this
|
||||
*/
|
||||
public GetVideoVersionKeyScRsp clearKeys() {
|
||||
bitField0_ &= ~0x00000002;
|
||||
keys.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .KeyData keys = 7;</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 #getMutableKeys()} if you want to modify it.
|
||||
*
|
||||
* @return internal storage object for reading
|
||||
*/
|
||||
public RepeatedMessage<KeyDataOuterClass.KeyData> getKeys() {
|
||||
return keys;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .KeyData keys = 7;</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<KeyDataOuterClass.KeyData> getMutableKeys() {
|
||||
bitField0_ |= 0x00000002;
|
||||
return keys;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .KeyData keys = 7;</code>
|
||||
* @param value the keys to add
|
||||
* @return this
|
||||
*/
|
||||
public GetVideoVersionKeyScRsp addKeys(final KeyDataOuterClass.KeyData value) {
|
||||
bitField0_ |= 0x00000002;
|
||||
keys.add(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .KeyData keys = 7;</code>
|
||||
* @param values the keys to add
|
||||
* @return this
|
||||
*/
|
||||
public GetVideoVersionKeyScRsp addAllKeys(final KeyDataOuterClass.KeyData... values) {
|
||||
bitField0_ |= 0x00000002;
|
||||
keys.addAll(values);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public GetVideoVersionKeyScRsp copyFrom(final GetVideoVersionKeyScRsp other) {
|
||||
cachedSize = other.cachedSize;
|
||||
if ((bitField0_ | other.bitField0_) != 0) {
|
||||
bitField0_ = other.bitField0_;
|
||||
retcode = other.retcode;
|
||||
keys.copyFrom(other.keys);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public GetVideoVersionKeyScRsp mergeFrom(final GetVideoVersionKeyScRsp other) {
|
||||
if (other.isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
if (other.hasRetcode()) {
|
||||
setRetcode(other.retcode);
|
||||
}
|
||||
if (other.hasKeys()) {
|
||||
getMutableKeys().addAll(other.keys);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public GetVideoVersionKeyScRsp clear() {
|
||||
if (isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
bitField0_ = 0;
|
||||
retcode = 0;
|
||||
keys.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public GetVideoVersionKeyScRsp clearQuick() {
|
||||
if (isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
bitField0_ = 0;
|
||||
keys.clearQuick();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(o instanceof GetVideoVersionKeyScRsp)) {
|
||||
return false;
|
||||
}
|
||||
GetVideoVersionKeyScRsp other = (GetVideoVersionKeyScRsp) o;
|
||||
return bitField0_ == other.bitField0_
|
||||
&& (!hasRetcode() || retcode == other.retcode)
|
||||
&& (!hasKeys() || keys.equals(other.keys));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeTo(final ProtoSink output) throws IOException {
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
output.writeRawByte((byte) 16);
|
||||
output.writeUInt32NoTag(retcode);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
for (int i = 0; i < keys.length(); i++) {
|
||||
output.writeRawByte((byte) 58);
|
||||
output.writeMessageNoTag(keys.get(i));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int computeSerializedSize() {
|
||||
int size = 0;
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
size += (1 * keys.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(keys);
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("fallthrough")
|
||||
public GetVideoVersionKeyScRsp mergeFrom(final ProtoSource input) throws IOException {
|
||||
// Enabled Fall-Through Optimization (QuickBuffers)
|
||||
int tag = input.readTag();
|
||||
while (true) {
|
||||
switch (tag) {
|
||||
case 16: {
|
||||
// retcode
|
||||
retcode = input.readUInt32();
|
||||
bitField0_ |= 0x00000001;
|
||||
tag = input.readTag();
|
||||
if (tag != 58) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 58: {
|
||||
// keys
|
||||
tag = input.readRepeatedMessage(keys, tag);
|
||||
bitField0_ |= 0x00000002;
|
||||
if (tag != 0) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 0: {
|
||||
return this;
|
||||
}
|
||||
default: {
|
||||
if (!input.skipField(tag)) {
|
||||
return this;
|
||||
}
|
||||
tag = input.readTag();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeTo(final JsonSink output) throws IOException {
|
||||
output.beginObject();
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
output.writeUInt32(FieldNames.retcode, retcode);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
output.writeRepeatedMessage(FieldNames.keys, keys);
|
||||
}
|
||||
output.endObject();
|
||||
}
|
||||
|
||||
@Override
|
||||
public GetVideoVersionKeyScRsp 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 3288564: {
|
||||
if (input.isAtField(FieldNames.keys)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
input.readRepeatedMessage(keys);
|
||||
bitField0_ |= 0x00000002;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
input.skipUnknownField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
input.endObject();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public GetVideoVersionKeyScRsp clone() {
|
||||
return new GetVideoVersionKeyScRsp().copyFrom(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return ((bitField0_) == 0);
|
||||
}
|
||||
|
||||
public static GetVideoVersionKeyScRsp parseFrom(final byte[] data) throws
|
||||
InvalidProtocolBufferException {
|
||||
return ProtoMessage.mergeFrom(new GetVideoVersionKeyScRsp(), data).checkInitialized();
|
||||
}
|
||||
|
||||
public static GetVideoVersionKeyScRsp parseFrom(final ProtoSource input) throws IOException {
|
||||
return ProtoMessage.mergeFrom(new GetVideoVersionKeyScRsp(), input).checkInitialized();
|
||||
}
|
||||
|
||||
public static GetVideoVersionKeyScRsp parseFrom(final JsonSource input) throws IOException {
|
||||
return ProtoMessage.mergeFrom(new GetVideoVersionKeyScRsp(), input).checkInitialized();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return factory for creating GetVideoVersionKeyScRsp messages
|
||||
*/
|
||||
public static MessageFactory<GetVideoVersionKeyScRsp> getFactory() {
|
||||
return GetVideoVersionKeyScRspFactory.INSTANCE;
|
||||
}
|
||||
|
||||
private enum GetVideoVersionKeyScRspFactory implements MessageFactory<GetVideoVersionKeyScRsp> {
|
||||
INSTANCE;
|
||||
|
||||
@Override
|
||||
public GetVideoVersionKeyScRsp create() {
|
||||
return GetVideoVersionKeyScRsp.newInstance();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Contains name constants used for serializing JSON
|
||||
*/
|
||||
static class FieldNames {
|
||||
static final FieldName retcode = FieldName.forField("retcode");
|
||||
|
||||
static final FieldName keys = FieldName.forField("keys");
|
||||
}
|
||||
}
|
||||
}
|
338
src/generated/main/emu/lunarcore/proto/KeyDataOuterClass.java
Normal file
338
src/generated/main/emu/lunarcore/proto/KeyDataOuterClass.java
Normal file
@ -0,0 +1,338 @@
|
||||
// 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 KeyDataOuterClass {
|
||||
/**
|
||||
* Protobuf type {@code KeyData}
|
||||
*/
|
||||
public static final class KeyData extends ProtoMessage<KeyData> implements Cloneable {
|
||||
private static final long serialVersionUID = 0L;
|
||||
|
||||
/**
|
||||
* <code>optional uint64 key = 8;</code>
|
||||
*/
|
||||
private long key;
|
||||
|
||||
/**
|
||||
* <code>optional uint32 id = 1;</code>
|
||||
*/
|
||||
private int id;
|
||||
|
||||
private KeyData() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return a new empty instance of {@code KeyData}
|
||||
*/
|
||||
public static KeyData newInstance() {
|
||||
return new KeyData();
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint64 key = 8;</code>
|
||||
* @return whether the key field is set
|
||||
*/
|
||||
public boolean hasKey() {
|
||||
return (bitField0_ & 0x00000001) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint64 key = 8;</code>
|
||||
* @return this
|
||||
*/
|
||||
public KeyData clearKey() {
|
||||
bitField0_ &= ~0x00000001;
|
||||
key = 0L;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint64 key = 8;</code>
|
||||
* @return the key
|
||||
*/
|
||||
public long getKey() {
|
||||
return key;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint64 key = 8;</code>
|
||||
* @param value the key to set
|
||||
* @return this
|
||||
*/
|
||||
public KeyData setKey(final long value) {
|
||||
bitField0_ |= 0x00000001;
|
||||
key = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 id = 1;</code>
|
||||
* @return whether the id field is set
|
||||
*/
|
||||
public boolean hasId() {
|
||||
return (bitField0_ & 0x00000002) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 id = 1;</code>
|
||||
* @return this
|
||||
*/
|
||||
public KeyData clearId() {
|
||||
bitField0_ &= ~0x00000002;
|
||||
id = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 id = 1;</code>
|
||||
* @return the id
|
||||
*/
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 id = 1;</code>
|
||||
* @param value the id to set
|
||||
* @return this
|
||||
*/
|
||||
public KeyData setId(final int value) {
|
||||
bitField0_ |= 0x00000002;
|
||||
id = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public KeyData copyFrom(final KeyData other) {
|
||||
cachedSize = other.cachedSize;
|
||||
if ((bitField0_ | other.bitField0_) != 0) {
|
||||
bitField0_ = other.bitField0_;
|
||||
key = other.key;
|
||||
id = other.id;
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public KeyData mergeFrom(final KeyData other) {
|
||||
if (other.isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
if (other.hasKey()) {
|
||||
setKey(other.key);
|
||||
}
|
||||
if (other.hasId()) {
|
||||
setId(other.id);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public KeyData clear() {
|
||||
if (isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
bitField0_ = 0;
|
||||
key = 0L;
|
||||
id = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public KeyData 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 KeyData)) {
|
||||
return false;
|
||||
}
|
||||
KeyData other = (KeyData) o;
|
||||
return bitField0_ == other.bitField0_
|
||||
&& (!hasKey() || key == other.key)
|
||||
&& (!hasId() || id == other.id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeTo(final ProtoSink output) throws IOException {
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
output.writeRawByte((byte) 64);
|
||||
output.writeUInt64NoTag(key);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
output.writeRawByte((byte) 8);
|
||||
output.writeUInt32NoTag(id);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int computeSerializedSize() {
|
||||
int size = 0;
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
size += 1 + ProtoSink.computeUInt64SizeNoTag(key);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
size += 1 + ProtoSink.computeUInt32SizeNoTag(id);
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("fallthrough")
|
||||
public KeyData mergeFrom(final ProtoSource input) throws IOException {
|
||||
// Enabled Fall-Through Optimization (QuickBuffers)
|
||||
int tag = input.readTag();
|
||||
while (true) {
|
||||
switch (tag) {
|
||||
case 64: {
|
||||
// key
|
||||
key = input.readUInt64();
|
||||
bitField0_ |= 0x00000001;
|
||||
tag = input.readTag();
|
||||
if (tag != 8) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 8: {
|
||||
// id
|
||||
id = input.readUInt32();
|
||||
bitField0_ |= 0x00000002;
|
||||
tag = input.readTag();
|
||||
if (tag != 0) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 0: {
|
||||
return this;
|
||||
}
|
||||
default: {
|
||||
if (!input.skipField(tag)) {
|
||||
return this;
|
||||
}
|
||||
tag = input.readTag();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeTo(final JsonSink output) throws IOException {
|
||||
output.beginObject();
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
output.writeUInt64(FieldNames.key, key);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
output.writeUInt32(FieldNames.id, id);
|
||||
}
|
||||
output.endObject();
|
||||
}
|
||||
|
||||
@Override
|
||||
public KeyData mergeFrom(final JsonSource input) throws IOException {
|
||||
if (!input.beginObject()) {
|
||||
return this;
|
||||
}
|
||||
while (!input.isAtEnd()) {
|
||||
switch (input.readFieldHash()) {
|
||||
case 106079: {
|
||||
if (input.isAtField(FieldNames.key)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
key = input.readUInt64();
|
||||
bitField0_ |= 0x00000001;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 3355: {
|
||||
if (input.isAtField(FieldNames.id)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
id = input.readUInt32();
|
||||
bitField0_ |= 0x00000002;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
input.skipUnknownField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
input.endObject();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public KeyData clone() {
|
||||
return new KeyData().copyFrom(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return ((bitField0_) == 0);
|
||||
}
|
||||
|
||||
public static KeyData parseFrom(final byte[] data) throws InvalidProtocolBufferException {
|
||||
return ProtoMessage.mergeFrom(new KeyData(), data).checkInitialized();
|
||||
}
|
||||
|
||||
public static KeyData parseFrom(final ProtoSource input) throws IOException {
|
||||
return ProtoMessage.mergeFrom(new KeyData(), input).checkInitialized();
|
||||
}
|
||||
|
||||
public static KeyData parseFrom(final JsonSource input) throws IOException {
|
||||
return ProtoMessage.mergeFrom(new KeyData(), input).checkInitialized();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return factory for creating KeyData messages
|
||||
*/
|
||||
public static MessageFactory<KeyData> getFactory() {
|
||||
return KeyDataFactory.INSTANCE;
|
||||
}
|
||||
|
||||
private enum KeyDataFactory implements MessageFactory<KeyData> {
|
||||
INSTANCE;
|
||||
|
||||
@Override
|
||||
public KeyData create() {
|
||||
return KeyData.newInstance();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Contains name constants used for serializing JSON
|
||||
*/
|
||||
static class FieldNames {
|
||||
static final FieldName key = FieldName.forField("key");
|
||||
|
||||
static final FieldName id = FieldName.forField("id");
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,301 @@
|
||||
// Code generated by protocol buffer compiler. Do not edit!
|
||||
package emu.lunarcore.proto;
|
||||
|
||||
import java.io.IOException;
|
||||
import us.hebi.quickbuf.FieldName;
|
||||
import us.hebi.quickbuf.InvalidProtocolBufferException;
|
||||
import us.hebi.quickbuf.JsonSink;
|
||||
import us.hebi.quickbuf.JsonSource;
|
||||
import us.hebi.quickbuf.MessageFactory;
|
||||
import us.hebi.quickbuf.ProtoMessage;
|
||||
import us.hebi.quickbuf.ProtoSink;
|
||||
import us.hebi.quickbuf.ProtoSource;
|
||||
import us.hebi.quickbuf.RepeatedInt;
|
||||
|
||||
public final class MissionAcceptScNotifyOuterClass {
|
||||
/**
|
||||
* Protobuf type {@code MissionAcceptScNotify}
|
||||
*/
|
||||
public static final class MissionAcceptScNotify extends ProtoMessage<MissionAcceptScNotify> implements Cloneable {
|
||||
private static final long serialVersionUID = 0L;
|
||||
|
||||
/**
|
||||
* <code>repeated uint32 sub_mission_id_list = 9;</code>
|
||||
*/
|
||||
private final RepeatedInt subMissionIdList = RepeatedInt.newEmptyInstance();
|
||||
|
||||
private MissionAcceptScNotify() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return a new empty instance of {@code MissionAcceptScNotify}
|
||||
*/
|
||||
public static MissionAcceptScNotify newInstance() {
|
||||
return new MissionAcceptScNotify();
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated uint32 sub_mission_id_list = 9;</code>
|
||||
* @return whether the subMissionIdList field is set
|
||||
*/
|
||||
public boolean hasSubMissionIdList() {
|
||||
return (bitField0_ & 0x00000001) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated uint32 sub_mission_id_list = 9;</code>
|
||||
* @return this
|
||||
*/
|
||||
public MissionAcceptScNotify clearSubMissionIdList() {
|
||||
bitField0_ &= ~0x00000001;
|
||||
subMissionIdList.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated uint32 sub_mission_id_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 #getMutableSubMissionIdList()} if you want to modify it.
|
||||
*
|
||||
* @return internal storage object for reading
|
||||
*/
|
||||
public RepeatedInt getSubMissionIdList() {
|
||||
return subMissionIdList;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated uint32 sub_mission_id_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 RepeatedInt getMutableSubMissionIdList() {
|
||||
bitField0_ |= 0x00000001;
|
||||
return subMissionIdList;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated uint32 sub_mission_id_list = 9;</code>
|
||||
* @param value the subMissionIdList to add
|
||||
* @return this
|
||||
*/
|
||||
public MissionAcceptScNotify addSubMissionIdList(final int value) {
|
||||
bitField0_ |= 0x00000001;
|
||||
subMissionIdList.add(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated uint32 sub_mission_id_list = 9;</code>
|
||||
* @param values the subMissionIdList to add
|
||||
* @return this
|
||||
*/
|
||||
public MissionAcceptScNotify addAllSubMissionIdList(final int... values) {
|
||||
bitField0_ |= 0x00000001;
|
||||
subMissionIdList.addAll(values);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public MissionAcceptScNotify copyFrom(final MissionAcceptScNotify other) {
|
||||
cachedSize = other.cachedSize;
|
||||
if ((bitField0_ | other.bitField0_) != 0) {
|
||||
bitField0_ = other.bitField0_;
|
||||
subMissionIdList.copyFrom(other.subMissionIdList);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public MissionAcceptScNotify mergeFrom(final MissionAcceptScNotify other) {
|
||||
if (other.isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
if (other.hasSubMissionIdList()) {
|
||||
getMutableSubMissionIdList().addAll(other.subMissionIdList);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public MissionAcceptScNotify clear() {
|
||||
if (isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
bitField0_ = 0;
|
||||
subMissionIdList.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public MissionAcceptScNotify clearQuick() {
|
||||
if (isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
bitField0_ = 0;
|
||||
subMissionIdList.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(o instanceof MissionAcceptScNotify)) {
|
||||
return false;
|
||||
}
|
||||
MissionAcceptScNotify other = (MissionAcceptScNotify) o;
|
||||
return bitField0_ == other.bitField0_
|
||||
&& (!hasSubMissionIdList() || subMissionIdList.equals(other.subMissionIdList));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeTo(final ProtoSink output) throws IOException {
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
for (int i = 0; i < subMissionIdList.length(); i++) {
|
||||
output.writeRawByte((byte) 72);
|
||||
output.writeUInt32NoTag(subMissionIdList.array()[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int computeSerializedSize() {
|
||||
int size = 0;
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
size += (1 * subMissionIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(subMissionIdList);
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("fallthrough")
|
||||
public MissionAcceptScNotify mergeFrom(final ProtoSource input) throws IOException {
|
||||
// Enabled Fall-Through Optimization (QuickBuffers)
|
||||
int tag = input.readTag();
|
||||
while (true) {
|
||||
switch (tag) {
|
||||
case 74: {
|
||||
// subMissionIdList [packed=true]
|
||||
input.readPackedUInt32(subMissionIdList, tag);
|
||||
bitField0_ |= 0x00000001;
|
||||
tag = input.readTag();
|
||||
if (tag != 0) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 0: {
|
||||
return this;
|
||||
}
|
||||
default: {
|
||||
if (!input.skipField(tag)) {
|
||||
return this;
|
||||
}
|
||||
tag = input.readTag();
|
||||
break;
|
||||
}
|
||||
case 72: {
|
||||
// subMissionIdList [packed=false]
|
||||
tag = input.readRepeatedUInt32(subMissionIdList, tag);
|
||||
bitField0_ |= 0x00000001;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeTo(final JsonSink output) throws IOException {
|
||||
output.beginObject();
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
output.writeRepeatedUInt32(FieldNames.subMissionIdList, subMissionIdList);
|
||||
}
|
||||
output.endObject();
|
||||
}
|
||||
|
||||
@Override
|
||||
public MissionAcceptScNotify mergeFrom(final JsonSource input) throws IOException {
|
||||
if (!input.beginObject()) {
|
||||
return this;
|
||||
}
|
||||
while (!input.isAtEnd()) {
|
||||
switch (input.readFieldHash()) {
|
||||
case 2039339685:
|
||||
case -225917552: {
|
||||
if (input.isAtField(FieldNames.subMissionIdList)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
input.readRepeatedUInt32(subMissionIdList);
|
||||
bitField0_ |= 0x00000001;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
input.skipUnknownField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
input.endObject();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public MissionAcceptScNotify clone() {
|
||||
return new MissionAcceptScNotify().copyFrom(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return ((bitField0_) == 0);
|
||||
}
|
||||
|
||||
public static MissionAcceptScNotify parseFrom(final byte[] data) throws
|
||||
InvalidProtocolBufferException {
|
||||
return ProtoMessage.mergeFrom(new MissionAcceptScNotify(), data).checkInitialized();
|
||||
}
|
||||
|
||||
public static MissionAcceptScNotify parseFrom(final ProtoSource input) throws IOException {
|
||||
return ProtoMessage.mergeFrom(new MissionAcceptScNotify(), input).checkInitialized();
|
||||
}
|
||||
|
||||
public static MissionAcceptScNotify parseFrom(final JsonSource input) throws IOException {
|
||||
return ProtoMessage.mergeFrom(new MissionAcceptScNotify(), input).checkInitialized();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return factory for creating MissionAcceptScNotify messages
|
||||
*/
|
||||
public static MessageFactory<MissionAcceptScNotify> getFactory() {
|
||||
return MissionAcceptScNotifyFactory.INSTANCE;
|
||||
}
|
||||
|
||||
private enum MissionAcceptScNotifyFactory implements MessageFactory<MissionAcceptScNotify> {
|
||||
INSTANCE;
|
||||
|
||||
@Override
|
||||
public MissionAcceptScNotify create() {
|
||||
return MissionAcceptScNotify.newInstance();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Contains name constants used for serializing JSON
|
||||
*/
|
||||
static class FieldNames {
|
||||
static final FieldName subMissionIdList = FieldName.forField("subMissionIdList", "sub_mission_id_list");
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,340 @@
|
||||
// Code generated by protocol buffer compiler. Do not edit!
|
||||
package emu.lunarcore.proto;
|
||||
|
||||
import java.io.IOException;
|
||||
import us.hebi.quickbuf.FieldName;
|
||||
import us.hebi.quickbuf.InvalidProtocolBufferException;
|
||||
import us.hebi.quickbuf.JsonSink;
|
||||
import us.hebi.quickbuf.JsonSource;
|
||||
import us.hebi.quickbuf.MessageFactory;
|
||||
import us.hebi.quickbuf.ProtoMessage;
|
||||
import us.hebi.quickbuf.ProtoSink;
|
||||
import us.hebi.quickbuf.ProtoSource;
|
||||
|
||||
public final class MissionCustomValueDataOuterClass {
|
||||
/**
|
||||
* Protobuf type {@code MissionCustomValueData}
|
||||
*/
|
||||
public static final class MissionCustomValueData extends ProtoMessage<MissionCustomValueData> implements Cloneable {
|
||||
private static final long serialVersionUID = 0L;
|
||||
|
||||
/**
|
||||
* <code>optional uint32 custom_value = 5;</code>
|
||||
*/
|
||||
private int customValue;
|
||||
|
||||
/**
|
||||
* <code>optional uint32 index = 8;</code>
|
||||
*/
|
||||
private int index;
|
||||
|
||||
private MissionCustomValueData() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return a new empty instance of {@code MissionCustomValueData}
|
||||
*/
|
||||
public static MissionCustomValueData newInstance() {
|
||||
return new MissionCustomValueData();
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 custom_value = 5;</code>
|
||||
* @return whether the customValue field is set
|
||||
*/
|
||||
public boolean hasCustomValue() {
|
||||
return (bitField0_ & 0x00000001) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 custom_value = 5;</code>
|
||||
* @return this
|
||||
*/
|
||||
public MissionCustomValueData clearCustomValue() {
|
||||
bitField0_ &= ~0x00000001;
|
||||
customValue = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 custom_value = 5;</code>
|
||||
* @return the customValue
|
||||
*/
|
||||
public int getCustomValue() {
|
||||
return customValue;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 custom_value = 5;</code>
|
||||
* @param value the customValue to set
|
||||
* @return this
|
||||
*/
|
||||
public MissionCustomValueData setCustomValue(final int value) {
|
||||
bitField0_ |= 0x00000001;
|
||||
customValue = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 index = 8;</code>
|
||||
* @return whether the index field is set
|
||||
*/
|
||||
public boolean hasIndex() {
|
||||
return (bitField0_ & 0x00000002) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 index = 8;</code>
|
||||
* @return this
|
||||
*/
|
||||
public MissionCustomValueData clearIndex() {
|
||||
bitField0_ &= ~0x00000002;
|
||||
index = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 index = 8;</code>
|
||||
* @return the index
|
||||
*/
|
||||
public int getIndex() {
|
||||
return index;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 index = 8;</code>
|
||||
* @param value the index to set
|
||||
* @return this
|
||||
*/
|
||||
public MissionCustomValueData setIndex(final int value) {
|
||||
bitField0_ |= 0x00000002;
|
||||
index = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public MissionCustomValueData copyFrom(final MissionCustomValueData other) {
|
||||
cachedSize = other.cachedSize;
|
||||
if ((bitField0_ | other.bitField0_) != 0) {
|
||||
bitField0_ = other.bitField0_;
|
||||
customValue = other.customValue;
|
||||
index = other.index;
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public MissionCustomValueData mergeFrom(final MissionCustomValueData other) {
|
||||
if (other.isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
if (other.hasCustomValue()) {
|
||||
setCustomValue(other.customValue);
|
||||
}
|
||||
if (other.hasIndex()) {
|
||||
setIndex(other.index);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public MissionCustomValueData clear() {
|
||||
if (isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
bitField0_ = 0;
|
||||
customValue = 0;
|
||||
index = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public MissionCustomValueData 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 MissionCustomValueData)) {
|
||||
return false;
|
||||
}
|
||||
MissionCustomValueData other = (MissionCustomValueData) o;
|
||||
return bitField0_ == other.bitField0_
|
||||
&& (!hasCustomValue() || customValue == other.customValue)
|
||||
&& (!hasIndex() || index == other.index);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeTo(final ProtoSink output) throws IOException {
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
output.writeRawByte((byte) 40);
|
||||
output.writeUInt32NoTag(customValue);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
output.writeRawByte((byte) 64);
|
||||
output.writeUInt32NoTag(index);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int computeSerializedSize() {
|
||||
int size = 0;
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
size += 1 + ProtoSink.computeUInt32SizeNoTag(customValue);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
size += 1 + ProtoSink.computeUInt32SizeNoTag(index);
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("fallthrough")
|
||||
public MissionCustomValueData mergeFrom(final ProtoSource input) throws IOException {
|
||||
// Enabled Fall-Through Optimization (QuickBuffers)
|
||||
int tag = input.readTag();
|
||||
while (true) {
|
||||
switch (tag) {
|
||||
case 40: {
|
||||
// customValue
|
||||
customValue = input.readUInt32();
|
||||
bitField0_ |= 0x00000001;
|
||||
tag = input.readTag();
|
||||
if (tag != 64) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 64: {
|
||||
// index
|
||||
index = input.readUInt32();
|
||||
bitField0_ |= 0x00000002;
|
||||
tag = input.readTag();
|
||||
if (tag != 0) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 0: {
|
||||
return this;
|
||||
}
|
||||
default: {
|
||||
if (!input.skipField(tag)) {
|
||||
return this;
|
||||
}
|
||||
tag = input.readTag();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeTo(final JsonSink output) throws IOException {
|
||||
output.beginObject();
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
output.writeUInt32(FieldNames.customValue, customValue);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
output.writeUInt32(FieldNames.index, index);
|
||||
}
|
||||
output.endObject();
|
||||
}
|
||||
|
||||
@Override
|
||||
public MissionCustomValueData mergeFrom(final JsonSource input) throws IOException {
|
||||
if (!input.beginObject()) {
|
||||
return this;
|
||||
}
|
||||
while (!input.isAtEnd()) {
|
||||
switch (input.readFieldHash()) {
|
||||
case -1786407808:
|
||||
case 732653347: {
|
||||
if (input.isAtField(FieldNames.customValue)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
customValue = input.readUInt32();
|
||||
bitField0_ |= 0x00000001;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 100346066: {
|
||||
if (input.isAtField(FieldNames.index)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
index = input.readUInt32();
|
||||
bitField0_ |= 0x00000002;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
input.skipUnknownField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
input.endObject();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public MissionCustomValueData clone() {
|
||||
return new MissionCustomValueData().copyFrom(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return ((bitField0_) == 0);
|
||||
}
|
||||
|
||||
public static MissionCustomValueData parseFrom(final byte[] data) throws
|
||||
InvalidProtocolBufferException {
|
||||
return ProtoMessage.mergeFrom(new MissionCustomValueData(), data).checkInitialized();
|
||||
}
|
||||
|
||||
public static MissionCustomValueData parseFrom(final ProtoSource input) throws IOException {
|
||||
return ProtoMessage.mergeFrom(new MissionCustomValueData(), input).checkInitialized();
|
||||
}
|
||||
|
||||
public static MissionCustomValueData parseFrom(final JsonSource input) throws IOException {
|
||||
return ProtoMessage.mergeFrom(new MissionCustomValueData(), input).checkInitialized();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return factory for creating MissionCustomValueData messages
|
||||
*/
|
||||
public static MessageFactory<MissionCustomValueData> getFactory() {
|
||||
return MissionCustomValueDataFactory.INSTANCE;
|
||||
}
|
||||
|
||||
private enum MissionCustomValueDataFactory implements MessageFactory<MissionCustomValueData> {
|
||||
INSTANCE;
|
||||
|
||||
@Override
|
||||
public MissionCustomValueData create() {
|
||||
return MissionCustomValueData.newInstance();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Contains name constants used for serializing JSON
|
||||
*/
|
||||
static class FieldNames {
|
||||
static final FieldName customValue = FieldName.forField("customValue", "custom_value");
|
||||
|
||||
static final FieldName index = FieldName.forField("index");
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,443 @@
|
||||
// Code generated by protocol buffer compiler. Do not edit!
|
||||
package emu.lunarcore.proto;
|
||||
|
||||
import java.io.IOException;
|
||||
import us.hebi.quickbuf.FieldName;
|
||||
import us.hebi.quickbuf.InvalidProtocolBufferException;
|
||||
import us.hebi.quickbuf.JsonSink;
|
||||
import us.hebi.quickbuf.JsonSource;
|
||||
import us.hebi.quickbuf.MessageFactory;
|
||||
import us.hebi.quickbuf.ProtoMessage;
|
||||
import us.hebi.quickbuf.ProtoSink;
|
||||
import us.hebi.quickbuf.ProtoSource;
|
||||
import us.hebi.quickbuf.RepeatedInt;
|
||||
import us.hebi.quickbuf.RepeatedMessage;
|
||||
|
||||
public final class MissionSyncOuterClass {
|
||||
/**
|
||||
* Protobuf type {@code MissionSync}
|
||||
*/
|
||||
public static final class MissionSync extends ProtoMessage<MissionSync> implements Cloneable {
|
||||
private static final long serialVersionUID = 0L;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* BOKOEICFCAB
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated uint32 main_mission_id = 14;</code>
|
||||
*/
|
||||
private final RepeatedInt mainMissionId = RepeatedInt.newEmptyInstance();
|
||||
|
||||
/**
|
||||
* <code>repeated .Mission mission_list = 5;</code>
|
||||
*/
|
||||
private final RepeatedMessage<MissionOuterClass.Mission> missionList = RepeatedMessage.newEmptyInstance(MissionOuterClass.Mission.getFactory());
|
||||
|
||||
private MissionSync() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return a new empty instance of {@code MissionSync}
|
||||
*/
|
||||
public static MissionSync newInstance() {
|
||||
return new MissionSync();
|
||||
}
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* BOKOEICFCAB
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated uint32 main_mission_id = 14;</code>
|
||||
* @return whether the mainMissionId field is set
|
||||
*/
|
||||
public boolean hasMainMissionId() {
|
||||
return (bitField0_ & 0x00000001) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* BOKOEICFCAB
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated uint32 main_mission_id = 14;</code>
|
||||
* @return this
|
||||
*/
|
||||
public MissionSync clearMainMissionId() {
|
||||
bitField0_ &= ~0x00000001;
|
||||
mainMissionId.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* BOKOEICFCAB
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated uint32 main_mission_id = 14;</code>
|
||||
*
|
||||
* This method returns the internal storage object without modifying any has state.
|
||||
* The returned object should not be modified and be treated as read-only.
|
||||
*
|
||||
* Use {@link #getMutableMainMissionId()} if you want to modify it.
|
||||
*
|
||||
* @return internal storage object for reading
|
||||
*/
|
||||
public RepeatedInt getMainMissionId() {
|
||||
return mainMissionId;
|
||||
}
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* BOKOEICFCAB
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated uint32 main_mission_id = 14;</code>
|
||||
*
|
||||
* This method returns the internal storage object and sets the corresponding
|
||||
* has state. The returned object will become part of this message and its
|
||||
* contents may be modified as long as the has state is not cleared.
|
||||
*
|
||||
* @return internal storage object for modifications
|
||||
*/
|
||||
public RepeatedInt getMutableMainMissionId() {
|
||||
bitField0_ |= 0x00000001;
|
||||
return mainMissionId;
|
||||
}
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* BOKOEICFCAB
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated uint32 main_mission_id = 14;</code>
|
||||
* @param value the mainMissionId to add
|
||||
* @return this
|
||||
*/
|
||||
public MissionSync addMainMissionId(final int value) {
|
||||
bitField0_ |= 0x00000001;
|
||||
mainMissionId.add(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* BOKOEICFCAB
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated uint32 main_mission_id = 14;</code>
|
||||
* @param values the mainMissionId to add
|
||||
* @return this
|
||||
*/
|
||||
public MissionSync addAllMainMissionId(final int... values) {
|
||||
bitField0_ |= 0x00000001;
|
||||
mainMissionId.addAll(values);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .Mission mission_list = 5;</code>
|
||||
* @return whether the missionList field is set
|
||||
*/
|
||||
public boolean hasMissionList() {
|
||||
return (bitField0_ & 0x00000002) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .Mission mission_list = 5;</code>
|
||||
* @return this
|
||||
*/
|
||||
public MissionSync clearMissionList() {
|
||||
bitField0_ &= ~0x00000002;
|
||||
missionList.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .Mission mission_list = 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 #getMutableMissionList()} if you want to modify it.
|
||||
*
|
||||
* @return internal storage object for reading
|
||||
*/
|
||||
public RepeatedMessage<MissionOuterClass.Mission> getMissionList() {
|
||||
return missionList;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .Mission mission_list = 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 RepeatedMessage<MissionOuterClass.Mission> getMutableMissionList() {
|
||||
bitField0_ |= 0x00000002;
|
||||
return missionList;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .Mission mission_list = 5;</code>
|
||||
* @param value the missionList to add
|
||||
* @return this
|
||||
*/
|
||||
public MissionSync addMissionList(final MissionOuterClass.Mission value) {
|
||||
bitField0_ |= 0x00000002;
|
||||
missionList.add(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>repeated .Mission mission_list = 5;</code>
|
||||
* @param values the missionList to add
|
||||
* @return this
|
||||
*/
|
||||
public MissionSync addAllMissionList(final MissionOuterClass.Mission... values) {
|
||||
bitField0_ |= 0x00000002;
|
||||
missionList.addAll(values);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public MissionSync copyFrom(final MissionSync other) {
|
||||
cachedSize = other.cachedSize;
|
||||
if ((bitField0_ | other.bitField0_) != 0) {
|
||||
bitField0_ = other.bitField0_;
|
||||
mainMissionId.copyFrom(other.mainMissionId);
|
||||
missionList.copyFrom(other.missionList);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public MissionSync mergeFrom(final MissionSync other) {
|
||||
if (other.isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
if (other.hasMainMissionId()) {
|
||||
getMutableMainMissionId().addAll(other.mainMissionId);
|
||||
}
|
||||
if (other.hasMissionList()) {
|
||||
getMutableMissionList().addAll(other.missionList);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public MissionSync clear() {
|
||||
if (isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
bitField0_ = 0;
|
||||
mainMissionId.clear();
|
||||
missionList.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public MissionSync clearQuick() {
|
||||
if (isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
bitField0_ = 0;
|
||||
mainMissionId.clear();
|
||||
missionList.clearQuick();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(o instanceof MissionSync)) {
|
||||
return false;
|
||||
}
|
||||
MissionSync other = (MissionSync) o;
|
||||
return bitField0_ == other.bitField0_
|
||||
&& (!hasMainMissionId() || mainMissionId.equals(other.mainMissionId))
|
||||
&& (!hasMissionList() || missionList.equals(other.missionList));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeTo(final ProtoSink output) throws IOException {
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
for (int i = 0; i < mainMissionId.length(); i++) {
|
||||
output.writeRawByte((byte) 112);
|
||||
output.writeUInt32NoTag(mainMissionId.array()[i]);
|
||||
}
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
for (int i = 0; i < missionList.length(); i++) {
|
||||
output.writeRawByte((byte) 42);
|
||||
output.writeMessageNoTag(missionList.get(i));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int computeSerializedSize() {
|
||||
int size = 0;
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
size += (1 * mainMissionId.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(mainMissionId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
size += (1 * missionList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(missionList);
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("fallthrough")
|
||||
public MissionSync mergeFrom(final ProtoSource input) throws IOException {
|
||||
// Enabled Fall-Through Optimization (QuickBuffers)
|
||||
int tag = input.readTag();
|
||||
while (true) {
|
||||
switch (tag) {
|
||||
case 114: {
|
||||
// mainMissionId [packed=true]
|
||||
input.readPackedUInt32(mainMissionId, tag);
|
||||
bitField0_ |= 0x00000001;
|
||||
tag = input.readTag();
|
||||
if (tag != 42) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 42: {
|
||||
// missionList
|
||||
tag = input.readRepeatedMessage(missionList, tag);
|
||||
bitField0_ |= 0x00000002;
|
||||
if (tag != 0) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 0: {
|
||||
return this;
|
||||
}
|
||||
default: {
|
||||
if (!input.skipField(tag)) {
|
||||
return this;
|
||||
}
|
||||
tag = input.readTag();
|
||||
break;
|
||||
}
|
||||
case 112: {
|
||||
// mainMissionId [packed=false]
|
||||
tag = input.readRepeatedUInt32(mainMissionId, tag);
|
||||
bitField0_ |= 0x00000001;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeTo(final JsonSink output) throws IOException {
|
||||
output.beginObject();
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
output.writeRepeatedUInt32(FieldNames.mainMissionId, mainMissionId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
output.writeRepeatedMessage(FieldNames.missionList, missionList);
|
||||
}
|
||||
output.endObject();
|
||||
}
|
||||
|
||||
@Override
|
||||
public MissionSync mergeFrom(final JsonSource input) throws IOException {
|
||||
if (!input.beginObject()) {
|
||||
return this;
|
||||
}
|
||||
while (!input.isAtEnd()) {
|
||||
switch (input.readFieldHash()) {
|
||||
case 1124848142:
|
||||
case 885892852: {
|
||||
if (input.isAtField(FieldNames.mainMissionId)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
input.readRepeatedUInt32(mainMissionId);
|
||||
bitField0_ |= 0x00000001;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 1383006282:
|
||||
case -58851471: {
|
||||
if (input.isAtField(FieldNames.missionList)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
input.readRepeatedMessage(missionList);
|
||||
bitField0_ |= 0x00000002;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
input.skipUnknownField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
input.endObject();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public MissionSync clone() {
|
||||
return new MissionSync().copyFrom(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return ((bitField0_) == 0);
|
||||
}
|
||||
|
||||
public static MissionSync parseFrom(final byte[] data) throws InvalidProtocolBufferException {
|
||||
return ProtoMessage.mergeFrom(new MissionSync(), data).checkInitialized();
|
||||
}
|
||||
|
||||
public static MissionSync parseFrom(final ProtoSource input) throws IOException {
|
||||
return ProtoMessage.mergeFrom(new MissionSync(), input).checkInitialized();
|
||||
}
|
||||
|
||||
public static MissionSync parseFrom(final JsonSource input) throws IOException {
|
||||
return ProtoMessage.mergeFrom(new MissionSync(), input).checkInitialized();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return factory for creating MissionSync messages
|
||||
*/
|
||||
public static MessageFactory<MissionSync> getFactory() {
|
||||
return MissionSyncFactory.INSTANCE;
|
||||
}
|
||||
|
||||
private enum MissionSyncFactory implements MessageFactory<MissionSync> {
|
||||
INSTANCE;
|
||||
|
||||
@Override
|
||||
public MissionSync create() {
|
||||
return MissionSync.newInstance();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Contains name constants used for serializing JSON
|
||||
*/
|
||||
static class FieldNames {
|
||||
static final FieldName mainMissionId = FieldName.forField("mainMissionId", "main_mission_id");
|
||||
|
||||
static final FieldName missionList = FieldName.forField("missionList", "mission_list");
|
||||
}
|
||||
}
|
||||
}
|
@ -25,6 +25,11 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
*/
|
||||
private int totalAchievementExp;
|
||||
|
||||
/**
|
||||
* <code>optional .MissionSync mission_sync = 8;</code>
|
||||
*/
|
||||
private final MissionSyncOuterClass.MissionSync missionSync = MissionSyncOuterClass.MissionSync.newInstance();
|
||||
|
||||
/**
|
||||
* <code>optional .AvatarSync avatar_sync = 11;</code>
|
||||
*/
|
||||
@ -117,12 +122,69 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .MissionSync mission_sync = 8;</code>
|
||||
* @return whether the missionSync field is set
|
||||
*/
|
||||
public boolean hasMissionSync() {
|
||||
return (bitField0_ & 0x00000002) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .MissionSync mission_sync = 8;</code>
|
||||
* @return this
|
||||
*/
|
||||
public PlayerSyncScNotify clearMissionSync() {
|
||||
bitField0_ &= ~0x00000002;
|
||||
missionSync.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .MissionSync mission_sync = 8;</code>
|
||||
*
|
||||
* This method returns the internal storage object without modifying any has state.
|
||||
* The returned object should not be modified and be treated as read-only.
|
||||
*
|
||||
* Use {@link #getMutableMissionSync()} if you want to modify it.
|
||||
*
|
||||
* @return internal storage object for reading
|
||||
*/
|
||||
public MissionSyncOuterClass.MissionSync getMissionSync() {
|
||||
return missionSync;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .MissionSync mission_sync = 8;</code>
|
||||
*
|
||||
* This method returns the internal storage object and sets the corresponding
|
||||
* has state. The returned object will become part of this message and its
|
||||
* contents may be modified as long as the has state is not cleared.
|
||||
*
|
||||
* @return internal storage object for modifications
|
||||
*/
|
||||
public MissionSyncOuterClass.MissionSync getMutableMissionSync() {
|
||||
bitField0_ |= 0x00000002;
|
||||
return missionSync;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .MissionSync mission_sync = 8;</code>
|
||||
* @param value the missionSync to set
|
||||
* @return this
|
||||
*/
|
||||
public PlayerSyncScNotify setMissionSync(final MissionSyncOuterClass.MissionSync value) {
|
||||
bitField0_ |= 0x00000002;
|
||||
missionSync.copyFrom(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .AvatarSync avatar_sync = 11;</code>
|
||||
* @return whether the avatarSync field is set
|
||||
*/
|
||||
public boolean hasAvatarSync() {
|
||||
return (bitField0_ & 0x00000002) != 0;
|
||||
return (bitField0_ & 0x00000004) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -130,7 +192,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
* @return this
|
||||
*/
|
||||
public PlayerSyncScNotify clearAvatarSync() {
|
||||
bitField0_ &= ~0x00000002;
|
||||
bitField0_ &= ~0x00000004;
|
||||
avatarSync.clear();
|
||||
return this;
|
||||
}
|
||||
@ -159,7 +221,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
* @return internal storage object for modifications
|
||||
*/
|
||||
public AvatarSyncOuterClass.AvatarSync getMutableAvatarSync() {
|
||||
bitField0_ |= 0x00000002;
|
||||
bitField0_ |= 0x00000004;
|
||||
return avatarSync;
|
||||
}
|
||||
|
||||
@ -169,7 +231,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
* @return this
|
||||
*/
|
||||
public PlayerSyncScNotify setAvatarSync(final AvatarSyncOuterClass.AvatarSync value) {
|
||||
bitField0_ |= 0x00000002;
|
||||
bitField0_ |= 0x00000004;
|
||||
avatarSync.copyFrom(value);
|
||||
return this;
|
||||
}
|
||||
@ -179,7 +241,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
* @return whether the basicInfo field is set
|
||||
*/
|
||||
public boolean hasBasicInfo() {
|
||||
return (bitField0_ & 0x00000004) != 0;
|
||||
return (bitField0_ & 0x00000008) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -187,7 +249,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
* @return this
|
||||
*/
|
||||
public PlayerSyncScNotify clearBasicInfo() {
|
||||
bitField0_ &= ~0x00000004;
|
||||
bitField0_ &= ~0x00000008;
|
||||
basicInfo.clear();
|
||||
return this;
|
||||
}
|
||||
@ -216,7 +278,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
* @return internal storage object for modifications
|
||||
*/
|
||||
public PlayerBasicInfoOuterClass.PlayerBasicInfo getMutableBasicInfo() {
|
||||
bitField0_ |= 0x00000004;
|
||||
bitField0_ |= 0x00000008;
|
||||
return basicInfo;
|
||||
}
|
||||
|
||||
@ -226,7 +288,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
* @return this
|
||||
*/
|
||||
public PlayerSyncScNotify setBasicInfo(final PlayerBasicInfoOuterClass.PlayerBasicInfo value) {
|
||||
bitField0_ |= 0x00000004;
|
||||
bitField0_ |= 0x00000008;
|
||||
basicInfo.copyFrom(value);
|
||||
return this;
|
||||
}
|
||||
@ -236,7 +298,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
* @return whether the boardDataSync field is set
|
||||
*/
|
||||
public boolean hasBoardDataSync() {
|
||||
return (bitField0_ & 0x00000008) != 0;
|
||||
return (bitField0_ & 0x00000010) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -244,7 +306,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
* @return this
|
||||
*/
|
||||
public PlayerSyncScNotify clearBoardDataSync() {
|
||||
bitField0_ &= ~0x00000008;
|
||||
bitField0_ &= ~0x00000010;
|
||||
boardDataSync.clear();
|
||||
return this;
|
||||
}
|
||||
@ -273,7 +335,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
* @return internal storage object for modifications
|
||||
*/
|
||||
public BoardDataSyncOuterClass.BoardDataSync getMutableBoardDataSync() {
|
||||
bitField0_ |= 0x00000008;
|
||||
bitField0_ |= 0x00000010;
|
||||
return boardDataSync;
|
||||
}
|
||||
|
||||
@ -283,7 +345,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
* @return this
|
||||
*/
|
||||
public PlayerSyncScNotify setBoardDataSync(final BoardDataSyncOuterClass.BoardDataSync value) {
|
||||
bitField0_ |= 0x00000008;
|
||||
bitField0_ |= 0x00000010;
|
||||
boardDataSync.copyFrom(value);
|
||||
return this;
|
||||
}
|
||||
@ -293,7 +355,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
* @return whether the delEquipmentList field is set
|
||||
*/
|
||||
public boolean hasDelEquipmentList() {
|
||||
return (bitField0_ & 0x00000010) != 0;
|
||||
return (bitField0_ & 0x00000020) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -301,7 +363,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
* @return this
|
||||
*/
|
||||
public PlayerSyncScNotify clearDelEquipmentList() {
|
||||
bitField0_ &= ~0x00000010;
|
||||
bitField0_ &= ~0x00000020;
|
||||
delEquipmentList.clear();
|
||||
return this;
|
||||
}
|
||||
@ -330,7 +392,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
* @return internal storage object for modifications
|
||||
*/
|
||||
public RepeatedInt getMutableDelEquipmentList() {
|
||||
bitField0_ |= 0x00000010;
|
||||
bitField0_ |= 0x00000020;
|
||||
return delEquipmentList;
|
||||
}
|
||||
|
||||
@ -340,7 +402,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
* @return this
|
||||
*/
|
||||
public PlayerSyncScNotify addDelEquipmentList(final int value) {
|
||||
bitField0_ |= 0x00000010;
|
||||
bitField0_ |= 0x00000020;
|
||||
delEquipmentList.add(value);
|
||||
return this;
|
||||
}
|
||||
@ -351,7 +413,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
* @return this
|
||||
*/
|
||||
public PlayerSyncScNotify addAllDelEquipmentList(final int... values) {
|
||||
bitField0_ |= 0x00000010;
|
||||
bitField0_ |= 0x00000020;
|
||||
delEquipmentList.addAll(values);
|
||||
return this;
|
||||
}
|
||||
@ -361,7 +423,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
* @return whether the delRelicList field is set
|
||||
*/
|
||||
public boolean hasDelRelicList() {
|
||||
return (bitField0_ & 0x00000020) != 0;
|
||||
return (bitField0_ & 0x00000040) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -369,7 +431,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
* @return this
|
||||
*/
|
||||
public PlayerSyncScNotify clearDelRelicList() {
|
||||
bitField0_ &= ~0x00000020;
|
||||
bitField0_ &= ~0x00000040;
|
||||
delRelicList.clear();
|
||||
return this;
|
||||
}
|
||||
@ -398,7 +460,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
* @return internal storage object for modifications
|
||||
*/
|
||||
public RepeatedInt getMutableDelRelicList() {
|
||||
bitField0_ |= 0x00000020;
|
||||
bitField0_ |= 0x00000040;
|
||||
return delRelicList;
|
||||
}
|
||||
|
||||
@ -408,7 +470,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
* @return this
|
||||
*/
|
||||
public PlayerSyncScNotify addDelRelicList(final int value) {
|
||||
bitField0_ |= 0x00000020;
|
||||
bitField0_ |= 0x00000040;
|
||||
delRelicList.add(value);
|
||||
return this;
|
||||
}
|
||||
@ -419,7 +481,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
* @return this
|
||||
*/
|
||||
public PlayerSyncScNotify addAllDelRelicList(final int... values) {
|
||||
bitField0_ |= 0x00000020;
|
||||
bitField0_ |= 0x00000040;
|
||||
delRelicList.addAll(values);
|
||||
return this;
|
||||
}
|
||||
@ -429,7 +491,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
* @return whether the basicTypeInfoList field is set
|
||||
*/
|
||||
public boolean hasBasicTypeInfoList() {
|
||||
return (bitField0_ & 0x00000040) != 0;
|
||||
return (bitField0_ & 0x00000080) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -437,7 +499,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
* @return this
|
||||
*/
|
||||
public PlayerSyncScNotify clearBasicTypeInfoList() {
|
||||
bitField0_ &= ~0x00000040;
|
||||
bitField0_ &= ~0x00000080;
|
||||
basicTypeInfoList.clear();
|
||||
return this;
|
||||
}
|
||||
@ -467,7 +529,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
*/
|
||||
public RepeatedMessage<HeroBasicTypeInfoOuterClass.HeroBasicTypeInfo> getMutableBasicTypeInfoList(
|
||||
) {
|
||||
bitField0_ |= 0x00000040;
|
||||
bitField0_ |= 0x00000080;
|
||||
return basicTypeInfoList;
|
||||
}
|
||||
|
||||
@ -478,7 +540,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
*/
|
||||
public PlayerSyncScNotify addBasicTypeInfoList(
|
||||
final HeroBasicTypeInfoOuterClass.HeroBasicTypeInfo value) {
|
||||
bitField0_ |= 0x00000040;
|
||||
bitField0_ |= 0x00000080;
|
||||
basicTypeInfoList.add(value);
|
||||
return this;
|
||||
}
|
||||
@ -490,7 +552,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
*/
|
||||
public PlayerSyncScNotify addAllBasicTypeInfoList(
|
||||
final HeroBasicTypeInfoOuterClass.HeroBasicTypeInfo... values) {
|
||||
bitField0_ |= 0x00000040;
|
||||
bitField0_ |= 0x00000080;
|
||||
basicTypeInfoList.addAll(values);
|
||||
return this;
|
||||
}
|
||||
@ -500,7 +562,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
* @return whether the equipmentList field is set
|
||||
*/
|
||||
public boolean hasEquipmentList() {
|
||||
return (bitField0_ & 0x00000080) != 0;
|
||||
return (bitField0_ & 0x00000100) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -508,7 +570,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
* @return this
|
||||
*/
|
||||
public PlayerSyncScNotify clearEquipmentList() {
|
||||
bitField0_ &= ~0x00000080;
|
||||
bitField0_ &= ~0x00000100;
|
||||
equipmentList.clear();
|
||||
return this;
|
||||
}
|
||||
@ -537,7 +599,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
* @return internal storage object for modifications
|
||||
*/
|
||||
public RepeatedMessage<EquipmentOuterClass.Equipment> getMutableEquipmentList() {
|
||||
bitField0_ |= 0x00000080;
|
||||
bitField0_ |= 0x00000100;
|
||||
return equipmentList;
|
||||
}
|
||||
|
||||
@ -547,7 +609,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
* @return this
|
||||
*/
|
||||
public PlayerSyncScNotify addEquipmentList(final EquipmentOuterClass.Equipment value) {
|
||||
bitField0_ |= 0x00000080;
|
||||
bitField0_ |= 0x00000100;
|
||||
equipmentList.add(value);
|
||||
return this;
|
||||
}
|
||||
@ -558,7 +620,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
* @return this
|
||||
*/
|
||||
public PlayerSyncScNotify addAllEquipmentList(final EquipmentOuterClass.Equipment... values) {
|
||||
bitField0_ |= 0x00000080;
|
||||
bitField0_ |= 0x00000100;
|
||||
equipmentList.addAll(values);
|
||||
return this;
|
||||
}
|
||||
@ -568,7 +630,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
* @return whether the materialList field is set
|
||||
*/
|
||||
public boolean hasMaterialList() {
|
||||
return (bitField0_ & 0x00000100) != 0;
|
||||
return (bitField0_ & 0x00000200) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -576,7 +638,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
* @return this
|
||||
*/
|
||||
public PlayerSyncScNotify clearMaterialList() {
|
||||
bitField0_ &= ~0x00000100;
|
||||
bitField0_ &= ~0x00000200;
|
||||
materialList.clear();
|
||||
return this;
|
||||
}
|
||||
@ -605,7 +667,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
* @return internal storage object for modifications
|
||||
*/
|
||||
public RepeatedMessage<MaterialOuterClass.Material> getMutableMaterialList() {
|
||||
bitField0_ |= 0x00000100;
|
||||
bitField0_ |= 0x00000200;
|
||||
return materialList;
|
||||
}
|
||||
|
||||
@ -615,7 +677,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
* @return this
|
||||
*/
|
||||
public PlayerSyncScNotify addMaterialList(final MaterialOuterClass.Material value) {
|
||||
bitField0_ |= 0x00000100;
|
||||
bitField0_ |= 0x00000200;
|
||||
materialList.add(value);
|
||||
return this;
|
||||
}
|
||||
@ -626,7 +688,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
* @return this
|
||||
*/
|
||||
public PlayerSyncScNotify addAllMaterialList(final MaterialOuterClass.Material... values) {
|
||||
bitField0_ |= 0x00000100;
|
||||
bitField0_ |= 0x00000200;
|
||||
materialList.addAll(values);
|
||||
return this;
|
||||
}
|
||||
@ -636,7 +698,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
* @return whether the relicList field is set
|
||||
*/
|
||||
public boolean hasRelicList() {
|
||||
return (bitField0_ & 0x00000200) != 0;
|
||||
return (bitField0_ & 0x00000400) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -644,7 +706,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
* @return this
|
||||
*/
|
||||
public PlayerSyncScNotify clearRelicList() {
|
||||
bitField0_ &= ~0x00000200;
|
||||
bitField0_ &= ~0x00000400;
|
||||
relicList.clear();
|
||||
return this;
|
||||
}
|
||||
@ -673,7 +735,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
* @return internal storage object for modifications
|
||||
*/
|
||||
public RepeatedMessage<RelicOuterClass.Relic> getMutableRelicList() {
|
||||
bitField0_ |= 0x00000200;
|
||||
bitField0_ |= 0x00000400;
|
||||
return relicList;
|
||||
}
|
||||
|
||||
@ -683,7 +745,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
* @return this
|
||||
*/
|
||||
public PlayerSyncScNotify addRelicList(final RelicOuterClass.Relic value) {
|
||||
bitField0_ |= 0x00000200;
|
||||
bitField0_ |= 0x00000400;
|
||||
relicList.add(value);
|
||||
return this;
|
||||
}
|
||||
@ -694,7 +756,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
* @return this
|
||||
*/
|
||||
public PlayerSyncScNotify addAllRelicList(final RelicOuterClass.Relic... values) {
|
||||
bitField0_ |= 0x00000200;
|
||||
bitField0_ |= 0x00000400;
|
||||
relicList.addAll(values);
|
||||
return this;
|
||||
}
|
||||
@ -705,6 +767,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
if ((bitField0_ | other.bitField0_) != 0) {
|
||||
bitField0_ = other.bitField0_;
|
||||
totalAchievementExp = other.totalAchievementExp;
|
||||
missionSync.copyFrom(other.missionSync);
|
||||
avatarSync.copyFrom(other.avatarSync);
|
||||
basicInfo.copyFrom(other.basicInfo);
|
||||
boardDataSync.copyFrom(other.boardDataSync);
|
||||
@ -727,6 +790,9 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
if (other.hasTotalAchievementExp()) {
|
||||
setTotalAchievementExp(other.totalAchievementExp);
|
||||
}
|
||||
if (other.hasMissionSync()) {
|
||||
getMutableMissionSync().mergeFrom(other.missionSync);
|
||||
}
|
||||
if (other.hasAvatarSync()) {
|
||||
getMutableAvatarSync().mergeFrom(other.avatarSync);
|
||||
}
|
||||
@ -765,6 +831,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
cachedSize = -1;
|
||||
bitField0_ = 0;
|
||||
totalAchievementExp = 0;
|
||||
missionSync.clear();
|
||||
avatarSync.clear();
|
||||
basicInfo.clear();
|
||||
boardDataSync.clear();
|
||||
@ -784,6 +851,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
}
|
||||
cachedSize = -1;
|
||||
bitField0_ = 0;
|
||||
missionSync.clearQuick();
|
||||
avatarSync.clearQuick();
|
||||
basicInfo.clearQuick();
|
||||
boardDataSync.clearQuick();
|
||||
@ -807,6 +875,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
PlayerSyncScNotify other = (PlayerSyncScNotify) o;
|
||||
return bitField0_ == other.bitField0_
|
||||
&& (!hasTotalAchievementExp() || totalAchievementExp == other.totalAchievementExp)
|
||||
&& (!hasMissionSync() || missionSync.equals(other.missionSync))
|
||||
&& (!hasAvatarSync() || avatarSync.equals(other.avatarSync))
|
||||
&& (!hasBasicInfo() || basicInfo.equals(other.basicInfo))
|
||||
&& (!hasBoardDataSync() || boardDataSync.equals(other.boardDataSync))
|
||||
@ -825,48 +894,52 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
output.writeUInt32NoTag(totalAchievementExp);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
output.writeRawByte((byte) 66);
|
||||
output.writeMessageNoTag(missionSync);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
output.writeRawByte((byte) 90);
|
||||
output.writeMessageNoTag(avatarSync);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
if ((bitField0_ & 0x00000008) != 0) {
|
||||
output.writeRawByte((byte) 122);
|
||||
output.writeMessageNoTag(basicInfo);
|
||||
}
|
||||
if ((bitField0_ & 0x00000008) != 0) {
|
||||
if ((bitField0_ & 0x00000010) != 0) {
|
||||
output.writeRawLittleEndian16((short) 7810);
|
||||
output.writeMessageNoTag(boardDataSync);
|
||||
}
|
||||
if ((bitField0_ & 0x00000010) != 0) {
|
||||
if ((bitField0_ & 0x00000020) != 0) {
|
||||
for (int i = 0; i < delEquipmentList.length(); i++) {
|
||||
output.writeRawByte((byte) 56);
|
||||
output.writeUInt32NoTag(delEquipmentList.array()[i]);
|
||||
}
|
||||
}
|
||||
if ((bitField0_ & 0x00000020) != 0) {
|
||||
if ((bitField0_ & 0x00000040) != 0) {
|
||||
for (int i = 0; i < delRelicList.length(); i++) {
|
||||
output.writeRawByte((byte) 104);
|
||||
output.writeUInt32NoTag(delRelicList.array()[i]);
|
||||
}
|
||||
}
|
||||
if ((bitField0_ & 0x00000040) != 0) {
|
||||
if ((bitField0_ & 0x00000080) != 0) {
|
||||
for (int i = 0; i < basicTypeInfoList.length(); i++) {
|
||||
output.writeRawByte((byte) 10);
|
||||
output.writeMessageNoTag(basicTypeInfoList.get(i));
|
||||
}
|
||||
}
|
||||
if ((bitField0_ & 0x00000080) != 0) {
|
||||
if ((bitField0_ & 0x00000100) != 0) {
|
||||
for (int i = 0; i < equipmentList.length(); i++) {
|
||||
output.writeRawByte((byte) 34);
|
||||
output.writeMessageNoTag(equipmentList.get(i));
|
||||
}
|
||||
}
|
||||
if ((bitField0_ & 0x00000100) != 0) {
|
||||
if ((bitField0_ & 0x00000200) != 0) {
|
||||
for (int i = 0; i < materialList.length(); i++) {
|
||||
output.writeRawByte((byte) 98);
|
||||
output.writeMessageNoTag(materialList.get(i));
|
||||
}
|
||||
}
|
||||
if ((bitField0_ & 0x00000200) != 0) {
|
||||
if ((bitField0_ & 0x00000400) != 0) {
|
||||
for (int i = 0; i < relicList.length(); i++) {
|
||||
output.writeRawByte((byte) 114);
|
||||
output.writeMessageNoTag(relicList.get(i));
|
||||
@ -881,30 +954,33 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
size += 2 + ProtoSink.computeUInt32SizeNoTag(totalAchievementExp);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
size += 1 + ProtoSink.computeMessageSizeNoTag(avatarSync);
|
||||
size += 1 + ProtoSink.computeMessageSizeNoTag(missionSync);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
size += 1 + ProtoSink.computeMessageSizeNoTag(basicInfo);
|
||||
size += 1 + ProtoSink.computeMessageSizeNoTag(avatarSync);
|
||||
}
|
||||
if ((bitField0_ & 0x00000008) != 0) {
|
||||
size += 2 + ProtoSink.computeMessageSizeNoTag(boardDataSync);
|
||||
size += 1 + ProtoSink.computeMessageSizeNoTag(basicInfo);
|
||||
}
|
||||
if ((bitField0_ & 0x00000010) != 0) {
|
||||
size += (1 * delEquipmentList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(delEquipmentList);
|
||||
size += 2 + ProtoSink.computeMessageSizeNoTag(boardDataSync);
|
||||
}
|
||||
if ((bitField0_ & 0x00000020) != 0) {
|
||||
size += (1 * delRelicList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(delRelicList);
|
||||
size += (1 * delEquipmentList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(delEquipmentList);
|
||||
}
|
||||
if ((bitField0_ & 0x00000040) != 0) {
|
||||
size += (1 * basicTypeInfoList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(basicTypeInfoList);
|
||||
size += (1 * delRelicList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(delRelicList);
|
||||
}
|
||||
if ((bitField0_ & 0x00000080) != 0) {
|
||||
size += (1 * equipmentList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(equipmentList);
|
||||
size += (1 * basicTypeInfoList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(basicTypeInfoList);
|
||||
}
|
||||
if ((bitField0_ & 0x00000100) != 0) {
|
||||
size += (1 * materialList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(materialList);
|
||||
size += (1 * equipmentList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(equipmentList);
|
||||
}
|
||||
if ((bitField0_ & 0x00000200) != 0) {
|
||||
size += (1 * materialList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(materialList);
|
||||
}
|
||||
if ((bitField0_ & 0x00000400) != 0) {
|
||||
size += (1 * relicList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(relicList);
|
||||
}
|
||||
return size;
|
||||
@ -922,6 +998,15 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
totalAchievementExp = input.readUInt32();
|
||||
bitField0_ |= 0x00000001;
|
||||
tag = input.readTag();
|
||||
if (tag != 66) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 66: {
|
||||
// missionSync
|
||||
input.readMessage(missionSync);
|
||||
bitField0_ |= 0x00000002;
|
||||
tag = input.readTag();
|
||||
if (tag != 90) {
|
||||
break;
|
||||
}
|
||||
@ -929,7 +1014,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
case 90: {
|
||||
// avatarSync
|
||||
input.readMessage(avatarSync);
|
||||
bitField0_ |= 0x00000002;
|
||||
bitField0_ |= 0x00000004;
|
||||
tag = input.readTag();
|
||||
if (tag != 122) {
|
||||
break;
|
||||
@ -938,7 +1023,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
case 122: {
|
||||
// basicInfo
|
||||
input.readMessage(basicInfo);
|
||||
bitField0_ |= 0x00000004;
|
||||
bitField0_ |= 0x00000008;
|
||||
tag = input.readTag();
|
||||
if (tag != 3842) {
|
||||
break;
|
||||
@ -947,7 +1032,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
case 3842: {
|
||||
// boardDataSync
|
||||
input.readMessage(boardDataSync);
|
||||
bitField0_ |= 0x00000008;
|
||||
bitField0_ |= 0x00000010;
|
||||
tag = input.readTag();
|
||||
if (tag != 58) {
|
||||
break;
|
||||
@ -956,7 +1041,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
case 58: {
|
||||
// delEquipmentList [packed=true]
|
||||
input.readPackedUInt32(delEquipmentList, tag);
|
||||
bitField0_ |= 0x00000010;
|
||||
bitField0_ |= 0x00000020;
|
||||
tag = input.readTag();
|
||||
if (tag != 106) {
|
||||
break;
|
||||
@ -965,7 +1050,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
case 106: {
|
||||
// delRelicList [packed=true]
|
||||
input.readPackedUInt32(delRelicList, tag);
|
||||
bitField0_ |= 0x00000020;
|
||||
bitField0_ |= 0x00000040;
|
||||
tag = input.readTag();
|
||||
if (tag != 10) {
|
||||
break;
|
||||
@ -974,7 +1059,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
case 10: {
|
||||
// basicTypeInfoList
|
||||
tag = input.readRepeatedMessage(basicTypeInfoList, tag);
|
||||
bitField0_ |= 0x00000040;
|
||||
bitField0_ |= 0x00000080;
|
||||
if (tag != 34) {
|
||||
break;
|
||||
}
|
||||
@ -982,7 +1067,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
case 34: {
|
||||
// equipmentList
|
||||
tag = input.readRepeatedMessage(equipmentList, tag);
|
||||
bitField0_ |= 0x00000080;
|
||||
bitField0_ |= 0x00000100;
|
||||
if (tag != 98) {
|
||||
break;
|
||||
}
|
||||
@ -990,7 +1075,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
case 98: {
|
||||
// materialList
|
||||
tag = input.readRepeatedMessage(materialList, tag);
|
||||
bitField0_ |= 0x00000100;
|
||||
bitField0_ |= 0x00000200;
|
||||
if (tag != 114) {
|
||||
break;
|
||||
}
|
||||
@ -998,7 +1083,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
case 114: {
|
||||
// relicList
|
||||
tag = input.readRepeatedMessage(relicList, tag);
|
||||
bitField0_ |= 0x00000200;
|
||||
bitField0_ |= 0x00000400;
|
||||
if (tag != 0) {
|
||||
break;
|
||||
}
|
||||
@ -1016,13 +1101,13 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
case 56: {
|
||||
// delEquipmentList [packed=false]
|
||||
tag = input.readRepeatedUInt32(delEquipmentList, tag);
|
||||
bitField0_ |= 0x00000010;
|
||||
bitField0_ |= 0x00000020;
|
||||
break;
|
||||
}
|
||||
case 104: {
|
||||
// delRelicList [packed=false]
|
||||
tag = input.readRepeatedUInt32(delRelicList, tag);
|
||||
bitField0_ |= 0x00000020;
|
||||
bitField0_ |= 0x00000040;
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -1036,30 +1121,33 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
output.writeUInt32(FieldNames.totalAchievementExp, totalAchievementExp);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
output.writeMessage(FieldNames.avatarSync, avatarSync);
|
||||
output.writeMessage(FieldNames.missionSync, missionSync);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
output.writeMessage(FieldNames.basicInfo, basicInfo);
|
||||
output.writeMessage(FieldNames.avatarSync, avatarSync);
|
||||
}
|
||||
if ((bitField0_ & 0x00000008) != 0) {
|
||||
output.writeMessage(FieldNames.boardDataSync, boardDataSync);
|
||||
output.writeMessage(FieldNames.basicInfo, basicInfo);
|
||||
}
|
||||
if ((bitField0_ & 0x00000010) != 0) {
|
||||
output.writeRepeatedUInt32(FieldNames.delEquipmentList, delEquipmentList);
|
||||
output.writeMessage(FieldNames.boardDataSync, boardDataSync);
|
||||
}
|
||||
if ((bitField0_ & 0x00000020) != 0) {
|
||||
output.writeRepeatedUInt32(FieldNames.delRelicList, delRelicList);
|
||||
output.writeRepeatedUInt32(FieldNames.delEquipmentList, delEquipmentList);
|
||||
}
|
||||
if ((bitField0_ & 0x00000040) != 0) {
|
||||
output.writeRepeatedMessage(FieldNames.basicTypeInfoList, basicTypeInfoList);
|
||||
output.writeRepeatedUInt32(FieldNames.delRelicList, delRelicList);
|
||||
}
|
||||
if ((bitField0_ & 0x00000080) != 0) {
|
||||
output.writeRepeatedMessage(FieldNames.equipmentList, equipmentList);
|
||||
output.writeRepeatedMessage(FieldNames.basicTypeInfoList, basicTypeInfoList);
|
||||
}
|
||||
if ((bitField0_ & 0x00000100) != 0) {
|
||||
output.writeRepeatedMessage(FieldNames.materialList, materialList);
|
||||
output.writeRepeatedMessage(FieldNames.equipmentList, equipmentList);
|
||||
}
|
||||
if ((bitField0_ & 0x00000200) != 0) {
|
||||
output.writeRepeatedMessage(FieldNames.materialList, materialList);
|
||||
}
|
||||
if ((bitField0_ & 0x00000400) != 0) {
|
||||
output.writeRepeatedMessage(FieldNames.relicList, relicList);
|
||||
}
|
||||
output.endObject();
|
||||
@ -1084,12 +1172,24 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 1383230023:
|
||||
case -58627730: {
|
||||
if (input.isAtField(FieldNames.missionSync)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
input.readMessage(missionSync);
|
||||
bitField0_ |= 0x00000002;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case -403178604:
|
||||
case 397279681: {
|
||||
if (input.isAtField(FieldNames.avatarSync)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
input.readMessage(avatarSync);
|
||||
bitField0_ |= 0x00000002;
|
||||
bitField0_ |= 0x00000004;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
@ -1101,7 +1201,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
if (input.isAtField(FieldNames.basicInfo)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
input.readMessage(basicInfo);
|
||||
bitField0_ |= 0x00000004;
|
||||
bitField0_ |= 0x00000008;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
@ -1113,7 +1213,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
if (input.isAtField(FieldNames.boardDataSync)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
input.readMessage(boardDataSync);
|
||||
bitField0_ |= 0x00000008;
|
||||
bitField0_ |= 0x00000010;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
@ -1125,7 +1225,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
if (input.isAtField(FieldNames.delEquipmentList)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
input.readRepeatedUInt32(delEquipmentList);
|
||||
bitField0_ |= 0x00000010;
|
||||
bitField0_ |= 0x00000020;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
@ -1137,7 +1237,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
if (input.isAtField(FieldNames.delRelicList)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
input.readRepeatedUInt32(delRelicList);
|
||||
bitField0_ |= 0x00000020;
|
||||
bitField0_ |= 0x00000040;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
@ -1149,7 +1249,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
if (input.isAtField(FieldNames.basicTypeInfoList)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
input.readRepeatedMessage(basicTypeInfoList);
|
||||
bitField0_ |= 0x00000040;
|
||||
bitField0_ |= 0x00000080;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
@ -1161,7 +1261,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
if (input.isAtField(FieldNames.equipmentList)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
input.readRepeatedMessage(equipmentList);
|
||||
bitField0_ |= 0x00000080;
|
||||
bitField0_ |= 0x00000100;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
@ -1173,7 +1273,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
if (input.isAtField(FieldNames.materialList)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
input.readRepeatedMessage(materialList);
|
||||
bitField0_ |= 0x00000100;
|
||||
bitField0_ |= 0x00000200;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
@ -1185,7 +1285,7 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
if (input.isAtField(FieldNames.relicList)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
input.readRepeatedMessage(relicList);
|
||||
bitField0_ |= 0x00000200;
|
||||
bitField0_ |= 0x00000400;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
@ -1247,6 +1347,8 @@ public final class PlayerSyncScNotifyOuterClass {
|
||||
static class FieldNames {
|
||||
static final FieldName totalAchievementExp = FieldName.forField("totalAchievementExp", "total_achievement_exp");
|
||||
|
||||
static final FieldName missionSync = FieldName.forField("missionSync", "mission_sync");
|
||||
|
||||
static final FieldName avatarSync = FieldName.forField("avatarSync", "avatar_sync");
|
||||
|
||||
static final FieldName basicInfo = FieldName.forField("basicInfo", "basic_info");
|
||||
|
@ -0,0 +1,260 @@
|
||||
// Code generated by protocol buffer compiler. Do not edit!
|
||||
package emu.lunarcore.proto;
|
||||
|
||||
import java.io.IOException;
|
||||
import us.hebi.quickbuf.FieldName;
|
||||
import us.hebi.quickbuf.InvalidProtocolBufferException;
|
||||
import us.hebi.quickbuf.JsonSink;
|
||||
import us.hebi.quickbuf.JsonSource;
|
||||
import us.hebi.quickbuf.MessageFactory;
|
||||
import us.hebi.quickbuf.ProtoMessage;
|
||||
import us.hebi.quickbuf.ProtoSink;
|
||||
import us.hebi.quickbuf.ProtoSource;
|
||||
|
||||
public final class SelectInclinationTextCsReqOuterClass {
|
||||
/**
|
||||
* Protobuf type {@code SelectInclinationTextCsReq}
|
||||
*/
|
||||
public static final class SelectInclinationTextCsReq extends ProtoMessage<SelectInclinationTextCsReq> implements Cloneable {
|
||||
private static final long serialVersionUID = 0L;
|
||||
|
||||
/**
|
||||
* <code>optional uint32 inclination_text_id = 8;</code>
|
||||
*/
|
||||
private int inclinationTextId;
|
||||
|
||||
private SelectInclinationTextCsReq() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return a new empty instance of {@code SelectInclinationTextCsReq}
|
||||
*/
|
||||
public static SelectInclinationTextCsReq newInstance() {
|
||||
return new SelectInclinationTextCsReq();
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 inclination_text_id = 8;</code>
|
||||
* @return whether the inclinationTextId field is set
|
||||
*/
|
||||
public boolean hasInclinationTextId() {
|
||||
return (bitField0_ & 0x00000001) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 inclination_text_id = 8;</code>
|
||||
* @return this
|
||||
*/
|
||||
public SelectInclinationTextCsReq clearInclinationTextId() {
|
||||
bitField0_ &= ~0x00000001;
|
||||
inclinationTextId = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 inclination_text_id = 8;</code>
|
||||
* @return the inclinationTextId
|
||||
*/
|
||||
public int getInclinationTextId() {
|
||||
return inclinationTextId;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 inclination_text_id = 8;</code>
|
||||
* @param value the inclinationTextId to set
|
||||
* @return this
|
||||
*/
|
||||
public SelectInclinationTextCsReq setInclinationTextId(final int value) {
|
||||
bitField0_ |= 0x00000001;
|
||||
inclinationTextId = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SelectInclinationTextCsReq copyFrom(final SelectInclinationTextCsReq other) {
|
||||
cachedSize = other.cachedSize;
|
||||
if ((bitField0_ | other.bitField0_) != 0) {
|
||||
bitField0_ = other.bitField0_;
|
||||
inclinationTextId = other.inclinationTextId;
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SelectInclinationTextCsReq mergeFrom(final SelectInclinationTextCsReq other) {
|
||||
if (other.isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
if (other.hasInclinationTextId()) {
|
||||
setInclinationTextId(other.inclinationTextId);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SelectInclinationTextCsReq clear() {
|
||||
if (isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
bitField0_ = 0;
|
||||
inclinationTextId = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SelectInclinationTextCsReq 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 SelectInclinationTextCsReq)) {
|
||||
return false;
|
||||
}
|
||||
SelectInclinationTextCsReq other = (SelectInclinationTextCsReq) o;
|
||||
return bitField0_ == other.bitField0_
|
||||
&& (!hasInclinationTextId() || inclinationTextId == other.inclinationTextId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeTo(final ProtoSink output) throws IOException {
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
output.writeRawByte((byte) 64);
|
||||
output.writeUInt32NoTag(inclinationTextId);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int computeSerializedSize() {
|
||||
int size = 0;
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
size += 1 + ProtoSink.computeUInt32SizeNoTag(inclinationTextId);
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("fallthrough")
|
||||
public SelectInclinationTextCsReq mergeFrom(final ProtoSource input) throws IOException {
|
||||
// Enabled Fall-Through Optimization (QuickBuffers)
|
||||
int tag = input.readTag();
|
||||
while (true) {
|
||||
switch (tag) {
|
||||
case 64: {
|
||||
// inclinationTextId
|
||||
inclinationTextId = input.readUInt32();
|
||||
bitField0_ |= 0x00000001;
|
||||
tag = input.readTag();
|
||||
if (tag != 0) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 0: {
|
||||
return this;
|
||||
}
|
||||
default: {
|
||||
if (!input.skipField(tag)) {
|
||||
return this;
|
||||
}
|
||||
tag = input.readTag();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeTo(final JsonSink output) throws IOException {
|
||||
output.beginObject();
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
output.writeUInt32(FieldNames.inclinationTextId, inclinationTextId);
|
||||
}
|
||||
output.endObject();
|
||||
}
|
||||
|
||||
@Override
|
||||
public SelectInclinationTextCsReq mergeFrom(final JsonSource input) throws IOException {
|
||||
if (!input.beginObject()) {
|
||||
return this;
|
||||
}
|
||||
while (!input.isAtEnd()) {
|
||||
switch (input.readFieldHash()) {
|
||||
case 1954961066:
|
||||
case -598373616: {
|
||||
if (input.isAtField(FieldNames.inclinationTextId)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
inclinationTextId = input.readUInt32();
|
||||
bitField0_ |= 0x00000001;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
input.skipUnknownField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
input.endObject();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SelectInclinationTextCsReq clone() {
|
||||
return new SelectInclinationTextCsReq().copyFrom(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return ((bitField0_) == 0);
|
||||
}
|
||||
|
||||
public static SelectInclinationTextCsReq parseFrom(final byte[] data) throws
|
||||
InvalidProtocolBufferException {
|
||||
return ProtoMessage.mergeFrom(new SelectInclinationTextCsReq(), data).checkInitialized();
|
||||
}
|
||||
|
||||
public static SelectInclinationTextCsReq parseFrom(final ProtoSource input) throws IOException {
|
||||
return ProtoMessage.mergeFrom(new SelectInclinationTextCsReq(), input).checkInitialized();
|
||||
}
|
||||
|
||||
public static SelectInclinationTextCsReq parseFrom(final JsonSource input) throws IOException {
|
||||
return ProtoMessage.mergeFrom(new SelectInclinationTextCsReq(), input).checkInitialized();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return factory for creating SelectInclinationTextCsReq messages
|
||||
*/
|
||||
public static MessageFactory<SelectInclinationTextCsReq> getFactory() {
|
||||
return SelectInclinationTextCsReqFactory.INSTANCE;
|
||||
}
|
||||
|
||||
private enum SelectInclinationTextCsReqFactory implements MessageFactory<SelectInclinationTextCsReq> {
|
||||
INSTANCE;
|
||||
|
||||
@Override
|
||||
public SelectInclinationTextCsReq create() {
|
||||
return SelectInclinationTextCsReq.newInstance();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Contains name constants used for serializing JSON
|
||||
*/
|
||||
static class FieldNames {
|
||||
static final FieldName inclinationTextId = FieldName.forField("inclinationTextId", "inclination_text_id");
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,340 @@
|
||||
// Code generated by protocol buffer compiler. Do not edit!
|
||||
package emu.lunarcore.proto;
|
||||
|
||||
import java.io.IOException;
|
||||
import us.hebi.quickbuf.FieldName;
|
||||
import us.hebi.quickbuf.InvalidProtocolBufferException;
|
||||
import us.hebi.quickbuf.JsonSink;
|
||||
import us.hebi.quickbuf.JsonSource;
|
||||
import us.hebi.quickbuf.MessageFactory;
|
||||
import us.hebi.quickbuf.ProtoMessage;
|
||||
import us.hebi.quickbuf.ProtoSink;
|
||||
import us.hebi.quickbuf.ProtoSource;
|
||||
|
||||
public final class SelectInclinationTextScRspOuterClass {
|
||||
/**
|
||||
* Protobuf type {@code SelectInclinationTextScRsp}
|
||||
*/
|
||||
public static final class SelectInclinationTextScRsp extends ProtoMessage<SelectInclinationTextScRsp> implements Cloneable {
|
||||
private static final long serialVersionUID = 0L;
|
||||
|
||||
/**
|
||||
* <code>optional uint32 inclination_text_id = 6;</code>
|
||||
*/
|
||||
private int inclinationTextId;
|
||||
|
||||
/**
|
||||
* <code>optional uint32 retcode = 10;</code>
|
||||
*/
|
||||
private int retcode;
|
||||
|
||||
private SelectInclinationTextScRsp() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return a new empty instance of {@code SelectInclinationTextScRsp}
|
||||
*/
|
||||
public static SelectInclinationTextScRsp newInstance() {
|
||||
return new SelectInclinationTextScRsp();
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 inclination_text_id = 6;</code>
|
||||
* @return whether the inclinationTextId field is set
|
||||
*/
|
||||
public boolean hasInclinationTextId() {
|
||||
return (bitField0_ & 0x00000001) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 inclination_text_id = 6;</code>
|
||||
* @return this
|
||||
*/
|
||||
public SelectInclinationTextScRsp clearInclinationTextId() {
|
||||
bitField0_ &= ~0x00000001;
|
||||
inclinationTextId = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 inclination_text_id = 6;</code>
|
||||
* @return the inclinationTextId
|
||||
*/
|
||||
public int getInclinationTextId() {
|
||||
return inclinationTextId;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 inclination_text_id = 6;</code>
|
||||
* @param value the inclinationTextId to set
|
||||
* @return this
|
||||
*/
|
||||
public SelectInclinationTextScRsp setInclinationTextId(final int value) {
|
||||
bitField0_ |= 0x00000001;
|
||||
inclinationTextId = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 retcode = 10;</code>
|
||||
* @return whether the retcode field is set
|
||||
*/
|
||||
public boolean hasRetcode() {
|
||||
return (bitField0_ & 0x00000002) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 retcode = 10;</code>
|
||||
* @return this
|
||||
*/
|
||||
public SelectInclinationTextScRsp clearRetcode() {
|
||||
bitField0_ &= ~0x00000002;
|
||||
retcode = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 retcode = 10;</code>
|
||||
* @return the retcode
|
||||
*/
|
||||
public int getRetcode() {
|
||||
return retcode;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 retcode = 10;</code>
|
||||
* @param value the retcode to set
|
||||
* @return this
|
||||
*/
|
||||
public SelectInclinationTextScRsp setRetcode(final int value) {
|
||||
bitField0_ |= 0x00000002;
|
||||
retcode = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SelectInclinationTextScRsp copyFrom(final SelectInclinationTextScRsp other) {
|
||||
cachedSize = other.cachedSize;
|
||||
if ((bitField0_ | other.bitField0_) != 0) {
|
||||
bitField0_ = other.bitField0_;
|
||||
inclinationTextId = other.inclinationTextId;
|
||||
retcode = other.retcode;
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SelectInclinationTextScRsp mergeFrom(final SelectInclinationTextScRsp other) {
|
||||
if (other.isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
if (other.hasInclinationTextId()) {
|
||||
setInclinationTextId(other.inclinationTextId);
|
||||
}
|
||||
if (other.hasRetcode()) {
|
||||
setRetcode(other.retcode);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SelectInclinationTextScRsp clear() {
|
||||
if (isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
bitField0_ = 0;
|
||||
inclinationTextId = 0;
|
||||
retcode = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SelectInclinationTextScRsp 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 SelectInclinationTextScRsp)) {
|
||||
return false;
|
||||
}
|
||||
SelectInclinationTextScRsp other = (SelectInclinationTextScRsp) o;
|
||||
return bitField0_ == other.bitField0_
|
||||
&& (!hasInclinationTextId() || inclinationTextId == other.inclinationTextId)
|
||||
&& (!hasRetcode() || retcode == other.retcode);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeTo(final ProtoSink output) throws IOException {
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
output.writeRawByte((byte) 48);
|
||||
output.writeUInt32NoTag(inclinationTextId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
output.writeRawByte((byte) 80);
|
||||
output.writeUInt32NoTag(retcode);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int computeSerializedSize() {
|
||||
int size = 0;
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
size += 1 + ProtoSink.computeUInt32SizeNoTag(inclinationTextId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode);
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("fallthrough")
|
||||
public SelectInclinationTextScRsp mergeFrom(final ProtoSource input) throws IOException {
|
||||
// Enabled Fall-Through Optimization (QuickBuffers)
|
||||
int tag = input.readTag();
|
||||
while (true) {
|
||||
switch (tag) {
|
||||
case 48: {
|
||||
// inclinationTextId
|
||||
inclinationTextId = input.readUInt32();
|
||||
bitField0_ |= 0x00000001;
|
||||
tag = input.readTag();
|
||||
if (tag != 80) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 80: {
|
||||
// retcode
|
||||
retcode = input.readUInt32();
|
||||
bitField0_ |= 0x00000002;
|
||||
tag = input.readTag();
|
||||
if (tag != 0) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 0: {
|
||||
return this;
|
||||
}
|
||||
default: {
|
||||
if (!input.skipField(tag)) {
|
||||
return this;
|
||||
}
|
||||
tag = input.readTag();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeTo(final JsonSink output) throws IOException {
|
||||
output.beginObject();
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
output.writeUInt32(FieldNames.inclinationTextId, inclinationTextId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
output.writeUInt32(FieldNames.retcode, retcode);
|
||||
}
|
||||
output.endObject();
|
||||
}
|
||||
|
||||
@Override
|
||||
public SelectInclinationTextScRsp mergeFrom(final JsonSource input) throws IOException {
|
||||
if (!input.beginObject()) {
|
||||
return this;
|
||||
}
|
||||
while (!input.isAtEnd()) {
|
||||
switch (input.readFieldHash()) {
|
||||
case 1954961066:
|
||||
case -598373616: {
|
||||
if (input.isAtField(FieldNames.inclinationTextId)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
inclinationTextId = input.readUInt32();
|
||||
bitField0_ |= 0x00000001;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 1097936398: {
|
||||
if (input.isAtField(FieldNames.retcode)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
retcode = input.readUInt32();
|
||||
bitField0_ |= 0x00000002;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
input.skipUnknownField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
input.endObject();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SelectInclinationTextScRsp clone() {
|
||||
return new SelectInclinationTextScRsp().copyFrom(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return ((bitField0_) == 0);
|
||||
}
|
||||
|
||||
public static SelectInclinationTextScRsp parseFrom(final byte[] data) throws
|
||||
InvalidProtocolBufferException {
|
||||
return ProtoMessage.mergeFrom(new SelectInclinationTextScRsp(), data).checkInitialized();
|
||||
}
|
||||
|
||||
public static SelectInclinationTextScRsp parseFrom(final ProtoSource input) throws IOException {
|
||||
return ProtoMessage.mergeFrom(new SelectInclinationTextScRsp(), input).checkInitialized();
|
||||
}
|
||||
|
||||
public static SelectInclinationTextScRsp parseFrom(final JsonSource input) throws IOException {
|
||||
return ProtoMessage.mergeFrom(new SelectInclinationTextScRsp(), input).checkInitialized();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return factory for creating SelectInclinationTextScRsp messages
|
||||
*/
|
||||
public static MessageFactory<SelectInclinationTextScRsp> getFactory() {
|
||||
return SelectInclinationTextScRspFactory.INSTANCE;
|
||||
}
|
||||
|
||||
private enum SelectInclinationTextScRspFactory implements MessageFactory<SelectInclinationTextScRsp> {
|
||||
INSTANCE;
|
||||
|
||||
@Override
|
||||
public SelectInclinationTextScRsp create() {
|
||||
return SelectInclinationTextScRsp.newInstance();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Contains name constants used for serializing JSON
|
||||
*/
|
||||
static class FieldNames {
|
||||
static final FieldName inclinationTextId = FieldName.forField("inclinationTextId", "inclination_text_id");
|
||||
|
||||
static final FieldName retcode = FieldName.forField("retcode");
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,262 @@
|
||||
// Code generated by protocol buffer compiler. Do not edit!
|
||||
package emu.lunarcore.proto;
|
||||
|
||||
import java.io.IOException;
|
||||
import us.hebi.quickbuf.FieldName;
|
||||
import us.hebi.quickbuf.InvalidProtocolBufferException;
|
||||
import us.hebi.quickbuf.JsonSink;
|
||||
import us.hebi.quickbuf.JsonSource;
|
||||
import us.hebi.quickbuf.MessageFactory;
|
||||
import us.hebi.quickbuf.ProtoMessage;
|
||||
import us.hebi.quickbuf.ProtoSink;
|
||||
import us.hebi.quickbuf.ProtoSource;
|
||||
|
||||
public final class StartFinishMainMissionScNotifyOuterClass {
|
||||
/**
|
||||
* Protobuf type {@code StartFinishMainMissionScNotify}
|
||||
*/
|
||||
public static final class StartFinishMainMissionScNotify extends ProtoMessage<StartFinishMainMissionScNotify> implements Cloneable {
|
||||
private static final long serialVersionUID = 0L;
|
||||
|
||||
/**
|
||||
* <code>optional uint32 main_mission_id = 5;</code>
|
||||
*/
|
||||
private int mainMissionId;
|
||||
|
||||
private StartFinishMainMissionScNotify() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return a new empty instance of {@code StartFinishMainMissionScNotify}
|
||||
*/
|
||||
public static StartFinishMainMissionScNotify newInstance() {
|
||||
return new StartFinishMainMissionScNotify();
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 main_mission_id = 5;</code>
|
||||
* @return whether the mainMissionId field is set
|
||||
*/
|
||||
public boolean hasMainMissionId() {
|
||||
return (bitField0_ & 0x00000001) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 main_mission_id = 5;</code>
|
||||
* @return this
|
||||
*/
|
||||
public StartFinishMainMissionScNotify clearMainMissionId() {
|
||||
bitField0_ &= ~0x00000001;
|
||||
mainMissionId = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 main_mission_id = 5;</code>
|
||||
* @return the mainMissionId
|
||||
*/
|
||||
public int getMainMissionId() {
|
||||
return mainMissionId;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 main_mission_id = 5;</code>
|
||||
* @param value the mainMissionId to set
|
||||
* @return this
|
||||
*/
|
||||
public StartFinishMainMissionScNotify setMainMissionId(final int value) {
|
||||
bitField0_ |= 0x00000001;
|
||||
mainMissionId = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public StartFinishMainMissionScNotify copyFrom(final StartFinishMainMissionScNotify other) {
|
||||
cachedSize = other.cachedSize;
|
||||
if ((bitField0_ | other.bitField0_) != 0) {
|
||||
bitField0_ = other.bitField0_;
|
||||
mainMissionId = other.mainMissionId;
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public StartFinishMainMissionScNotify mergeFrom(final StartFinishMainMissionScNotify other) {
|
||||
if (other.isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
if (other.hasMainMissionId()) {
|
||||
setMainMissionId(other.mainMissionId);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public StartFinishMainMissionScNotify clear() {
|
||||
if (isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
bitField0_ = 0;
|
||||
mainMissionId = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public StartFinishMainMissionScNotify 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 StartFinishMainMissionScNotify)) {
|
||||
return false;
|
||||
}
|
||||
StartFinishMainMissionScNotify other = (StartFinishMainMissionScNotify) o;
|
||||
return bitField0_ == other.bitField0_
|
||||
&& (!hasMainMissionId() || mainMissionId == other.mainMissionId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeTo(final ProtoSink output) throws IOException {
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
output.writeRawByte((byte) 40);
|
||||
output.writeUInt32NoTag(mainMissionId);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int computeSerializedSize() {
|
||||
int size = 0;
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
size += 1 + ProtoSink.computeUInt32SizeNoTag(mainMissionId);
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("fallthrough")
|
||||
public StartFinishMainMissionScNotify mergeFrom(final ProtoSource input) throws IOException {
|
||||
// Enabled Fall-Through Optimization (QuickBuffers)
|
||||
int tag = input.readTag();
|
||||
while (true) {
|
||||
switch (tag) {
|
||||
case 40: {
|
||||
// mainMissionId
|
||||
mainMissionId = input.readUInt32();
|
||||
bitField0_ |= 0x00000001;
|
||||
tag = input.readTag();
|
||||
if (tag != 0) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 0: {
|
||||
return this;
|
||||
}
|
||||
default: {
|
||||
if (!input.skipField(tag)) {
|
||||
return this;
|
||||
}
|
||||
tag = input.readTag();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeTo(final JsonSink output) throws IOException {
|
||||
output.beginObject();
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
output.writeUInt32(FieldNames.mainMissionId, mainMissionId);
|
||||
}
|
||||
output.endObject();
|
||||
}
|
||||
|
||||
@Override
|
||||
public StartFinishMainMissionScNotify mergeFrom(final JsonSource input) throws IOException {
|
||||
if (!input.beginObject()) {
|
||||
return this;
|
||||
}
|
||||
while (!input.isAtEnd()) {
|
||||
switch (input.readFieldHash()) {
|
||||
case 1124848142:
|
||||
case 885892852: {
|
||||
if (input.isAtField(FieldNames.mainMissionId)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
mainMissionId = input.readUInt32();
|
||||
bitField0_ |= 0x00000001;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
input.skipUnknownField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
input.endObject();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public StartFinishMainMissionScNotify clone() {
|
||||
return new StartFinishMainMissionScNotify().copyFrom(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return ((bitField0_) == 0);
|
||||
}
|
||||
|
||||
public static StartFinishMainMissionScNotify parseFrom(final byte[] data) throws
|
||||
InvalidProtocolBufferException {
|
||||
return ProtoMessage.mergeFrom(new StartFinishMainMissionScNotify(), data).checkInitialized();
|
||||
}
|
||||
|
||||
public static StartFinishMainMissionScNotify parseFrom(final ProtoSource input) throws
|
||||
IOException {
|
||||
return ProtoMessage.mergeFrom(new StartFinishMainMissionScNotify(), input).checkInitialized();
|
||||
}
|
||||
|
||||
public static StartFinishMainMissionScNotify parseFrom(final JsonSource input) throws
|
||||
IOException {
|
||||
return ProtoMessage.mergeFrom(new StartFinishMainMissionScNotify(), input).checkInitialized();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return factory for creating StartFinishMainMissionScNotify messages
|
||||
*/
|
||||
public static MessageFactory<StartFinishMainMissionScNotify> getFactory() {
|
||||
return StartFinishMainMissionScNotifyFactory.INSTANCE;
|
||||
}
|
||||
|
||||
private enum StartFinishMainMissionScNotifyFactory implements MessageFactory<StartFinishMainMissionScNotify> {
|
||||
INSTANCE;
|
||||
|
||||
@Override
|
||||
public StartFinishMainMissionScNotify create() {
|
||||
return StartFinishMainMissionScNotify.newInstance();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Contains name constants used for serializing JSON
|
||||
*/
|
||||
static class FieldNames {
|
||||
static final FieldName mainMissionId = FieldName.forField("mainMissionId", "main_mission_id");
|
||||
}
|
||||
}
|
||||
}
|
@ -19,12 +19,12 @@ public final class SyncRogueMapRoomScNotifyOuterClass {
|
||||
private static final long serialVersionUID = 0L;
|
||||
|
||||
/**
|
||||
* <code>optional uint32 map_id = 15;</code>
|
||||
* <code>optional uint32 map_id = 3;</code>
|
||||
*/
|
||||
private int mapId;
|
||||
|
||||
/**
|
||||
* <code>optional .RogueRoom cur_room = 7;</code>
|
||||
* <code>optional .RogueRoom cur_room = 4;</code>
|
||||
*/
|
||||
private final RogueRoomOuterClass.RogueRoom curRoom = RogueRoomOuterClass.RogueRoom.newInstance();
|
||||
|
||||
@ -39,7 +39,7 @@ public final class SyncRogueMapRoomScNotifyOuterClass {
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 map_id = 15;</code>
|
||||
* <code>optional uint32 map_id = 3;</code>
|
||||
* @return whether the mapId field is set
|
||||
*/
|
||||
public boolean hasMapId() {
|
||||
@ -47,7 +47,7 @@ public final class SyncRogueMapRoomScNotifyOuterClass {
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 map_id = 15;</code>
|
||||
* <code>optional uint32 map_id = 3;</code>
|
||||
* @return this
|
||||
*/
|
||||
public SyncRogueMapRoomScNotify clearMapId() {
|
||||
@ -57,7 +57,7 @@ public final class SyncRogueMapRoomScNotifyOuterClass {
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 map_id = 15;</code>
|
||||
* <code>optional uint32 map_id = 3;</code>
|
||||
* @return the mapId
|
||||
*/
|
||||
public int getMapId() {
|
||||
@ -65,7 +65,7 @@ public final class SyncRogueMapRoomScNotifyOuterClass {
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 map_id = 15;</code>
|
||||
* <code>optional uint32 map_id = 3;</code>
|
||||
* @param value the mapId to set
|
||||
* @return this
|
||||
*/
|
||||
@ -76,7 +76,7 @@ public final class SyncRogueMapRoomScNotifyOuterClass {
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .RogueRoom cur_room = 7;</code>
|
||||
* <code>optional .RogueRoom cur_room = 4;</code>
|
||||
* @return whether the curRoom field is set
|
||||
*/
|
||||
public boolean hasCurRoom() {
|
||||
@ -84,7 +84,7 @@ public final class SyncRogueMapRoomScNotifyOuterClass {
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .RogueRoom cur_room = 7;</code>
|
||||
* <code>optional .RogueRoom cur_room = 4;</code>
|
||||
* @return this
|
||||
*/
|
||||
public SyncRogueMapRoomScNotify clearCurRoom() {
|
||||
@ -94,7 +94,7 @@ public final class SyncRogueMapRoomScNotifyOuterClass {
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .RogueRoom cur_room = 7;</code>
|
||||
* <code>optional .RogueRoom cur_room = 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.
|
||||
@ -108,7 +108,7 @@ public final class SyncRogueMapRoomScNotifyOuterClass {
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .RogueRoom cur_room = 7;</code>
|
||||
* <code>optional .RogueRoom cur_room = 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
|
||||
@ -122,7 +122,7 @@ public final class SyncRogueMapRoomScNotifyOuterClass {
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .RogueRoom cur_room = 7;</code>
|
||||
* <code>optional .RogueRoom cur_room = 4;</code>
|
||||
* @param value the curRoom to set
|
||||
* @return this
|
||||
*/
|
||||
@ -198,11 +198,11 @@ public final class SyncRogueMapRoomScNotifyOuterClass {
|
||||
@Override
|
||||
public void writeTo(final ProtoSink output) throws IOException {
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
output.writeRawByte((byte) 120);
|
||||
output.writeRawByte((byte) 24);
|
||||
output.writeUInt32NoTag(mapId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
output.writeRawByte((byte) 58);
|
||||
output.writeRawByte((byte) 34);
|
||||
output.writeMessageNoTag(curRoom);
|
||||
}
|
||||
}
|
||||
@ -226,16 +226,16 @@ public final class SyncRogueMapRoomScNotifyOuterClass {
|
||||
int tag = input.readTag();
|
||||
while (true) {
|
||||
switch (tag) {
|
||||
case 120: {
|
||||
case 24: {
|
||||
// mapId
|
||||
mapId = input.readUInt32();
|
||||
bitField0_ |= 0x00000001;
|
||||
tag = input.readTag();
|
||||
if (tag != 58) {
|
||||
if (tag != 34) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 58: {
|
||||
case 34: {
|
||||
// curRoom
|
||||
input.readMessage(curRoom);
|
||||
bitField0_ |= 0x00000002;
|
||||
|
@ -0,0 +1,146 @@
|
||||
// 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 TrackMainMissionUpdateOuterClass {
|
||||
/**
|
||||
* Protobuf enum {@code TrackMainMissionUpdate}
|
||||
*/
|
||||
public enum TrackMainMissionUpdate implements ProtoEnum<TrackMainMissionUpdate> {
|
||||
/**
|
||||
* <code>TRACK_MAIN_MISSION_UPDATE_NONE = 0;</code>
|
||||
*/
|
||||
TRACK_MAIN_MISSION_UPDATE_NONE("TRACK_MAIN_MISSION_UPDATE_NONE", 0),
|
||||
|
||||
/**
|
||||
* <code>TRACK_MAIN_MISSION_UPDATE_AUTO = 1;</code>
|
||||
*/
|
||||
TRACK_MAIN_MISSION_UPDATE_AUTO("TRACK_MAIN_MISSION_UPDATE_AUTO", 1),
|
||||
|
||||
/**
|
||||
* <code>TRACK_MAIN_MISSION_UPDATE_MANUAL = 2;</code>
|
||||
*/
|
||||
TRACK_MAIN_MISSION_UPDATE_MANUAL("TRACK_MAIN_MISSION_UPDATE_MANUAL", 2),
|
||||
|
||||
/**
|
||||
* <code>TRACK_MAIN_MISSION_UPDATE_LOGIN_REPORT = 3;</code>
|
||||
*/
|
||||
TRACK_MAIN_MISSION_UPDATE_LOGIN_REPORT("TRACK_MAIN_MISSION_UPDATE_LOGIN_REPORT", 3);
|
||||
|
||||
/**
|
||||
* <code>TRACK_MAIN_MISSION_UPDATE_NONE = 0;</code>
|
||||
*/
|
||||
public static final int TRACK_MAIN_MISSION_UPDATE_NONE_VALUE = 0;
|
||||
|
||||
/**
|
||||
* <code>TRACK_MAIN_MISSION_UPDATE_AUTO = 1;</code>
|
||||
*/
|
||||
public static final int TRACK_MAIN_MISSION_UPDATE_AUTO_VALUE = 1;
|
||||
|
||||
/**
|
||||
* <code>TRACK_MAIN_MISSION_UPDATE_MANUAL = 2;</code>
|
||||
*/
|
||||
public static final int TRACK_MAIN_MISSION_UPDATE_MANUAL_VALUE = 2;
|
||||
|
||||
/**
|
||||
* <code>TRACK_MAIN_MISSION_UPDATE_LOGIN_REPORT = 3;</code>
|
||||
*/
|
||||
public static final int TRACK_MAIN_MISSION_UPDATE_LOGIN_REPORT_VALUE = 3;
|
||||
|
||||
private final String name;
|
||||
|
||||
private final int number;
|
||||
|
||||
private TrackMainMissionUpdate(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<TrackMainMissionUpdate> converter() {
|
||||
return TrackMainMissionUpdateConverter.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 TrackMainMissionUpdate forNumber(int value) {
|
||||
return TrackMainMissionUpdateConverter.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 TrackMainMissionUpdate forNumberOr(int number, TrackMainMissionUpdate other) {
|
||||
TrackMainMissionUpdate value = forNumber(number);
|
||||
return value == null ? other : value;
|
||||
}
|
||||
|
||||
enum TrackMainMissionUpdateConverter implements ProtoEnum.EnumConverter<TrackMainMissionUpdate> {
|
||||
INSTANCE;
|
||||
|
||||
private static final TrackMainMissionUpdate[] lookup = new TrackMainMissionUpdate[4];
|
||||
|
||||
static {
|
||||
lookup[0] = TRACK_MAIN_MISSION_UPDATE_NONE;
|
||||
lookup[1] = TRACK_MAIN_MISSION_UPDATE_AUTO;
|
||||
lookup[2] = TRACK_MAIN_MISSION_UPDATE_MANUAL;
|
||||
lookup[3] = TRACK_MAIN_MISSION_UPDATE_LOGIN_REPORT;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final TrackMainMissionUpdate forNumber(final int value) {
|
||||
if (value >= 0 && value < lookup.length) {
|
||||
return lookup[value];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final TrackMainMissionUpdate forName(final CharSequence value) {
|
||||
if (value.length() == 30) {
|
||||
if (ProtoUtil.isEqual("TRACK_MAIN_MISSION_UPDATE_NONE", value)) {
|
||||
return TRACK_MAIN_MISSION_UPDATE_NONE;
|
||||
}
|
||||
if (ProtoUtil.isEqual("TRACK_MAIN_MISSION_UPDATE_AUTO", value)) {
|
||||
return TRACK_MAIN_MISSION_UPDATE_AUTO;
|
||||
}
|
||||
}
|
||||
if (value.length() == 32) {
|
||||
if (ProtoUtil.isEqual("TRACK_MAIN_MISSION_UPDATE_MANUAL", value)) {
|
||||
return TRACK_MAIN_MISSION_UPDATE_MANUAL;
|
||||
}
|
||||
}
|
||||
if (value.length() == 38) {
|
||||
if (ProtoUtil.isEqual("TRACK_MAIN_MISSION_UPDATE_LOGIN_REPORT", value)) {
|
||||
return TRACK_MAIN_MISSION_UPDATE_LOGIN_REPORT;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,458 @@
|
||||
// Code generated by protocol buffer compiler. Do not edit!
|
||||
package emu.lunarcore.proto;
|
||||
|
||||
import java.io.IOException;
|
||||
import us.hebi.quickbuf.FieldName;
|
||||
import us.hebi.quickbuf.InvalidProtocolBufferException;
|
||||
import us.hebi.quickbuf.JsonSink;
|
||||
import us.hebi.quickbuf.JsonSource;
|
||||
import us.hebi.quickbuf.MessageFactory;
|
||||
import us.hebi.quickbuf.ProtoMessage;
|
||||
import us.hebi.quickbuf.ProtoSink;
|
||||
import us.hebi.quickbuf.ProtoSource;
|
||||
|
||||
public final class UpdateTrackMainMissionIdCsReqOuterClass {
|
||||
/**
|
||||
* Protobuf type {@code UpdateTrackMainMissionIdCsReq}
|
||||
*/
|
||||
public static final class UpdateTrackMainMissionIdCsReq extends ProtoMessage<UpdateTrackMainMissionIdCsReq> implements Cloneable {
|
||||
private static final long serialVersionUID = 0L;
|
||||
|
||||
/**
|
||||
* <code>optional uint32 unk_int = 10;</code>
|
||||
*/
|
||||
private int unkInt;
|
||||
|
||||
/**
|
||||
* <code>optional uint32 cur_mission_id = 15;</code>
|
||||
*/
|
||||
private int curMissionId;
|
||||
|
||||
/**
|
||||
* <code>optional .TrackMainMissionUpdate track_main_mission_status = 12;</code>
|
||||
*/
|
||||
private int trackMainMissionStatus;
|
||||
|
||||
private UpdateTrackMainMissionIdCsReq() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return a new empty instance of {@code UpdateTrackMainMissionIdCsReq}
|
||||
*/
|
||||
public static UpdateTrackMainMissionIdCsReq newInstance() {
|
||||
return new UpdateTrackMainMissionIdCsReq();
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 unk_int = 10;</code>
|
||||
* @return whether the unkInt field is set
|
||||
*/
|
||||
public boolean hasUnkInt() {
|
||||
return (bitField0_ & 0x00000001) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 unk_int = 10;</code>
|
||||
* @return this
|
||||
*/
|
||||
public UpdateTrackMainMissionIdCsReq clearUnkInt() {
|
||||
bitField0_ &= ~0x00000001;
|
||||
unkInt = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 unk_int = 10;</code>
|
||||
* @return the unkInt
|
||||
*/
|
||||
public int getUnkInt() {
|
||||
return unkInt;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 unk_int = 10;</code>
|
||||
* @param value the unkInt to set
|
||||
* @return this
|
||||
*/
|
||||
public UpdateTrackMainMissionIdCsReq setUnkInt(final int value) {
|
||||
bitField0_ |= 0x00000001;
|
||||
unkInt = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 cur_mission_id = 15;</code>
|
||||
* @return whether the curMissionId field is set
|
||||
*/
|
||||
public boolean hasCurMissionId() {
|
||||
return (bitField0_ & 0x00000002) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 cur_mission_id = 15;</code>
|
||||
* @return this
|
||||
*/
|
||||
public UpdateTrackMainMissionIdCsReq clearCurMissionId() {
|
||||
bitField0_ &= ~0x00000002;
|
||||
curMissionId = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 cur_mission_id = 15;</code>
|
||||
* @return the curMissionId
|
||||
*/
|
||||
public int getCurMissionId() {
|
||||
return curMissionId;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 cur_mission_id = 15;</code>
|
||||
* @param value the curMissionId to set
|
||||
* @return this
|
||||
*/
|
||||
public UpdateTrackMainMissionIdCsReq setCurMissionId(final int value) {
|
||||
bitField0_ |= 0x00000002;
|
||||
curMissionId = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .TrackMainMissionUpdate track_main_mission_status = 12;</code>
|
||||
* @return whether the trackMainMissionStatus field is set
|
||||
*/
|
||||
public boolean hasTrackMainMissionStatus() {
|
||||
return (bitField0_ & 0x00000004) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .TrackMainMissionUpdate track_main_mission_status = 12;</code>
|
||||
* @return this
|
||||
*/
|
||||
public UpdateTrackMainMissionIdCsReq clearTrackMainMissionStatus() {
|
||||
bitField0_ &= ~0x00000004;
|
||||
trackMainMissionStatus = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .TrackMainMissionUpdate track_main_mission_status = 12;</code>
|
||||
* @return the trackMainMissionStatus
|
||||
*/
|
||||
public TrackMainMissionUpdateOuterClass.TrackMainMissionUpdate getTrackMainMissionStatus() {
|
||||
return TrackMainMissionUpdateOuterClass.TrackMainMissionUpdate.forNumber(trackMainMissionStatus);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the internal enum store. The result is
|
||||
* equivalent to {@link UpdateTrackMainMissionIdCsReq#getTrackMainMissionStatus()}.getNumber().
|
||||
*
|
||||
* @return numeric wire representation
|
||||
*/
|
||||
public int getTrackMainMissionStatusValue() {
|
||||
return trackMainMissionStatus;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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 TrackMainMissionUpdateOuterClass.TrackMainMissionUpdate}. Setting an invalid value
|
||||
* can cause {@link UpdateTrackMainMissionIdCsReq#getTrackMainMissionStatus()} to return null
|
||||
*
|
||||
* @param value the numeric wire value to set
|
||||
* @return this
|
||||
*/
|
||||
public UpdateTrackMainMissionIdCsReq setTrackMainMissionStatusValue(final int value) {
|
||||
bitField0_ |= 0x00000004;
|
||||
trackMainMissionStatus = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional .TrackMainMissionUpdate track_main_mission_status = 12;</code>
|
||||
* @param value the trackMainMissionStatus to set
|
||||
* @return this
|
||||
*/
|
||||
public UpdateTrackMainMissionIdCsReq setTrackMainMissionStatus(
|
||||
final TrackMainMissionUpdateOuterClass.TrackMainMissionUpdate value) {
|
||||
bitField0_ |= 0x00000004;
|
||||
trackMainMissionStatus = value.getNumber();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UpdateTrackMainMissionIdCsReq copyFrom(final UpdateTrackMainMissionIdCsReq other) {
|
||||
cachedSize = other.cachedSize;
|
||||
if ((bitField0_ | other.bitField0_) != 0) {
|
||||
bitField0_ = other.bitField0_;
|
||||
unkInt = other.unkInt;
|
||||
curMissionId = other.curMissionId;
|
||||
trackMainMissionStatus = other.trackMainMissionStatus;
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UpdateTrackMainMissionIdCsReq mergeFrom(final UpdateTrackMainMissionIdCsReq other) {
|
||||
if (other.isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
if (other.hasUnkInt()) {
|
||||
setUnkInt(other.unkInt);
|
||||
}
|
||||
if (other.hasCurMissionId()) {
|
||||
setCurMissionId(other.curMissionId);
|
||||
}
|
||||
if (other.hasTrackMainMissionStatus()) {
|
||||
setTrackMainMissionStatusValue(other.trackMainMissionStatus);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UpdateTrackMainMissionIdCsReq clear() {
|
||||
if (isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
bitField0_ = 0;
|
||||
unkInt = 0;
|
||||
curMissionId = 0;
|
||||
trackMainMissionStatus = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UpdateTrackMainMissionIdCsReq 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 UpdateTrackMainMissionIdCsReq)) {
|
||||
return false;
|
||||
}
|
||||
UpdateTrackMainMissionIdCsReq other = (UpdateTrackMainMissionIdCsReq) o;
|
||||
return bitField0_ == other.bitField0_
|
||||
&& (!hasUnkInt() || unkInt == other.unkInt)
|
||||
&& (!hasCurMissionId() || curMissionId == other.curMissionId)
|
||||
&& (!hasTrackMainMissionStatus() || trackMainMissionStatus == other.trackMainMissionStatus);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeTo(final ProtoSink output) throws IOException {
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
output.writeRawByte((byte) 80);
|
||||
output.writeUInt32NoTag(unkInt);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
output.writeRawByte((byte) 120);
|
||||
output.writeUInt32NoTag(curMissionId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
output.writeRawByte((byte) 96);
|
||||
output.writeEnumNoTag(trackMainMissionStatus);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int computeSerializedSize() {
|
||||
int size = 0;
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
size += 1 + ProtoSink.computeUInt32SizeNoTag(unkInt);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
size += 1 + ProtoSink.computeUInt32SizeNoTag(curMissionId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
size += 1 + ProtoSink.computeEnumSizeNoTag(trackMainMissionStatus);
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("fallthrough")
|
||||
public UpdateTrackMainMissionIdCsReq mergeFrom(final ProtoSource input) throws IOException {
|
||||
// Enabled Fall-Through Optimization (QuickBuffers)
|
||||
int tag = input.readTag();
|
||||
while (true) {
|
||||
switch (tag) {
|
||||
case 80: {
|
||||
// unkInt
|
||||
unkInt = input.readUInt32();
|
||||
bitField0_ |= 0x00000001;
|
||||
tag = input.readTag();
|
||||
if (tag != 120) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 120: {
|
||||
// curMissionId
|
||||
curMissionId = input.readUInt32();
|
||||
bitField0_ |= 0x00000002;
|
||||
tag = input.readTag();
|
||||
if (tag != 96) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 96: {
|
||||
// trackMainMissionStatus
|
||||
final int value = input.readInt32();
|
||||
if (TrackMainMissionUpdateOuterClass.TrackMainMissionUpdate.forNumber(value) != null) {
|
||||
trackMainMissionStatus = value;
|
||||
bitField0_ |= 0x00000004;
|
||||
}
|
||||
tag = input.readTag();
|
||||
if (tag != 0) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 0: {
|
||||
return this;
|
||||
}
|
||||
default: {
|
||||
if (!input.skipField(tag)) {
|
||||
return this;
|
||||
}
|
||||
tag = input.readTag();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeTo(final JsonSink output) throws IOException {
|
||||
output.beginObject();
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
output.writeUInt32(FieldNames.unkInt, unkInt);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
output.writeUInt32(FieldNames.curMissionId, curMissionId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
output.writeEnum(FieldNames.trackMainMissionStatus, trackMainMissionStatus, TrackMainMissionUpdateOuterClass.TrackMainMissionUpdate.converter());
|
||||
}
|
||||
output.endObject();
|
||||
}
|
||||
|
||||
@Override
|
||||
public UpdateTrackMainMissionIdCsReq mergeFrom(final JsonSource input) throws IOException {
|
||||
if (!input.beginObject()) {
|
||||
return this;
|
||||
}
|
||||
while (!input.isAtEnd()) {
|
||||
switch (input.readFieldHash()) {
|
||||
case -840508003:
|
||||
case -285293790: {
|
||||
if (input.isAtField(FieldNames.unkInt)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
unkInt = input.readUInt32();
|
||||
bitField0_ |= 0x00000001;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case -1870430873:
|
||||
case 50847757: {
|
||||
if (input.isAtField(FieldNames.curMissionId)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
curMissionId = input.readUInt32();
|
||||
bitField0_ |= 0x00000002;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 1499566426:
|
||||
case -1020477353: {
|
||||
if (input.isAtField(FieldNames.trackMainMissionStatus)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
final TrackMainMissionUpdateOuterClass.TrackMainMissionUpdate value = input.readEnum(TrackMainMissionUpdateOuterClass.TrackMainMissionUpdate.converter());
|
||||
if (value != null) {
|
||||
trackMainMissionStatus = value.getNumber();
|
||||
bitField0_ |= 0x00000004;
|
||||
} else {
|
||||
input.skipUnknownEnumValue();
|
||||
}
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
input.skipUnknownField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
input.endObject();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UpdateTrackMainMissionIdCsReq clone() {
|
||||
return new UpdateTrackMainMissionIdCsReq().copyFrom(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return ((bitField0_) == 0);
|
||||
}
|
||||
|
||||
public static UpdateTrackMainMissionIdCsReq parseFrom(final byte[] data) throws
|
||||
InvalidProtocolBufferException {
|
||||
return ProtoMessage.mergeFrom(new UpdateTrackMainMissionIdCsReq(), data).checkInitialized();
|
||||
}
|
||||
|
||||
public static UpdateTrackMainMissionIdCsReq parseFrom(final ProtoSource input) throws
|
||||
IOException {
|
||||
return ProtoMessage.mergeFrom(new UpdateTrackMainMissionIdCsReq(), input).checkInitialized();
|
||||
}
|
||||
|
||||
public static UpdateTrackMainMissionIdCsReq parseFrom(final JsonSource input) throws
|
||||
IOException {
|
||||
return ProtoMessage.mergeFrom(new UpdateTrackMainMissionIdCsReq(), input).checkInitialized();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return factory for creating UpdateTrackMainMissionIdCsReq messages
|
||||
*/
|
||||
public static MessageFactory<UpdateTrackMainMissionIdCsReq> getFactory() {
|
||||
return UpdateTrackMainMissionIdCsReqFactory.INSTANCE;
|
||||
}
|
||||
|
||||
private enum UpdateTrackMainMissionIdCsReqFactory implements MessageFactory<UpdateTrackMainMissionIdCsReq> {
|
||||
INSTANCE;
|
||||
|
||||
@Override
|
||||
public UpdateTrackMainMissionIdCsReq create() {
|
||||
return UpdateTrackMainMissionIdCsReq.newInstance();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Contains name constants used for serializing JSON
|
||||
*/
|
||||
static class FieldNames {
|
||||
static final FieldName unkInt = FieldName.forField("unkInt", "unk_int");
|
||||
|
||||
static final FieldName curMissionId = FieldName.forField("curMissionId", "cur_mission_id");
|
||||
|
||||
static final FieldName trackMainMissionStatus = FieldName.forField("trackMainMissionStatus", "track_main_mission_status");
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,423 @@
|
||||
// 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 UpdateTrackMainMissionIdScRspOuterClass {
|
||||
/**
|
||||
* Protobuf type {@code UpdateTrackMainMissionIdScRsp}
|
||||
*/
|
||||
public static final class UpdateTrackMainMissionIdScRsp extends ProtoMessage<UpdateTrackMainMissionIdScRsp> implements Cloneable {
|
||||
private static final long serialVersionUID = 0L;
|
||||
|
||||
/**
|
||||
* <code>optional uint32 retcode = 3;</code>
|
||||
*/
|
||||
private int retcode;
|
||||
|
||||
/**
|
||||
* <code>optional uint32 cur_mission_id = 5;</code>
|
||||
*/
|
||||
private int curMissionId;
|
||||
|
||||
/**
|
||||
* <code>optional uint32 unk_uint = 14;</code>
|
||||
*/
|
||||
private int unkUint;
|
||||
|
||||
private UpdateTrackMainMissionIdScRsp() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return a new empty instance of {@code UpdateTrackMainMissionIdScRsp}
|
||||
*/
|
||||
public static UpdateTrackMainMissionIdScRsp newInstance() {
|
||||
return new UpdateTrackMainMissionIdScRsp();
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 retcode = 3;</code>
|
||||
* @return whether the retcode field is set
|
||||
*/
|
||||
public boolean hasRetcode() {
|
||||
return (bitField0_ & 0x00000001) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 retcode = 3;</code>
|
||||
* @return this
|
||||
*/
|
||||
public UpdateTrackMainMissionIdScRsp clearRetcode() {
|
||||
bitField0_ &= ~0x00000001;
|
||||
retcode = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 retcode = 3;</code>
|
||||
* @return the retcode
|
||||
*/
|
||||
public int getRetcode() {
|
||||
return retcode;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 retcode = 3;</code>
|
||||
* @param value the retcode to set
|
||||
* @return this
|
||||
*/
|
||||
public UpdateTrackMainMissionIdScRsp setRetcode(final int value) {
|
||||
bitField0_ |= 0x00000001;
|
||||
retcode = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 cur_mission_id = 5;</code>
|
||||
* @return whether the curMissionId field is set
|
||||
*/
|
||||
public boolean hasCurMissionId() {
|
||||
return (bitField0_ & 0x00000002) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 cur_mission_id = 5;</code>
|
||||
* @return this
|
||||
*/
|
||||
public UpdateTrackMainMissionIdScRsp clearCurMissionId() {
|
||||
bitField0_ &= ~0x00000002;
|
||||
curMissionId = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 cur_mission_id = 5;</code>
|
||||
* @return the curMissionId
|
||||
*/
|
||||
public int getCurMissionId() {
|
||||
return curMissionId;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 cur_mission_id = 5;</code>
|
||||
* @param value the curMissionId to set
|
||||
* @return this
|
||||
*/
|
||||
public UpdateTrackMainMissionIdScRsp setCurMissionId(final int value) {
|
||||
bitField0_ |= 0x00000002;
|
||||
curMissionId = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 unk_uint = 14;</code>
|
||||
* @return whether the unkUint field is set
|
||||
*/
|
||||
public boolean hasUnkUint() {
|
||||
return (bitField0_ & 0x00000004) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 unk_uint = 14;</code>
|
||||
* @return this
|
||||
*/
|
||||
public UpdateTrackMainMissionIdScRsp clearUnkUint() {
|
||||
bitField0_ &= ~0x00000004;
|
||||
unkUint = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 unk_uint = 14;</code>
|
||||
* @return the unkUint
|
||||
*/
|
||||
public int getUnkUint() {
|
||||
return unkUint;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>optional uint32 unk_uint = 14;</code>
|
||||
* @param value the unkUint to set
|
||||
* @return this
|
||||
*/
|
||||
public UpdateTrackMainMissionIdScRsp setUnkUint(final int value) {
|
||||
bitField0_ |= 0x00000004;
|
||||
unkUint = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UpdateTrackMainMissionIdScRsp copyFrom(final UpdateTrackMainMissionIdScRsp other) {
|
||||
cachedSize = other.cachedSize;
|
||||
if ((bitField0_ | other.bitField0_) != 0) {
|
||||
bitField0_ = other.bitField0_;
|
||||
retcode = other.retcode;
|
||||
curMissionId = other.curMissionId;
|
||||
unkUint = other.unkUint;
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UpdateTrackMainMissionIdScRsp mergeFrom(final UpdateTrackMainMissionIdScRsp other) {
|
||||
if (other.isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
if (other.hasRetcode()) {
|
||||
setRetcode(other.retcode);
|
||||
}
|
||||
if (other.hasCurMissionId()) {
|
||||
setCurMissionId(other.curMissionId);
|
||||
}
|
||||
if (other.hasUnkUint()) {
|
||||
setUnkUint(other.unkUint);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UpdateTrackMainMissionIdScRsp clear() {
|
||||
if (isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
cachedSize = -1;
|
||||
bitField0_ = 0;
|
||||
retcode = 0;
|
||||
curMissionId = 0;
|
||||
unkUint = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UpdateTrackMainMissionIdScRsp 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 UpdateTrackMainMissionIdScRsp)) {
|
||||
return false;
|
||||
}
|
||||
UpdateTrackMainMissionIdScRsp other = (UpdateTrackMainMissionIdScRsp) o;
|
||||
return bitField0_ == other.bitField0_
|
||||
&& (!hasRetcode() || retcode == other.retcode)
|
||||
&& (!hasCurMissionId() || curMissionId == other.curMissionId)
|
||||
&& (!hasUnkUint() || unkUint == other.unkUint);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeTo(final ProtoSink output) throws IOException {
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
output.writeRawByte((byte) 24);
|
||||
output.writeUInt32NoTag(retcode);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
output.writeRawByte((byte) 40);
|
||||
output.writeUInt32NoTag(curMissionId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
output.writeRawByte((byte) 112);
|
||||
output.writeUInt32NoTag(unkUint);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int computeSerializedSize() {
|
||||
int size = 0;
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
size += 1 + ProtoSink.computeUInt32SizeNoTag(curMissionId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
size += 1 + ProtoSink.computeUInt32SizeNoTag(unkUint);
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("fallthrough")
|
||||
public UpdateTrackMainMissionIdScRsp mergeFrom(final ProtoSource input) throws IOException {
|
||||
// Enabled Fall-Through Optimization (QuickBuffers)
|
||||
int tag = input.readTag();
|
||||
while (true) {
|
||||
switch (tag) {
|
||||
case 24: {
|
||||
// retcode
|
||||
retcode = input.readUInt32();
|
||||
bitField0_ |= 0x00000001;
|
||||
tag = input.readTag();
|
||||
if (tag != 40) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 40: {
|
||||
// curMissionId
|
||||
curMissionId = input.readUInt32();
|
||||
bitField0_ |= 0x00000002;
|
||||
tag = input.readTag();
|
||||
if (tag != 112) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 112: {
|
||||
// unkUint
|
||||
unkUint = input.readUInt32();
|
||||
bitField0_ |= 0x00000004;
|
||||
tag = input.readTag();
|
||||
if (tag != 0) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 0: {
|
||||
return this;
|
||||
}
|
||||
default: {
|
||||
if (!input.skipField(tag)) {
|
||||
return this;
|
||||
}
|
||||
tag = input.readTag();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeTo(final JsonSink output) throws IOException {
|
||||
output.beginObject();
|
||||
if ((bitField0_ & 0x00000001) != 0) {
|
||||
output.writeUInt32(FieldNames.retcode, retcode);
|
||||
}
|
||||
if ((bitField0_ & 0x00000002) != 0) {
|
||||
output.writeUInt32(FieldNames.curMissionId, curMissionId);
|
||||
}
|
||||
if ((bitField0_ & 0x00000004) != 0) {
|
||||
output.writeUInt32(FieldNames.unkUint, unkUint);
|
||||
}
|
||||
output.endObject();
|
||||
}
|
||||
|
||||
@Override
|
||||
public UpdateTrackMainMissionIdScRsp 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 -1870430873:
|
||||
case 50847757: {
|
||||
if (input.isAtField(FieldNames.curMissionId)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
curMissionId = input.readUInt32();
|
||||
bitField0_ |= 0x00000002;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case -285591700:
|
||||
case -253820281: {
|
||||
if (input.isAtField(FieldNames.unkUint)) {
|
||||
if (!input.trySkipNullValue()) {
|
||||
unkUint = input.readUInt32();
|
||||
bitField0_ |= 0x00000004;
|
||||
}
|
||||
} else {
|
||||
input.skipUnknownField();
|
||||
}
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
input.skipUnknownField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
input.endObject();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UpdateTrackMainMissionIdScRsp clone() {
|
||||
return new UpdateTrackMainMissionIdScRsp().copyFrom(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return ((bitField0_) == 0);
|
||||
}
|
||||
|
||||
public static UpdateTrackMainMissionIdScRsp parseFrom(final byte[] data) throws
|
||||
InvalidProtocolBufferException {
|
||||
return ProtoMessage.mergeFrom(new UpdateTrackMainMissionIdScRsp(), data).checkInitialized();
|
||||
}
|
||||
|
||||
public static UpdateTrackMainMissionIdScRsp parseFrom(final ProtoSource input) throws
|
||||
IOException {
|
||||
return ProtoMessage.mergeFrom(new UpdateTrackMainMissionIdScRsp(), input).checkInitialized();
|
||||
}
|
||||
|
||||
public static UpdateTrackMainMissionIdScRsp parseFrom(final JsonSource input) throws
|
||||
IOException {
|
||||
return ProtoMessage.mergeFrom(new UpdateTrackMainMissionIdScRsp(), input).checkInitialized();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return factory for creating UpdateTrackMainMissionIdScRsp messages
|
||||
*/
|
||||
public static MessageFactory<UpdateTrackMainMissionIdScRsp> getFactory() {
|
||||
return UpdateTrackMainMissionIdScRspFactory.INSTANCE;
|
||||
}
|
||||
|
||||
private enum UpdateTrackMainMissionIdScRspFactory implements MessageFactory<UpdateTrackMainMissionIdScRsp> {
|
||||
INSTANCE;
|
||||
|
||||
@Override
|
||||
public UpdateTrackMainMissionIdScRsp create() {
|
||||
return UpdateTrackMainMissionIdScRsp.newInstance();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Contains name constants used for serializing JSON
|
||||
*/
|
||||
static class FieldNames {
|
||||
static final FieldName retcode = FieldName.forField("retcode");
|
||||
|
||||
static final FieldName curMissionId = FieldName.forField("curMissionId", "cur_mission_id");
|
||||
|
||||
static final FieldName unkUint = FieldName.forField("unkUint", "unk_uint");
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,65 @@
|
||||
package emu.lunarcore.command.commands;
|
||||
|
||||
import emu.lunarcore.data.config.MainMissionInfo;
|
||||
import emu.lunarcore.command.Command;
|
||||
import emu.lunarcore.command.CommandArgs;
|
||||
import emu.lunarcore.command.CommandHandler;
|
||||
import emu.lunarcore.game.player.Player;
|
||||
import emu.lunarcore.data.GameData;
|
||||
import emu.lunarcore.util.Utils;
|
||||
import emu.lunarcore.proto.MissionStatusOuterClass.MissionStatus;
|
||||
import emu.lunarcore.server.packet.send.PacketMissionAcceptScNotify;
|
||||
import emu.lunarcore.server.packet.send.PacketPlayerSyncScNotify;
|
||||
import emu.lunarcore.server.packet.send.PacketStartFinishMainMissionScNotify;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@Command(label = "mission", aliases = {"mission", "startmission"}, permission = "player.mission", requireTarget = true, desc = "/mission {main missionid}. Starts a mission.")
|
||||
public class MissionCommand implements CommandHandler {
|
||||
|
||||
@Override
|
||||
public void execute(CommandArgs args) {
|
||||
|
||||
Player target = args.getTarget();
|
||||
|
||||
int missionId = Utils.parseSafeInt(args.get(0));
|
||||
|
||||
if (!GameData.getMainMissionExcelMap().containsKey(missionId)) {
|
||||
args.sendMessage("Error: Invalid arguments");
|
||||
} else {
|
||||
if (target.getSubMissionId() != 0) {
|
||||
int prev_missionId = target.getMainMissionId();
|
||||
int prev_subMissionId = target.getSubMissionId();
|
||||
target.sendPacket(new PacketPlayerSyncScNotify(prev_missionId, prev_subMissionId, MissionStatus.MISSION_FINISH));
|
||||
target.sendPacket(new PacketStartFinishMainMissionScNotify(missionId));
|
||||
}
|
||||
MainMissionInfo missionInfo = GameData.getMainMissionInfos(missionId);
|
||||
|
||||
if (missionInfo == null) {
|
||||
args.sendMessage("Error: missing resources for mission!");
|
||||
return;
|
||||
}
|
||||
|
||||
List<Integer> subMissionIdsList = new ArrayList<>();
|
||||
|
||||
if (missionInfo != null && missionInfo.getSubMissionList() != null) {
|
||||
for (MainMissionInfo.SubMissionInfo subMissionInfo : missionInfo.getSubMissionList()) {
|
||||
subMissionIdsList.add(subMissionInfo.getId());
|
||||
}
|
||||
}
|
||||
|
||||
int fistMission = missionInfo.getStartSubMissionList()[0];
|
||||
args.sendMessage("fistMission: "+fistMission);
|
||||
|
||||
int[] subMissionIds = subMissionIdsList.stream().mapToInt(Integer::intValue).toArray();
|
||||
|
||||
target.setMainMissionId(missionId);
|
||||
target.setSubMissionId(fistMission);
|
||||
|
||||
target.sendPacket(new PacketMissionAcceptScNotify(subMissionIds));
|
||||
target.sendPacket(new PacketPlayerSyncScNotify(missionId, fistMission, MissionStatus.MISSION_DOING));
|
||||
|
||||
args.sendMessage("Started Mission "+missionId);
|
||||
}
|
||||
}
|
||||
}
|
@ -6,6 +6,7 @@ import java.util.List;
|
||||
import java.util.ArrayList;
|
||||
|
||||
import emu.lunarcore.data.config.FloorInfo;
|
||||
import emu.lunarcore.data.config.MainMissionInfo;
|
||||
import emu.lunarcore.data.excel.*;
|
||||
import emu.lunarcore.game.battle.MazeBuff;
|
||||
import emu.lunarcore.util.Utils;
|
||||
@ -81,6 +82,10 @@ public class GameData {
|
||||
private static Int2ObjectMap<RelicMainAffixExcel> relicMainAffixExcelMap = new Int2ObjectOpenHashMap<>();
|
||||
private static Int2ObjectMap<RelicSubAffixExcel> relicSubAffixExcelMap = new Int2ObjectOpenHashMap<>();
|
||||
private static Int2ObjectMap<RelicSetExcel> relicSetExcelMap = new Int2ObjectOpenHashMap<>();
|
||||
|
||||
// Mission - Related
|
||||
@Getter private static Int2ObjectMap<MainMissionExcel> mainMissionExcelMap = new Int2ObjectOpenHashMap<>();
|
||||
@Getter private static Object2ObjectMap<Integer, MainMissionInfo> missionInfos = new Object2ObjectOpenHashMap<>();
|
||||
|
||||
// Configs (Bin)
|
||||
@Getter private static Object2ObjectMap<String, FloorInfo> floorInfos = new Object2ObjectOpenHashMap<>();
|
||||
@ -210,4 +215,26 @@ public class GameData {
|
||||
public static RogueBuffExcel getRogueBuffExcel(int rogueBuffId, int level) {
|
||||
return rogueBuffExcelMap.get((rogueBuffId << 4) + level);
|
||||
}
|
||||
|
||||
public static MainMissionInfo getMainMissionInfos(int mainMissionID) {
|
||||
if (!missionInfos.containsKey(mainMissionID)) {
|
||||
return null;
|
||||
}
|
||||
return missionInfos.get(mainMissionID);
|
||||
}
|
||||
|
||||
public static List<Integer> getMainMissionIds() {
|
||||
List<Integer> allIds = new ArrayList<>();
|
||||
|
||||
for (Int2ObjectMap.Entry<MainMissionExcel> entry : mainMissionExcelMap.int2ObjectEntrySet()) {
|
||||
MainMissionExcel mainMissionExcel = entry.getValue();
|
||||
allIds.add(mainMissionExcel.getId());
|
||||
}
|
||||
|
||||
return allIds;
|
||||
}
|
||||
|
||||
public static MainMissionExcel getMainMissionExcelByID(int mMisionId) {
|
||||
return mainMissionExcelMap.get(mMisionId);
|
||||
}
|
||||
}
|
||||
|
@ -53,6 +53,8 @@ public class ResourceLoader {
|
||||
loadActivityScheduleConfig();
|
||||
// Load rogue dialogue events
|
||||
loadRogueDialogueEvent();
|
||||
// Load main mission configs
|
||||
loadMissionInfo();
|
||||
|
||||
// Done
|
||||
loaded = true;
|
||||
@ -389,4 +391,20 @@ public class ResourceLoader {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
private static void loadMissionInfo() {
|
||||
int count = 0;
|
||||
for (Integer mMissionId : GameData.getMainMissionIds()) {
|
||||
var file = new File(LunarCore.getConfig().getResourceDir() + "/Config/Level/Mission/" + mMissionId + "/" + "MissionInfo_" + mMissionId + ".json");
|
||||
if (!file.exists()) continue;
|
||||
try (var reader = new FileReader(file)) {
|
||||
var info = gson.fromJson(reader, MainMissionInfo.class);
|
||||
GameData.getMissionInfos().put(info.getMainMissionID(), info);
|
||||
count++;
|
||||
} catch (Exception e) {
|
||||
LunarCore.getLogger().warn("Failed to load mission info: " + file.getName(), e);
|
||||
}
|
||||
}
|
||||
LunarCore.getLogger().info("Loaded " + count + " mission infos.");
|
||||
}
|
||||
}
|
||||
|
38
src/main/java/emu/lunarcore/data/config/MainMissionInfo.java
Normal file
38
src/main/java/emu/lunarcore/data/config/MainMissionInfo.java
Normal file
@ -0,0 +1,38 @@
|
||||
package emu.lunarcore.data.config;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
public class MainMissionInfo {
|
||||
@SerializedName("MainMissionID")
|
||||
private int mainMissionID;
|
||||
|
||||
@SerializedName("StartSubMissionList")
|
||||
private int[] startSubMissionList;
|
||||
|
||||
@SerializedName("FinishSubMissionList")
|
||||
private int[] finishSubMissionList;
|
||||
|
||||
@SerializedName("SubMissionList")
|
||||
private SubMissionInfo[] subMissionList;
|
||||
|
||||
@Getter
|
||||
public static class SubMissionInfo {
|
||||
@SerializedName("ID")
|
||||
private int id;
|
||||
|
||||
@SerializedName("MainMissionID")
|
||||
private int mainMissionID;
|
||||
}
|
||||
|
||||
|
||||
@Getter
|
||||
public static class MissionSimpleInfo {
|
||||
private int mainMissionID;
|
||||
private int[] startSubMissionList;
|
||||
private int[] finishSubMissionList;
|
||||
private SubMissionInfo[] subMissionList;
|
||||
}
|
||||
}
|
18
src/main/java/emu/lunarcore/data/excel/MainMissionExcel.java
Normal file
18
src/main/java/emu/lunarcore/data/excel/MainMissionExcel.java
Normal file
@ -0,0 +1,18 @@
|
||||
package emu.lunarcore.data.excel;
|
||||
|
||||
import emu.lunarcore.data.GameResource;
|
||||
import emu.lunarcore.data.ResourceType;
|
||||
import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
@ResourceType(name = {"MainMission.json"})
|
||||
public class MainMissionExcel extends GameResource {
|
||||
private int MainMissionID;
|
||||
private int RewardID;
|
||||
private String Type;
|
||||
|
||||
@Override
|
||||
public int getId() {
|
||||
return MainMissionID;
|
||||
}
|
||||
}
|
@ -95,6 +95,9 @@ public class Player implements Tickable {
|
||||
private int stamina;
|
||||
private double staminaReserve;
|
||||
private long nextStaminaRecover;
|
||||
|
||||
@Getter private int mainMissionId;
|
||||
@Getter private int subMissionId;
|
||||
|
||||
private transient Battle battle;
|
||||
private transient Scene scene;
|
||||
@ -977,4 +980,12 @@ public class Player implements Tickable {
|
||||
|
||||
return proto;
|
||||
}
|
||||
|
||||
public void setMainMissionId(int mainMissionId) {
|
||||
this.mainMissionId = mainMissionId;
|
||||
}
|
||||
|
||||
public void setSubMissionId(int subMissionId) {
|
||||
this.subMissionId = subMissionId;
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,20 @@
|
||||
package emu.lunarcore.server.packet.recv;
|
||||
|
||||
import emu.lunarcore.proto.FinishTalkMissionCsReqOuterClass.FinishTalkMissionCsReq;
|
||||
import emu.lunarcore.server.packet.send.PacketFinishTalkMissionScRsp;
|
||||
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.FinishTalkMissionCsReq)
|
||||
public class HandlerFinishTalkMissionCsReq extends PacketHandler {
|
||||
|
||||
@Override
|
||||
public void handle(GameSession session, byte[] data) throws Exception {
|
||||
var req = FinishTalkMissionCsReq.parseFrom(data);
|
||||
|
||||
session.send(new PacketFinishTalkMissionScRsp(req));
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
package emu.lunarcore.server.packet.recv;
|
||||
|
||||
import emu.lunarcore.server.packet.send.PacketGetVideoVersionKeyScRsp;
|
||||
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.GetVideoVersionKeyCsReq)
|
||||
public class HandlerGetVideoVersionKeyCsReq extends PacketHandler {
|
||||
|
||||
@Override
|
||||
public void handle(GameSession session, byte[] data) throws Exception {
|
||||
session.send(new PacketGetVideoVersionKeyScRsp());
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,33 @@
|
||||
package emu.lunarcore.server.packet.recv;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import emu.lunarcore.util.Position;
|
||||
import emu.lunarcore.proto.EntityMotionOuterClass.EntityMotion;
|
||||
import emu.lunarcore.proto.SceneEntityTeleportCsReqOuterClass.SceneEntityTeleportCsReq;
|
||||
import emu.lunarcore.server.game.GameSession;
|
||||
import emu.lunarcore.server.packet.CmdId;
|
||||
import emu.lunarcore.server.packet.Opcodes;
|
||||
import emu.lunarcore.server.packet.PacketHandler;
|
||||
import emu.lunarcore.server.packet.send.PacketSceneEntityTeleportScRsp;
|
||||
|
||||
@Opcodes(CmdId.SceneEntityTeleportCsReq)
|
||||
public class HandlerSceneEntityTeleportCsReq extends PacketHandler {
|
||||
|
||||
@Override
|
||||
public void handle(GameSession session, byte[] data) throws Exception {
|
||||
var req = SceneEntityTeleportCsReq.parseFrom(data);
|
||||
|
||||
EntityMotion motion = req.getEntityMotion();
|
||||
|
||||
if (session.getPlayer().getScene().getAvatarEntityIds().contains(motion.getEntityId())) {
|
||||
var vec = motion.getMotion().getPos();
|
||||
var vecRot = motion.getMotion().getRot();
|
||||
session.getPlayer().moveTo(new Position(vec.getX(), vec.getY(), vec.getZ()), new Position(0, vecRot.getY(), 0));
|
||||
}
|
||||
|
||||
session.send(new PacketSceneEntityTeleportScRsp(motion));
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package emu.lunarcore.server.packet.recv;
|
||||
|
||||
import emu.lunarcore.server.packet.send.PacketSelectInclinationTextScRsp;
|
||||
import emu.lunarcore.proto.SelectInclinationTextCsReqOuterClass.SelectInclinationTextCsReq;
|
||||
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.SelectInclinationTextCsReq)
|
||||
public class HandlerSelectInclinationTextCsReq extends PacketHandler {
|
||||
@Override
|
||||
public void handle(GameSession session, byte[] data) throws Exception {
|
||||
var req = SelectInclinationTextCsReq.parseFrom(data);
|
||||
|
||||
session.send(new PacketSelectInclinationTextScRsp(req.getInclinationTextId()));
|
||||
}
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
package emu.lunarcore.server.packet.recv;
|
||||
|
||||
import emu.lunarcore.proto.UpdateTrackMainMissionIdCsReqOuterClass.UpdateTrackMainMissionIdCsReq;
|
||||
import emu.lunarcore.server.game.GameSession;
|
||||
import emu.lunarcore.server.packet.CmdId;
|
||||
import emu.lunarcore.server.packet.Opcodes;
|
||||
import emu.lunarcore.server.packet.PacketHandler;
|
||||
import emu.lunarcore.server.packet.send.PacketUpdateTrackMainMissionIdScRsp;
|
||||
|
||||
@Opcodes(CmdId.UpdateTrackMainMissionIdCsReq)
|
||||
public class HandlerUpdateTrackMainMissionIdCsReq extends PacketHandler {
|
||||
|
||||
@Override
|
||||
public void handle(GameSession session, byte[] data) throws Exception {
|
||||
var req = UpdateTrackMainMissionIdCsReq.parseFrom(data);
|
||||
|
||||
if (req.hasCurMissionId()) {
|
||||
session.send(new PacketUpdateTrackMainMissionIdScRsp(req.getCurMissionId()));
|
||||
} else {
|
||||
session.send(CmdId.UpdateTrackMainMissionIdScRsp);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
package emu.lunarcore.server.packet.send;
|
||||
|
||||
import emu.lunarcore.game.player.Player;
|
||||
import emu.lunarcore.proto.EntityMotionOuterClass.EntityMotion;
|
||||
import emu.lunarcore.proto.SceneEntityTeleportScRspOuterClass.SceneEntityTeleportScRsp;
|
||||
import emu.lunarcore.server.packet.BasePacket;
|
||||
import emu.lunarcore.server.packet.CmdId;
|
||||
|
||||
public class PacketSceneEntityTeleportScRsp extends BasePacket {
|
||||
|
||||
public PacketSceneEntityTeleportScRsp(EntityMotion motion) {
|
||||
super(CmdId.SceneEntityTeleportScRsp);
|
||||
|
||||
var data = SceneEntityTeleportScRsp.newInstance();
|
||||
|
||||
data.setEntityMotion(motion);
|
||||
|
||||
this.setData(data);
|
||||
}
|
||||
}
|
@ -0,0 +1,23 @@
|
||||
package emu.lunarcore.server.packet.send;
|
||||
|
||||
import emu.lunarcore.proto.FinishTalkMissionCsReqOuterClass.FinishTalkMissionCsReq;
|
||||
import emu.lunarcore.proto.FinishTalkMissionScRspOuterClass.FinishTalkMissionScRsp;
|
||||
import emu.lunarcore.server.packet.BasePacket;
|
||||
import emu.lunarcore.server.packet.CmdId;
|
||||
|
||||
public class PacketFinishTalkMissionScRsp extends BasePacket {
|
||||
|
||||
public PacketFinishTalkMissionScRsp(FinishTalkMissionCsReq req) {
|
||||
super(CmdId.FinishTalkMissionScRsp);
|
||||
|
||||
var data = FinishTalkMissionScRsp.newInstance()
|
||||
.setSubMissionId(req.getSubMissionId())
|
||||
.setTalkStr(req.getTalkStr());
|
||||
|
||||
for (var item : req.getCustomValueList()) {
|
||||
data.addCustomValueList(item);
|
||||
}
|
||||
|
||||
this.setData(data);
|
||||
}
|
||||
}
|
@ -0,0 +1,139 @@
|
||||
package emu.lunarcore.server.packet.send;
|
||||
|
||||
import emu.lunarcore.proto.KeyDataOuterClass.KeyData;
|
||||
import emu.lunarcore.proto.GetVideoVersionKeyScRspOuterClass.GetVideoVersionKeyScRsp;
|
||||
import emu.lunarcore.server.packet.BasePacket;
|
||||
import emu.lunarcore.server.packet.CmdId;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class PacketGetVideoVersionKeyScRsp extends BasePacket {
|
||||
|
||||
public PacketGetVideoVersionKeyScRsp() {
|
||||
super(CmdId.GetVideoVersionKeyScRsp);
|
||||
|
||||
// Have no choice
|
||||
List<KeyValuePair> keyPairs = new ArrayList<>();
|
||||
keyPairs.add(new KeyValuePair(3280, 2561596943881963L));
|
||||
keyPairs.add(new KeyValuePair(3270, 8879370645472013L));
|
||||
keyPairs.add(new KeyValuePair(3260, 2097603869107987L));
|
||||
keyPairs.add(new KeyValuePair(2440, 90220927L));
|
||||
keyPairs.add(new KeyValuePair(2420, 90220927L));
|
||||
keyPairs.add(new KeyValuePair(1222, 14220714L));
|
||||
keyPairs.add(new KeyValuePair(2580, 12230627L));
|
||||
keyPairs.add(new KeyValuePair(1221, 14220714L));
|
||||
keyPairs.add(new KeyValuePair(3140, 20231023L));
|
||||
keyPairs.add(new KeyValuePair(3180, 20231025L));
|
||||
keyPairs.add(new KeyValuePair(1190, 14220714L));
|
||||
keyPairs.add(new KeyValuePair(3130, 20230828L));
|
||||
keyPairs.add(new KeyValuePair(3160, 20230828L));
|
||||
keyPairs.add(new KeyValuePair(1170, 14220714L));
|
||||
keyPairs.add(new KeyValuePair(3110, 20230828L));
|
||||
keyPairs.add(new KeyValuePair(420, 16231009L));
|
||||
keyPairs.add(new KeyValuePair(1304, 13230706L));
|
||||
keyPairs.add(new KeyValuePair(3050, 20230828L));
|
||||
keyPairs.add(new KeyValuePair(411, 16231009L));
|
||||
keyPairs.add(new KeyValuePair(3030, 15230830L));
|
||||
keyPairs.add(new KeyValuePair(410, 16231009L));
|
||||
keyPairs.add(new KeyValuePair(390, 16231009L));
|
||||
keyPairs.add(new KeyValuePair(400, 16231009L));
|
||||
keyPairs.add(new KeyValuePair(2, 60220919L));
|
||||
keyPairs.add(new KeyValuePair(320, 11230119L));
|
||||
keyPairs.add(new KeyValuePair(1240, 14220714L));
|
||||
keyPairs.add(new KeyValuePair(3230, 1603427538481255L));
|
||||
keyPairs.add(new KeyValuePair(2450, 90220919L));
|
||||
keyPairs.add(new KeyValuePair(100, 12230601L));
|
||||
keyPairs.add(new KeyValuePair(3, 62220927L));
|
||||
keyPairs.add(new KeyValuePair(3010, 15230830L));
|
||||
keyPairs.add(new KeyValuePair(3301, 20231030L));
|
||||
keyPairs.add(new KeyValuePair(101, 12230601L));
|
||||
keyPairs.add(new KeyValuePair(4, 62220927L));
|
||||
keyPairs.add(new KeyValuePair(2720, 15230830L));
|
||||
keyPairs.add(new KeyValuePair(3302, 20231030L));
|
||||
keyPairs.add(new KeyValuePair(1224, 14220714L));
|
||||
keyPairs.add(new KeyValuePair(370, 16231009L));
|
||||
keyPairs.add(new KeyValuePair(1223, 14220714L));
|
||||
keyPairs.add(new KeyValuePair(350, 16231009L));
|
||||
keyPairs.add(new KeyValuePair(330, 16231009L));
|
||||
keyPairs.add(new KeyValuePair(3240, 5468538194758078L));
|
||||
keyPairs.add(new KeyValuePair(1, 60220919L));
|
||||
keyPairs.add(new KeyValuePair(2620, 13230602L));
|
||||
keyPairs.add(new KeyValuePair(2690, 15230830L));
|
||||
keyPairs.add(new KeyValuePair(302, 16230928L));
|
||||
keyPairs.add(new KeyValuePair(2630, 13230615L));
|
||||
keyPairs.add(new KeyValuePair(2460, 90220927L));
|
||||
keyPairs.add(new KeyValuePair(3120, 20230828L));
|
||||
keyPairs.add(new KeyValuePair(3150, 20230828L));
|
||||
keyPairs.add(new KeyValuePair(1160, 71220919L));
|
||||
keyPairs.add(new KeyValuePair(3100, 20231023L));
|
||||
keyPairs.add(new KeyValuePair(5, 62220927L));
|
||||
keyPairs.add(new KeyValuePair(21, 70220927L));
|
||||
keyPairs.add(new KeyValuePair(2640, 14220714L));
|
||||
keyPairs.add(new KeyValuePair(1180, 14220714L));
|
||||
keyPairs.add(new KeyValuePair(3170, 20230828L));
|
||||
keyPairs.add(new KeyValuePair(8, 70220919L));
|
||||
keyPairs.add(new KeyValuePair(2530, 11230119L));
|
||||
keyPairs.add(new KeyValuePair(310, 71220927L));
|
||||
keyPairs.add(new KeyValuePair(1230, 14220714L));
|
||||
keyPairs.add(new KeyValuePair(3220, 7306477623361936L));
|
||||
keyPairs.add(new KeyValuePair(340, 16231009L));
|
||||
keyPairs.add(new KeyValuePair(3250, 6314041275143045L));
|
||||
keyPairs.add(new KeyValuePair(360, 16231009L));
|
||||
keyPairs.add(new KeyValuePair(380, 16231009L));
|
||||
keyPairs.add(new KeyValuePair(2480, 90220927L));
|
||||
keyPairs.add(new KeyValuePair(301, 16230928L));
|
||||
keyPairs.add(new KeyValuePair(102, 12230601L));
|
||||
keyPairs.add(new KeyValuePair(2490, 90220927L));
|
||||
keyPairs.add(new KeyValuePair(361, 16231009L));
|
||||
keyPairs.add(new KeyValuePair(2550, 12230627L));
|
||||
keyPairs.add(new KeyValuePair(2560, 12230525L));
|
||||
keyPairs.add(new KeyValuePair(2570, 12230525L));
|
||||
keyPairs.add(new KeyValuePair(2660, 15230830L));
|
||||
keyPairs.add(new KeyValuePair(2670, 15230830L));
|
||||
keyPairs.add(new KeyValuePair(2680, 15230830L));
|
||||
keyPairs.add(new KeyValuePair(2302, 13230706L));
|
||||
keyPairs.add(new KeyValuePair(2700, 15230906L));
|
||||
keyPairs.add(new KeyValuePair(2701, 15230830L));
|
||||
keyPairs.add(new KeyValuePair(2710, 15230830L));
|
||||
keyPairs.add(new KeyValuePair(2730, 13230602L));
|
||||
keyPairs.add(new KeyValuePair(2740, 13230602L));
|
||||
keyPairs.add(new KeyValuePair(2750, 13230602L));
|
||||
keyPairs.add(new KeyValuePair(2760, 13230602L));
|
||||
keyPairs.add(new KeyValuePair(3020, 15230830L));
|
||||
keyPairs.add(new KeyValuePair(3040, 20230828L));
|
||||
keyPairs.add(new KeyValuePair(3060, 20231023L));
|
||||
keyPairs.add(new KeyValuePair(3070, 20230828L));
|
||||
keyPairs.add(new KeyValuePair(3080, 20230828L));
|
||||
keyPairs.add(new KeyValuePair(3090, 20230828L));
|
||||
keyPairs.add(new KeyValuePair(1200, 14220714L));
|
||||
keyPairs.add(new KeyValuePair(3190, 6934685122749340L));
|
||||
keyPairs.add(new KeyValuePair(7, 62220927L));
|
||||
keyPairs.add(new KeyValuePair(3191, 9082263766138238L));
|
||||
keyPairs.add(new KeyValuePair(1210, 14220714L));
|
||||
keyPairs.add(new KeyValuePair(16, 70220919L));
|
||||
keyPairs.add(new KeyValuePair(3200, 9030866044638228L));
|
||||
keyPairs.add(new KeyValuePair(1220, 14220714L));
|
||||
keyPairs.add(new KeyValuePair(3210, 6363892035972617L));
|
||||
|
||||
var data = GetVideoVersionKeyScRsp.newInstance();
|
||||
|
||||
for (KeyValuePair pair : keyPairs) {
|
||||
var keydata = KeyData.newInstance()
|
||||
.setId(pair.keyId)
|
||||
.setKey(pair.key);
|
||||
data.addKeys(keydata);
|
||||
}
|
||||
|
||||
this.setData(data);
|
||||
}
|
||||
|
||||
private static class KeyValuePair {
|
||||
int keyId;
|
||||
long key;
|
||||
|
||||
KeyValuePair(int keyId, long key) {
|
||||
this.keyId = keyId;
|
||||
this.key = key;
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
package emu.lunarcore.server.packet.send;
|
||||
|
||||
import emu.lunarcore.proto.MissionAcceptScNotifyOuterClass.MissionAcceptScNotify;
|
||||
import emu.lunarcore.server.packet.BasePacket;
|
||||
import emu.lunarcore.server.packet.CmdId;
|
||||
|
||||
public class PacketMissionAcceptScNotify extends BasePacket {
|
||||
|
||||
public PacketMissionAcceptScNotify(int...subMissionIds) {
|
||||
super(CmdId.MissionAcceptScNotify);
|
||||
|
||||
var data = MissionAcceptScNotify.newInstance()
|
||||
.addAllSubMissionIdList(subMissionIds);
|
||||
|
||||
this.setData(data);
|
||||
}
|
||||
}
|
@ -6,6 +6,9 @@ import emu.lunarcore.game.avatar.GameAvatar;
|
||||
import emu.lunarcore.game.avatar.AvatarHeroPath;
|
||||
import emu.lunarcore.game.inventory.GameItem;
|
||||
import emu.lunarcore.game.player.Player;
|
||||
import emu.lunarcore.proto.MissionSyncOuterClass.MissionSync;
|
||||
import emu.lunarcore.proto.MissionOuterClass.Mission;
|
||||
import emu.lunarcore.proto.MissionStatusOuterClass.MissionStatus;
|
||||
import emu.lunarcore.proto.BoardDataSyncOuterClass.BoardDataSync;
|
||||
import emu.lunarcore.proto.PlayerSyncScNotifyOuterClass.PlayerSyncScNotify;
|
||||
import emu.lunarcore.server.packet.BasePacket;
|
||||
@ -134,4 +137,41 @@ public class PacketPlayerSyncScNotify extends BasePacket {
|
||||
|
||||
this.setData(data);
|
||||
}
|
||||
|
||||
public PacketPlayerSyncScNotify(int mainMissionId, int subMissionId, MissionStatus missionStatus) {
|
||||
this();
|
||||
|
||||
var missionList = Mission.newInstance()
|
||||
.setId(subMissionId)
|
||||
.setStatus(missionStatus);
|
||||
|
||||
var missionSync = MissionSync.newInstance()
|
||||
.addMissionList(missionList)
|
||||
.addMainMissionId(mainMissionId);
|
||||
|
||||
var data = PlayerSyncScNotify.newInstance()
|
||||
.setMissionSync(missionSync);
|
||||
|
||||
this.setData(data);
|
||||
}
|
||||
|
||||
|
||||
public PacketPlayerSyncScNotify(int mainMissionId, int[] subMissionIds, MissionStatus missionStatus) {
|
||||
this();
|
||||
|
||||
var missionSync = MissionSync.newInstance();
|
||||
|
||||
for (int subMissionId : subMissionIds) {
|
||||
missionSync.addMissionList(
|
||||
Mission.newInstance()
|
||||
.setId(subMissionId)
|
||||
.setStatus(missionStatus)
|
||||
);
|
||||
}
|
||||
|
||||
var data = PlayerSyncScNotify.newInstance()
|
||||
.setMissionSync(missionSync);
|
||||
|
||||
this.setData(data);
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,17 @@
|
||||
package emu.lunarcore.server.packet.send;
|
||||
|
||||
import emu.lunarcore.proto.SelectInclinationTextScRspOuterClass.SelectInclinationTextScRsp;
|
||||
import emu.lunarcore.server.packet.BasePacket;
|
||||
import emu.lunarcore.server.packet.CmdId;
|
||||
|
||||
public class PacketSelectInclinationTextScRsp extends BasePacket {
|
||||
|
||||
public PacketSelectInclinationTextScRsp(int id) {
|
||||
super(CmdId.SelectInclinationTextScRsp);
|
||||
|
||||
var data = SelectInclinationTextScRsp.newInstance()
|
||||
.setInclinationTextId(id);
|
||||
|
||||
this.setData(data);
|
||||
}
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
package emu.lunarcore.server.packet.send;
|
||||
|
||||
import emu.lunarcore.proto.StartFinishMainMissionScNotifyOuterClass.StartFinishMainMissionScNotify;
|
||||
import emu.lunarcore.server.packet.BasePacket;
|
||||
import emu.lunarcore.server.packet.CmdId;
|
||||
|
||||
public class PacketStartFinishMainMissionScNotify extends BasePacket {
|
||||
|
||||
public PacketStartFinishMainMissionScNotify(int mainMissionId) {
|
||||
super(CmdId.StartFinishMainMissionScNotify);
|
||||
|
||||
var data = StartFinishMainMissionScNotify.newInstance()
|
||||
.setMainMissionId(mainMissionId);
|
||||
|
||||
this.setData(data);
|
||||
}
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
package emu.lunarcore.server.packet.send;
|
||||
|
||||
import emu.lunarcore.proto.UpdateTrackMainMissionIdScRspOuterClass.UpdateTrackMainMissionIdScRsp;
|
||||
import emu.lunarcore.server.packet.BasePacket;
|
||||
import emu.lunarcore.server.packet.CmdId;
|
||||
|
||||
public class PacketUpdateTrackMainMissionIdScRsp extends BasePacket {
|
||||
|
||||
public PacketUpdateTrackMainMissionIdScRsp(int id) {
|
||||
super(CmdId.UpdateTrackMainMissionIdScRsp);
|
||||
|
||||
var data = UpdateTrackMainMissionIdScRsp.newInstance()
|
||||
.setCurMissionId(id);
|
||||
|
||||
this.setData(data);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user