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,23 +19,26 @@ public final class WidgetDoBagRspOuterClass {
com.google.protobuf.MessageOrBuilder {
/**
* <code>int32 retcode = 10;</code>
* @return The retcode.
*/
int getRetcode();
/**
* <code>uint32 material_id = 3;</code>
* <code>uint32 material_id = 6;</code>
* @return The materialId.
*/
int getMaterialId();
/**
* <code>int32 retcode = 14;</code>
* @return The retcode.
*/
int getRetcode();
}
/**
* <pre>
* CmdId: 4296
* EnetChannelId: 0
* EnetIsReliable: false
* IsAllowClient: true
* enum CmdId {
* option allow_alias = true;
* NONE = 0;
* CMD_ID = 4299;
* ENET_CHANNEL_ID = 0;
* ENET_IS_RELIABLE = 1;
* }
* </pre>
*
* Protobuf type {@code WidgetDoBagRsp}
@@ -82,12 +85,12 @@ public final class WidgetDoBagRspOuterClass {
case 0:
done = true;
break;
case 24: {
case 48: {
materialId_ = input.readUInt32();
break;
}
case 80: {
case 112: {
retcode_ = input.readInt32();
break;
@@ -124,21 +127,10 @@ public final class WidgetDoBagRspOuterClass {
emu.grasscutter.net.proto.WidgetDoBagRspOuterClass.WidgetDoBagRsp.class, emu.grasscutter.net.proto.WidgetDoBagRspOuterClass.WidgetDoBagRsp.Builder.class);
}
public static final int RETCODE_FIELD_NUMBER = 10;
private int retcode_;
/**
* <code>int32 retcode = 10;</code>
* @return The retcode.
*/
@java.lang.Override
public int getRetcode() {
return retcode_;
}
public static final int MATERIAL_ID_FIELD_NUMBER = 3;
public static final int MATERIAL_ID_FIELD_NUMBER = 6;
private int materialId_;
/**
* <code>uint32 material_id = 3;</code>
* <code>uint32 material_id = 6;</code>
* @return The materialId.
*/
@java.lang.Override
@@ -146,6 +138,17 @@ public final class WidgetDoBagRspOuterClass {
return materialId_;
}
public static final int RETCODE_FIELD_NUMBER = 14;
private int retcode_;
/**
* <code>int32 retcode = 14;</code>
* @return The retcode.
*/
@java.lang.Override
public int getRetcode() {
return retcode_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
@@ -161,10 +164,10 @@ public final class WidgetDoBagRspOuterClass {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (materialId_ != 0) {
output.writeUInt32(3, materialId_);
output.writeUInt32(6, materialId_);
}
if (retcode_ != 0) {
output.writeInt32(10, retcode_);
output.writeInt32(14, retcode_);
}
unknownFields.writeTo(output);
}
@@ -177,11 +180,11 @@ public final class WidgetDoBagRspOuterClass {
size = 0;
if (materialId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, materialId_);
.computeUInt32Size(6, materialId_);
}
if (retcode_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(10, retcode_);
.computeInt32Size(14, retcode_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
@@ -198,10 +201,10 @@ public final class WidgetDoBagRspOuterClass {
}
emu.grasscutter.net.proto.WidgetDoBagRspOuterClass.WidgetDoBagRsp other = (emu.grasscutter.net.proto.WidgetDoBagRspOuterClass.WidgetDoBagRsp) obj;
if (getRetcode()
!= other.getRetcode()) return false;
if (getMaterialId()
!= other.getMaterialId()) return false;
if (getRetcode()
!= other.getRetcode()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -213,10 +216,10 @@ public final class WidgetDoBagRspOuterClass {
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + RETCODE_FIELD_NUMBER;
hash = (53 * hash) + getRetcode();
hash = (37 * hash) + MATERIAL_ID_FIELD_NUMBER;
hash = (53 * hash) + getMaterialId();
hash = (37 * hash) + RETCODE_FIELD_NUMBER;
hash = (53 * hash) + getRetcode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -314,10 +317,13 @@ public final class WidgetDoBagRspOuterClass {
}
/**
* <pre>
* CmdId: 4296
* EnetChannelId: 0
* EnetIsReliable: false
* IsAllowClient: true
* enum CmdId {
* option allow_alias = true;
* NONE = 0;
* CMD_ID = 4299;
* ENET_CHANNEL_ID = 0;
* ENET_IS_RELIABLE = 1;
* }
* </pre>
*
* Protobuf type {@code WidgetDoBagRsp}
@@ -357,10 +363,10 @@ public final class WidgetDoBagRspOuterClass {
@java.lang.Override
public Builder clear() {
super.clear();
retcode_ = 0;
materialId_ = 0;
retcode_ = 0;
return this;
}
@@ -387,8 +393,8 @@ public final class WidgetDoBagRspOuterClass {
@java.lang.Override
public emu.grasscutter.net.proto.WidgetDoBagRspOuterClass.WidgetDoBagRsp buildPartial() {
emu.grasscutter.net.proto.WidgetDoBagRspOuterClass.WidgetDoBagRsp result = new emu.grasscutter.net.proto.WidgetDoBagRspOuterClass.WidgetDoBagRsp(this);
result.retcode_ = retcode_;
result.materialId_ = materialId_;
result.retcode_ = retcode_;
onBuilt();
return result;
}
@@ -437,12 +443,12 @@ public final class WidgetDoBagRspOuterClass {
public Builder mergeFrom(emu.grasscutter.net.proto.WidgetDoBagRspOuterClass.WidgetDoBagRsp other) {
if (other == emu.grasscutter.net.proto.WidgetDoBagRspOuterClass.WidgetDoBagRsp.getDefaultInstance()) return this;
if (other.getRetcode() != 0) {
setRetcode(other.getRetcode());
}
if (other.getMaterialId() != 0) {
setMaterialId(other.getMaterialId());
}
if (other.getRetcode() != 0) {
setRetcode(other.getRetcode());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -472,40 +478,9 @@ public final class WidgetDoBagRspOuterClass {
return this;
}
private int retcode_ ;
/**
* <code>int32 retcode = 10;</code>
* @return The retcode.
*/
@java.lang.Override
public int getRetcode() {
return retcode_;
}
/**
* <code>int32 retcode = 10;</code>
* @param value The retcode to set.
* @return This builder for chaining.
*/
public Builder setRetcode(int value) {
retcode_ = value;
onChanged();
return this;
}
/**
* <code>int32 retcode = 10;</code>
* @return This builder for chaining.
*/
public Builder clearRetcode() {
retcode_ = 0;
onChanged();
return this;
}
private int materialId_ ;
/**
* <code>uint32 material_id = 3;</code>
* <code>uint32 material_id = 6;</code>
* @return The materialId.
*/
@java.lang.Override
@@ -513,7 +488,7 @@ public final class WidgetDoBagRspOuterClass {
return materialId_;
}
/**
* <code>uint32 material_id = 3;</code>
* <code>uint32 material_id = 6;</code>
* @param value The materialId to set.
* @return This builder for chaining.
*/
@@ -524,7 +499,7 @@ public final class WidgetDoBagRspOuterClass {
return this;
}
/**
* <code>uint32 material_id = 3;</code>
* <code>uint32 material_id = 6;</code>
* @return This builder for chaining.
*/
public Builder clearMaterialId() {
@@ -533,6 +508,37 @@ public final class WidgetDoBagRspOuterClass {
onChanged();
return this;
}
private int retcode_ ;
/**
* <code>int32 retcode = 14;</code>
* @return The retcode.
*/
@java.lang.Override
public int getRetcode() {
return retcode_;
}
/**
* <code>int32 retcode = 14;</code>
* @param value The retcode to set.
* @return This builder for chaining.
*/
public Builder setRetcode(int value) {
retcode_ = value;
onChanged();
return this;
}
/**
* <code>int32 retcode = 14;</code>
* @return This builder for chaining.
*/
public Builder clearRetcode() {
retcode_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -601,7 +607,7 @@ public final class WidgetDoBagRspOuterClass {
static {
java.lang.String[] descriptorData = {
"\n\024WidgetDoBagRsp.proto\"6\n\016WidgetDoBagRsp" +
"\022\017\n\007retcode\030\n \001(\005\022\023\n\013material_id\030\003 \001(\rB\033" +
"\022\023\n\013material_id\030\006 \001(\r\022\017\n\007retcode\030\016 \001(\005B\033" +
"\n\031emu.grasscutter.net.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
@@ -613,7 +619,7 @@ public final class WidgetDoBagRspOuterClass {
internal_static_WidgetDoBagRsp_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_WidgetDoBagRsp_descriptor,
new java.lang.String[] { "Retcode", "MaterialId", });
new java.lang.String[] { "MaterialId", "Retcode", });
}
// @@protoc_insertion_point(outer_class_scope)