mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-05-18 09:50:27 +08:00
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:
committed by
GitHub
Unverified
parent
8b83dbf58c
commit
92fbaa8670
+87
-81
@@ -19,23 +19,26 @@ public final class AddQuestContentProgressRspOuterClass {
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>int32 retcode = 13;</code>
|
||||
* @return The retcode.
|
||||
*/
|
||||
int getRetcode();
|
||||
|
||||
/**
|
||||
* <code>uint32 content_type = 4;</code>
|
||||
* <code>uint32 content_type = 7;</code>
|
||||
* @return The contentType.
|
||||
*/
|
||||
int getContentType();
|
||||
|
||||
/**
|
||||
* <code>int32 retcode = 12;</code>
|
||||
* @return The retcode.
|
||||
*/
|
||||
int getRetcode();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* CmdId: 403
|
||||
* EnetChannelId: 0
|
||||
* EnetIsReliable: false
|
||||
* IsAllowClient: true
|
||||
* enum CmdId {
|
||||
* option allow_alias = true;
|
||||
* NONE = 0;
|
||||
* CMD_ID = 461;
|
||||
* ENET_CHANNEL_ID = 0;
|
||||
* ENET_IS_RELIABLE = 1;
|
||||
* }
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code AddQuestContentProgressRsp}
|
||||
@@ -82,12 +85,12 @@ public final class AddQuestContentProgressRspOuterClass {
|
||||
case 0:
|
||||
done = true;
|
||||
break;
|
||||
case 32: {
|
||||
case 56: {
|
||||
|
||||
contentType_ = input.readUInt32();
|
||||
break;
|
||||
}
|
||||
case 104: {
|
||||
case 96: {
|
||||
|
||||
retcode_ = input.readInt32();
|
||||
break;
|
||||
@@ -124,21 +127,10 @@ public final class AddQuestContentProgressRspOuterClass {
|
||||
emu.grasscutter.net.proto.AddQuestContentProgressRspOuterClass.AddQuestContentProgressRsp.class, emu.grasscutter.net.proto.AddQuestContentProgressRspOuterClass.AddQuestContentProgressRsp.Builder.class);
|
||||
}
|
||||
|
||||
public static final int RETCODE_FIELD_NUMBER = 13;
|
||||
private int retcode_;
|
||||
/**
|
||||
* <code>int32 retcode = 13;</code>
|
||||
* @return The retcode.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getRetcode() {
|
||||
return retcode_;
|
||||
}
|
||||
|
||||
public static final int CONTENT_TYPE_FIELD_NUMBER = 4;
|
||||
public static final int CONTENT_TYPE_FIELD_NUMBER = 7;
|
||||
private int contentType_;
|
||||
/**
|
||||
* <code>uint32 content_type = 4;</code>
|
||||
* <code>uint32 content_type = 7;</code>
|
||||
* @return The contentType.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -146,6 +138,17 @@ public final class AddQuestContentProgressRspOuterClass {
|
||||
return contentType_;
|
||||
}
|
||||
|
||||
public static final int RETCODE_FIELD_NUMBER = 12;
|
||||
private int retcode_;
|
||||
/**
|
||||
* <code>int32 retcode = 12;</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 AddQuestContentProgressRspOuterClass {
|
||||
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
||||
throws java.io.IOException {
|
||||
if (contentType_ != 0) {
|
||||
output.writeUInt32(4, contentType_);
|
||||
output.writeUInt32(7, contentType_);
|
||||
}
|
||||
if (retcode_ != 0) {
|
||||
output.writeInt32(13, retcode_);
|
||||
output.writeInt32(12, retcode_);
|
||||
}
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
@@ -177,11 +180,11 @@ public final class AddQuestContentProgressRspOuterClass {
|
||||
size = 0;
|
||||
if (contentType_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt32Size(4, contentType_);
|
||||
.computeUInt32Size(7, contentType_);
|
||||
}
|
||||
if (retcode_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeInt32Size(13, retcode_);
|
||||
.computeInt32Size(12, retcode_);
|
||||
}
|
||||
size += unknownFields.getSerializedSize();
|
||||
memoizedSize = size;
|
||||
@@ -198,10 +201,10 @@ public final class AddQuestContentProgressRspOuterClass {
|
||||
}
|
||||
emu.grasscutter.net.proto.AddQuestContentProgressRspOuterClass.AddQuestContentProgressRsp other = (emu.grasscutter.net.proto.AddQuestContentProgressRspOuterClass.AddQuestContentProgressRsp) obj;
|
||||
|
||||
if (getRetcode()
|
||||
!= other.getRetcode()) return false;
|
||||
if (getContentType()
|
||||
!= other.getContentType()) return false;
|
||||
if (getRetcode()
|
||||
!= other.getRetcode()) return false;
|
||||
if (!unknownFields.equals(other.unknownFields)) return false;
|
||||
return true;
|
||||
}
|
||||
@@ -213,10 +216,10 @@ public final class AddQuestContentProgressRspOuterClass {
|
||||
}
|
||||
int hash = 41;
|
||||
hash = (19 * hash) + getDescriptor().hashCode();
|
||||
hash = (37 * hash) + RETCODE_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getRetcode();
|
||||
hash = (37 * hash) + CONTENT_TYPE_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getContentType();
|
||||
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 AddQuestContentProgressRspOuterClass {
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* CmdId: 403
|
||||
* EnetChannelId: 0
|
||||
* EnetIsReliable: false
|
||||
* IsAllowClient: true
|
||||
* enum CmdId {
|
||||
* option allow_alias = true;
|
||||
* NONE = 0;
|
||||
* CMD_ID = 461;
|
||||
* ENET_CHANNEL_ID = 0;
|
||||
* ENET_IS_RELIABLE = 1;
|
||||
* }
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code AddQuestContentProgressRsp}
|
||||
@@ -357,10 +363,10 @@ public final class AddQuestContentProgressRspOuterClass {
|
||||
@java.lang.Override
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
retcode_ = 0;
|
||||
|
||||
contentType_ = 0;
|
||||
|
||||
retcode_ = 0;
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -387,8 +393,8 @@ public final class AddQuestContentProgressRspOuterClass {
|
||||
@java.lang.Override
|
||||
public emu.grasscutter.net.proto.AddQuestContentProgressRspOuterClass.AddQuestContentProgressRsp buildPartial() {
|
||||
emu.grasscutter.net.proto.AddQuestContentProgressRspOuterClass.AddQuestContentProgressRsp result = new emu.grasscutter.net.proto.AddQuestContentProgressRspOuterClass.AddQuestContentProgressRsp(this);
|
||||
result.retcode_ = retcode_;
|
||||
result.contentType_ = contentType_;
|
||||
result.retcode_ = retcode_;
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
@@ -437,12 +443,12 @@ public final class AddQuestContentProgressRspOuterClass {
|
||||
|
||||
public Builder mergeFrom(emu.grasscutter.net.proto.AddQuestContentProgressRspOuterClass.AddQuestContentProgressRsp other) {
|
||||
if (other == emu.grasscutter.net.proto.AddQuestContentProgressRspOuterClass.AddQuestContentProgressRsp.getDefaultInstance()) return this;
|
||||
if (other.getRetcode() != 0) {
|
||||
setRetcode(other.getRetcode());
|
||||
}
|
||||
if (other.getContentType() != 0) {
|
||||
setContentType(other.getContentType());
|
||||
}
|
||||
if (other.getRetcode() != 0) {
|
||||
setRetcode(other.getRetcode());
|
||||
}
|
||||
this.mergeUnknownFields(other.unknownFields);
|
||||
onChanged();
|
||||
return this;
|
||||
@@ -472,40 +478,9 @@ public final class AddQuestContentProgressRspOuterClass {
|
||||
return this;
|
||||
}
|
||||
|
||||
private int retcode_ ;
|
||||
/**
|
||||
* <code>int32 retcode = 13;</code>
|
||||
* @return The retcode.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getRetcode() {
|
||||
return retcode_;
|
||||
}
|
||||
/**
|
||||
* <code>int32 retcode = 13;</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 = 13;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearRetcode() {
|
||||
|
||||
retcode_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int contentType_ ;
|
||||
/**
|
||||
* <code>uint32 content_type = 4;</code>
|
||||
* <code>uint32 content_type = 7;</code>
|
||||
* @return The contentType.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -513,7 +488,7 @@ public final class AddQuestContentProgressRspOuterClass {
|
||||
return contentType_;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 content_type = 4;</code>
|
||||
* <code>uint32 content_type = 7;</code>
|
||||
* @param value The contentType to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
@@ -524,7 +499,7 @@ public final class AddQuestContentProgressRspOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 content_type = 4;</code>
|
||||
* <code>uint32 content_type = 7;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearContentType() {
|
||||
@@ -533,6 +508,37 @@ public final class AddQuestContentProgressRspOuterClass {
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int retcode_ ;
|
||||
/**
|
||||
* <code>int32 retcode = 12;</code>
|
||||
* @return The retcode.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getRetcode() {
|
||||
return retcode_;
|
||||
}
|
||||
/**
|
||||
* <code>int32 retcode = 12;</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 = 12;</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,8 +607,8 @@ public final class AddQuestContentProgressRspOuterClass {
|
||||
static {
|
||||
java.lang.String[] descriptorData = {
|
||||
"\n AddQuestContentProgressRsp.proto\"C\n\032Ad" +
|
||||
"dQuestContentProgressRsp\022\017\n\007retcode\030\r \001(" +
|
||||
"\005\022\024\n\014content_type\030\004 \001(\rB\033\n\031emu.grasscutt" +
|
||||
"dQuestContentProgressRsp\022\024\n\014content_type" +
|
||||
"\030\007 \001(\r\022\017\n\007retcode\030\014 \001(\005B\033\n\031emu.grasscutt" +
|
||||
"er.net.protob\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
@@ -614,7 +620,7 @@ public final class AddQuestContentProgressRspOuterClass {
|
||||
internal_static_AddQuestContentProgressRsp_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_AddQuestContentProgressRsp_descriptor,
|
||||
new java.lang.String[] { "Retcode", "ContentType", });
|
||||
new java.lang.String[] { "ContentType", "Retcode", });
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(outer_class_scope)
|
||||
|
||||
Reference in New Issue
Block a user