mirror of
https://github.com/Melledy/LunarCore.git
synced 2025-12-17 15:54:36 +01:00
attempt to fix daily active + bp
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,501 @@
|
|||||||
|
// 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 DailyActiveInfoNotifyOuterClass {
|
||||||
|
/**
|
||||||
|
* Protobuf type {@code DailyActiveInfoNotify}
|
||||||
|
*/
|
||||||
|
public static final class DailyActiveInfoNotify extends ProtoMessage<DailyActiveInfoNotify> implements Cloneable {
|
||||||
|
private static final long serialVersionUID = 0L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 daily_active_point = 12;</code>
|
||||||
|
*/
|
||||||
|
private int dailyActivePoint;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated uint32 daily_active_quest_id_list = 1;</code>
|
||||||
|
*/
|
||||||
|
private final RepeatedInt dailyActiveQuestIdList = RepeatedInt.newEmptyInstance();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .DailyActivityInfo daily_active_level_list = 2;</code>
|
||||||
|
*/
|
||||||
|
private final RepeatedMessage<DailyActivityInfoOuterClass.DailyActivityInfo> dailyActiveLevelList = RepeatedMessage.newEmptyInstance(DailyActivityInfoOuterClass.DailyActivityInfo.getFactory());
|
||||||
|
|
||||||
|
private DailyActiveInfoNotify() {
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return a new empty instance of {@code DailyActiveInfoNotify}
|
||||||
|
*/
|
||||||
|
public static DailyActiveInfoNotify newInstance() {
|
||||||
|
return new DailyActiveInfoNotify();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 daily_active_point = 12;</code>
|
||||||
|
* @return whether the dailyActivePoint field is set
|
||||||
|
*/
|
||||||
|
public boolean hasDailyActivePoint() {
|
||||||
|
return (bitField0_ & 0x00000001) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 daily_active_point = 12;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public DailyActiveInfoNotify clearDailyActivePoint() {
|
||||||
|
bitField0_ &= ~0x00000001;
|
||||||
|
dailyActivePoint = 0;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 daily_active_point = 12;</code>
|
||||||
|
* @return the dailyActivePoint
|
||||||
|
*/
|
||||||
|
public int getDailyActivePoint() {
|
||||||
|
return dailyActivePoint;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 daily_active_point = 12;</code>
|
||||||
|
* @param value the dailyActivePoint to set
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public DailyActiveInfoNotify setDailyActivePoint(final int value) {
|
||||||
|
bitField0_ |= 0x00000001;
|
||||||
|
dailyActivePoint = value;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated uint32 daily_active_quest_id_list = 1;</code>
|
||||||
|
* @return whether the dailyActiveQuestIdList field is set
|
||||||
|
*/
|
||||||
|
public boolean hasDailyActiveQuestIdList() {
|
||||||
|
return (bitField0_ & 0x00000002) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated uint32 daily_active_quest_id_list = 1;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public DailyActiveInfoNotify clearDailyActiveQuestIdList() {
|
||||||
|
bitField0_ &= ~0x00000002;
|
||||||
|
dailyActiveQuestIdList.clear();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated uint32 daily_active_quest_id_list = 1;</code>
|
||||||
|
*
|
||||||
|
* This method returns the internal storage object without modifying any has state.
|
||||||
|
* The returned object should not be modified and be treated as read-only.
|
||||||
|
*
|
||||||
|
* Use {@link #getMutableDailyActiveQuestIdList()} if you want to modify it.
|
||||||
|
*
|
||||||
|
* @return internal storage object for reading
|
||||||
|
*/
|
||||||
|
public RepeatedInt getDailyActiveQuestIdList() {
|
||||||
|
return dailyActiveQuestIdList;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated uint32 daily_active_quest_id_list = 1;</code>
|
||||||
|
*
|
||||||
|
* This method returns the internal storage object and sets the corresponding
|
||||||
|
* has state. The returned object will become part of this message and its
|
||||||
|
* contents may be modified as long as the has state is not cleared.
|
||||||
|
*
|
||||||
|
* @return internal storage object for modifications
|
||||||
|
*/
|
||||||
|
public RepeatedInt getMutableDailyActiveQuestIdList() {
|
||||||
|
bitField0_ |= 0x00000002;
|
||||||
|
return dailyActiveQuestIdList;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated uint32 daily_active_quest_id_list = 1;</code>
|
||||||
|
* @param value the dailyActiveQuestIdList to add
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public DailyActiveInfoNotify addDailyActiveQuestIdList(final int value) {
|
||||||
|
bitField0_ |= 0x00000002;
|
||||||
|
dailyActiveQuestIdList.add(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated uint32 daily_active_quest_id_list = 1;</code>
|
||||||
|
* @param values the dailyActiveQuestIdList to add
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public DailyActiveInfoNotify addAllDailyActiveQuestIdList(final int... values) {
|
||||||
|
bitField0_ |= 0x00000002;
|
||||||
|
dailyActiveQuestIdList.addAll(values);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .DailyActivityInfo daily_active_level_list = 2;</code>
|
||||||
|
* @return whether the dailyActiveLevelList field is set
|
||||||
|
*/
|
||||||
|
public boolean hasDailyActiveLevelList() {
|
||||||
|
return (bitField0_ & 0x00000004) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .DailyActivityInfo daily_active_level_list = 2;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public DailyActiveInfoNotify clearDailyActiveLevelList() {
|
||||||
|
bitField0_ &= ~0x00000004;
|
||||||
|
dailyActiveLevelList.clear();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .DailyActivityInfo daily_active_level_list = 2;</code>
|
||||||
|
*
|
||||||
|
* This method returns the internal storage object without modifying any has state.
|
||||||
|
* The returned object should not be modified and be treated as read-only.
|
||||||
|
*
|
||||||
|
* Use {@link #getMutableDailyActiveLevelList()} if you want to modify it.
|
||||||
|
*
|
||||||
|
* @return internal storage object for reading
|
||||||
|
*/
|
||||||
|
public RepeatedMessage<DailyActivityInfoOuterClass.DailyActivityInfo> getDailyActiveLevelList(
|
||||||
|
) {
|
||||||
|
return dailyActiveLevelList;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .DailyActivityInfo daily_active_level_list = 2;</code>
|
||||||
|
*
|
||||||
|
* This method returns the internal storage object and sets the corresponding
|
||||||
|
* has state. The returned object will become part of this message and its
|
||||||
|
* contents may be modified as long as the has state is not cleared.
|
||||||
|
*
|
||||||
|
* @return internal storage object for modifications
|
||||||
|
*/
|
||||||
|
public RepeatedMessage<DailyActivityInfoOuterClass.DailyActivityInfo> getMutableDailyActiveLevelList(
|
||||||
|
) {
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
return dailyActiveLevelList;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .DailyActivityInfo daily_active_level_list = 2;</code>
|
||||||
|
* @param value the dailyActiveLevelList to add
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public DailyActiveInfoNotify addDailyActiveLevelList(
|
||||||
|
final DailyActivityInfoOuterClass.DailyActivityInfo value) {
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
dailyActiveLevelList.add(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .DailyActivityInfo daily_active_level_list = 2;</code>
|
||||||
|
* @param values the dailyActiveLevelList to add
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public DailyActiveInfoNotify addAllDailyActiveLevelList(
|
||||||
|
final DailyActivityInfoOuterClass.DailyActivityInfo... values) {
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
dailyActiveLevelList.addAll(values);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public DailyActiveInfoNotify copyFrom(final DailyActiveInfoNotify other) {
|
||||||
|
cachedSize = other.cachedSize;
|
||||||
|
if ((bitField0_ | other.bitField0_) != 0) {
|
||||||
|
bitField0_ = other.bitField0_;
|
||||||
|
dailyActivePoint = other.dailyActivePoint;
|
||||||
|
dailyActiveQuestIdList.copyFrom(other.dailyActiveQuestIdList);
|
||||||
|
dailyActiveLevelList.copyFrom(other.dailyActiveLevelList);
|
||||||
|
}
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public DailyActiveInfoNotify mergeFrom(final DailyActiveInfoNotify other) {
|
||||||
|
if (other.isEmpty()) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
cachedSize = -1;
|
||||||
|
if (other.hasDailyActivePoint()) {
|
||||||
|
setDailyActivePoint(other.dailyActivePoint);
|
||||||
|
}
|
||||||
|
if (other.hasDailyActiveQuestIdList()) {
|
||||||
|
getMutableDailyActiveQuestIdList().addAll(other.dailyActiveQuestIdList);
|
||||||
|
}
|
||||||
|
if (other.hasDailyActiveLevelList()) {
|
||||||
|
getMutableDailyActiveLevelList().addAll(other.dailyActiveLevelList);
|
||||||
|
}
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public DailyActiveInfoNotify clear() {
|
||||||
|
if (isEmpty()) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
cachedSize = -1;
|
||||||
|
bitField0_ = 0;
|
||||||
|
dailyActivePoint = 0;
|
||||||
|
dailyActiveQuestIdList.clear();
|
||||||
|
dailyActiveLevelList.clear();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public DailyActiveInfoNotify clearQuick() {
|
||||||
|
if (isEmpty()) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
cachedSize = -1;
|
||||||
|
bitField0_ = 0;
|
||||||
|
dailyActiveQuestIdList.clear();
|
||||||
|
dailyActiveLevelList.clearQuick();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (o == this) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (!(o instanceof DailyActiveInfoNotify)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
DailyActiveInfoNotify other = (DailyActiveInfoNotify) o;
|
||||||
|
return bitField0_ == other.bitField0_
|
||||||
|
&& (!hasDailyActivePoint() || dailyActivePoint == other.dailyActivePoint)
|
||||||
|
&& (!hasDailyActiveQuestIdList() || dailyActiveQuestIdList.equals(other.dailyActiveQuestIdList))
|
||||||
|
&& (!hasDailyActiveLevelList() || dailyActiveLevelList.equals(other.dailyActiveLevelList));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void writeTo(final ProtoSink output) throws IOException {
|
||||||
|
if ((bitField0_ & 0x00000001) != 0) {
|
||||||
|
output.writeRawByte((byte) 96);
|
||||||
|
output.writeUInt32NoTag(dailyActivePoint);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000002) != 0) {
|
||||||
|
for (int i = 0; i < dailyActiveQuestIdList.length(); i++) {
|
||||||
|
output.writeRawByte((byte) 8);
|
||||||
|
output.writeUInt32NoTag(dailyActiveQuestIdList.array()[i]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000004) != 0) {
|
||||||
|
for (int i = 0; i < dailyActiveLevelList.length(); i++) {
|
||||||
|
output.writeRawByte((byte) 18);
|
||||||
|
output.writeMessageNoTag(dailyActiveLevelList.get(i));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected int computeSerializedSize() {
|
||||||
|
int size = 0;
|
||||||
|
if ((bitField0_ & 0x00000001) != 0) {
|
||||||
|
size += 1 + ProtoSink.computeUInt32SizeNoTag(dailyActivePoint);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000002) != 0) {
|
||||||
|
size += (1 * dailyActiveQuestIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(dailyActiveQuestIdList);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000004) != 0) {
|
||||||
|
size += (1 * dailyActiveLevelList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(dailyActiveLevelList);
|
||||||
|
}
|
||||||
|
return size;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@SuppressWarnings("fallthrough")
|
||||||
|
public DailyActiveInfoNotify mergeFrom(final ProtoSource input) throws IOException {
|
||||||
|
// Enabled Fall-Through Optimization (QuickBuffers)
|
||||||
|
int tag = input.readTag();
|
||||||
|
while (true) {
|
||||||
|
switch (tag) {
|
||||||
|
case 96: {
|
||||||
|
// dailyActivePoint
|
||||||
|
dailyActivePoint = input.readUInt32();
|
||||||
|
bitField0_ |= 0x00000001;
|
||||||
|
tag = input.readTag();
|
||||||
|
if (tag != 10) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
case 10: {
|
||||||
|
// dailyActiveQuestIdList [packed=true]
|
||||||
|
input.readPackedUInt32(dailyActiveQuestIdList, tag);
|
||||||
|
bitField0_ |= 0x00000002;
|
||||||
|
tag = input.readTag();
|
||||||
|
if (tag != 18) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
case 18: {
|
||||||
|
// dailyActiveLevelList
|
||||||
|
tag = input.readRepeatedMessage(dailyActiveLevelList, tag);
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
if (tag != 0) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
case 0: {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
default: {
|
||||||
|
if (!input.skipField(tag)) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
tag = input.readTag();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case 8: {
|
||||||
|
// dailyActiveQuestIdList [packed=false]
|
||||||
|
tag = input.readRepeatedUInt32(dailyActiveQuestIdList, tag);
|
||||||
|
bitField0_ |= 0x00000002;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void writeTo(final JsonSink output) throws IOException {
|
||||||
|
output.beginObject();
|
||||||
|
if ((bitField0_ & 0x00000001) != 0) {
|
||||||
|
output.writeUInt32(FieldNames.dailyActivePoint, dailyActivePoint);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000002) != 0) {
|
||||||
|
output.writeRepeatedUInt32(FieldNames.dailyActiveQuestIdList, dailyActiveQuestIdList);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000004) != 0) {
|
||||||
|
output.writeRepeatedMessage(FieldNames.dailyActiveLevelList, dailyActiveLevelList);
|
||||||
|
}
|
||||||
|
output.endObject();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public DailyActiveInfoNotify mergeFrom(final JsonSource input) throws IOException {
|
||||||
|
if (!input.beginObject()) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
while (!input.isAtEnd()) {
|
||||||
|
switch (input.readFieldHash()) {
|
||||||
|
case 859671121:
|
||||||
|
case 1952864125: {
|
||||||
|
if (input.isAtField(FieldNames.dailyActivePoint)) {
|
||||||
|
if (!input.trySkipNullValue()) {
|
||||||
|
dailyActivePoint = input.readUInt32();
|
||||||
|
bitField0_ |= 0x00000001;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
input.skipUnknownField();
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case 1903124444:
|
||||||
|
case -752691246: {
|
||||||
|
if (input.isAtField(FieldNames.dailyActiveQuestIdList)) {
|
||||||
|
if (!input.trySkipNullValue()) {
|
||||||
|
input.readRepeatedUInt32(dailyActiveQuestIdList);
|
||||||
|
bitField0_ |= 0x00000002;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
input.skipUnknownField();
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case 705251971:
|
||||||
|
case 1821477548: {
|
||||||
|
if (input.isAtField(FieldNames.dailyActiveLevelList)) {
|
||||||
|
if (!input.trySkipNullValue()) {
|
||||||
|
input.readRepeatedMessage(dailyActiveLevelList);
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
input.skipUnknownField();
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
default: {
|
||||||
|
input.skipUnknownField();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
input.endObject();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public DailyActiveInfoNotify clone() {
|
||||||
|
return new DailyActiveInfoNotify().copyFrom(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isEmpty() {
|
||||||
|
return ((bitField0_) == 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static DailyActiveInfoNotify parseFrom(final byte[] data) throws
|
||||||
|
InvalidProtocolBufferException {
|
||||||
|
return ProtoMessage.mergeFrom(new DailyActiveInfoNotify(), data).checkInitialized();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static DailyActiveInfoNotify parseFrom(final ProtoSource input) throws IOException {
|
||||||
|
return ProtoMessage.mergeFrom(new DailyActiveInfoNotify(), input).checkInitialized();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static DailyActiveInfoNotify parseFrom(final JsonSource input) throws IOException {
|
||||||
|
return ProtoMessage.mergeFrom(new DailyActiveInfoNotify(), input).checkInitialized();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return factory for creating DailyActiveInfoNotify messages
|
||||||
|
*/
|
||||||
|
public static MessageFactory<DailyActiveInfoNotify> getFactory() {
|
||||||
|
return DailyActiveInfoNotifyFactory.INSTANCE;
|
||||||
|
}
|
||||||
|
|
||||||
|
private enum DailyActiveInfoNotifyFactory implements MessageFactory<DailyActiveInfoNotify> {
|
||||||
|
INSTANCE;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public DailyActiveInfoNotify create() {
|
||||||
|
return DailyActiveInfoNotify.newInstance();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Contains name constants used for serializing JSON
|
||||||
|
*/
|
||||||
|
static class FieldNames {
|
||||||
|
static final FieldName dailyActivePoint = FieldName.forField("dailyActivePoint", "daily_active_point");
|
||||||
|
|
||||||
|
static final FieldName dailyActiveQuestIdList = FieldName.forField("dailyActiveQuestIdList", "daily_active_quest_id_list");
|
||||||
|
|
||||||
|
static final FieldName dailyActiveLevelList = FieldName.forField("dailyActiveLevelList", "daily_active_level_list");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,502 @@
|
|||||||
|
// 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 DailyActivityInfoOuterClass {
|
||||||
|
/**
|
||||||
|
* Protobuf type {@code DailyActivityInfo}
|
||||||
|
*/
|
||||||
|
public static final class DailyActivityInfo extends ProtoMessage<DailyActivityInfo> implements Cloneable {
|
||||||
|
private static final long serialVersionUID = 0L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 level = 5;</code>
|
||||||
|
*/
|
||||||
|
private int level;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 daily_active_point = 9;</code>
|
||||||
|
*/
|
||||||
|
private int dailyActivePoint;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 world_level = 10;</code>
|
||||||
|
*/
|
||||||
|
private int worldLevel;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional bool is_has_taken = 13;</code>
|
||||||
|
*/
|
||||||
|
private boolean isHasTaken;
|
||||||
|
|
||||||
|
private DailyActivityInfo() {
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return a new empty instance of {@code DailyActivityInfo}
|
||||||
|
*/
|
||||||
|
public static DailyActivityInfo newInstance() {
|
||||||
|
return new DailyActivityInfo();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 level = 5;</code>
|
||||||
|
* @return whether the level field is set
|
||||||
|
*/
|
||||||
|
public boolean hasLevel() {
|
||||||
|
return (bitField0_ & 0x00000001) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 level = 5;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public DailyActivityInfo clearLevel() {
|
||||||
|
bitField0_ &= ~0x00000001;
|
||||||
|
level = 0;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 level = 5;</code>
|
||||||
|
* @return the level
|
||||||
|
*/
|
||||||
|
public int getLevel() {
|
||||||
|
return level;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 level = 5;</code>
|
||||||
|
* @param value the level to set
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public DailyActivityInfo setLevel(final int value) {
|
||||||
|
bitField0_ |= 0x00000001;
|
||||||
|
level = value;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 daily_active_point = 9;</code>
|
||||||
|
* @return whether the dailyActivePoint field is set
|
||||||
|
*/
|
||||||
|
public boolean hasDailyActivePoint() {
|
||||||
|
return (bitField0_ & 0x00000002) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 daily_active_point = 9;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public DailyActivityInfo clearDailyActivePoint() {
|
||||||
|
bitField0_ &= ~0x00000002;
|
||||||
|
dailyActivePoint = 0;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 daily_active_point = 9;</code>
|
||||||
|
* @return the dailyActivePoint
|
||||||
|
*/
|
||||||
|
public int getDailyActivePoint() {
|
||||||
|
return dailyActivePoint;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 daily_active_point = 9;</code>
|
||||||
|
* @param value the dailyActivePoint to set
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public DailyActivityInfo setDailyActivePoint(final int value) {
|
||||||
|
bitField0_ |= 0x00000002;
|
||||||
|
dailyActivePoint = value;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 world_level = 10;</code>
|
||||||
|
* @return whether the worldLevel field is set
|
||||||
|
*/
|
||||||
|
public boolean hasWorldLevel() {
|
||||||
|
return (bitField0_ & 0x00000004) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 world_level = 10;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public DailyActivityInfo clearWorldLevel() {
|
||||||
|
bitField0_ &= ~0x00000004;
|
||||||
|
worldLevel = 0;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 world_level = 10;</code>
|
||||||
|
* @return the worldLevel
|
||||||
|
*/
|
||||||
|
public int getWorldLevel() {
|
||||||
|
return worldLevel;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 world_level = 10;</code>
|
||||||
|
* @param value the worldLevel to set
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public DailyActivityInfo setWorldLevel(final int value) {
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
worldLevel = value;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional bool is_has_taken = 13;</code>
|
||||||
|
* @return whether the isHasTaken field is set
|
||||||
|
*/
|
||||||
|
public boolean hasIsHasTaken() {
|
||||||
|
return (bitField0_ & 0x00000008) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional bool is_has_taken = 13;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public DailyActivityInfo clearIsHasTaken() {
|
||||||
|
bitField0_ &= ~0x00000008;
|
||||||
|
isHasTaken = false;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional bool is_has_taken = 13;</code>
|
||||||
|
* @return the isHasTaken
|
||||||
|
*/
|
||||||
|
public boolean getIsHasTaken() {
|
||||||
|
return isHasTaken;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional bool is_has_taken = 13;</code>
|
||||||
|
* @param value the isHasTaken to set
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public DailyActivityInfo setIsHasTaken(final boolean value) {
|
||||||
|
bitField0_ |= 0x00000008;
|
||||||
|
isHasTaken = value;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public DailyActivityInfo copyFrom(final DailyActivityInfo other) {
|
||||||
|
cachedSize = other.cachedSize;
|
||||||
|
if ((bitField0_ | other.bitField0_) != 0) {
|
||||||
|
bitField0_ = other.bitField0_;
|
||||||
|
level = other.level;
|
||||||
|
dailyActivePoint = other.dailyActivePoint;
|
||||||
|
worldLevel = other.worldLevel;
|
||||||
|
isHasTaken = other.isHasTaken;
|
||||||
|
}
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public DailyActivityInfo mergeFrom(final DailyActivityInfo other) {
|
||||||
|
if (other.isEmpty()) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
cachedSize = -1;
|
||||||
|
if (other.hasLevel()) {
|
||||||
|
setLevel(other.level);
|
||||||
|
}
|
||||||
|
if (other.hasDailyActivePoint()) {
|
||||||
|
setDailyActivePoint(other.dailyActivePoint);
|
||||||
|
}
|
||||||
|
if (other.hasWorldLevel()) {
|
||||||
|
setWorldLevel(other.worldLevel);
|
||||||
|
}
|
||||||
|
if (other.hasIsHasTaken()) {
|
||||||
|
setIsHasTaken(other.isHasTaken);
|
||||||
|
}
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public DailyActivityInfo clear() {
|
||||||
|
if (isEmpty()) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
cachedSize = -1;
|
||||||
|
bitField0_ = 0;
|
||||||
|
level = 0;
|
||||||
|
dailyActivePoint = 0;
|
||||||
|
worldLevel = 0;
|
||||||
|
isHasTaken = false;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public DailyActivityInfo 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 DailyActivityInfo)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
DailyActivityInfo other = (DailyActivityInfo) o;
|
||||||
|
return bitField0_ == other.bitField0_
|
||||||
|
&& (!hasLevel() || level == other.level)
|
||||||
|
&& (!hasDailyActivePoint() || dailyActivePoint == other.dailyActivePoint)
|
||||||
|
&& (!hasWorldLevel() || worldLevel == other.worldLevel)
|
||||||
|
&& (!hasIsHasTaken() || isHasTaken == other.isHasTaken);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void writeTo(final ProtoSink output) throws IOException {
|
||||||
|
if ((bitField0_ & 0x00000001) != 0) {
|
||||||
|
output.writeRawByte((byte) 40);
|
||||||
|
output.writeUInt32NoTag(level);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000002) != 0) {
|
||||||
|
output.writeRawByte((byte) 72);
|
||||||
|
output.writeUInt32NoTag(dailyActivePoint);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000004) != 0) {
|
||||||
|
output.writeRawByte((byte) 80);
|
||||||
|
output.writeUInt32NoTag(worldLevel);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000008) != 0) {
|
||||||
|
output.writeRawByte((byte) 104);
|
||||||
|
output.writeBoolNoTag(isHasTaken);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected int computeSerializedSize() {
|
||||||
|
int size = 0;
|
||||||
|
if ((bitField0_ & 0x00000001) != 0) {
|
||||||
|
size += 1 + ProtoSink.computeUInt32SizeNoTag(level);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000002) != 0) {
|
||||||
|
size += 1 + ProtoSink.computeUInt32SizeNoTag(dailyActivePoint);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000004) != 0) {
|
||||||
|
size += 1 + ProtoSink.computeUInt32SizeNoTag(worldLevel);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000008) != 0) {
|
||||||
|
size += 2;
|
||||||
|
}
|
||||||
|
return size;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@SuppressWarnings("fallthrough")
|
||||||
|
public DailyActivityInfo mergeFrom(final ProtoSource input) throws IOException {
|
||||||
|
// Enabled Fall-Through Optimization (QuickBuffers)
|
||||||
|
int tag = input.readTag();
|
||||||
|
while (true) {
|
||||||
|
switch (tag) {
|
||||||
|
case 40: {
|
||||||
|
// level
|
||||||
|
level = input.readUInt32();
|
||||||
|
bitField0_ |= 0x00000001;
|
||||||
|
tag = input.readTag();
|
||||||
|
if (tag != 72) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
case 72: {
|
||||||
|
// dailyActivePoint
|
||||||
|
dailyActivePoint = input.readUInt32();
|
||||||
|
bitField0_ |= 0x00000002;
|
||||||
|
tag = input.readTag();
|
||||||
|
if (tag != 80) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
case 80: {
|
||||||
|
// worldLevel
|
||||||
|
worldLevel = input.readUInt32();
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
tag = input.readTag();
|
||||||
|
if (tag != 104) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
case 104: {
|
||||||
|
// isHasTaken
|
||||||
|
isHasTaken = input.readBool();
|
||||||
|
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.level, level);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000002) != 0) {
|
||||||
|
output.writeUInt32(FieldNames.dailyActivePoint, dailyActivePoint);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000004) != 0) {
|
||||||
|
output.writeUInt32(FieldNames.worldLevel, worldLevel);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000008) != 0) {
|
||||||
|
output.writeBool(FieldNames.isHasTaken, isHasTaken);
|
||||||
|
}
|
||||||
|
output.endObject();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public DailyActivityInfo mergeFrom(final JsonSource input) throws IOException {
|
||||||
|
if (!input.beginObject()) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
while (!input.isAtEnd()) {
|
||||||
|
switch (input.readFieldHash()) {
|
||||||
|
case 102865796: {
|
||||||
|
if (input.isAtField(FieldNames.level)) {
|
||||||
|
if (!input.trySkipNullValue()) {
|
||||||
|
level = input.readUInt32();
|
||||||
|
bitField0_ |= 0x00000001;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
input.skipUnknownField();
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case 859671121:
|
||||||
|
case 1952864125: {
|
||||||
|
if (input.isAtField(FieldNames.dailyActivePoint)) {
|
||||||
|
if (!input.trySkipNullValue()) {
|
||||||
|
dailyActivePoint = input.readUInt32();
|
||||||
|
bitField0_ |= 0x00000002;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
input.skipUnknownField();
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case 440007442:
|
||||||
|
case 1305257111: {
|
||||||
|
if (input.isAtField(FieldNames.worldLevel)) {
|
||||||
|
if (!input.trySkipNullValue()) {
|
||||||
|
worldLevel = input.readUInt32();
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
input.skipUnknownField();
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case -663154281:
|
||||||
|
case -1240296947: {
|
||||||
|
if (input.isAtField(FieldNames.isHasTaken)) {
|
||||||
|
if (!input.trySkipNullValue()) {
|
||||||
|
isHasTaken = input.readBool();
|
||||||
|
bitField0_ |= 0x00000008;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
input.skipUnknownField();
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
default: {
|
||||||
|
input.skipUnknownField();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
input.endObject();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public DailyActivityInfo clone() {
|
||||||
|
return new DailyActivityInfo().copyFrom(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isEmpty() {
|
||||||
|
return ((bitField0_) == 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static DailyActivityInfo parseFrom(final byte[] data) throws
|
||||||
|
InvalidProtocolBufferException {
|
||||||
|
return ProtoMessage.mergeFrom(new DailyActivityInfo(), data).checkInitialized();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static DailyActivityInfo parseFrom(final ProtoSource input) throws IOException {
|
||||||
|
return ProtoMessage.mergeFrom(new DailyActivityInfo(), input).checkInitialized();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static DailyActivityInfo parseFrom(final JsonSource input) throws IOException {
|
||||||
|
return ProtoMessage.mergeFrom(new DailyActivityInfo(), input).checkInitialized();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return factory for creating DailyActivityInfo messages
|
||||||
|
*/
|
||||||
|
public static MessageFactory<DailyActivityInfo> getFactory() {
|
||||||
|
return DailyActivityInfoFactory.INSTANCE;
|
||||||
|
}
|
||||||
|
|
||||||
|
private enum DailyActivityInfoFactory implements MessageFactory<DailyActivityInfo> {
|
||||||
|
INSTANCE;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public DailyActivityInfo create() {
|
||||||
|
return DailyActivityInfo.newInstance();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Contains name constants used for serializing JSON
|
||||||
|
*/
|
||||||
|
static class FieldNames {
|
||||||
|
static final FieldName level = FieldName.forField("level");
|
||||||
|
|
||||||
|
static final FieldName dailyActivePoint = FieldName.forField("dailyActivePoint", "daily_active_point");
|
||||||
|
|
||||||
|
static final FieldName worldLevel = FieldName.forField("worldLevel", "world_level");
|
||||||
|
|
||||||
|
static final FieldName isHasTaken = FieldName.forField("isHasTaken", "is_has_taken");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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 GetDailyActiveInfoCsReqOuterClass {
|
||||||
|
/**
|
||||||
|
* Protobuf type {@code GetDailyActiveInfoCsReq}
|
||||||
|
*/
|
||||||
|
public static final class GetDailyActiveInfoCsReq extends ProtoMessage<GetDailyActiveInfoCsReq> implements Cloneable {
|
||||||
|
private static final long serialVersionUID = 0L;
|
||||||
|
|
||||||
|
private GetDailyActiveInfoCsReq() {
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return a new empty instance of {@code GetDailyActiveInfoCsReq}
|
||||||
|
*/
|
||||||
|
public static GetDailyActiveInfoCsReq newInstance() {
|
||||||
|
return new GetDailyActiveInfoCsReq();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public GetDailyActiveInfoCsReq copyFrom(final GetDailyActiveInfoCsReq other) {
|
||||||
|
cachedSize = other.cachedSize;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public GetDailyActiveInfoCsReq mergeFrom(final GetDailyActiveInfoCsReq other) {
|
||||||
|
if (other.isEmpty()) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
cachedSize = -1;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public GetDailyActiveInfoCsReq clear() {
|
||||||
|
if (isEmpty()) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
cachedSize = -1;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public GetDailyActiveInfoCsReq clearQuick() {
|
||||||
|
if (isEmpty()) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
cachedSize = -1;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (o == this) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (!(o instanceof GetDailyActiveInfoCsReq)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
GetDailyActiveInfoCsReq other = (GetDailyActiveInfoCsReq) 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 GetDailyActiveInfoCsReq 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 GetDailyActiveInfoCsReq 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 GetDailyActiveInfoCsReq clone() {
|
||||||
|
return new GetDailyActiveInfoCsReq().copyFrom(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isEmpty() {
|
||||||
|
return ((bitField0_) == 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static GetDailyActiveInfoCsReq parseFrom(final byte[] data) throws
|
||||||
|
InvalidProtocolBufferException {
|
||||||
|
return ProtoMessage.mergeFrom(new GetDailyActiveInfoCsReq(), data).checkInitialized();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static GetDailyActiveInfoCsReq parseFrom(final ProtoSource input) throws IOException {
|
||||||
|
return ProtoMessage.mergeFrom(new GetDailyActiveInfoCsReq(), input).checkInitialized();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static GetDailyActiveInfoCsReq parseFrom(final JsonSource input) throws IOException {
|
||||||
|
return ProtoMessage.mergeFrom(new GetDailyActiveInfoCsReq(), input).checkInitialized();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return factory for creating GetDailyActiveInfoCsReq messages
|
||||||
|
*/
|
||||||
|
public static MessageFactory<GetDailyActiveInfoCsReq> getFactory() {
|
||||||
|
return GetDailyActiveInfoCsReqFactory.INSTANCE;
|
||||||
|
}
|
||||||
|
|
||||||
|
private enum GetDailyActiveInfoCsReqFactory implements MessageFactory<GetDailyActiveInfoCsReq> {
|
||||||
|
INSTANCE;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public GetDailyActiveInfoCsReq create() {
|
||||||
|
return GetDailyActiveInfoCsReq.newInstance();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Contains name constants used for serializing JSON
|
||||||
|
*/
|
||||||
|
static class FieldNames {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,581 @@
|
|||||||
|
// 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 GetDailyActiveInfoScRspOuterClass {
|
||||||
|
/**
|
||||||
|
* Protobuf type {@code GetDailyActiveInfoScRsp}
|
||||||
|
*/
|
||||||
|
public static final class GetDailyActiveInfoScRsp extends ProtoMessage<GetDailyActiveInfoScRsp> implements Cloneable {
|
||||||
|
private static final long serialVersionUID = 0L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 daily_active_point = 2;</code>
|
||||||
|
*/
|
||||||
|
private int dailyActivePoint;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 retcode = 15;</code>
|
||||||
|
*/
|
||||||
|
private int retcode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated uint32 daily_active_quest_id_list = 3;</code>
|
||||||
|
*/
|
||||||
|
private final RepeatedInt dailyActiveQuestIdList = RepeatedInt.newEmptyInstance();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .DailyActivityInfo daily_active_level_list = 10;</code>
|
||||||
|
*/
|
||||||
|
private final RepeatedMessage<DailyActivityInfoOuterClass.DailyActivityInfo> dailyActiveLevelList = RepeatedMessage.newEmptyInstance(DailyActivityInfoOuterClass.DailyActivityInfo.getFactory());
|
||||||
|
|
||||||
|
private GetDailyActiveInfoScRsp() {
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return a new empty instance of {@code GetDailyActiveInfoScRsp}
|
||||||
|
*/
|
||||||
|
public static GetDailyActiveInfoScRsp newInstance() {
|
||||||
|
return new GetDailyActiveInfoScRsp();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 daily_active_point = 2;</code>
|
||||||
|
* @return whether the dailyActivePoint field is set
|
||||||
|
*/
|
||||||
|
public boolean hasDailyActivePoint() {
|
||||||
|
return (bitField0_ & 0x00000001) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 daily_active_point = 2;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public GetDailyActiveInfoScRsp clearDailyActivePoint() {
|
||||||
|
bitField0_ &= ~0x00000001;
|
||||||
|
dailyActivePoint = 0;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 daily_active_point = 2;</code>
|
||||||
|
* @return the dailyActivePoint
|
||||||
|
*/
|
||||||
|
public int getDailyActivePoint() {
|
||||||
|
return dailyActivePoint;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 daily_active_point = 2;</code>
|
||||||
|
* @param value the dailyActivePoint to set
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public GetDailyActiveInfoScRsp setDailyActivePoint(final int value) {
|
||||||
|
bitField0_ |= 0x00000001;
|
||||||
|
dailyActivePoint = value;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 retcode = 15;</code>
|
||||||
|
* @return whether the retcode field is set
|
||||||
|
*/
|
||||||
|
public boolean hasRetcode() {
|
||||||
|
return (bitField0_ & 0x00000002) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 retcode = 15;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public GetDailyActiveInfoScRsp clearRetcode() {
|
||||||
|
bitField0_ &= ~0x00000002;
|
||||||
|
retcode = 0;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 retcode = 15;</code>
|
||||||
|
* @return the retcode
|
||||||
|
*/
|
||||||
|
public int getRetcode() {
|
||||||
|
return retcode;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>optional uint32 retcode = 15;</code>
|
||||||
|
* @param value the retcode to set
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public GetDailyActiveInfoScRsp setRetcode(final int value) {
|
||||||
|
bitField0_ |= 0x00000002;
|
||||||
|
retcode = value;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated uint32 daily_active_quest_id_list = 3;</code>
|
||||||
|
* @return whether the dailyActiveQuestIdList field is set
|
||||||
|
*/
|
||||||
|
public boolean hasDailyActiveQuestIdList() {
|
||||||
|
return (bitField0_ & 0x00000004) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated uint32 daily_active_quest_id_list = 3;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public GetDailyActiveInfoScRsp clearDailyActiveQuestIdList() {
|
||||||
|
bitField0_ &= ~0x00000004;
|
||||||
|
dailyActiveQuestIdList.clear();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated uint32 daily_active_quest_id_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 #getMutableDailyActiveQuestIdList()} if you want to modify it.
|
||||||
|
*
|
||||||
|
* @return internal storage object for reading
|
||||||
|
*/
|
||||||
|
public RepeatedInt getDailyActiveQuestIdList() {
|
||||||
|
return dailyActiveQuestIdList;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated uint32 daily_active_quest_id_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 RepeatedInt getMutableDailyActiveQuestIdList() {
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
return dailyActiveQuestIdList;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated uint32 daily_active_quest_id_list = 3;</code>
|
||||||
|
* @param value the dailyActiveQuestIdList to add
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public GetDailyActiveInfoScRsp addDailyActiveQuestIdList(final int value) {
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
dailyActiveQuestIdList.add(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated uint32 daily_active_quest_id_list = 3;</code>
|
||||||
|
* @param values the dailyActiveQuestIdList to add
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public GetDailyActiveInfoScRsp addAllDailyActiveQuestIdList(final int... values) {
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
dailyActiveQuestIdList.addAll(values);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .DailyActivityInfo daily_active_level_list = 10;</code>
|
||||||
|
* @return whether the dailyActiveLevelList field is set
|
||||||
|
*/
|
||||||
|
public boolean hasDailyActiveLevelList() {
|
||||||
|
return (bitField0_ & 0x00000008) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .DailyActivityInfo daily_active_level_list = 10;</code>
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public GetDailyActiveInfoScRsp clearDailyActiveLevelList() {
|
||||||
|
bitField0_ &= ~0x00000008;
|
||||||
|
dailyActiveLevelList.clear();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .DailyActivityInfo daily_active_level_list = 10;</code>
|
||||||
|
*
|
||||||
|
* This method returns the internal storage object without modifying any has state.
|
||||||
|
* The returned object should not be modified and be treated as read-only.
|
||||||
|
*
|
||||||
|
* Use {@link #getMutableDailyActiveLevelList()} if you want to modify it.
|
||||||
|
*
|
||||||
|
* @return internal storage object for reading
|
||||||
|
*/
|
||||||
|
public RepeatedMessage<DailyActivityInfoOuterClass.DailyActivityInfo> getDailyActiveLevelList(
|
||||||
|
) {
|
||||||
|
return dailyActiveLevelList;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .DailyActivityInfo daily_active_level_list = 10;</code>
|
||||||
|
*
|
||||||
|
* This method returns the internal storage object and sets the corresponding
|
||||||
|
* has state. The returned object will become part of this message and its
|
||||||
|
* contents may be modified as long as the has state is not cleared.
|
||||||
|
*
|
||||||
|
* @return internal storage object for modifications
|
||||||
|
*/
|
||||||
|
public RepeatedMessage<DailyActivityInfoOuterClass.DailyActivityInfo> getMutableDailyActiveLevelList(
|
||||||
|
) {
|
||||||
|
bitField0_ |= 0x00000008;
|
||||||
|
return dailyActiveLevelList;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .DailyActivityInfo daily_active_level_list = 10;</code>
|
||||||
|
* @param value the dailyActiveLevelList to add
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public GetDailyActiveInfoScRsp addDailyActiveLevelList(
|
||||||
|
final DailyActivityInfoOuterClass.DailyActivityInfo value) {
|
||||||
|
bitField0_ |= 0x00000008;
|
||||||
|
dailyActiveLevelList.add(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>repeated .DailyActivityInfo daily_active_level_list = 10;</code>
|
||||||
|
* @param values the dailyActiveLevelList to add
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public GetDailyActiveInfoScRsp addAllDailyActiveLevelList(
|
||||||
|
final DailyActivityInfoOuterClass.DailyActivityInfo... values) {
|
||||||
|
bitField0_ |= 0x00000008;
|
||||||
|
dailyActiveLevelList.addAll(values);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public GetDailyActiveInfoScRsp copyFrom(final GetDailyActiveInfoScRsp other) {
|
||||||
|
cachedSize = other.cachedSize;
|
||||||
|
if ((bitField0_ | other.bitField0_) != 0) {
|
||||||
|
bitField0_ = other.bitField0_;
|
||||||
|
dailyActivePoint = other.dailyActivePoint;
|
||||||
|
retcode = other.retcode;
|
||||||
|
dailyActiveQuestIdList.copyFrom(other.dailyActiveQuestIdList);
|
||||||
|
dailyActiveLevelList.copyFrom(other.dailyActiveLevelList);
|
||||||
|
}
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public GetDailyActiveInfoScRsp mergeFrom(final GetDailyActiveInfoScRsp other) {
|
||||||
|
if (other.isEmpty()) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
cachedSize = -1;
|
||||||
|
if (other.hasDailyActivePoint()) {
|
||||||
|
setDailyActivePoint(other.dailyActivePoint);
|
||||||
|
}
|
||||||
|
if (other.hasRetcode()) {
|
||||||
|
setRetcode(other.retcode);
|
||||||
|
}
|
||||||
|
if (other.hasDailyActiveQuestIdList()) {
|
||||||
|
getMutableDailyActiveQuestIdList().addAll(other.dailyActiveQuestIdList);
|
||||||
|
}
|
||||||
|
if (other.hasDailyActiveLevelList()) {
|
||||||
|
getMutableDailyActiveLevelList().addAll(other.dailyActiveLevelList);
|
||||||
|
}
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public GetDailyActiveInfoScRsp clear() {
|
||||||
|
if (isEmpty()) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
cachedSize = -1;
|
||||||
|
bitField0_ = 0;
|
||||||
|
dailyActivePoint = 0;
|
||||||
|
retcode = 0;
|
||||||
|
dailyActiveQuestIdList.clear();
|
||||||
|
dailyActiveLevelList.clear();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public GetDailyActiveInfoScRsp clearQuick() {
|
||||||
|
if (isEmpty()) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
cachedSize = -1;
|
||||||
|
bitField0_ = 0;
|
||||||
|
dailyActiveQuestIdList.clear();
|
||||||
|
dailyActiveLevelList.clearQuick();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (o == this) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (!(o instanceof GetDailyActiveInfoScRsp)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
GetDailyActiveInfoScRsp other = (GetDailyActiveInfoScRsp) o;
|
||||||
|
return bitField0_ == other.bitField0_
|
||||||
|
&& (!hasDailyActivePoint() || dailyActivePoint == other.dailyActivePoint)
|
||||||
|
&& (!hasRetcode() || retcode == other.retcode)
|
||||||
|
&& (!hasDailyActiveQuestIdList() || dailyActiveQuestIdList.equals(other.dailyActiveQuestIdList))
|
||||||
|
&& (!hasDailyActiveLevelList() || dailyActiveLevelList.equals(other.dailyActiveLevelList));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void writeTo(final ProtoSink output) throws IOException {
|
||||||
|
if ((bitField0_ & 0x00000001) != 0) {
|
||||||
|
output.writeRawByte((byte) 16);
|
||||||
|
output.writeUInt32NoTag(dailyActivePoint);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000002) != 0) {
|
||||||
|
output.writeRawByte((byte) 120);
|
||||||
|
output.writeUInt32NoTag(retcode);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000004) != 0) {
|
||||||
|
for (int i = 0; i < dailyActiveQuestIdList.length(); i++) {
|
||||||
|
output.writeRawByte((byte) 24);
|
||||||
|
output.writeUInt32NoTag(dailyActiveQuestIdList.array()[i]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000008) != 0) {
|
||||||
|
for (int i = 0; i < dailyActiveLevelList.length(); i++) {
|
||||||
|
output.writeRawByte((byte) 82);
|
||||||
|
output.writeMessageNoTag(dailyActiveLevelList.get(i));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected int computeSerializedSize() {
|
||||||
|
int size = 0;
|
||||||
|
if ((bitField0_ & 0x00000001) != 0) {
|
||||||
|
size += 1 + ProtoSink.computeUInt32SizeNoTag(dailyActivePoint);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000002) != 0) {
|
||||||
|
size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000004) != 0) {
|
||||||
|
size += (1 * dailyActiveQuestIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(dailyActiveQuestIdList);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000008) != 0) {
|
||||||
|
size += (1 * dailyActiveLevelList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(dailyActiveLevelList);
|
||||||
|
}
|
||||||
|
return size;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@SuppressWarnings("fallthrough")
|
||||||
|
public GetDailyActiveInfoScRsp mergeFrom(final ProtoSource input) throws IOException {
|
||||||
|
// Enabled Fall-Through Optimization (QuickBuffers)
|
||||||
|
int tag = input.readTag();
|
||||||
|
while (true) {
|
||||||
|
switch (tag) {
|
||||||
|
case 16: {
|
||||||
|
// dailyActivePoint
|
||||||
|
dailyActivePoint = input.readUInt32();
|
||||||
|
bitField0_ |= 0x00000001;
|
||||||
|
tag = input.readTag();
|
||||||
|
if (tag != 120) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
case 120: {
|
||||||
|
// retcode
|
||||||
|
retcode = input.readUInt32();
|
||||||
|
bitField0_ |= 0x00000002;
|
||||||
|
tag = input.readTag();
|
||||||
|
if (tag != 26) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
case 26: {
|
||||||
|
// dailyActiveQuestIdList [packed=true]
|
||||||
|
input.readPackedUInt32(dailyActiveQuestIdList, tag);
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
tag = input.readTag();
|
||||||
|
if (tag != 82) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
case 82: {
|
||||||
|
// dailyActiveLevelList
|
||||||
|
tag = input.readRepeatedMessage(dailyActiveLevelList, tag);
|
||||||
|
bitField0_ |= 0x00000008;
|
||||||
|
if (tag != 0) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
case 0: {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
default: {
|
||||||
|
if (!input.skipField(tag)) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
tag = input.readTag();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case 24: {
|
||||||
|
// dailyActiveQuestIdList [packed=false]
|
||||||
|
tag = input.readRepeatedUInt32(dailyActiveQuestIdList, tag);
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void writeTo(final JsonSink output) throws IOException {
|
||||||
|
output.beginObject();
|
||||||
|
if ((bitField0_ & 0x00000001) != 0) {
|
||||||
|
output.writeUInt32(FieldNames.dailyActivePoint, dailyActivePoint);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000002) != 0) {
|
||||||
|
output.writeUInt32(FieldNames.retcode, retcode);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000004) != 0) {
|
||||||
|
output.writeRepeatedUInt32(FieldNames.dailyActiveQuestIdList, dailyActiveQuestIdList);
|
||||||
|
}
|
||||||
|
if ((bitField0_ & 0x00000008) != 0) {
|
||||||
|
output.writeRepeatedMessage(FieldNames.dailyActiveLevelList, dailyActiveLevelList);
|
||||||
|
}
|
||||||
|
output.endObject();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public GetDailyActiveInfoScRsp mergeFrom(final JsonSource input) throws IOException {
|
||||||
|
if (!input.beginObject()) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
while (!input.isAtEnd()) {
|
||||||
|
switch (input.readFieldHash()) {
|
||||||
|
case 859671121:
|
||||||
|
case 1952864125: {
|
||||||
|
if (input.isAtField(FieldNames.dailyActivePoint)) {
|
||||||
|
if (!input.trySkipNullValue()) {
|
||||||
|
dailyActivePoint = 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;
|
||||||
|
}
|
||||||
|
case 1903124444:
|
||||||
|
case -752691246: {
|
||||||
|
if (input.isAtField(FieldNames.dailyActiveQuestIdList)) {
|
||||||
|
if (!input.trySkipNullValue()) {
|
||||||
|
input.readRepeatedUInt32(dailyActiveQuestIdList);
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
input.skipUnknownField();
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case 705251971:
|
||||||
|
case 1821477548: {
|
||||||
|
if (input.isAtField(FieldNames.dailyActiveLevelList)) {
|
||||||
|
if (!input.trySkipNullValue()) {
|
||||||
|
input.readRepeatedMessage(dailyActiveLevelList);
|
||||||
|
bitField0_ |= 0x00000008;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
input.skipUnknownField();
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
default: {
|
||||||
|
input.skipUnknownField();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
input.endObject();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public GetDailyActiveInfoScRsp clone() {
|
||||||
|
return new GetDailyActiveInfoScRsp().copyFrom(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isEmpty() {
|
||||||
|
return ((bitField0_) == 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static GetDailyActiveInfoScRsp parseFrom(final byte[] data) throws
|
||||||
|
InvalidProtocolBufferException {
|
||||||
|
return ProtoMessage.mergeFrom(new GetDailyActiveInfoScRsp(), data).checkInitialized();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static GetDailyActiveInfoScRsp parseFrom(final ProtoSource input) throws IOException {
|
||||||
|
return ProtoMessage.mergeFrom(new GetDailyActiveInfoScRsp(), input).checkInitialized();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static GetDailyActiveInfoScRsp parseFrom(final JsonSource input) throws IOException {
|
||||||
|
return ProtoMessage.mergeFrom(new GetDailyActiveInfoScRsp(), input).checkInitialized();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return factory for creating GetDailyActiveInfoScRsp messages
|
||||||
|
*/
|
||||||
|
public static MessageFactory<GetDailyActiveInfoScRsp> getFactory() {
|
||||||
|
return GetDailyActiveInfoScRspFactory.INSTANCE;
|
||||||
|
}
|
||||||
|
|
||||||
|
private enum GetDailyActiveInfoScRspFactory implements MessageFactory<GetDailyActiveInfoScRsp> {
|
||||||
|
INSTANCE;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public GetDailyActiveInfoScRsp create() {
|
||||||
|
return GetDailyActiveInfoScRsp.newInstance();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Contains name constants used for serializing JSON
|
||||||
|
*/
|
||||||
|
static class FieldNames {
|
||||||
|
static final FieldName dailyActivePoint = FieldName.forField("dailyActivePoint", "daily_active_point");
|
||||||
|
|
||||||
|
static final FieldName retcode = FieldName.forField("retcode");
|
||||||
|
|
||||||
|
static final FieldName dailyActiveQuestIdList = FieldName.forField("dailyActiveQuestIdList", "daily_active_quest_id_list");
|
||||||
|
|
||||||
|
static final FieldName dailyActiveLevelList = FieldName.forField("dailyActiveLevelList", "daily_active_level_list");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -239,6 +239,10 @@ public class Player {
|
|||||||
this.sendPacket(new PacketPlayerSyncScNotify(this));
|
this.sendPacket(new PacketPlayerSyncScNotify(this));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int getWorldLevel() {
|
||||||
|
return this.worldLevel;
|
||||||
|
}
|
||||||
|
|
||||||
public void setPhoneTheme(int themeId) {
|
public void setPhoneTheme(int themeId) {
|
||||||
this.phoneTheme = themeId;
|
this.phoneTheme = themeId;
|
||||||
this.save();
|
this.save();
|
||||||
|
|||||||
@@ -0,0 +1,16 @@
|
|||||||
|
package emu.lunarcore.server.packet.recv;
|
||||||
|
|
||||||
|
import emu.lunarcore.server.game.GameSession;
|
||||||
|
import emu.lunarcore.server.packet.CmdId;
|
||||||
|
import emu.lunarcore.server.packet.Opcodes;
|
||||||
|
import emu.lunarcore.server.packet.PacketHandler;
|
||||||
|
import emu.lunarcore.server.packet.send.PacketGetDailyActiveInfoScRsp;
|
||||||
|
|
||||||
|
@Opcodes(CmdId.GetDailyActiveInfoCsReq)
|
||||||
|
public class HandlerGetDailyActiveInfoCsReq extends PacketHandler {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void handle(GameSession session, byte[] data) throws Exception {
|
||||||
|
session.send(new PacketGetDailyActiveInfoScRsp(session.getPlayer()));
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -5,6 +5,7 @@ import emu.lunarcore.server.packet.CmdId;
|
|||||||
import emu.lunarcore.server.packet.Opcodes;
|
import emu.lunarcore.server.packet.Opcodes;
|
||||||
import emu.lunarcore.server.packet.PacketHandler;
|
import emu.lunarcore.server.packet.PacketHandler;
|
||||||
import emu.lunarcore.server.packet.send.PacketGetPlayerBoardDataScRsp;
|
import emu.lunarcore.server.packet.send.PacketGetPlayerBoardDataScRsp;
|
||||||
|
import emu.lunarcore.server.packet.send.PacketBattlePassInfoNotify;
|
||||||
|
|
||||||
@Opcodes(CmdId.GetPlayerBoardDataCsReq)
|
@Opcodes(CmdId.GetPlayerBoardDataCsReq)
|
||||||
public class HandlerGetPlayerBoardDataCsReq extends PacketHandler {
|
public class HandlerGetPlayerBoardDataCsReq extends PacketHandler {
|
||||||
@@ -12,6 +13,7 @@ public class HandlerGetPlayerBoardDataCsReq extends PacketHandler {
|
|||||||
@Override
|
@Override
|
||||||
public void handle(GameSession session, byte[] data) throws Exception {
|
public void handle(GameSession session, byte[] data) throws Exception {
|
||||||
session.send(new PacketGetPlayerBoardDataScRsp(session.getPlayer()));
|
session.send(new PacketGetPlayerBoardDataScRsp(session.getPlayer()));
|
||||||
|
session.send(new PacketBattlePassInfoNotify());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,6 +4,8 @@ import emu.lunarcore.server.game.GameSession;
|
|||||||
import emu.lunarcore.server.packet.CmdId;
|
import emu.lunarcore.server.packet.CmdId;
|
||||||
import emu.lunarcore.server.packet.Opcodes;
|
import emu.lunarcore.server.packet.Opcodes;
|
||||||
import emu.lunarcore.server.packet.PacketHandler;
|
import emu.lunarcore.server.packet.PacketHandler;
|
||||||
|
import emu.lunarcore.server.packet.send.PacketDailyActiveInfoNotify;
|
||||||
|
import emu.lunarcore.server.packet.send.PacketBattlePassInfoNotify;
|
||||||
import emu.lunarcore.server.packet.send.PacketGetArchiveDataScRsp;
|
import emu.lunarcore.server.packet.send.PacketGetArchiveDataScRsp;
|
||||||
|
|
||||||
@Opcodes(CmdId.PlayerLoginFinishCsReq)
|
@Opcodes(CmdId.PlayerLoginFinishCsReq)
|
||||||
@@ -12,6 +14,8 @@ public class HandlerPlayerLoginFinishCsReq extends PacketHandler {
|
|||||||
@Override
|
@Override
|
||||||
public void handle(GameSession session, byte[] data) throws Exception {
|
public void handle(GameSession session, byte[] data) throws Exception {
|
||||||
session.send(CmdId.PlayerLoginFinishScRsp);
|
session.send(CmdId.PlayerLoginFinishScRsp);
|
||||||
|
session.send(new PacketBattlePassInfoNotify());
|
||||||
|
// session.send(new PacketDailyActiveInfoNotify(session.getPlayer()));
|
||||||
session.send(new PacketGetArchiveDataScRsp());
|
session.send(new PacketGetArchiveDataScRsp());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,30 @@
|
|||||||
|
package emu.lunarcore.server.packet.send;
|
||||||
|
|
||||||
|
import java.util.*;
|
||||||
|
import java.math.*;
|
||||||
|
import emu.lunarcore.proto.BattlePassInfoNotifyOuterClass.BattlePassInfoNotify;
|
||||||
|
import emu.lunarcore.proto.BattlePassInfoNotifyOuterClass.BattlePassInfoNotify.BpTierType;
|
||||||
|
import emu.lunarcore.server.packet.BasePacket;
|
||||||
|
import emu.lunarcore.server.packet.CmdId;
|
||||||
|
|
||||||
|
public class PacketBattlePassInfoNotify extends BasePacket {
|
||||||
|
|
||||||
|
public PacketBattlePassInfoNotify() {
|
||||||
|
super(CmdId.BattlePassInfoNotify);
|
||||||
|
|
||||||
|
var data = BattlePassInfoNotify.newInstance()
|
||||||
|
//.setTakenFreeReward(9223372036854775806L)
|
||||||
|
//.setTakenPremiumReward1(9223372036854775806L)
|
||||||
|
//.setTakenPremiumReward2(2251799813685246L)
|
||||||
|
//.setTakenPremiumOptionalReward(2251799813685246L)
|
||||||
|
.setTakenFreeExtendedReward(127)
|
||||||
|
.setTakenPremiumExtendedReward(127)
|
||||||
|
.setUnkfield(4)
|
||||||
|
.setLevel(70)
|
||||||
|
.setCurWeekAddExpSum(8000)
|
||||||
|
.setExp(800)
|
||||||
|
.setCurBpId(5) // doesn't matter
|
||||||
|
.setBpTierType(BpTierType.BP_TIER_TYPE_PREMIUM_2);
|
||||||
|
this.setData(data);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
package emu.lunarcore.server.packet.send;
|
||||||
|
|
||||||
|
import java.util.*;
|
||||||
|
import emu.lunarcore.game.player.Player;
|
||||||
|
import emu.lunarcore.proto.DailyActiveInfoNotifyOuterClass.DailyActiveInfoNotify;
|
||||||
|
import emu.lunarcore.proto.DailyActivityInfoOuterClass.DailyActivityInfo;
|
||||||
|
import emu.lunarcore.server.packet.BasePacket;
|
||||||
|
import emu.lunarcore.server.packet.CmdId;
|
||||||
|
|
||||||
|
public class PacketDailyActiveInfoNotify extends BasePacket {
|
||||||
|
|
||||||
|
public PacketDailyActiveInfoNotify(Player player) {
|
||||||
|
super(CmdId.DailyActiveInfoNotify);
|
||||||
|
|
||||||
|
List<Integer> questIdList = Arrays.asList(2100003,2100102,2100112,2100115,2100119,2100129);
|
||||||
|
|
||||||
|
var data = DailyActiveInfoNotify.newInstance()
|
||||||
|
.setDailyActivePoint(700);
|
||||||
|
|
||||||
|
for (int questId : questIdList) {
|
||||||
|
data.addDailyActiveQuestIdList(questId);
|
||||||
|
}
|
||||||
|
|
||||||
|
for (int level = 1; level <= 5; level++) {
|
||||||
|
DailyActivityInfo levelInfo = DailyActivityInfo.newInstance()
|
||||||
|
.setLevel(level)
|
||||||
|
.setDailyActivePoint(level * 100)
|
||||||
|
.setWorldLevel(player.getWorldLevel())
|
||||||
|
.setIsHasTaken(true);
|
||||||
|
|
||||||
|
data.addDailyActiveLevelList(levelInfo);
|
||||||
|
}
|
||||||
|
|
||||||
|
this.setData(data);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
package emu.lunarcore.server.packet.send;
|
||||||
|
|
||||||
|
import java.util.*;
|
||||||
|
import emu.lunarcore.proto.GetDailyActiveInfoScRspOuterClass.GetDailyActiveInfoScRsp;
|
||||||
|
import emu.lunarcore.proto.DailyActivityInfoOuterClass.DailyActivityInfo;
|
||||||
|
import emu.lunarcore.game.player.Player;
|
||||||
|
import emu.lunarcore.server.game.GameSession;
|
||||||
|
import emu.lunarcore.server.packet.BasePacket;
|
||||||
|
import emu.lunarcore.server.packet.CmdId;
|
||||||
|
|
||||||
|
public class PacketGetDailyActiveInfoScRsp extends BasePacket {
|
||||||
|
|
||||||
|
public PacketGetDailyActiveInfoScRsp(Player target) {
|
||||||
|
super(CmdId.GetDailyActiveInfoScRsp);
|
||||||
|
|
||||||
|
List<Integer> questIdList = Arrays.asList(2100003,2100102,2100112,2100115,2100119,2100129);
|
||||||
|
|
||||||
|
var data = GetDailyActiveInfoScRsp.newInstance()
|
||||||
|
.setDailyActivePoint(500);
|
||||||
|
|
||||||
|
for (int questId : questIdList) {
|
||||||
|
data.addDailyActiveQuestIdList(questId);
|
||||||
|
}
|
||||||
|
|
||||||
|
for (int level = 1; level <= 5; level++) {
|
||||||
|
DailyActivityInfo levelInfo = DailyActivityInfo.newInstance()
|
||||||
|
.setLevel(level)
|
||||||
|
.setDailyActivePoint(level * 100)
|
||||||
|
.setWorldLevel(target.getWorldLevel())
|
||||||
|
.setIsHasTaken(true);
|
||||||
|
|
||||||
|
data.addDailyActiveLevelList(levelInfo);
|
||||||
|
}
|
||||||
|
|
||||||
|
this.setData(data);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user