mirror of
https://github.com/Melledy/LunarCore.git
synced 2025-12-14 22:34:35 +01:00
Fix AS cannot get in normally and 2nd half of MOC doesnt load enemy
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
// Code generated by protocol buffer compiler. Do not edit!
|
|
||||||
package emu.lunarcore.proto;
|
package emu.lunarcore.proto;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
@@ -12,354 +11,227 @@ import us.hebi.quickbuf.ProtoSink;
|
|||||||
import us.hebi.quickbuf.ProtoSource;
|
import us.hebi.quickbuf.ProtoSource;
|
||||||
|
|
||||||
public final class ChallengeStoryInfoOuterClass {
|
public final class ChallengeStoryInfoOuterClass {
|
||||||
/**
|
|
||||||
* Protobuf type {@code ChallengeStoryInfo}
|
|
||||||
*/
|
|
||||||
public static final class ChallengeStoryInfo extends ProtoMessage<ChallengeStoryInfo> implements Cloneable {
|
public static final class ChallengeStoryInfo extends ProtoMessage<ChallengeStoryInfo> implements Cloneable {
|
||||||
private static final long serialVersionUID = 0L;
|
private static final long serialVersionUID = 0L;
|
||||||
|
|
||||||
/**
|
|
||||||
* <code>optional .ChallengeStoryBuffInfo cur_story_buffs = 1;</code>
|
|
||||||
*/
|
|
||||||
private final ChallengeStoryBuffInfoOuterClass.ChallengeStoryBuffInfo curStoryBuffs = ChallengeStoryBuffInfoOuterClass.ChallengeStoryBuffInfo.newInstance();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <code>optional .ChallengeBossBuffInfo cur_boss_buffs = 9;</code>
|
|
||||||
*/
|
|
||||||
private final ChallengeBossBuffInfoOuterClass.ChallengeBossBuffInfo curBossBuffs = ChallengeBossBuffInfoOuterClass.ChallengeBossBuffInfo.newInstance();
|
private final ChallengeBossBuffInfoOuterClass.ChallengeBossBuffInfo curBossBuffs = ChallengeBossBuffInfoOuterClass.ChallengeBossBuffInfo.newInstance();
|
||||||
|
|
||||||
private ChallengeStoryInfo() {
|
private final ChallengeStoryBuffInfoOuterClass.ChallengeStoryBuffInfo curStoryBuffs = ChallengeStoryBuffInfoOuterClass.ChallengeStoryBuffInfo.newInstance();
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @return a new empty instance of {@code ChallengeStoryInfo}
|
|
||||||
*/
|
|
||||||
public static ChallengeStoryInfo newInstance() {
|
public static ChallengeStoryInfo newInstance() {
|
||||||
return new ChallengeStoryInfo();
|
return new ChallengeStoryInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* <code>optional .ChallengeStoryBuffInfo cur_story_buffs = 1;</code>
|
|
||||||
* @return whether the curStoryBuffs field is set
|
|
||||||
*/
|
|
||||||
public boolean hasCurStoryBuffs() {
|
|
||||||
return (bitField0_ & 0x00000001) != 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <code>optional .ChallengeStoryBuffInfo cur_story_buffs = 1;</code>
|
|
||||||
* @return this
|
|
||||||
*/
|
|
||||||
public ChallengeStoryInfo clearCurStoryBuffs() {
|
|
||||||
bitField0_ &= ~0x00000001;
|
|
||||||
curStoryBuffs.clear();
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <code>optional .ChallengeStoryBuffInfo cur_story_buffs = 1;</code>
|
|
||||||
*
|
|
||||||
* This method returns the internal storage object without modifying any has state.
|
|
||||||
* The returned object should not be modified and be treated as read-only.
|
|
||||||
*
|
|
||||||
* Use {@link #getMutableCurStoryBuffs()} if you want to modify it.
|
|
||||||
*
|
|
||||||
* @return internal storage object for reading
|
|
||||||
*/
|
|
||||||
public ChallengeStoryBuffInfoOuterClass.ChallengeStoryBuffInfo getCurStoryBuffs() {
|
|
||||||
return curStoryBuffs;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <code>optional .ChallengeStoryBuffInfo cur_story_buffs = 1;</code>
|
|
||||||
*
|
|
||||||
* This method returns the internal storage object and sets the corresponding
|
|
||||||
* has state. The returned object will become part of this message and its
|
|
||||||
* contents may be modified as long as the has state is not cleared.
|
|
||||||
*
|
|
||||||
* @return internal storage object for modifications
|
|
||||||
*/
|
|
||||||
public ChallengeStoryBuffInfoOuterClass.ChallengeStoryBuffInfo getMutableCurStoryBuffs() {
|
|
||||||
bitField0_ |= 0x00000001;
|
|
||||||
return curStoryBuffs;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <code>optional .ChallengeStoryBuffInfo cur_story_buffs = 1;</code>
|
|
||||||
* @param value the curStoryBuffs to set
|
|
||||||
* @return this
|
|
||||||
*/
|
|
||||||
public ChallengeStoryInfo setCurStoryBuffs(
|
|
||||||
final ChallengeStoryBuffInfoOuterClass.ChallengeStoryBuffInfo value) {
|
|
||||||
bitField0_ |= 0x00000001;
|
|
||||||
curStoryBuffs.copyFrom(value);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <code>optional .ChallengeBossBuffInfo cur_boss_buffs = 9;</code>
|
|
||||||
* @return whether the curBossBuffs field is set
|
|
||||||
*/
|
|
||||||
public boolean hasCurBossBuffs() {
|
public boolean hasCurBossBuffs() {
|
||||||
return (bitField0_ & 0x00000002) != 0;
|
return ((this.bitField0_ & 0x1) != 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* <code>optional .ChallengeBossBuffInfo cur_boss_buffs = 9;</code>
|
|
||||||
* @return this
|
|
||||||
*/
|
|
||||||
public ChallengeStoryInfo clearCurBossBuffs() {
|
public ChallengeStoryInfo clearCurBossBuffs() {
|
||||||
bitField0_ &= ~0x00000002;
|
this.bitField0_ &= 0xFFFFFFFE;
|
||||||
curBossBuffs.clear();
|
this.curBossBuffs.clear();
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* <code>optional .ChallengeBossBuffInfo cur_boss_buffs = 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 #getMutableCurBossBuffs()} if you want to modify it.
|
|
||||||
*
|
|
||||||
* @return internal storage object for reading
|
|
||||||
*/
|
|
||||||
public ChallengeBossBuffInfoOuterClass.ChallengeBossBuffInfo getCurBossBuffs() {
|
public ChallengeBossBuffInfoOuterClass.ChallengeBossBuffInfo getCurBossBuffs() {
|
||||||
return curBossBuffs;
|
return this.curBossBuffs;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* <code>optional .ChallengeBossBuffInfo cur_boss_buffs = 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 ChallengeBossBuffInfoOuterClass.ChallengeBossBuffInfo getMutableCurBossBuffs() {
|
public ChallengeBossBuffInfoOuterClass.ChallengeBossBuffInfo getMutableCurBossBuffs() {
|
||||||
bitField0_ |= 0x00000002;
|
this.bitField0_ |= 0x1;
|
||||||
return curBossBuffs;
|
return this.curBossBuffs;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
public ChallengeStoryInfo setCurBossBuffs(ChallengeBossBuffInfoOuterClass.ChallengeBossBuffInfo value) {
|
||||||
* <code>optional .ChallengeBossBuffInfo cur_boss_buffs = 9;</code>
|
this.bitField0_ |= 0x1;
|
||||||
* @param value the curBossBuffs to set
|
this.curBossBuffs.copyFrom(value);
|
||||||
* @return this
|
|
||||||
*/
|
|
||||||
public ChallengeStoryInfo setCurBossBuffs(
|
|
||||||
final ChallengeBossBuffInfoOuterClass.ChallengeBossBuffInfo value) {
|
|
||||||
bitField0_ |= 0x00000002;
|
|
||||||
curBossBuffs.copyFrom(value);
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
public boolean hasCurStoryBuffs() {
|
||||||
public ChallengeStoryInfo copyFrom(final ChallengeStoryInfo other) {
|
return ((this.bitField0_ & 0x2) != 0);
|
||||||
cachedSize = other.cachedSize;
|
}
|
||||||
if ((bitField0_ | other.bitField0_) != 0) {
|
|
||||||
bitField0_ = other.bitField0_;
|
public ChallengeStoryInfo clearCurStoryBuffs() {
|
||||||
curStoryBuffs.copyFrom(other.curStoryBuffs);
|
this.bitField0_ &= 0xFFFFFFFD;
|
||||||
curBossBuffs.copyFrom(other.curBossBuffs);
|
this.curStoryBuffs.clear();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ChallengeStoryBuffInfoOuterClass.ChallengeStoryBuffInfo getCurStoryBuffs() {
|
||||||
|
return this.curStoryBuffs;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ChallengeStoryBuffInfoOuterClass.ChallengeStoryBuffInfo getMutableCurStoryBuffs() {
|
||||||
|
this.bitField0_ |= 0x2;
|
||||||
|
return this.curStoryBuffs;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ChallengeStoryInfo setCurStoryBuffs(ChallengeStoryBuffInfoOuterClass.ChallengeStoryBuffInfo value) {
|
||||||
|
this.bitField0_ |= 0x2;
|
||||||
|
this.curStoryBuffs.copyFrom(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ChallengeStoryInfo copyFrom(ChallengeStoryInfo other) {
|
||||||
|
this.cachedSize = other.cachedSize;
|
||||||
|
if ((this.bitField0_ | other.bitField0_) != 0) {
|
||||||
|
this.bitField0_ = other.bitField0_;
|
||||||
|
this.curBossBuffs.copyFrom(other.curBossBuffs);
|
||||||
|
this.curStoryBuffs.copyFrom(other.curStoryBuffs);
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
public ChallengeStoryInfo mergeFrom(ChallengeStoryInfo other) {
|
||||||
public ChallengeStoryInfo mergeFrom(final ChallengeStoryInfo other) {
|
if (other.isEmpty())
|
||||||
if (other.isEmpty()) {
|
|
||||||
return this;
|
return this;
|
||||||
}
|
this.cachedSize = -1;
|
||||||
cachedSize = -1;
|
if (other.hasCurBossBuffs())
|
||||||
if (other.hasCurStoryBuffs()) {
|
|
||||||
getMutableCurStoryBuffs().mergeFrom(other.curStoryBuffs);
|
|
||||||
}
|
|
||||||
if (other.hasCurBossBuffs()) {
|
|
||||||
getMutableCurBossBuffs().mergeFrom(other.curBossBuffs);
|
getMutableCurBossBuffs().mergeFrom(other.curBossBuffs);
|
||||||
}
|
if (other.hasCurStoryBuffs())
|
||||||
|
getMutableCurStoryBuffs().mergeFrom(other.curStoryBuffs);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public ChallengeStoryInfo clear() {
|
public ChallengeStoryInfo clear() {
|
||||||
if (isEmpty()) {
|
if (isEmpty())
|
||||||
return this;
|
return this;
|
||||||
}
|
this.cachedSize = -1;
|
||||||
cachedSize = -1;
|
this.bitField0_ = 0;
|
||||||
bitField0_ = 0;
|
this.curBossBuffs.clear();
|
||||||
curStoryBuffs.clear();
|
this.curStoryBuffs.clear();
|
||||||
curBossBuffs.clear();
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public ChallengeStoryInfo clearQuick() {
|
public ChallengeStoryInfo clearQuick() {
|
||||||
if (isEmpty()) {
|
if (isEmpty())
|
||||||
return this;
|
return this;
|
||||||
}
|
this.cachedSize = -1;
|
||||||
cachedSize = -1;
|
this.bitField0_ = 0;
|
||||||
bitField0_ = 0;
|
this.curBossBuffs.clearQuick();
|
||||||
curStoryBuffs.clearQuick();
|
this.curStoryBuffs.clearQuick();
|
||||||
curBossBuffs.clearQuick();
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (o == this) {
|
if (o == this)
|
||||||
return true;
|
return true;
|
||||||
}
|
if (!(o instanceof ChallengeStoryInfo))
|
||||||
if (!(o instanceof ChallengeStoryInfo)) {
|
|
||||||
return false;
|
return false;
|
||||||
}
|
|
||||||
ChallengeStoryInfo other = (ChallengeStoryInfo)o;
|
ChallengeStoryInfo other = (ChallengeStoryInfo)o;
|
||||||
return bitField0_ == other.bitField0_
|
return (this.bitField0_ == other.bitField0_ && (
|
||||||
&& (!hasCurStoryBuffs() || curStoryBuffs.equals(other.curStoryBuffs))
|
!hasCurBossBuffs() || this.curBossBuffs.equals(other.curBossBuffs)) && (
|
||||||
&& (!hasCurBossBuffs() || curBossBuffs.equals(other.curBossBuffs));
|
!hasCurStoryBuffs() || this.curStoryBuffs.equals(other.curStoryBuffs)));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
public void writeTo(ProtoSink output) throws IOException {
|
||||||
public void writeTo(final ProtoSink output) throws IOException {
|
if ((this.bitField0_ & 0x1) != 0) {
|
||||||
if ((bitField0_ & 0x00000001) != 0) {
|
output.writeRawByte((byte)66);
|
||||||
output.writeRawByte((byte) 10);
|
output.writeMessageNoTag(this.curBossBuffs);
|
||||||
output.writeMessageNoTag(curStoryBuffs);
|
|
||||||
}
|
}
|
||||||
if ((bitField0_ & 0x00000002) != 0) {
|
if ((this.bitField0_ & 0x2) != 0) {
|
||||||
output.writeRawByte((byte)74);
|
output.writeRawByte((byte)74);
|
||||||
output.writeMessageNoTag(curBossBuffs);
|
output.writeMessageNoTag(this.curStoryBuffs);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
protected int computeSerializedSize() {
|
protected int computeSerializedSize() {
|
||||||
int size = 0;
|
int size = 0;
|
||||||
if ((bitField0_ & 0x00000001) != 0) {
|
if ((this.bitField0_ & 0x1) != 0)
|
||||||
size += 1 + ProtoSink.computeMessageSizeNoTag(curStoryBuffs);
|
size += 1 + ProtoSink.computeMessageSizeNoTag(this.curBossBuffs);
|
||||||
}
|
if ((this.bitField0_ & 0x2) != 0)
|
||||||
if ((bitField0_ & 0x00000002) != 0) {
|
size += 1 + ProtoSink.computeMessageSizeNoTag(this.curStoryBuffs);
|
||||||
size += 1 + ProtoSink.computeMessageSizeNoTag(curBossBuffs);
|
|
||||||
}
|
|
||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
public ChallengeStoryInfo mergeFrom(ProtoSource input) throws IOException {
|
||||||
@SuppressWarnings("fallthrough")
|
|
||||||
public ChallengeStoryInfo mergeFrom(final ProtoSource input) throws IOException {
|
|
||||||
// Enabled Fall-Through Optimization (QuickBuffers)
|
|
||||||
int tag = input.readTag();
|
int tag = input.readTag();
|
||||||
while (true) {
|
while (true) {
|
||||||
switch (tag) {
|
switch (tag) {
|
||||||
case 10: {
|
case 66:
|
||||||
// curStoryBuffs
|
input.readMessage(this.curBossBuffs);
|
||||||
input.readMessage(curStoryBuffs);
|
this.bitField0_ |= 0x1;
|
||||||
bitField0_ |= 0x00000001;
|
|
||||||
tag = input.readTag();
|
tag = input.readTag();
|
||||||
if (tag != 74) {
|
if (tag != 74)
|
||||||
break;
|
continue;
|
||||||
}
|
case 74:
|
||||||
}
|
input.readMessage(this.curStoryBuffs);
|
||||||
case 74: {
|
this.bitField0_ |= 0x2;
|
||||||
// curBossBuffs
|
|
||||||
input.readMessage(curBossBuffs);
|
|
||||||
bitField0_ |= 0x00000002;
|
|
||||||
tag = input.readTag();
|
tag = input.readTag();
|
||||||
if (tag != 0) {
|
if (tag != 0)
|
||||||
break;
|
continue;
|
||||||
}
|
case 0:
|
||||||
}
|
|
||||||
case 0: {
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
default: {
|
if (!input.skipField(tag))
|
||||||
if (!input.skipField(tag)) {
|
|
||||||
return this;
|
return this;
|
||||||
}
|
|
||||||
tag = input.readTag();
|
tag = input.readTag();
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
public void writeTo(JsonSink output) throws IOException {
|
||||||
public void writeTo(final JsonSink output) throws IOException {
|
|
||||||
output.beginObject();
|
output.beginObject();
|
||||||
if ((bitField0_ & 0x00000001) != 0) {
|
if ((this.bitField0_ & 0x1) != 0)
|
||||||
output.writeMessage(FieldNames.curStoryBuffs, curStoryBuffs);
|
output.writeMessage(FieldNames.curBossBuffs, this.curBossBuffs);
|
||||||
}
|
if ((this.bitField0_ & 0x2) != 0)
|
||||||
if ((bitField0_ & 0x00000002) != 0) {
|
output.writeMessage(FieldNames.curStoryBuffs, this.curStoryBuffs);
|
||||||
output.writeMessage(FieldNames.curBossBuffs, curBossBuffs);
|
|
||||||
}
|
|
||||||
output.endObject();
|
output.endObject();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
public ChallengeStoryInfo mergeFrom(JsonSource input) throws IOException {
|
||||||
public ChallengeStoryInfo mergeFrom(final JsonSource input) throws IOException {
|
if (!input.beginObject())
|
||||||
if (!input.beginObject()) {
|
|
||||||
return this;
|
return this;
|
||||||
}
|
|
||||||
while (!input.isAtEnd()) {
|
while (!input.isAtEnd()) {
|
||||||
switch (input.readFieldHash()) {
|
switch (input.readFieldHash()) {
|
||||||
case -587091733:
|
|
||||||
case -738440393: {
|
|
||||||
if (input.isAtField(FieldNames.curStoryBuffs)) {
|
|
||||||
if (!input.trySkipNullValue()) {
|
|
||||||
input.readMessage(curStoryBuffs);
|
|
||||||
bitField0_ |= 0x00000001;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
input.skipUnknownField();
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case -1632186189:
|
case -1632186189:
|
||||||
case -340377971: {
|
case -340377971:
|
||||||
if (input.isAtField(FieldNames.curBossBuffs)) {
|
if (input.isAtField(FieldNames.curBossBuffs)) {
|
||||||
if (!input.trySkipNullValue()) {
|
if (!input.trySkipNullValue()) {
|
||||||
input.readMessage(curBossBuffs);
|
input.readMessage(this.curBossBuffs);
|
||||||
bitField0_ |= 0x00000002;
|
this.bitField0_ |= 0x1;
|
||||||
|
}
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
input.skipUnknownField();
|
input.skipUnknownField();
|
||||||
|
continue;
|
||||||
|
case -738440393:
|
||||||
|
case -587091733:
|
||||||
|
if (input.isAtField(FieldNames.curStoryBuffs)) {
|
||||||
|
if (!input.trySkipNullValue()) {
|
||||||
|
input.readMessage(this.curStoryBuffs);
|
||||||
|
this.bitField0_ |= 0x2;
|
||||||
}
|
}
|
||||||
break;
|
continue;
|
||||||
}
|
}
|
||||||
default: {
|
|
||||||
input.skipUnknownField();
|
input.skipUnknownField();
|
||||||
break;
|
continue;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
input.skipUnknownField();
|
||||||
}
|
}
|
||||||
input.endObject();
|
input.endObject();
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public ChallengeStoryInfo clone() {
|
public ChallengeStoryInfo clone() {
|
||||||
return new ChallengeStoryInfo().copyFrom(this);
|
return (new ChallengeStoryInfo()).copyFrom(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean isEmpty() {
|
public boolean isEmpty() {
|
||||||
return ((bitField0_) == 0);
|
return (this.bitField0_ == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static ChallengeStoryInfo parseFrom(final byte[] data) throws
|
public static ChallengeStoryInfo parseFrom(byte[] data) throws InvalidProtocolBufferException {
|
||||||
InvalidProtocolBufferException {
|
return (ChallengeStoryInfo)((ChallengeStoryInfo)ProtoMessage.mergeFrom(new ChallengeStoryInfo(), data)).checkInitialized();
|
||||||
return ProtoMessage.mergeFrom(new ChallengeStoryInfo(), data).checkInitialized();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static ChallengeStoryInfo parseFrom(final ProtoSource input) throws IOException {
|
public static ChallengeStoryInfo parseFrom(ProtoSource input) throws IOException {
|
||||||
return ProtoMessage.mergeFrom(new ChallengeStoryInfo(), input).checkInitialized();
|
return (ChallengeStoryInfo)((ChallengeStoryInfo)ProtoMessage.mergeFrom(new ChallengeStoryInfo(), input)).checkInitialized();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static ChallengeStoryInfo parseFrom(final JsonSource input) throws IOException {
|
public static ChallengeStoryInfo parseFrom(JsonSource input) throws IOException {
|
||||||
return ProtoMessage.mergeFrom(new ChallengeStoryInfo(), input).checkInitialized();
|
return (ChallengeStoryInfo)((ChallengeStoryInfo)ProtoMessage.mergeFrom(new ChallengeStoryInfo(), input)).checkInitialized();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @return factory for creating ChallengeStoryInfo messages
|
|
||||||
*/
|
|
||||||
public static MessageFactory<ChallengeStoryInfo> getFactory() {
|
public static MessageFactory<ChallengeStoryInfo> getFactory() {
|
||||||
return ChallengeStoryInfoFactory.INSTANCE;
|
return ChallengeStoryInfoFactory.INSTANCE;
|
||||||
}
|
}
|
||||||
@@ -367,19 +239,29 @@ public final class ChallengeStoryInfoOuterClass {
|
|||||||
private enum ChallengeStoryInfoFactory implements MessageFactory<ChallengeStoryInfo> {
|
private enum ChallengeStoryInfoFactory implements MessageFactory<ChallengeStoryInfo> {
|
||||||
INSTANCE;
|
INSTANCE;
|
||||||
|
|
||||||
@Override
|
public ChallengeStoryInfoOuterClass.ChallengeStoryInfo create() {
|
||||||
public ChallengeStoryInfo create() {
|
return ChallengeStoryInfoOuterClass.ChallengeStoryInfo.newInstance();
|
||||||
return ChallengeStoryInfo.newInstance();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Contains name constants used for serializing JSON
|
|
||||||
*/
|
|
||||||
static class FieldNames {
|
static class FieldNames {
|
||||||
static final FieldName curStoryBuffs = FieldName.forField("curStoryBuffs", "cur_story_buffs");
|
|
||||||
|
|
||||||
static final FieldName curBossBuffs = FieldName.forField("curBossBuffs", "cur_boss_buffs");
|
static final FieldName curBossBuffs = FieldName.forField("curBossBuffs", "cur_boss_buffs");
|
||||||
|
|
||||||
|
static final FieldName curStoryBuffs = FieldName.forField("curStoryBuffs", "cur_story_buffs");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private enum ChallengeStoryInfoFactory implements MessageFactory<ChallengeStoryInfo> {
|
||||||
|
INSTANCE;
|
||||||
|
|
||||||
|
public ChallengeStoryInfoOuterClass.ChallengeStoryInfo create() {
|
||||||
|
return ChallengeStoryInfoOuterClass.ChallengeStoryInfo.newInstance();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static class FieldNames {
|
||||||
|
static final FieldName curBossBuffs = FieldName.forField("curBossBuffs", "cur_boss_buffs");
|
||||||
|
|
||||||
|
static final FieldName curStoryBuffs = FieldName.forField("curStoryBuffs", "cur_story_buffs");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,13 +16,13 @@ public class PacketSceneGroupRefreshScNotify extends BasePacket {
|
|||||||
super(CmdId.SceneGroupRefreshScNotify);
|
super(CmdId.SceneGroupRefreshScNotify);
|
||||||
|
|
||||||
var group = SceneGroupRefreshInfo.newInstance();
|
var group = SceneGroupRefreshInfo.newInstance();
|
||||||
|
group.setGroupRefreshType(SceneGroupRefreshType.SCENE_GROUP_REFRESH_TYPE_LOADED);
|
||||||
|
|
||||||
if (toAdd != null) {
|
if (toAdd != null) {
|
||||||
group.setGroupId(toAdd.getGroupId());
|
group.setGroupId(toAdd.getGroupId());
|
||||||
group.addRefreshEntity(SceneEntityRefreshInfo.newInstance().setAddEntity(toAdd.toSceneEntityProto()));
|
group.addRefreshEntity(SceneEntityRefreshInfo.newInstance().setAddEntity(toAdd.toSceneEntityProto()));
|
||||||
} else if (toRemove != null) {
|
} else if (toRemove != null) {
|
||||||
group.setGroupId(toRemove.getGroupId());
|
group.setGroupId(toRemove.getGroupId());
|
||||||
group.setGroupRefreshType(SceneGroupRefreshType.SCENE_GROUP_REFRESH_TYPE_UNLOAD);
|
|
||||||
group.addRefreshEntity(SceneEntityRefreshInfo.newInstance().setDelEntity(toRemove.getEntityId()));
|
group.addRefreshEntity(SceneEntityRefreshInfo.newInstance().setDelEntity(toRemove.getEntityId()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user