Update gc to 3.3 (#1981)

* replace the deprecated api

* update proto

* delete music game

* fixed codes

* fix costume switch

* fix mail bug

* Bump version number.

* Re-add max boss chest number

Co-authored-by: GanyusLeftHorn <1244229+GanyusLeftHorn@users.noreply.github.com>
This commit is contained in:
Simplxs
2022-12-24 05:12:02 +08:00
committed by GitHub
Unverified
parent 8b83dbf58c
commit 92fbaa8670
1142 changed files with 474411 additions and 169883 deletions
@@ -19,41 +19,45 @@ public final class PingReqOuterClass {
com.google.protobuf.MessageOrBuilder {
/**
* <code>uint32 client_time = 12;</code>
* <code>uint32 client_time = 6;</code>
* @return The clientTime.
*/
int getClientTime();
/**
* <code>float ue_time = 14;</code>
* @return The ueTime.
*/
float getUeTime();
/**
* <code>double total_tick_time = 6;</code>
* <code>double total_tick_time = 9;</code>
* @return The totalTickTime.
*/
double getTotalTickTime();
/**
* <code>bytes sc_data = 10;</code>
* @return The scData.
* <code>float ue_time = 2;</code>
* @return The ueTime.
*/
com.google.protobuf.ByteString getScData();
float getUeTime();
/**
* <code>uint32 seq = 3;</code>
* <code>uint32 seq = 12;</code>
* @return The seq.
*/
int getSeq();
/**
* <code>bytes sc_data = 3;</code>
* @return The scData.
*/
com.google.protobuf.ByteString getScData();
}
/**
* <pre>
* CmdId: 7
* EnetChannelId: 0
* EnetIsReliable: false
* IsAllowClient: true
* enum CmdId {
* option allow_alias = true;
* NONE = 0;
* CMD_ID = 100;
* ENET_CHANNEL_ID = 0;
* ENET_IS_RELIABLE = 1;
* IS_ALLOW_CLIENT = 1;
* }
* </pre>
*
* Protobuf type {@code PingReq}
@@ -101,29 +105,29 @@ public final class PingReqOuterClass {
case 0:
done = true;
break;
case 24: {
case 21: {
seq_ = input.readUInt32();
ueTime_ = input.readFloat();
break;
}
case 49: {
totalTickTime_ = input.readDouble();
break;
}
case 82: {
case 26: {
scData_ = input.readBytes();
break;
}
case 96: {
case 48: {
clientTime_ = input.readUInt32();
break;
}
case 117: {
case 73: {
ueTime_ = input.readFloat();
totalTickTime_ = input.readDouble();
break;
}
case 96: {
seq_ = input.readUInt32();
break;
}
default: {
@@ -158,10 +162,10 @@ public final class PingReqOuterClass {
emu.grasscutter.net.proto.PingReqOuterClass.PingReq.class, emu.grasscutter.net.proto.PingReqOuterClass.PingReq.Builder.class);
}
public static final int CLIENT_TIME_FIELD_NUMBER = 12;
public static final int CLIENT_TIME_FIELD_NUMBER = 6;
private int clientTime_;
/**
* <code>uint32 client_time = 12;</code>
* <code>uint32 client_time = 6;</code>
* @return The clientTime.
*/
@java.lang.Override
@@ -169,21 +173,10 @@ public final class PingReqOuterClass {
return clientTime_;
}
public static final int UE_TIME_FIELD_NUMBER = 14;
private float ueTime_;
/**
* <code>float ue_time = 14;</code>
* @return The ueTime.
*/
@java.lang.Override
public float getUeTime() {
return ueTime_;
}
public static final int TOTAL_TICK_TIME_FIELD_NUMBER = 6;
public static final int TOTAL_TICK_TIME_FIELD_NUMBER = 9;
private double totalTickTime_;
/**
* <code>double total_tick_time = 6;</code>
* <code>double total_tick_time = 9;</code>
* @return The totalTickTime.
*/
@java.lang.Override
@@ -191,21 +184,21 @@ public final class PingReqOuterClass {
return totalTickTime_;
}
public static final int SC_DATA_FIELD_NUMBER = 10;
private com.google.protobuf.ByteString scData_;
public static final int UE_TIME_FIELD_NUMBER = 2;
private float ueTime_;
/**
* <code>bytes sc_data = 10;</code>
* @return The scData.
* <code>float ue_time = 2;</code>
* @return The ueTime.
*/
@java.lang.Override
public com.google.protobuf.ByteString getScData() {
return scData_;
public float getUeTime() {
return ueTime_;
}
public static final int SEQ_FIELD_NUMBER = 3;
public static final int SEQ_FIELD_NUMBER = 12;
private int seq_;
/**
* <code>uint32 seq = 3;</code>
* <code>uint32 seq = 12;</code>
* @return The seq.
*/
@java.lang.Override
@@ -213,6 +206,17 @@ public final class PingReqOuterClass {
return seq_;
}
public static final int SC_DATA_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString scData_;
/**
* <code>bytes sc_data = 3;</code>
* @return The scData.
*/
@java.lang.Override
public com.google.protobuf.ByteString getScData() {
return scData_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
@@ -227,20 +231,20 @@ public final class PingReqOuterClass {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (seq_ != 0) {
output.writeUInt32(3, seq_);
}
if (totalTickTime_ != 0D) {
output.writeDouble(6, totalTickTime_);
if (ueTime_ != 0F) {
output.writeFloat(2, ueTime_);
}
if (!scData_.isEmpty()) {
output.writeBytes(10, scData_);
output.writeBytes(3, scData_);
}
if (clientTime_ != 0) {
output.writeUInt32(12, clientTime_);
output.writeUInt32(6, clientTime_);
}
if (ueTime_ != 0F) {
output.writeFloat(14, ueTime_);
if (totalTickTime_ != 0D) {
output.writeDouble(9, totalTickTime_);
}
if (seq_ != 0) {
output.writeUInt32(12, seq_);
}
unknownFields.writeTo(output);
}
@@ -251,25 +255,25 @@ public final class PingReqOuterClass {
if (size != -1) return size;
size = 0;
if (seq_ != 0) {
if (ueTime_ != 0F) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, seq_);
}
if (totalTickTime_ != 0D) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(6, totalTickTime_);
.computeFloatSize(2, ueTime_);
}
if (!scData_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(10, scData_);
.computeBytesSize(3, scData_);
}
if (clientTime_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(12, clientTime_);
.computeUInt32Size(6, clientTime_);
}
if (ueTime_ != 0F) {
if (totalTickTime_ != 0D) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(14, ueTime_);
.computeDoubleSize(9, totalTickTime_);
}
if (seq_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(12, seq_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
@@ -288,16 +292,16 @@ public final class PingReqOuterClass {
if (getClientTime()
!= other.getClientTime()) return false;
if (java.lang.Float.floatToIntBits(getUeTime())
!= java.lang.Float.floatToIntBits(
other.getUeTime())) return false;
if (java.lang.Double.doubleToLongBits(getTotalTickTime())
!= java.lang.Double.doubleToLongBits(
other.getTotalTickTime())) return false;
if (!getScData()
.equals(other.getScData())) return false;
if (java.lang.Float.floatToIntBits(getUeTime())
!= java.lang.Float.floatToIntBits(
other.getUeTime())) return false;
if (getSeq()
!= other.getSeq()) return false;
if (!getScData()
.equals(other.getScData())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -311,16 +315,16 @@ public final class PingReqOuterClass {
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + CLIENT_TIME_FIELD_NUMBER;
hash = (53 * hash) + getClientTime();
hash = (37 * hash) + UE_TIME_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(
getUeTime());
hash = (37 * hash) + TOTAL_TICK_TIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getTotalTickTime()));
hash = (37 * hash) + SC_DATA_FIELD_NUMBER;
hash = (53 * hash) + getScData().hashCode();
hash = (37 * hash) + UE_TIME_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(
getUeTime());
hash = (37 * hash) + SEQ_FIELD_NUMBER;
hash = (53 * hash) + getSeq();
hash = (37 * hash) + SC_DATA_FIELD_NUMBER;
hash = (53 * hash) + getScData().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -418,10 +422,14 @@ public final class PingReqOuterClass {
}
/**
* <pre>
* CmdId: 7
* EnetChannelId: 0
* EnetIsReliable: false
* IsAllowClient: true
* enum CmdId {
* option allow_alias = true;
* NONE = 0;
* CMD_ID = 100;
* ENET_CHANNEL_ID = 0;
* ENET_IS_RELIABLE = 1;
* IS_ALLOW_CLIENT = 1;
* }
* </pre>
*
* Protobuf type {@code PingReq}
@@ -463,14 +471,14 @@ public final class PingReqOuterClass {
super.clear();
clientTime_ = 0;
ueTime_ = 0F;
totalTickTime_ = 0D;
scData_ = com.google.protobuf.ByteString.EMPTY;
ueTime_ = 0F;
seq_ = 0;
scData_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@@ -498,10 +506,10 @@ public final class PingReqOuterClass {
public emu.grasscutter.net.proto.PingReqOuterClass.PingReq buildPartial() {
emu.grasscutter.net.proto.PingReqOuterClass.PingReq result = new emu.grasscutter.net.proto.PingReqOuterClass.PingReq(this);
result.clientTime_ = clientTime_;
result.ueTime_ = ueTime_;
result.totalTickTime_ = totalTickTime_;
result.scData_ = scData_;
result.ueTime_ = ueTime_;
result.seq_ = seq_;
result.scData_ = scData_;
onBuilt();
return result;
}
@@ -553,18 +561,18 @@ public final class PingReqOuterClass {
if (other.getClientTime() != 0) {
setClientTime(other.getClientTime());
}
if (other.getUeTime() != 0F) {
setUeTime(other.getUeTime());
}
if (other.getTotalTickTime() != 0D) {
setTotalTickTime(other.getTotalTickTime());
}
if (other.getScData() != com.google.protobuf.ByteString.EMPTY) {
setScData(other.getScData());
if (other.getUeTime() != 0F) {
setUeTime(other.getUeTime());
}
if (other.getSeq() != 0) {
setSeq(other.getSeq());
}
if (other.getScData() != com.google.protobuf.ByteString.EMPTY) {
setScData(other.getScData());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -596,7 +604,7 @@ public final class PingReqOuterClass {
private int clientTime_ ;
/**
* <code>uint32 client_time = 12;</code>
* <code>uint32 client_time = 6;</code>
* @return The clientTime.
*/
@java.lang.Override
@@ -604,7 +612,7 @@ public final class PingReqOuterClass {
return clientTime_;
}
/**
* <code>uint32 client_time = 12;</code>
* <code>uint32 client_time = 6;</code>
* @param value The clientTime to set.
* @return This builder for chaining.
*/
@@ -615,7 +623,7 @@ public final class PingReqOuterClass {
return this;
}
/**
* <code>uint32 client_time = 12;</code>
* <code>uint32 client_time = 6;</code>
* @return This builder for chaining.
*/
public Builder clearClientTime() {
@@ -625,40 +633,9 @@ public final class PingReqOuterClass {
return this;
}
private float ueTime_ ;
/**
* <code>float ue_time = 14;</code>
* @return The ueTime.
*/
@java.lang.Override
public float getUeTime() {
return ueTime_;
}
/**
* <code>float ue_time = 14;</code>
* @param value The ueTime to set.
* @return This builder for chaining.
*/
public Builder setUeTime(float value) {
ueTime_ = value;
onChanged();
return this;
}
/**
* <code>float ue_time = 14;</code>
* @return This builder for chaining.
*/
public Builder clearUeTime() {
ueTime_ = 0F;
onChanged();
return this;
}
private double totalTickTime_ ;
/**
* <code>double total_tick_time = 6;</code>
* <code>double total_tick_time = 9;</code>
* @return The totalTickTime.
*/
@java.lang.Override
@@ -666,7 +643,7 @@ public final class PingReqOuterClass {
return totalTickTime_;
}
/**
* <code>double total_tick_time = 6;</code>
* <code>double total_tick_time = 9;</code>
* @param value The totalTickTime to set.
* @return This builder for chaining.
*/
@@ -677,7 +654,7 @@ public final class PingReqOuterClass {
return this;
}
/**
* <code>double total_tick_time = 6;</code>
* <code>double total_tick_time = 9;</code>
* @return This builder for chaining.
*/
public Builder clearTotalTickTime() {
@@ -687,9 +664,71 @@ public final class PingReqOuterClass {
return this;
}
private float ueTime_ ;
/**
* <code>float ue_time = 2;</code>
* @return The ueTime.
*/
@java.lang.Override
public float getUeTime() {
return ueTime_;
}
/**
* <code>float ue_time = 2;</code>
* @param value The ueTime to set.
* @return This builder for chaining.
*/
public Builder setUeTime(float value) {
ueTime_ = value;
onChanged();
return this;
}
/**
* <code>float ue_time = 2;</code>
* @return This builder for chaining.
*/
public Builder clearUeTime() {
ueTime_ = 0F;
onChanged();
return this;
}
private int seq_ ;
/**
* <code>uint32 seq = 12;</code>
* @return The seq.
*/
@java.lang.Override
public int getSeq() {
return seq_;
}
/**
* <code>uint32 seq = 12;</code>
* @param value The seq to set.
* @return This builder for chaining.
*/
public Builder setSeq(int value) {
seq_ = value;
onChanged();
return this;
}
/**
* <code>uint32 seq = 12;</code>
* @return This builder for chaining.
*/
public Builder clearSeq() {
seq_ = 0;
onChanged();
return this;
}
private com.google.protobuf.ByteString scData_ = com.google.protobuf.ByteString.EMPTY;
/**
* <code>bytes sc_data = 10;</code>
* <code>bytes sc_data = 3;</code>
* @return The scData.
*/
@java.lang.Override
@@ -697,7 +736,7 @@ public final class PingReqOuterClass {
return scData_;
}
/**
* <code>bytes sc_data = 10;</code>
* <code>bytes sc_data = 3;</code>
* @param value The scData to set.
* @return This builder for chaining.
*/
@@ -711,7 +750,7 @@ public final class PingReqOuterClass {
return this;
}
/**
* <code>bytes sc_data = 10;</code>
* <code>bytes sc_data = 3;</code>
* @return This builder for chaining.
*/
public Builder clearScData() {
@@ -720,37 +759,6 @@ public final class PingReqOuterClass {
onChanged();
return this;
}
private int seq_ ;
/**
* <code>uint32 seq = 3;</code>
* @return The seq.
*/
@java.lang.Override
public int getSeq() {
return seq_;
}
/**
* <code>uint32 seq = 3;</code>
* @param value The seq to set.
* @return This builder for chaining.
*/
public Builder setSeq(int value) {
seq_ = value;
onChanged();
return this;
}
/**
* <code>uint32 seq = 3;</code>
* @return This builder for chaining.
*/
public Builder clearSeq() {
seq_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -819,8 +827,8 @@ public final class PingReqOuterClass {
static {
java.lang.String[] descriptorData = {
"\n\rPingReq.proto\"f\n\007PingReq\022\023\n\013client_tim" +
"e\030\014 \001(\r\022\017\n\007ue_time\030\016 \001(\002\022\027\n\017total_tick_t" +
"ime\030\006 \001(\001\022\017\n\007sc_data\030\n \001(\014\022\013\n\003seq\030\003 \001(\rB" +
"e\030\006 \001(\r\022\027\n\017total_tick_time\030\t \001(\001\022\017\n\007ue_t" +
"ime\030\002 \001(\002\022\013\n\003seq\030\014 \001(\r\022\017\n\007sc_data\030\003 \001(\014B" +
"\033\n\031emu.grasscutter.net.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
@@ -832,7 +840,7 @@ public final class PingReqOuterClass {
internal_static_PingReq_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_PingReq_descriptor,
new java.lang.String[] { "ClientTime", "UeTime", "TotalTickTime", "ScData", "Seq", });
new java.lang.String[] { "ClientTime", "TotalTickTime", "UeTime", "Seq", "ScData", });
}
// @@protoc_insertion_point(outer_class_scope)