Update to support game version 1.15.0.*

This commit is contained in:
Melledy
2026-09-07 20:35:40 -07:00
parent 0b4d73e67a
commit e140f8f839
15 changed files with 1809 additions and 608 deletions
@@ -0,0 +1,579 @@
// Code generated by protocol buffer compiler. Do not edit!
package emu.nebula.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.RepeatedByte;
import us.hebi.quickbuf.Utf8String;
public final class ActivityPenguinCardEndlessLevelSave {
/**
* Protobuf type {@code ActivityPenguinCardEndlessLevelSaveReq}
*/
public static final class ActivityPenguinCardEndlessLevelSaveReq extends ProtoMessage<ActivityPenguinCardEndlessLevelSaveReq> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional uint32 LevelId = 1;</code>
*/
private int levelId;
/**
* <code>optional uint32 Score = 3;</code>
*/
private int score;
/**
* <code>optional bytes NextPackage = 2047;</code>
*/
private final RepeatedByte nextPackage = RepeatedByte.newEmptyInstance();
/**
* <code>optional string Data = 2;</code>
*/
private final Utf8String data = Utf8String.newEmptyInstance();
private ActivityPenguinCardEndlessLevelSaveReq() {
}
/**
* @return a new empty instance of {@code ActivityPenguinCardEndlessLevelSaveReq}
*/
public static ActivityPenguinCardEndlessLevelSaveReq newInstance() {
return new ActivityPenguinCardEndlessLevelSaveReq();
}
/**
* <code>optional uint32 LevelId = 1;</code>
* @return whether the levelId field is set
*/
public boolean hasLevelId() {
return (bitField0_ & 0x00000001) != 0;
}
/**
* <code>optional uint32 LevelId = 1;</code>
* @return this
*/
public ActivityPenguinCardEndlessLevelSaveReq clearLevelId() {
bitField0_ &= ~0x00000001;
levelId = 0;
return this;
}
/**
* <code>optional uint32 LevelId = 1;</code>
* @return the levelId
*/
public int getLevelId() {
return levelId;
}
/**
* <code>optional uint32 LevelId = 1;</code>
* @param value the levelId to set
* @return this
*/
public ActivityPenguinCardEndlessLevelSaveReq setLevelId(final int value) {
bitField0_ |= 0x00000001;
levelId = value;
return this;
}
/**
* <code>optional uint32 Score = 3;</code>
* @return whether the score field is set
*/
public boolean hasScore() {
return (bitField0_ & 0x00000002) != 0;
}
/**
* <code>optional uint32 Score = 3;</code>
* @return this
*/
public ActivityPenguinCardEndlessLevelSaveReq clearScore() {
bitField0_ &= ~0x00000002;
score = 0;
return this;
}
/**
* <code>optional uint32 Score = 3;</code>
* @return the score
*/
public int getScore() {
return score;
}
/**
* <code>optional uint32 Score = 3;</code>
* @param value the score to set
* @return this
*/
public ActivityPenguinCardEndlessLevelSaveReq setScore(final int value) {
bitField0_ |= 0x00000002;
score = value;
return this;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @return whether the nextPackage field is set
*/
public boolean hasNextPackage() {
return (bitField0_ & 0x00000004) != 0;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @return this
*/
public ActivityPenguinCardEndlessLevelSaveReq clearNextPackage() {
bitField0_ &= ~0x00000004;
nextPackage.clear();
return this;
}
/**
* <code>optional bytes NextPackage = 2047;</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 #getMutableNextPackage()} if you want to modify it.
*
* @return internal storage object for reading
*/
public RepeatedByte getNextPackage() {
return nextPackage;
}
/**
* <code>optional bytes NextPackage = 2047;</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 RepeatedByte getMutableNextPackage() {
bitField0_ |= 0x00000004;
return nextPackage;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @param value the nextPackage to add
* @return this
*/
public ActivityPenguinCardEndlessLevelSaveReq addNextPackage(final byte value) {
bitField0_ |= 0x00000004;
nextPackage.add(value);
return this;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @param values the nextPackage to add
* @return this
*/
public ActivityPenguinCardEndlessLevelSaveReq addAllNextPackage(final byte... values) {
bitField0_ |= 0x00000004;
nextPackage.addAll(values);
return this;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @param values the nextPackage to set
* @return this
*/
public ActivityPenguinCardEndlessLevelSaveReq setNextPackage(final byte... values) {
bitField0_ |= 0x00000004;
nextPackage.copyFrom(values);
return this;
}
/**
* <code>optional string Data = 2;</code>
* @return whether the data field is set
*/
public boolean hasData() {
return (bitField0_ & 0x00000008) != 0;
}
/**
* <code>optional string Data = 2;</code>
* @return this
*/
public ActivityPenguinCardEndlessLevelSaveReq clearData() {
bitField0_ &= ~0x00000008;
data.clear();
return this;
}
/**
* <code>optional string Data = 2;</code>
* @return the data
*/
public String getData() {
return data.getString();
}
/**
* <code>optional string Data = 2;</code>
* @return internal {@code Utf8String} representation of data for reading
*/
public Utf8String getDataBytes() {
return this.data;
}
/**
* <code>optional string Data = 2;</code>
* @return internal {@code Utf8String} representation of data for modifications
*/
public Utf8String getMutableDataBytes() {
bitField0_ |= 0x00000008;
return this.data;
}
/**
* <code>optional string Data = 2;</code>
* @param value the data to set
* @return this
*/
public ActivityPenguinCardEndlessLevelSaveReq setData(final CharSequence value) {
bitField0_ |= 0x00000008;
data.copyFrom(value);
return this;
}
/**
* <code>optional string Data = 2;</code>
* @param value the data to set
* @return this
*/
public ActivityPenguinCardEndlessLevelSaveReq setData(final Utf8String value) {
bitField0_ |= 0x00000008;
data.copyFrom(value);
return this;
}
@Override
public ActivityPenguinCardEndlessLevelSaveReq copyFrom(
final ActivityPenguinCardEndlessLevelSaveReq other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
levelId = other.levelId;
score = other.score;
nextPackage.copyFrom(other.nextPackage);
data.copyFrom(other.data);
}
return this;
}
@Override
public ActivityPenguinCardEndlessLevelSaveReq mergeFrom(
final ActivityPenguinCardEndlessLevelSaveReq other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasLevelId()) {
setLevelId(other.levelId);
}
if (other.hasScore()) {
setScore(other.score);
}
if (other.hasNextPackage()) {
getMutableNextPackage().copyFrom(other.nextPackage);
}
if (other.hasData()) {
getMutableDataBytes().copyFrom(other.data);
}
return this;
}
@Override
public ActivityPenguinCardEndlessLevelSaveReq clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
levelId = 0;
score = 0;
nextPackage.clear();
data.clear();
return this;
}
@Override
public ActivityPenguinCardEndlessLevelSaveReq clearQuick() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
nextPackage.clear();
data.clear();
return this;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof ActivityPenguinCardEndlessLevelSaveReq)) {
return false;
}
ActivityPenguinCardEndlessLevelSaveReq other = (ActivityPenguinCardEndlessLevelSaveReq) o;
return bitField0_ == other.bitField0_
&& (!hasLevelId() || levelId == other.levelId)
&& (!hasScore() || score == other.score)
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage))
&& (!hasData() || data.equals(other.data));
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 8);
output.writeUInt32NoTag(levelId);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeRawByte((byte) 24);
output.writeUInt32NoTag(score);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeRawLittleEndian16((short) 32762);
output.writeBytesNoTag(nextPackage);
}
if ((bitField0_ & 0x00000008) != 0) {
output.writeRawByte((byte) 18);
output.writeStringNoTag(data);
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(levelId);
}
if ((bitField0_ & 0x00000002) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(score);
}
if ((bitField0_ & 0x00000004) != 0) {
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
}
if ((bitField0_ & 0x00000008) != 0) {
size += 1 + ProtoSink.computeStringSizeNoTag(data);
}
return size;
}
@Override
@SuppressWarnings("fallthrough")
public ActivityPenguinCardEndlessLevelSaveReq mergeFrom(final ProtoSource input) throws
IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 8: {
// levelId
levelId = input.readUInt32();
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 24) {
break;
}
}
case 24: {
// score
score = input.readUInt32();
bitField0_ |= 0x00000002;
tag = input.readTag();
if (tag != 16378) {
break;
}
}
case 16378: {
// nextPackage
input.readBytes(nextPackage);
bitField0_ |= 0x00000004;
tag = input.readTag();
if (tag != 18) {
break;
}
}
case 18: {
// data
input.readString(data);
bitField0_ |= 0x00000008;
tag = input.readTag();
if (tag != 0) {
break;
}
}
case 0: {
return this;
}
default: {
if (!input.skipField(tag)) {
return this;
}
tag = input.readTag();
break;
}
}
}
}
@Override
public void writeTo(final JsonSink output) throws IOException {
output.beginObject();
if ((bitField0_ & 0x00000001) != 0) {
output.writeUInt32(FieldNames.levelId, levelId);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeUInt32(FieldNames.score, score);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeBytes(FieldNames.nextPackage, nextPackage);
}
if ((bitField0_ & 0x00000008) != 0) {
output.writeString(FieldNames.data, data);
}
output.endObject();
}
@Override
public ActivityPenguinCardEndlessLevelSaveReq mergeFrom(final JsonSource input) throws
IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case 1734437791: {
if (input.isAtField(FieldNames.levelId)) {
if (!input.trySkipNullValue()) {
levelId = input.readUInt32();
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
case 79711858: {
if (input.isAtField(FieldNames.score)) {
if (!input.trySkipNullValue()) {
score = input.readUInt32();
bitField0_ |= 0x00000002;
}
} else {
input.skipUnknownField();
}
break;
}
case -2082324045: {
if (input.isAtField(FieldNames.nextPackage)) {
if (!input.trySkipNullValue()) {
input.readBytes(nextPackage);
bitField0_ |= 0x00000004;
}
} else {
input.skipUnknownField();
}
break;
}
case 2122698: {
if (input.isAtField(FieldNames.data)) {
if (!input.trySkipNullValue()) {
input.readString(data);
bitField0_ |= 0x00000008;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
}
}
input.endObject();
return this;
}
@Override
public ActivityPenguinCardEndlessLevelSaveReq clone() {
return new ActivityPenguinCardEndlessLevelSaveReq().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static ActivityPenguinCardEndlessLevelSaveReq parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new ActivityPenguinCardEndlessLevelSaveReq(), data).checkInitialized();
}
public static ActivityPenguinCardEndlessLevelSaveReq parseFrom(final ProtoSource input) throws
IOException {
return ProtoMessage.mergeFrom(new ActivityPenguinCardEndlessLevelSaveReq(), input).checkInitialized();
}
public static ActivityPenguinCardEndlessLevelSaveReq parseFrom(final JsonSource input) throws
IOException {
return ProtoMessage.mergeFrom(new ActivityPenguinCardEndlessLevelSaveReq(), input).checkInitialized();
}
/**
* @return factory for creating ActivityPenguinCardEndlessLevelSaveReq messages
*/
public static MessageFactory<ActivityPenguinCardEndlessLevelSaveReq> getFactory() {
return ActivityPenguinCardEndlessLevelSaveReqFactory.INSTANCE;
}
private enum ActivityPenguinCardEndlessLevelSaveReqFactory implements MessageFactory<ActivityPenguinCardEndlessLevelSaveReq> {
INSTANCE;
@Override
public ActivityPenguinCardEndlessLevelSaveReq create() {
return ActivityPenguinCardEndlessLevelSaveReq.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName levelId = FieldName.forField("LevelId");
static final FieldName score = FieldName.forField("Score");
static final FieldName nextPackage = FieldName.forField("NextPackage");
static final FieldName data = FieldName.forField("Data");
}
}
}
@@ -34,6 +34,11 @@ public final class ActivityPenguinCardLevelSettle {
*/
private int score;
/**
* <code>optional uint32 Difficulty = 4;</code>
*/
private int difficulty;
/**
* <code>optional bytes NextPackage = 2047;</code>
*/
@@ -160,12 +165,49 @@ public final class ActivityPenguinCardLevelSettle {
return this;
}
/**
* <code>optional uint32 Difficulty = 4;</code>
* @return whether the difficulty field is set
*/
public boolean hasDifficulty() {
return (bitField0_ & 0x00000008) != 0;
}
/**
* <code>optional uint32 Difficulty = 4;</code>
* @return this
*/
public ActivityPenguinCardSettleReq clearDifficulty() {
bitField0_ &= ~0x00000008;
difficulty = 0;
return this;
}
/**
* <code>optional uint32 Difficulty = 4;</code>
* @return the difficulty
*/
public int getDifficulty() {
return difficulty;
}
/**
* <code>optional uint32 Difficulty = 4;</code>
* @param value the difficulty to set
* @return this
*/
public ActivityPenguinCardSettleReq setDifficulty(final int value) {
bitField0_ |= 0x00000008;
difficulty = value;
return this;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @return whether the nextPackage field is set
*/
public boolean hasNextPackage() {
return (bitField0_ & 0x00000008) != 0;
return (bitField0_ & 0x00000010) != 0;
}
/**
@@ -173,7 +215,7 @@ public final class ActivityPenguinCardLevelSettle {
* @return this
*/
public ActivityPenguinCardSettleReq clearNextPackage() {
bitField0_ &= ~0x00000008;
bitField0_ &= ~0x00000010;
nextPackage.clear();
return this;
}
@@ -202,7 +244,7 @@ public final class ActivityPenguinCardLevelSettle {
* @return internal storage object for modifications
*/
public RepeatedByte getMutableNextPackage() {
bitField0_ |= 0x00000008;
bitField0_ |= 0x00000010;
return nextPackage;
}
@@ -212,7 +254,7 @@ public final class ActivityPenguinCardLevelSettle {
* @return this
*/
public ActivityPenguinCardSettleReq addNextPackage(final byte value) {
bitField0_ |= 0x00000008;
bitField0_ |= 0x00000010;
nextPackage.add(value);
return this;
}
@@ -223,7 +265,7 @@ public final class ActivityPenguinCardLevelSettle {
* @return this
*/
public ActivityPenguinCardSettleReq addAllNextPackage(final byte... values) {
bitField0_ |= 0x00000008;
bitField0_ |= 0x00000010;
nextPackage.addAll(values);
return this;
}
@@ -234,7 +276,7 @@ public final class ActivityPenguinCardLevelSettle {
* @return this
*/
public ActivityPenguinCardSettleReq setNextPackage(final byte... values) {
bitField0_ |= 0x00000008;
bitField0_ |= 0x00000010;
nextPackage.copyFrom(values);
return this;
}
@@ -247,6 +289,7 @@ public final class ActivityPenguinCardLevelSettle {
levelId = other.levelId;
star = other.star;
score = other.score;
difficulty = other.difficulty;
nextPackage.copyFrom(other.nextPackage);
}
return this;
@@ -267,6 +310,9 @@ public final class ActivityPenguinCardLevelSettle {
if (other.hasScore()) {
setScore(other.score);
}
if (other.hasDifficulty()) {
setDifficulty(other.difficulty);
}
if (other.hasNextPackage()) {
getMutableNextPackage().copyFrom(other.nextPackage);
}
@@ -283,6 +329,7 @@ public final class ActivityPenguinCardLevelSettle {
levelId = 0;
star = 0;
score = 0;
difficulty = 0;
nextPackage.clear();
return this;
}
@@ -311,6 +358,7 @@ public final class ActivityPenguinCardLevelSettle {
&& (!hasLevelId() || levelId == other.levelId)
&& (!hasStar() || star == other.star)
&& (!hasScore() || score == other.score)
&& (!hasDifficulty() || difficulty == other.difficulty)
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage));
}
@@ -329,6 +377,10 @@ public final class ActivityPenguinCardLevelSettle {
output.writeUInt32NoTag(score);
}
if ((bitField0_ & 0x00000008) != 0) {
output.writeRawByte((byte) 32);
output.writeUInt32NoTag(difficulty);
}
if ((bitField0_ & 0x00000010) != 0) {
output.writeRawLittleEndian16((short) 32762);
output.writeBytesNoTag(nextPackage);
}
@@ -347,6 +399,9 @@ public final class ActivityPenguinCardLevelSettle {
size += 1 + ProtoSink.computeUInt32SizeNoTag(score);
}
if ((bitField0_ & 0x00000008) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(difficulty);
}
if ((bitField0_ & 0x00000010) != 0) {
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
}
return size;
@@ -382,6 +437,15 @@ public final class ActivityPenguinCardLevelSettle {
score = input.readUInt32();
bitField0_ |= 0x00000004;
tag = input.readTag();
if (tag != 32) {
break;
}
}
case 32: {
// difficulty
difficulty = input.readUInt32();
bitField0_ |= 0x00000008;
tag = input.readTag();
if (tag != 16378) {
break;
}
@@ -389,7 +453,7 @@ public final class ActivityPenguinCardLevelSettle {
case 16378: {
// nextPackage
input.readBytes(nextPackage);
bitField0_ |= 0x00000008;
bitField0_ |= 0x00000010;
tag = input.readTag();
if (tag != 0) {
break;
@@ -422,6 +486,9 @@ public final class ActivityPenguinCardLevelSettle {
output.writeUInt32(FieldNames.score, score);
}
if ((bitField0_ & 0x00000008) != 0) {
output.writeUInt32(FieldNames.difficulty, difficulty);
}
if ((bitField0_ & 0x00000010) != 0) {
output.writeBytes(FieldNames.nextPackage, nextPackage);
}
output.endObject();
@@ -467,11 +534,22 @@ public final class ActivityPenguinCardLevelSettle {
}
break;
}
case -472001573: {
if (input.isAtField(FieldNames.difficulty)) {
if (!input.trySkipNullValue()) {
difficulty = input.readUInt32();
bitField0_ |= 0x00000008;
}
} else {
input.skipUnknownField();
}
break;
}
case -2082324045: {
if (input.isAtField(FieldNames.nextPackage)) {
if (!input.trySkipNullValue()) {
input.readBytes(nextPackage);
bitField0_ |= 0x00000008;
bitField0_ |= 0x00000010;
}
} else {
input.skipUnknownField();
@@ -539,6 +617,8 @@ public final class ActivityPenguinCardLevelSettle {
static final FieldName score = FieldName.forField("Score");
static final FieldName difficulty = FieldName.forField("Difficulty");
static final FieldName nextPackage = FieldName.forField("NextPackage");
}
}
@@ -29,6 +29,11 @@ public final class CharGemInstanceApply {
*/
private int id;
/**
* <code>optional uint32 RewardType = 3;</code>
*/
private int rewardType;
/**
* <code>optional bytes NextPackage = 2047;</code>
*/
@@ -118,12 +123,49 @@ public final class CharGemInstanceApply {
return this;
}
/**
* <code>optional uint32 RewardType = 3;</code>
* @return whether the rewardType field is set
*/
public boolean hasRewardType() {
return (bitField0_ & 0x00000004) != 0;
}
/**
* <code>optional uint32 RewardType = 3;</code>
* @return this
*/
public CharGemInstanceApplyReq clearRewardType() {
bitField0_ &= ~0x00000004;
rewardType = 0;
return this;
}
/**
* <code>optional uint32 RewardType = 3;</code>
* @return the rewardType
*/
public int getRewardType() {
return rewardType;
}
/**
* <code>optional uint32 RewardType = 3;</code>
* @param value the rewardType to set
* @return this
*/
public CharGemInstanceApplyReq setRewardType(final int value) {
bitField0_ |= 0x00000004;
rewardType = value;
return this;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @return whether the nextPackage field is set
*/
public boolean hasNextPackage() {
return (bitField0_ & 0x00000004) != 0;
return (bitField0_ & 0x00000008) != 0;
}
/**
@@ -131,7 +173,7 @@ public final class CharGemInstanceApply {
* @return this
*/
public CharGemInstanceApplyReq clearNextPackage() {
bitField0_ &= ~0x00000004;
bitField0_ &= ~0x00000008;
nextPackage.clear();
return this;
}
@@ -160,7 +202,7 @@ public final class CharGemInstanceApply {
* @return internal storage object for modifications
*/
public RepeatedByte getMutableNextPackage() {
bitField0_ |= 0x00000004;
bitField0_ |= 0x00000008;
return nextPackage;
}
@@ -170,7 +212,7 @@ public final class CharGemInstanceApply {
* @return this
*/
public CharGemInstanceApplyReq addNextPackage(final byte value) {
bitField0_ |= 0x00000004;
bitField0_ |= 0x00000008;
nextPackage.add(value);
return this;
}
@@ -181,7 +223,7 @@ public final class CharGemInstanceApply {
* @return this
*/
public CharGemInstanceApplyReq addAllNextPackage(final byte... values) {
bitField0_ |= 0x00000004;
bitField0_ |= 0x00000008;
nextPackage.addAll(values);
return this;
}
@@ -192,7 +234,7 @@ public final class CharGemInstanceApply {
* @return this
*/
public CharGemInstanceApplyReq setNextPackage(final byte... values) {
bitField0_ |= 0x00000004;
bitField0_ |= 0x00000008;
nextPackage.copyFrom(values);
return this;
}
@@ -204,6 +246,7 @@ public final class CharGemInstanceApply {
bitField0_ = other.bitField0_;
buildId = other.buildId;
id = other.id;
rewardType = other.rewardType;
nextPackage.copyFrom(other.nextPackage);
}
return this;
@@ -221,6 +264,9 @@ public final class CharGemInstanceApply {
if (other.hasId()) {
setId(other.id);
}
if (other.hasRewardType()) {
setRewardType(other.rewardType);
}
if (other.hasNextPackage()) {
getMutableNextPackage().copyFrom(other.nextPackage);
}
@@ -236,6 +282,7 @@ public final class CharGemInstanceApply {
bitField0_ = 0;
buildId = 0L;
id = 0;
rewardType = 0;
nextPackage.clear();
return this;
}
@@ -263,6 +310,7 @@ public final class CharGemInstanceApply {
return bitField0_ == other.bitField0_
&& (!hasBuildId() || buildId == other.buildId)
&& (!hasId() || id == other.id)
&& (!hasRewardType() || rewardType == other.rewardType)
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage));
}
@@ -277,6 +325,10 @@ public final class CharGemInstanceApply {
output.writeUInt32NoTag(id);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeRawByte((byte) 24);
output.writeUInt32NoTag(rewardType);
}
if ((bitField0_ & 0x00000008) != 0) {
output.writeRawLittleEndian16((short) 32762);
output.writeBytesNoTag(nextPackage);
}
@@ -292,6 +344,9 @@ public final class CharGemInstanceApply {
size += 1 + ProtoSink.computeUInt32SizeNoTag(id);
}
if ((bitField0_ & 0x00000004) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(rewardType);
}
if ((bitField0_ & 0x00000008) != 0) {
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
}
return size;
@@ -318,6 +373,15 @@ public final class CharGemInstanceApply {
id = input.readUInt32();
bitField0_ |= 0x00000002;
tag = input.readTag();
if (tag != 24) {
break;
}
}
case 24: {
// rewardType
rewardType = input.readUInt32();
bitField0_ |= 0x00000004;
tag = input.readTag();
if (tag != 16378) {
break;
}
@@ -325,7 +389,7 @@ public final class CharGemInstanceApply {
case 16378: {
// nextPackage
input.readBytes(nextPackage);
bitField0_ |= 0x00000004;
bitField0_ |= 0x00000008;
tag = input.readTag();
if (tag != 0) {
break;
@@ -355,6 +419,9 @@ public final class CharGemInstanceApply {
output.writeUInt32(FieldNames.id, id);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeUInt32(FieldNames.rewardType, rewardType);
}
if ((bitField0_ & 0x00000008) != 0) {
output.writeBytes(FieldNames.nextPackage, nextPackage);
}
output.endObject();
@@ -389,11 +456,22 @@ public final class CharGemInstanceApply {
}
break;
}
case -610271447: {
if (input.isAtField(FieldNames.rewardType)) {
if (!input.trySkipNullValue()) {
rewardType = input.readUInt32();
bitField0_ |= 0x00000004;
}
} else {
input.skipUnknownField();
}
break;
}
case -2082324045: {
if (input.isAtField(FieldNames.nextPackage)) {
if (!input.trySkipNullValue()) {
input.readBytes(nextPackage);
bitField0_ |= 0x00000004;
bitField0_ |= 0x00000008;
}
} else {
input.skipUnknownField();
@@ -457,6 +535,8 @@ public final class CharGemInstanceApply {
static final FieldName id = FieldName.forField("Id");
static final FieldName rewardType = FieldName.forField("RewardType");
static final FieldName nextPackage = FieldName.forField("NextPackage");
}
}
@@ -30,6 +30,11 @@ public final class CharGemInstanceSweep {
*/
private int times;
/**
* <code>optional uint32 RewardType = 3;</code>
*/
private int rewardType;
/**
* <code>optional .Events Events = 15;</code>
*/
@@ -124,12 +129,49 @@ public final class CharGemInstanceSweep {
return this;
}
/**
* <code>optional uint32 RewardType = 3;</code>
* @return whether the rewardType field is set
*/
public boolean hasRewardType() {
return (bitField0_ & 0x00000004) != 0;
}
/**
* <code>optional uint32 RewardType = 3;</code>
* @return this
*/
public CharGemInstanceSweepReq clearRewardType() {
bitField0_ &= ~0x00000004;
rewardType = 0;
return this;
}
/**
* <code>optional uint32 RewardType = 3;</code>
* @return the rewardType
*/
public int getRewardType() {
return rewardType;
}
/**
* <code>optional uint32 RewardType = 3;</code>
* @param value the rewardType to set
* @return this
*/
public CharGemInstanceSweepReq setRewardType(final int value) {
bitField0_ |= 0x00000004;
rewardType = value;
return this;
}
/**
* <code>optional .Events Events = 15;</code>
* @return whether the events field is set
*/
public boolean hasEvents() {
return (bitField0_ & 0x00000004) != 0;
return (bitField0_ & 0x00000008) != 0;
}
/**
@@ -137,7 +179,7 @@ public final class CharGemInstanceSweep {
* @return this
*/
public CharGemInstanceSweepReq clearEvents() {
bitField0_ &= ~0x00000004;
bitField0_ &= ~0x00000008;
events.clear();
return this;
}
@@ -166,7 +208,7 @@ public final class CharGemInstanceSweep {
* @return internal storage object for modifications
*/
public Public.Events getMutableEvents() {
bitField0_ |= 0x00000004;
bitField0_ |= 0x00000008;
return events;
}
@@ -176,7 +218,7 @@ public final class CharGemInstanceSweep {
* @return this
*/
public CharGemInstanceSweepReq setEvents(final Public.Events value) {
bitField0_ |= 0x00000004;
bitField0_ |= 0x00000008;
events.copyFrom(value);
return this;
}
@@ -186,7 +228,7 @@ public final class CharGemInstanceSweep {
* @return whether the nextPackage field is set
*/
public boolean hasNextPackage() {
return (bitField0_ & 0x00000008) != 0;
return (bitField0_ & 0x00000010) != 0;
}
/**
@@ -194,7 +236,7 @@ public final class CharGemInstanceSweep {
* @return this
*/
public CharGemInstanceSweepReq clearNextPackage() {
bitField0_ &= ~0x00000008;
bitField0_ &= ~0x00000010;
nextPackage.clear();
return this;
}
@@ -223,7 +265,7 @@ public final class CharGemInstanceSweep {
* @return internal storage object for modifications
*/
public RepeatedByte getMutableNextPackage() {
bitField0_ |= 0x00000008;
bitField0_ |= 0x00000010;
return nextPackage;
}
@@ -233,7 +275,7 @@ public final class CharGemInstanceSweep {
* @return this
*/
public CharGemInstanceSweepReq addNextPackage(final byte value) {
bitField0_ |= 0x00000008;
bitField0_ |= 0x00000010;
nextPackage.add(value);
return this;
}
@@ -244,7 +286,7 @@ public final class CharGemInstanceSweep {
* @return this
*/
public CharGemInstanceSweepReq addAllNextPackage(final byte... values) {
bitField0_ |= 0x00000008;
bitField0_ |= 0x00000010;
nextPackage.addAll(values);
return this;
}
@@ -255,7 +297,7 @@ public final class CharGemInstanceSweep {
* @return this
*/
public CharGemInstanceSweepReq setNextPackage(final byte... values) {
bitField0_ |= 0x00000008;
bitField0_ |= 0x00000010;
nextPackage.copyFrom(values);
return this;
}
@@ -267,6 +309,7 @@ public final class CharGemInstanceSweep {
bitField0_ = other.bitField0_;
id = other.id;
times = other.times;
rewardType = other.rewardType;
events.copyFrom(other.events);
nextPackage.copyFrom(other.nextPackage);
}
@@ -285,6 +328,9 @@ public final class CharGemInstanceSweep {
if (other.hasTimes()) {
setTimes(other.times);
}
if (other.hasRewardType()) {
setRewardType(other.rewardType);
}
if (other.hasEvents()) {
getMutableEvents().mergeFrom(other.events);
}
@@ -303,6 +349,7 @@ public final class CharGemInstanceSweep {
bitField0_ = 0;
id = 0;
times = 0;
rewardType = 0;
events.clear();
nextPackage.clear();
return this;
@@ -332,6 +379,7 @@ public final class CharGemInstanceSweep {
return bitField0_ == other.bitField0_
&& (!hasId() || id == other.id)
&& (!hasTimes() || times == other.times)
&& (!hasRewardType() || rewardType == other.rewardType)
&& (!hasEvents() || events.equals(other.events))
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage));
}
@@ -347,10 +395,14 @@ public final class CharGemInstanceSweep {
output.writeUInt32NoTag(times);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeRawByte((byte) 24);
output.writeUInt32NoTag(rewardType);
}
if ((bitField0_ & 0x00000008) != 0) {
output.writeRawByte((byte) 122);
output.writeMessageNoTag(events);
}
if ((bitField0_ & 0x00000008) != 0) {
if ((bitField0_ & 0x00000010) != 0) {
output.writeRawLittleEndian16((short) 32762);
output.writeBytesNoTag(nextPackage);
}
@@ -366,9 +418,12 @@ public final class CharGemInstanceSweep {
size += 1 + ProtoSink.computeUInt32SizeNoTag(times);
}
if ((bitField0_ & 0x00000004) != 0) {
size += 1 + ProtoSink.computeMessageSizeNoTag(events);
size += 1 + ProtoSink.computeUInt32SizeNoTag(rewardType);
}
if ((bitField0_ & 0x00000008) != 0) {
size += 1 + ProtoSink.computeMessageSizeNoTag(events);
}
if ((bitField0_ & 0x00000010) != 0) {
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
}
return size;
@@ -395,6 +450,15 @@ public final class CharGemInstanceSweep {
times = input.readUInt32();
bitField0_ |= 0x00000002;
tag = input.readTag();
if (tag != 24) {
break;
}
}
case 24: {
// rewardType
rewardType = input.readUInt32();
bitField0_ |= 0x00000004;
tag = input.readTag();
if (tag != 122) {
break;
}
@@ -402,7 +466,7 @@ public final class CharGemInstanceSweep {
case 122: {
// events
input.readMessage(events);
bitField0_ |= 0x00000004;
bitField0_ |= 0x00000008;
tag = input.readTag();
if (tag != 16378) {
break;
@@ -411,7 +475,7 @@ public final class CharGemInstanceSweep {
case 16378: {
// nextPackage
input.readBytes(nextPackage);
bitField0_ |= 0x00000008;
bitField0_ |= 0x00000010;
tag = input.readTag();
if (tag != 0) {
break;
@@ -441,9 +505,12 @@ public final class CharGemInstanceSweep {
output.writeUInt32(FieldNames.times, times);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeMessage(FieldNames.events, events);
output.writeUInt32(FieldNames.rewardType, rewardType);
}
if ((bitField0_ & 0x00000008) != 0) {
output.writeMessage(FieldNames.events, events);
}
if ((bitField0_ & 0x00000010) != 0) {
output.writeBytes(FieldNames.nextPackage, nextPackage);
}
output.endObject();
@@ -478,11 +545,22 @@ public final class CharGemInstanceSweep {
}
break;
}
case -610271447: {
if (input.isAtField(FieldNames.rewardType)) {
if (!input.trySkipNullValue()) {
rewardType = input.readUInt32();
bitField0_ |= 0x00000004;
}
} else {
input.skipUnknownField();
}
break;
}
case 2087505209: {
if (input.isAtField(FieldNames.events)) {
if (!input.trySkipNullValue()) {
input.readMessage(events);
bitField0_ |= 0x00000004;
bitField0_ |= 0x00000008;
}
} else {
input.skipUnknownField();
@@ -493,7 +571,7 @@ public final class CharGemInstanceSweep {
if (input.isAtField(FieldNames.nextPackage)) {
if (!input.trySkipNullValue()) {
input.readBytes(nextPackage);
bitField0_ |= 0x00000008;
bitField0_ |= 0x00000010;
}
} else {
input.skipUnknownField();
@@ -557,6 +635,8 @@ public final class CharGemInstanceSweep {
static final FieldName times = FieldName.forField("Times");
static final FieldName rewardType = FieldName.forField("RewardType");
static final FieldName events = FieldName.forField("Events");
static final FieldName nextPackage = FieldName.forField("NextPackage");
@@ -65,6 +65,11 @@ public final class GachaInformation {
*/
private boolean recvGuaranteeReward;
/**
* <code>optional bytes RewardsRecords = 10;</code>
*/
private final RepeatedByte rewardsRecords = RepeatedByte.newEmptyInstance();
/**
* <code>optional bytes NextPackage = 2047;</code>
*/
@@ -413,12 +418,91 @@ public final class GachaInformation {
return this;
}
/**
* <code>optional bytes RewardsRecords = 10;</code>
* @return whether the rewardsRecords field is set
*/
public boolean hasRewardsRecords() {
return (bitField0_ & 0x00000200) != 0;
}
/**
* <code>optional bytes RewardsRecords = 10;</code>
* @return this
*/
public GachaInfo clearRewardsRecords() {
bitField0_ &= ~0x00000200;
rewardsRecords.clear();
return this;
}
/**
* <code>optional bytes RewardsRecords = 10;</code>
*
* This method returns the internal storage object without modifying any has state.
* The returned object should not be modified and be treated as read-only.
*
* Use {@link #getMutableRewardsRecords()} if you want to modify it.
*
* @return internal storage object for reading
*/
public RepeatedByte getRewardsRecords() {
return rewardsRecords;
}
/**
* <code>optional bytes RewardsRecords = 10;</code>
*
* This method returns the internal storage object and sets the corresponding
* has state. The returned object will become part of this message and its
* contents may be modified as long as the has state is not cleared.
*
* @return internal storage object for modifications
*/
public RepeatedByte getMutableRewardsRecords() {
bitField0_ |= 0x00000200;
return rewardsRecords;
}
/**
* <code>optional bytes RewardsRecords = 10;</code>
* @param value the rewardsRecords to add
* @return this
*/
public GachaInfo addRewardsRecords(final byte value) {
bitField0_ |= 0x00000200;
rewardsRecords.add(value);
return this;
}
/**
* <code>optional bytes RewardsRecords = 10;</code>
* @param values the rewardsRecords to add
* @return this
*/
public GachaInfo addAllRewardsRecords(final byte... values) {
bitField0_ |= 0x00000200;
rewardsRecords.addAll(values);
return this;
}
/**
* <code>optional bytes RewardsRecords = 10;</code>
* @param values the rewardsRecords to set
* @return this
*/
public GachaInfo setRewardsRecords(final byte... values) {
bitField0_ |= 0x00000200;
rewardsRecords.copyFrom(values);
return this;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @return whether the nextPackage field is set
*/
public boolean hasNextPackage() {
return (bitField0_ & 0x00000200) != 0;
return (bitField0_ & 0x00000400) != 0;
}
/**
@@ -426,7 +510,7 @@ public final class GachaInformation {
* @return this
*/
public GachaInfo clearNextPackage() {
bitField0_ &= ~0x00000200;
bitField0_ &= ~0x00000400;
nextPackage.clear();
return this;
}
@@ -455,7 +539,7 @@ public final class GachaInformation {
* @return internal storage object for modifications
*/
public RepeatedByte getMutableNextPackage() {
bitField0_ |= 0x00000200;
bitField0_ |= 0x00000400;
return nextPackage;
}
@@ -465,7 +549,7 @@ public final class GachaInformation {
* @return this
*/
public GachaInfo addNextPackage(final byte value) {
bitField0_ |= 0x00000200;
bitField0_ |= 0x00000400;
nextPackage.add(value);
return this;
}
@@ -476,7 +560,7 @@ public final class GachaInformation {
* @return this
*/
public GachaInfo addAllNextPackage(final byte... values) {
bitField0_ |= 0x00000200;
bitField0_ |= 0x00000400;
nextPackage.addAll(values);
return this;
}
@@ -487,7 +571,7 @@ public final class GachaInformation {
* @return this
*/
public GachaInfo setNextPackage(final byte... values) {
bitField0_ |= 0x00000200;
bitField0_ |= 0x00000400;
nextPackage.copyFrom(values);
return this;
}
@@ -506,6 +590,7 @@ public final class GachaInformation {
aupGuaranteeTimes = other.aupGuaranteeTimes;
reveFirstTenReward = other.reveFirstTenReward;
recvGuaranteeReward = other.recvGuaranteeReward;
rewardsRecords.copyFrom(other.rewardsRecords);
nextPackage.copyFrom(other.nextPackage);
}
return this;
@@ -544,6 +629,9 @@ public final class GachaInformation {
if (other.hasRecvGuaranteeReward()) {
setRecvGuaranteeReward(other.recvGuaranteeReward);
}
if (other.hasRewardsRecords()) {
getMutableRewardsRecords().copyFrom(other.rewardsRecords);
}
if (other.hasNextPackage()) {
getMutableNextPackage().copyFrom(other.nextPackage);
}
@@ -566,6 +654,7 @@ public final class GachaInformation {
aupGuaranteeTimes = 0;
reveFirstTenReward = false;
recvGuaranteeReward = false;
rewardsRecords.clear();
nextPackage.clear();
return this;
}
@@ -577,6 +666,7 @@ public final class GachaInformation {
}
cachedSize = -1;
bitField0_ = 0;
rewardsRecords.clear();
nextPackage.clear();
return this;
}
@@ -600,6 +690,7 @@ public final class GachaInformation {
&& (!hasAupGuaranteeTimes() || aupGuaranteeTimes == other.aupGuaranteeTimes)
&& (!hasReveFirstTenReward() || reveFirstTenReward == other.reveFirstTenReward)
&& (!hasRecvGuaranteeReward() || recvGuaranteeReward == other.recvGuaranteeReward)
&& (!hasRewardsRecords() || rewardsRecords.equals(other.rewardsRecords))
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage));
}
@@ -642,6 +733,10 @@ public final class GachaInformation {
output.writeBoolNoTag(recvGuaranteeReward);
}
if ((bitField0_ & 0x00000200) != 0) {
output.writeRawByte((byte) 82);
output.writeBytesNoTag(rewardsRecords);
}
if ((bitField0_ & 0x00000400) != 0) {
output.writeRawLittleEndian16((short) 32762);
output.writeBytesNoTag(nextPackage);
}
@@ -678,6 +773,9 @@ public final class GachaInformation {
size += 2;
}
if ((bitField0_ & 0x00000200) != 0) {
size += 1 + ProtoSink.computeBytesSizeNoTag(rewardsRecords);
}
if ((bitField0_ & 0x00000400) != 0) {
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
}
return size;
@@ -767,6 +865,15 @@ public final class GachaInformation {
recvGuaranteeReward = input.readBool();
bitField0_ |= 0x00000100;
tag = input.readTag();
if (tag != 82) {
break;
}
}
case 82: {
// rewardsRecords
input.readBytes(rewardsRecords);
bitField0_ |= 0x00000200;
tag = input.readTag();
if (tag != 16378) {
break;
}
@@ -774,7 +881,7 @@ public final class GachaInformation {
case 16378: {
// nextPackage
input.readBytes(nextPackage);
bitField0_ |= 0x00000200;
bitField0_ |= 0x00000400;
tag = input.readTag();
if (tag != 0) {
break;
@@ -825,6 +932,9 @@ public final class GachaInformation {
output.writeBool(FieldNames.recvGuaranteeReward, recvGuaranteeReward);
}
if ((bitField0_ & 0x00000200) != 0) {
output.writeBytes(FieldNames.rewardsRecords, rewardsRecords);
}
if ((bitField0_ & 0x00000400) != 0) {
output.writeBytes(FieldNames.nextPackage, nextPackage);
}
output.endObject();
@@ -936,11 +1046,22 @@ public final class GachaInformation {
}
break;
}
case 1917737630: {
if (input.isAtField(FieldNames.rewardsRecords)) {
if (!input.trySkipNullValue()) {
input.readBytes(rewardsRecords);
bitField0_ |= 0x00000200;
}
} else {
input.skipUnknownField();
}
break;
}
case -2082324045: {
if (input.isAtField(FieldNames.nextPackage)) {
if (!input.trySkipNullValue()) {
input.readBytes(nextPackage);
bitField0_ |= 0x00000200;
bitField0_ |= 0x00000400;
}
} else {
input.skipUnknownField();
@@ -1017,6 +1138,8 @@ public final class GachaInformation {
static final FieldName recvGuaranteeReward = FieldName.forField("RecvGuaranteeReward");
static final FieldName rewardsRecords = FieldName.forField("RewardsRecords");
static final FieldName nextPackage = FieldName.forField("NextPackage");
}
}
@@ -0,0 +1,5 @@
// Code generated by protocol buffer compiler. Do not edit!
package emu.nebula.proto;
public final class GachaRewardGet {
}
File diff suppressed because it is too large Load Diff
+103 -23
View File
@@ -68970,6 +68970,11 @@ public final class Public {
*/
private int star;
/**
* <code>optional uint32 RewardType = 6;</code>
*/
private int rewardType;
/**
* <code>optional bool First = 3;</code>
*/
@@ -69106,12 +69111,49 @@ public final class Public {
return this;
}
/**
* <code>optional uint32 RewardType = 6;</code>
* @return whether the rewardType field is set
*/
public boolean hasRewardType() {
return (bitField0_ & 0x00000008) != 0;
}
/**
* <code>optional uint32 RewardType = 6;</code>
* @return this
*/
public CharGemInstance clearRewardType() {
bitField0_ &= ~0x00000008;
rewardType = 0;
return this;
}
/**
* <code>optional uint32 RewardType = 6;</code>
* @return the rewardType
*/
public int getRewardType() {
return rewardType;
}
/**
* <code>optional uint32 RewardType = 6;</code>
* @param value the rewardType to set
* @return this
*/
public CharGemInstance setRewardType(final int value) {
bitField0_ |= 0x00000008;
rewardType = value;
return this;
}
/**
* <code>optional bool First = 3;</code>
* @return whether the first field is set
*/
public boolean hasFirst() {
return (bitField0_ & 0x00000008) != 0;
return (bitField0_ & 0x00000010) != 0;
}
/**
@@ -69119,7 +69161,7 @@ public final class Public {
* @return this
*/
public CharGemInstance clearFirst() {
bitField0_ &= ~0x00000008;
bitField0_ &= ~0x00000010;
first = false;
return this;
}
@@ -69138,7 +69180,7 @@ public final class Public {
* @return this
*/
public CharGemInstance setFirst(final boolean value) {
bitField0_ |= 0x00000008;
bitField0_ |= 0x00000010;
first = value;
return this;
}
@@ -69148,7 +69190,7 @@ public final class Public {
* @return whether the threeStar field is set
*/
public boolean hasThreeStar() {
return (bitField0_ & 0x00000010) != 0;
return (bitField0_ & 0x00000020) != 0;
}
/**
@@ -69156,7 +69198,7 @@ public final class Public {
* @return this
*/
public CharGemInstance clearThreeStar() {
bitField0_ &= ~0x00000010;
bitField0_ &= ~0x00000020;
threeStar = false;
return this;
}
@@ -69175,7 +69217,7 @@ public final class Public {
* @return this
*/
public CharGemInstance setThreeStar(final boolean value) {
bitField0_ |= 0x00000010;
bitField0_ |= 0x00000020;
threeStar = value;
return this;
}
@@ -69185,7 +69227,7 @@ public final class Public {
* @return whether the nextPackage field is set
*/
public boolean hasNextPackage() {
return (bitField0_ & 0x00000020) != 0;
return (bitField0_ & 0x00000040) != 0;
}
/**
@@ -69193,7 +69235,7 @@ public final class Public {
* @return this
*/
public CharGemInstance clearNextPackage() {
bitField0_ &= ~0x00000020;
bitField0_ &= ~0x00000040;
nextPackage.clear();
return this;
}
@@ -69222,7 +69264,7 @@ public final class Public {
* @return internal storage object for modifications
*/
public RepeatedByte getMutableNextPackage() {
bitField0_ |= 0x00000020;
bitField0_ |= 0x00000040;
return nextPackage;
}
@@ -69232,7 +69274,7 @@ public final class Public {
* @return this
*/
public CharGemInstance addNextPackage(final byte value) {
bitField0_ |= 0x00000020;
bitField0_ |= 0x00000040;
nextPackage.add(value);
return this;
}
@@ -69243,7 +69285,7 @@ public final class Public {
* @return this
*/
public CharGemInstance addAllNextPackage(final byte... values) {
bitField0_ |= 0x00000020;
bitField0_ |= 0x00000040;
nextPackage.addAll(values);
return this;
}
@@ -69254,7 +69296,7 @@ public final class Public {
* @return this
*/
public CharGemInstance setNextPackage(final byte... values) {
bitField0_ |= 0x00000020;
bitField0_ |= 0x00000040;
nextPackage.copyFrom(values);
return this;
}
@@ -69267,6 +69309,7 @@ public final class Public {
buildId = other.buildId;
id = other.id;
star = other.star;
rewardType = other.rewardType;
first = other.first;
threeStar = other.threeStar;
nextPackage.copyFrom(other.nextPackage);
@@ -69289,6 +69332,9 @@ public final class Public {
if (other.hasStar()) {
setStar(other.star);
}
if (other.hasRewardType()) {
setRewardType(other.rewardType);
}
if (other.hasFirst()) {
setFirst(other.first);
}
@@ -69311,6 +69357,7 @@ public final class Public {
buildId = 0L;
id = 0;
star = 0;
rewardType = 0;
first = false;
threeStar = false;
nextPackage.clear();
@@ -69341,6 +69388,7 @@ public final class Public {
&& (!hasBuildId() || buildId == other.buildId)
&& (!hasId() || id == other.id)
&& (!hasStar() || star == other.star)
&& (!hasRewardType() || rewardType == other.rewardType)
&& (!hasFirst() || first == other.first)
&& (!hasThreeStar() || threeStar == other.threeStar)
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage));
@@ -69361,14 +69409,18 @@ public final class Public {
output.writeUInt32NoTag(star);
}
if ((bitField0_ & 0x00000008) != 0) {
output.writeRawByte((byte) 48);
output.writeUInt32NoTag(rewardType);
}
if ((bitField0_ & 0x00000010) != 0) {
output.writeRawByte((byte) 24);
output.writeBoolNoTag(first);
}
if ((bitField0_ & 0x00000010) != 0) {
if ((bitField0_ & 0x00000020) != 0) {
output.writeRawByte((byte) 32);
output.writeBoolNoTag(threeStar);
}
if ((bitField0_ & 0x00000020) != 0) {
if ((bitField0_ & 0x00000040) != 0) {
output.writeRawLittleEndian16((short) 32762);
output.writeBytesNoTag(nextPackage);
}
@@ -69387,12 +69439,15 @@ public final class Public {
size += 1 + ProtoSink.computeUInt32SizeNoTag(star);
}
if ((bitField0_ & 0x00000008) != 0) {
size += 2;
size += 1 + ProtoSink.computeUInt32SizeNoTag(rewardType);
}
if ((bitField0_ & 0x00000010) != 0) {
size += 2;
}
if ((bitField0_ & 0x00000020) != 0) {
size += 2;
}
if ((bitField0_ & 0x00000040) != 0) {
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
}
return size;
@@ -69428,6 +69483,15 @@ public final class Public {
star = input.readUInt32();
bitField0_ |= 0x00000004;
tag = input.readTag();
if (tag != 48) {
break;
}
}
case 48: {
// rewardType
rewardType = input.readUInt32();
bitField0_ |= 0x00000008;
tag = input.readTag();
if (tag != 24) {
break;
}
@@ -69435,7 +69499,7 @@ public final class Public {
case 24: {
// first
first = input.readBool();
bitField0_ |= 0x00000008;
bitField0_ |= 0x00000010;
tag = input.readTag();
if (tag != 32) {
break;
@@ -69444,7 +69508,7 @@ public final class Public {
case 32: {
// threeStar
threeStar = input.readBool();
bitField0_ |= 0x00000010;
bitField0_ |= 0x00000020;
tag = input.readTag();
if (tag != 16378) {
break;
@@ -69453,7 +69517,7 @@ public final class Public {
case 16378: {
// nextPackage
input.readBytes(nextPackage);
bitField0_ |= 0x00000020;
bitField0_ |= 0x00000040;
tag = input.readTag();
if (tag != 0) {
break;
@@ -69486,12 +69550,15 @@ public final class Public {
output.writeUInt32(FieldNames.star, star);
}
if ((bitField0_ & 0x00000008) != 0) {
output.writeBool(FieldNames.first, first);
output.writeUInt32(FieldNames.rewardType, rewardType);
}
if ((bitField0_ & 0x00000010) != 0) {
output.writeBool(FieldNames.threeStar, threeStar);
output.writeBool(FieldNames.first, first);
}
if ((bitField0_ & 0x00000020) != 0) {
output.writeBool(FieldNames.threeStar, threeStar);
}
if ((bitField0_ & 0x00000040) != 0) {
output.writeBytes(FieldNames.nextPackage, nextPackage);
}
output.endObject();
@@ -69537,11 +69604,22 @@ public final class Public {
}
break;
}
case -610271447: {
if (input.isAtField(FieldNames.rewardType)) {
if (!input.trySkipNullValue()) {
rewardType = input.readUInt32();
bitField0_ |= 0x00000008;
}
} else {
input.skipUnknownField();
}
break;
}
case 67887760: {
if (input.isAtField(FieldNames.first)) {
if (!input.trySkipNullValue()) {
first = input.readBool();
bitField0_ |= 0x00000008;
bitField0_ |= 0x00000010;
}
} else {
input.skipUnknownField();
@@ -69552,7 +69630,7 @@ public final class Public {
if (input.isAtField(FieldNames.threeStar)) {
if (!input.trySkipNullValue()) {
threeStar = input.readBool();
bitField0_ |= 0x00000010;
bitField0_ |= 0x00000020;
}
} else {
input.skipUnknownField();
@@ -69563,7 +69641,7 @@ public final class Public {
if (input.isAtField(FieldNames.nextPackage)) {
if (!input.trySkipNullValue()) {
input.readBytes(nextPackage);
bitField0_ |= 0x00000020;
bitField0_ |= 0x00000040;
}
} else {
input.skipUnknownField();
@@ -69629,6 +69707,8 @@ public final class Public {
static final FieldName star = FieldName.forField("Star");
static final FieldName rewardType = FieldName.forField("RewardType");
static final FieldName first = FieldName.forField("First");
static final FieldName threeStar = FieldName.forField("ThreeStar");
@@ -39,6 +39,11 @@ public final class TraceHuntApply {
*/
private int bossID;
/**
* <code>optional uint32 Difficulty = 5;</code>
*/
private int difficulty;
/**
* <code>optional bytes NextPackage = 2047;</code>
*/
@@ -202,12 +207,49 @@ public final class TraceHuntApply {
return this;
}
/**
* <code>optional uint32 Difficulty = 5;</code>
* @return whether the difficulty field is set
*/
public boolean hasDifficulty() {
return (bitField0_ & 0x00000010) != 0;
}
/**
* <code>optional uint32 Difficulty = 5;</code>
* @return this
*/
public TraceHuntApplyReq clearDifficulty() {
bitField0_ &= ~0x00000010;
difficulty = 0;
return this;
}
/**
* <code>optional uint32 Difficulty = 5;</code>
* @return the difficulty
*/
public int getDifficulty() {
return difficulty;
}
/**
* <code>optional uint32 Difficulty = 5;</code>
* @param value the difficulty to set
* @return this
*/
public TraceHuntApplyReq setDifficulty(final int value) {
bitField0_ |= 0x00000010;
difficulty = value;
return this;
}
/**
* <code>optional bytes NextPackage = 2047;</code>
* @return whether the nextPackage field is set
*/
public boolean hasNextPackage() {
return (bitField0_ & 0x00000010) != 0;
return (bitField0_ & 0x00000020) != 0;
}
/**
@@ -215,7 +257,7 @@ public final class TraceHuntApply {
* @return this
*/
public TraceHuntApplyReq clearNextPackage() {
bitField0_ &= ~0x00000010;
bitField0_ &= ~0x00000020;
nextPackage.clear();
return this;
}
@@ -244,7 +286,7 @@ public final class TraceHuntApply {
* @return internal storage object for modifications
*/
public RepeatedByte getMutableNextPackage() {
bitField0_ |= 0x00000010;
bitField0_ |= 0x00000020;
return nextPackage;
}
@@ -254,7 +296,7 @@ public final class TraceHuntApply {
* @return this
*/
public TraceHuntApplyReq addNextPackage(final byte value) {
bitField0_ |= 0x00000010;
bitField0_ |= 0x00000020;
nextPackage.add(value);
return this;
}
@@ -265,7 +307,7 @@ public final class TraceHuntApply {
* @return this
*/
public TraceHuntApplyReq addAllNextPackage(final byte... values) {
bitField0_ |= 0x00000010;
bitField0_ |= 0x00000020;
nextPackage.addAll(values);
return this;
}
@@ -276,7 +318,7 @@ public final class TraceHuntApply {
* @return this
*/
public TraceHuntApplyReq setNextPackage(final byte... values) {
bitField0_ |= 0x00000010;
bitField0_ |= 0x00000020;
nextPackage.copyFrom(values);
return this;
}
@@ -290,6 +332,7 @@ public final class TraceHuntApply {
ownerUID = other.ownerUID;
buildID = other.buildID;
bossID = other.bossID;
difficulty = other.difficulty;
nextPackage.copyFrom(other.nextPackage);
}
return this;
@@ -313,6 +356,9 @@ public final class TraceHuntApply {
if (other.hasBossID()) {
setBossID(other.bossID);
}
if (other.hasDifficulty()) {
setDifficulty(other.difficulty);
}
if (other.hasNextPackage()) {
getMutableNextPackage().copyFrom(other.nextPackage);
}
@@ -330,6 +376,7 @@ public final class TraceHuntApply {
ownerUID = 0L;
buildID = 0L;
bossID = 0;
difficulty = 0;
nextPackage.clear();
return this;
}
@@ -359,6 +406,7 @@ public final class TraceHuntApply {
&& (!hasOwnerUID() || ownerUID == other.ownerUID)
&& (!hasBuildID() || buildID == other.buildID)
&& (!hasBossID() || bossID == other.bossID)
&& (!hasDifficulty() || difficulty == other.difficulty)
&& (!hasNextPackage() || nextPackage.equals(other.nextPackage));
}
@@ -381,6 +429,10 @@ public final class TraceHuntApply {
output.writeUInt32NoTag(bossID);
}
if ((bitField0_ & 0x00000010) != 0) {
output.writeRawByte((byte) 40);
output.writeUInt32NoTag(difficulty);
}
if ((bitField0_ & 0x00000020) != 0) {
output.writeRawLittleEndian16((short) 32762);
output.writeBytesNoTag(nextPackage);
}
@@ -402,6 +454,9 @@ public final class TraceHuntApply {
size += 1 + ProtoSink.computeUInt32SizeNoTag(bossID);
}
if ((bitField0_ & 0x00000010) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(difficulty);
}
if ((bitField0_ & 0x00000020) != 0) {
size += 2 + ProtoSink.computeBytesSizeNoTag(nextPackage);
}
return size;
@@ -446,6 +501,15 @@ public final class TraceHuntApply {
bossID = input.readUInt32();
bitField0_ |= 0x00000008;
tag = input.readTag();
if (tag != 40) {
break;
}
}
case 40: {
// difficulty
difficulty = input.readUInt32();
bitField0_ |= 0x00000010;
tag = input.readTag();
if (tag != 16378) {
break;
}
@@ -453,7 +517,7 @@ public final class TraceHuntApply {
case 16378: {
// nextPackage
input.readBytes(nextPackage);
bitField0_ |= 0x00000010;
bitField0_ |= 0x00000020;
tag = input.readTag();
if (tag != 0) {
break;
@@ -489,6 +553,9 @@ public final class TraceHuntApply {
output.writeUInt32(FieldNames.bossID, bossID);
}
if ((bitField0_ & 0x00000010) != 0) {
output.writeUInt32(FieldNames.difficulty, difficulty);
}
if ((bitField0_ & 0x00000020) != 0) {
output.writeBytes(FieldNames.nextPackage, nextPackage);
}
output.endObject();
@@ -545,11 +612,22 @@ public final class TraceHuntApply {
}
break;
}
case -472001573: {
if (input.isAtField(FieldNames.difficulty)) {
if (!input.trySkipNullValue()) {
difficulty = input.readUInt32();
bitField0_ |= 0x00000010;
}
} else {
input.skipUnknownField();
}
break;
}
case -2082324045: {
if (input.isAtField(FieldNames.nextPackage)) {
if (!input.trySkipNullValue()) {
input.readBytes(nextPackage);
bitField0_ |= 0x00000010;
bitField0_ |= 0x00000020;
}
} else {
input.skipUnknownField();
@@ -617,6 +695,8 @@ public final class TraceHuntApply {
static final FieldName bossID = FieldName.forField("BossID");
static final FieldName difficulty = FieldName.forField("Difficulty");
static final FieldName nextPackage = FieldName.forField("NextPackage");
}
}
+1 -1
View File
@@ -7,7 +7,7 @@ import emu.nebula.game.inventory.ItemParamMap;
import emu.nebula.util.WeightedList;
public class GameConstants {
public static final String VERSION = "1.14.0";
public static final String VERSION = "1.15.0";
public static int DATA_VERSION = 0;
public static final ZoneId UTC_ZONE = ZoneId.of("UTC");
@@ -99,6 +99,8 @@ public enum AchievementCondition {
TutorialLevelSpecificClearTotal (121),
DiscWithSpecificQuantityPhaseAndAttr (122),
WeekBossClearTotal (123),
TraceHuntTraceComplete (159),
TraceHuntAssistHunt (160),
ClientReport (200),
TowerBattleTimes (501),
TowerBossChallengeSpecificHighRewardWithTotal (502),
@@ -75,9 +75,14 @@ public class ActivityModule extends GameContextModule {
//this.activities.add(2010304);
// Surfing Splash: A Sparkling Holiday Adventure!
this.activities.add(1011001);
this.activities.add(1011003);
this.activities.add(1011004);
//this.activities.add(1011001);
//this.activities.add(1011003);
//this.activities.add(1011004);
// Go, My Lady! Training Handbook Plus!
this.activities.add(1011101);
this.activities.add(1011103);
this.activities.add(1011104);
// ===== Joint Drills (Finale Echoing) =====
//this.activities.add(510003); // Causes soft lock in event screen
@@ -85,11 +90,11 @@ public class ActivityModule extends GameContextModule {
// ===== Etc Events =====
// Trial activities
this.activities.add(700127);
this.activities.add(700128);
this.activities.add(700129);
// Tower defense activity
this.activities.add(102002); // Broken
//this.activities.add(102002); // Missing image on client - probably removed
// Login events
//this.activities.add(301011); // Christmas 2025
@@ -30,7 +30,8 @@ public enum ActivityType {
HistoryStory (22),
IceCream (23),
FollowSocialMedia (24),
Soldier (25);
Soldier (25),
NewStory (30);
@Getter
private final int value;
@@ -532,6 +532,9 @@ public class NetMsgId {
public static final int gacha_newbie_info_succeed_ack = 6023;
public static final int gacha_newbie_info_failed_ack = 6024;
public static final int gacha_spin_sync_ack = 6025;
public static final int gacha_reward_get_req = 6026;
public static final int gacha_reward_get_succeed_ack = 6027;
public static final int gacha_reward_get_failed_ack = 6028;
public static final int tower_book_fate_card_detail_req = 6101;
public static final int tower_book_fate_card_detail_succeed_ack = 6102;
public static final int tower_book_fate_card_detail_failed_ack = 6103;
@@ -751,6 +754,9 @@ public class NetMsgId {
public static final int activity_ice_cream_level_settle_req = 8411;
public static final int activity_ice_cream_level_settle_succeed_ack = 8412;
public static final int activity_ice_cream_level_settle_failed_ack = 8413;
public static final int activity_penguin_card_endless_level_save_req = 8416;
public static final int activity_penguin_card_endless_level_save_succeed_ack = 8417;
public static final int activity_penguin_card_endless_level_save_failed_ack = 8418;
public static final int mail_list_req = 9001;
public static final int mail_list_succeed_ack = 9002;
public static final int mail_list_failed_ack = 9003;
+5 -5
View File
@@ -1,7 +1,7 @@
{
"global": 131,
"kr": 137,
"jp": 135,
"tw": 141,
"cn": 131
"global": 134,
"kr": 139,
"jp": 137,
"tw": 142,
"cn": 133
}