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,27 @@ public final class SetEquipLockStateReqOuterClass {
com.google.protobuf.MessageOrBuilder {
/**
* <code>bool is_locked = 15;</code>
* @return The isLocked.
*/
boolean getIsLocked();
/**
* <code>uint64 target_equip_guid = 9;</code>
* <code>uint64 target_equip_guid = 10;</code>
* @return The targetEquipGuid.
*/
long getTargetEquipGuid();
/**
* <code>bool is_locked = 5;</code>
* @return The isLocked.
*/
boolean getIsLocked();
}
/**
* <pre>
* CmdId: 666
* EnetChannelId: 0
* EnetIsReliable: false
* IsAllowClient: true
* enum CmdId {
* option allow_alias = true;
* NONE = 0;
* CMD_ID = 609;
* ENET_CHANNEL_ID = 0;
* ENET_IS_RELIABLE = 1;
* IS_ALLOW_CLIENT = 1;
* }
* </pre>
*
* Protobuf type {@code SetEquipLockStateReq}
@@ -82,16 +86,16 @@ public final class SetEquipLockStateReqOuterClass {
case 0:
done = true;
break;
case 72: {
targetEquipGuid_ = input.readUInt64();
break;
}
case 120: {
case 40: {
isLocked_ = input.readBool();
break;
}
case 80: {
targetEquipGuid_ = input.readUInt64();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
@@ -124,21 +128,10 @@ public final class SetEquipLockStateReqOuterClass {
emu.grasscutter.net.proto.SetEquipLockStateReqOuterClass.SetEquipLockStateReq.class, emu.grasscutter.net.proto.SetEquipLockStateReqOuterClass.SetEquipLockStateReq.Builder.class);
}
public static final int IS_LOCKED_FIELD_NUMBER = 15;
private boolean isLocked_;
/**
* <code>bool is_locked = 15;</code>
* @return The isLocked.
*/
@java.lang.Override
public boolean getIsLocked() {
return isLocked_;
}
public static final int TARGET_EQUIP_GUID_FIELD_NUMBER = 9;
public static final int TARGET_EQUIP_GUID_FIELD_NUMBER = 10;
private long targetEquipGuid_;
/**
* <code>uint64 target_equip_guid = 9;</code>
* <code>uint64 target_equip_guid = 10;</code>
* @return The targetEquipGuid.
*/
@java.lang.Override
@@ -146,6 +139,17 @@ public final class SetEquipLockStateReqOuterClass {
return targetEquipGuid_;
}
public static final int IS_LOCKED_FIELD_NUMBER = 5;
private boolean isLocked_;
/**
* <code>bool is_locked = 5;</code>
* @return The isLocked.
*/
@java.lang.Override
public boolean getIsLocked() {
return isLocked_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
@@ -160,11 +164,11 @@ public final class SetEquipLockStateReqOuterClass {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (targetEquipGuid_ != 0L) {
output.writeUInt64(9, targetEquipGuid_);
}
if (isLocked_ != false) {
output.writeBool(15, isLocked_);
output.writeBool(5, isLocked_);
}
if (targetEquipGuid_ != 0L) {
output.writeUInt64(10, targetEquipGuid_);
}
unknownFields.writeTo(output);
}
@@ -175,13 +179,13 @@ public final class SetEquipLockStateReqOuterClass {
if (size != -1) return size;
size = 0;
if (targetEquipGuid_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(9, targetEquipGuid_);
}
if (isLocked_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(15, isLocked_);
.computeBoolSize(5, isLocked_);
}
if (targetEquipGuid_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(10, targetEquipGuid_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
@@ -198,10 +202,10 @@ public final class SetEquipLockStateReqOuterClass {
}
emu.grasscutter.net.proto.SetEquipLockStateReqOuterClass.SetEquipLockStateReq other = (emu.grasscutter.net.proto.SetEquipLockStateReqOuterClass.SetEquipLockStateReq) obj;
if (getIsLocked()
!= other.getIsLocked()) return false;
if (getTargetEquipGuid()
!= other.getTargetEquipGuid()) return false;
if (getIsLocked()
!= other.getIsLocked()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -213,12 +217,12 @@ public final class SetEquipLockStateReqOuterClass {
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + IS_LOCKED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsLocked());
hash = (37 * hash) + TARGET_EQUIP_GUID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTargetEquipGuid());
hash = (37 * hash) + IS_LOCKED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsLocked());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -316,10 +320,14 @@ public final class SetEquipLockStateReqOuterClass {
}
/**
* <pre>
* CmdId: 666
* EnetChannelId: 0
* EnetIsReliable: false
* IsAllowClient: true
* enum CmdId {
* option allow_alias = true;
* NONE = 0;
* CMD_ID = 609;
* ENET_CHANNEL_ID = 0;
* ENET_IS_RELIABLE = 1;
* IS_ALLOW_CLIENT = 1;
* }
* </pre>
*
* Protobuf type {@code SetEquipLockStateReq}
@@ -359,10 +367,10 @@ public final class SetEquipLockStateReqOuterClass {
@java.lang.Override
public Builder clear() {
super.clear();
isLocked_ = false;
targetEquipGuid_ = 0L;
isLocked_ = false;
return this;
}
@@ -389,8 +397,8 @@ public final class SetEquipLockStateReqOuterClass {
@java.lang.Override
public emu.grasscutter.net.proto.SetEquipLockStateReqOuterClass.SetEquipLockStateReq buildPartial() {
emu.grasscutter.net.proto.SetEquipLockStateReqOuterClass.SetEquipLockStateReq result = new emu.grasscutter.net.proto.SetEquipLockStateReqOuterClass.SetEquipLockStateReq(this);
result.isLocked_ = isLocked_;
result.targetEquipGuid_ = targetEquipGuid_;
result.isLocked_ = isLocked_;
onBuilt();
return result;
}
@@ -439,12 +447,12 @@ public final class SetEquipLockStateReqOuterClass {
public Builder mergeFrom(emu.grasscutter.net.proto.SetEquipLockStateReqOuterClass.SetEquipLockStateReq other) {
if (other == emu.grasscutter.net.proto.SetEquipLockStateReqOuterClass.SetEquipLockStateReq.getDefaultInstance()) return this;
if (other.getIsLocked() != false) {
setIsLocked(other.getIsLocked());
}
if (other.getTargetEquipGuid() != 0L) {
setTargetEquipGuid(other.getTargetEquipGuid());
}
if (other.getIsLocked() != false) {
setIsLocked(other.getIsLocked());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -474,40 +482,9 @@ public final class SetEquipLockStateReqOuterClass {
return this;
}
private boolean isLocked_ ;
/**
* <code>bool is_locked = 15;</code>
* @return The isLocked.
*/
@java.lang.Override
public boolean getIsLocked() {
return isLocked_;
}
/**
* <code>bool is_locked = 15;</code>
* @param value The isLocked to set.
* @return This builder for chaining.
*/
public Builder setIsLocked(boolean value) {
isLocked_ = value;
onChanged();
return this;
}
/**
* <code>bool is_locked = 15;</code>
* @return This builder for chaining.
*/
public Builder clearIsLocked() {
isLocked_ = false;
onChanged();
return this;
}
private long targetEquipGuid_ ;
/**
* <code>uint64 target_equip_guid = 9;</code>
* <code>uint64 target_equip_guid = 10;</code>
* @return The targetEquipGuid.
*/
@java.lang.Override
@@ -515,7 +492,7 @@ public final class SetEquipLockStateReqOuterClass {
return targetEquipGuid_;
}
/**
* <code>uint64 target_equip_guid = 9;</code>
* <code>uint64 target_equip_guid = 10;</code>
* @param value The targetEquipGuid to set.
* @return This builder for chaining.
*/
@@ -526,7 +503,7 @@ public final class SetEquipLockStateReqOuterClass {
return this;
}
/**
* <code>uint64 target_equip_guid = 9;</code>
* <code>uint64 target_equip_guid = 10;</code>
* @return This builder for chaining.
*/
public Builder clearTargetEquipGuid() {
@@ -535,6 +512,37 @@ public final class SetEquipLockStateReqOuterClass {
onChanged();
return this;
}
private boolean isLocked_ ;
/**
* <code>bool is_locked = 5;</code>
* @return The isLocked.
*/
@java.lang.Override
public boolean getIsLocked() {
return isLocked_;
}
/**
* <code>bool is_locked = 5;</code>
* @param value The isLocked to set.
* @return This builder for chaining.
*/
public Builder setIsLocked(boolean value) {
isLocked_ = value;
onChanged();
return this;
}
/**
* <code>bool is_locked = 5;</code>
* @return This builder for chaining.
*/
public Builder clearIsLocked() {
isLocked_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -603,8 +611,8 @@ public final class SetEquipLockStateReqOuterClass {
static {
java.lang.String[] descriptorData = {
"\n\032SetEquipLockStateReq.proto\"D\n\024SetEquip" +
"LockStateReq\022\021\n\tis_locked\030\017 \001(\010\022\031\n\021targe" +
"t_equip_guid\030\t \001(\004B\033\n\031emu.grasscutter.ne" +
"LockStateReq\022\031\n\021target_equip_guid\030\n \001(\004\022" +
"\021\n\tis_locked\030\005 \001(\010B\033\n\031emu.grasscutter.ne" +
"t.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
@@ -616,7 +624,7 @@ public final class SetEquipLockStateReqOuterClass {
internal_static_SetEquipLockStateReq_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_SetEquipLockStateReq_descriptor,
new java.lang.String[] { "IsLocked", "TargetEquipGuid", });
new java.lang.String[] { "TargetEquipGuid", "IsLocked", });
}
// @@protoc_insertion_point(outer_class_scope)