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,34 +19,38 @@ public final class ChangeMailStarNotifyOuterClass {
com.google.protobuf.MessageOrBuilder {
/**
* <code>bool is_star = 14;</code>
* @return The isStar.
*/
boolean getIsStar();
/**
* <code>repeated uint32 mail_id_list = 2;</code>
* <code>repeated uint32 mail_id_list = 13;</code>
* @return A list containing the mailIdList.
*/
java.util.List<java.lang.Integer> getMailIdListList();
/**
* <code>repeated uint32 mail_id_list = 2;</code>
* <code>repeated uint32 mail_id_list = 13;</code>
* @return The count of mailIdList.
*/
int getMailIdListCount();
/**
* <code>repeated uint32 mail_id_list = 2;</code>
* <code>repeated uint32 mail_id_list = 13;</code>
* @param index The index of the element to return.
* @return The mailIdList at the given index.
*/
int getMailIdList(int index);
/**
* <code>bool is_star = 15;</code>
* @return The isStar.
*/
boolean getIsStar();
}
/**
* <pre>
* CmdId: 1448
* EnetChannelId: 0
* EnetIsReliable: false
* IsAllowClient: true
* enum CmdId {
* option allow_alias = true;
* NONE = 0;
* CMD_ID = 1448;
* ENET_CHANNEL_ID = 0;
* ENET_IS_RELIABLE = 1;
* IS_ALLOW_CLIENT = 1;
* }
* </pre>
*
* Protobuf type {@code ChangeMailStarNotify}
@@ -95,7 +99,7 @@ public final class ChangeMailStarNotifyOuterClass {
case 0:
done = true;
break;
case 16: {
case 104: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
mailIdList_ = newIntList();
mutable_bitField0_ |= 0x00000001;
@@ -103,7 +107,7 @@ public final class ChangeMailStarNotifyOuterClass {
mailIdList_.addInt(input.readUInt32());
break;
}
case 18: {
case 106: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
@@ -116,7 +120,7 @@ public final class ChangeMailStarNotifyOuterClass {
input.popLimit(limit);
break;
}
case 112: {
case 120: {
isStar_ = input.readBool();
break;
@@ -156,21 +160,10 @@ public final class ChangeMailStarNotifyOuterClass {
emu.grasscutter.net.proto.ChangeMailStarNotifyOuterClass.ChangeMailStarNotify.class, emu.grasscutter.net.proto.ChangeMailStarNotifyOuterClass.ChangeMailStarNotify.Builder.class);
}
public static final int IS_STAR_FIELD_NUMBER = 14;
private boolean isStar_;
/**
* <code>bool is_star = 14;</code>
* @return The isStar.
*/
@java.lang.Override
public boolean getIsStar() {
return isStar_;
}
public static final int MAIL_ID_LIST_FIELD_NUMBER = 2;
public static final int MAIL_ID_LIST_FIELD_NUMBER = 13;
private com.google.protobuf.Internal.IntList mailIdList_;
/**
* <code>repeated uint32 mail_id_list = 2;</code>
* <code>repeated uint32 mail_id_list = 13;</code>
* @return A list containing the mailIdList.
*/
@java.lang.Override
@@ -179,14 +172,14 @@ public final class ChangeMailStarNotifyOuterClass {
return mailIdList_;
}
/**
* <code>repeated uint32 mail_id_list = 2;</code>
* <code>repeated uint32 mail_id_list = 13;</code>
* @return The count of mailIdList.
*/
public int getMailIdListCount() {
return mailIdList_.size();
}
/**
* <code>repeated uint32 mail_id_list = 2;</code>
* <code>repeated uint32 mail_id_list = 13;</code>
* @param index The index of the element to return.
* @return The mailIdList at the given index.
*/
@@ -195,6 +188,17 @@ public final class ChangeMailStarNotifyOuterClass {
}
private int mailIdListMemoizedSerializedSize = -1;
public static final int IS_STAR_FIELD_NUMBER = 15;
private boolean isStar_;
/**
* <code>bool is_star = 15;</code>
* @return The isStar.
*/
@java.lang.Override
public boolean getIsStar() {
return isStar_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
@@ -211,14 +215,14 @@ public final class ChangeMailStarNotifyOuterClass {
throws java.io.IOException {
getSerializedSize();
if (getMailIdListList().size() > 0) {
output.writeUInt32NoTag(18);
output.writeUInt32NoTag(106);
output.writeUInt32NoTag(mailIdListMemoizedSerializedSize);
}
for (int i = 0; i < mailIdList_.size(); i++) {
output.writeUInt32NoTag(mailIdList_.getInt(i));
}
if (isStar_ != false) {
output.writeBool(14, isStar_);
output.writeBool(15, isStar_);
}
unknownFields.writeTo(output);
}
@@ -245,7 +249,7 @@ public final class ChangeMailStarNotifyOuterClass {
}
if (isStar_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(14, isStar_);
.computeBoolSize(15, isStar_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
@@ -262,10 +266,10 @@ public final class ChangeMailStarNotifyOuterClass {
}
emu.grasscutter.net.proto.ChangeMailStarNotifyOuterClass.ChangeMailStarNotify other = (emu.grasscutter.net.proto.ChangeMailStarNotifyOuterClass.ChangeMailStarNotify) obj;
if (getIsStar()
!= other.getIsStar()) return false;
if (!getMailIdListList()
.equals(other.getMailIdListList())) return false;
if (getIsStar()
!= other.getIsStar()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -277,13 +281,13 @@ public final class ChangeMailStarNotifyOuterClass {
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + IS_STAR_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsStar());
if (getMailIdListCount() > 0) {
hash = (37 * hash) + MAIL_ID_LIST_FIELD_NUMBER;
hash = (53 * hash) + getMailIdListList().hashCode();
}
hash = (37 * hash) + IS_STAR_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsStar());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -381,10 +385,14 @@ public final class ChangeMailStarNotifyOuterClass {
}
/**
* <pre>
* CmdId: 1448
* EnetChannelId: 0
* EnetIsReliable: false
* IsAllowClient: true
* enum CmdId {
* option allow_alias = true;
* NONE = 0;
* CMD_ID = 1448;
* ENET_CHANNEL_ID = 0;
* ENET_IS_RELIABLE = 1;
* IS_ALLOW_CLIENT = 1;
* }
* </pre>
*
* Protobuf type {@code ChangeMailStarNotify}
@@ -424,10 +432,10 @@ public final class ChangeMailStarNotifyOuterClass {
@java.lang.Override
public Builder clear() {
super.clear();
isStar_ = false;
mailIdList_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000001);
isStar_ = false;
return this;
}
@@ -455,12 +463,12 @@ public final class ChangeMailStarNotifyOuterClass {
public emu.grasscutter.net.proto.ChangeMailStarNotifyOuterClass.ChangeMailStarNotify buildPartial() {
emu.grasscutter.net.proto.ChangeMailStarNotifyOuterClass.ChangeMailStarNotify result = new emu.grasscutter.net.proto.ChangeMailStarNotifyOuterClass.ChangeMailStarNotify(this);
int from_bitField0_ = bitField0_;
result.isStar_ = isStar_;
if (((bitField0_ & 0x00000001) != 0)) {
mailIdList_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.mailIdList_ = mailIdList_;
result.isStar_ = isStar_;
onBuilt();
return result;
}
@@ -509,9 +517,6 @@ public final class ChangeMailStarNotifyOuterClass {
public Builder mergeFrom(emu.grasscutter.net.proto.ChangeMailStarNotifyOuterClass.ChangeMailStarNotify other) {
if (other == emu.grasscutter.net.proto.ChangeMailStarNotifyOuterClass.ChangeMailStarNotify.getDefaultInstance()) return this;
if (other.getIsStar() != false) {
setIsStar(other.getIsStar());
}
if (!other.mailIdList_.isEmpty()) {
if (mailIdList_.isEmpty()) {
mailIdList_ = other.mailIdList_;
@@ -522,6 +527,9 @@ public final class ChangeMailStarNotifyOuterClass {
}
onChanged();
}
if (other.getIsStar() != false) {
setIsStar(other.getIsStar());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -552,37 +560,6 @@ public final class ChangeMailStarNotifyOuterClass {
}
private int bitField0_;
private boolean isStar_ ;
/**
* <code>bool is_star = 14;</code>
* @return The isStar.
*/
@java.lang.Override
public boolean getIsStar() {
return isStar_;
}
/**
* <code>bool is_star = 14;</code>
* @param value The isStar to set.
* @return This builder for chaining.
*/
public Builder setIsStar(boolean value) {
isStar_ = value;
onChanged();
return this;
}
/**
* <code>bool is_star = 14;</code>
* @return This builder for chaining.
*/
public Builder clearIsStar() {
isStar_ = false;
onChanged();
return this;
}
private com.google.protobuf.Internal.IntList mailIdList_ = emptyIntList();
private void ensureMailIdListIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
@@ -591,7 +568,7 @@ public final class ChangeMailStarNotifyOuterClass {
}
}
/**
* <code>repeated uint32 mail_id_list = 2;</code>
* <code>repeated uint32 mail_id_list = 13;</code>
* @return A list containing the mailIdList.
*/
public java.util.List<java.lang.Integer>
@@ -600,14 +577,14 @@ public final class ChangeMailStarNotifyOuterClass {
java.util.Collections.unmodifiableList(mailIdList_) : mailIdList_;
}
/**
* <code>repeated uint32 mail_id_list = 2;</code>
* <code>repeated uint32 mail_id_list = 13;</code>
* @return The count of mailIdList.
*/
public int getMailIdListCount() {
return mailIdList_.size();
}
/**
* <code>repeated uint32 mail_id_list = 2;</code>
* <code>repeated uint32 mail_id_list = 13;</code>
* @param index The index of the element to return.
* @return The mailIdList at the given index.
*/
@@ -615,7 +592,7 @@ public final class ChangeMailStarNotifyOuterClass {
return mailIdList_.getInt(index);
}
/**
* <code>repeated uint32 mail_id_list = 2;</code>
* <code>repeated uint32 mail_id_list = 13;</code>
* @param index The index to set the value at.
* @param value The mailIdList to set.
* @return This builder for chaining.
@@ -628,7 +605,7 @@ public final class ChangeMailStarNotifyOuterClass {
return this;
}
/**
* <code>repeated uint32 mail_id_list = 2;</code>
* <code>repeated uint32 mail_id_list = 13;</code>
* @param value The mailIdList to add.
* @return This builder for chaining.
*/
@@ -639,7 +616,7 @@ public final class ChangeMailStarNotifyOuterClass {
return this;
}
/**
* <code>repeated uint32 mail_id_list = 2;</code>
* <code>repeated uint32 mail_id_list = 13;</code>
* @param values The mailIdList to add.
* @return This builder for chaining.
*/
@@ -652,7 +629,7 @@ public final class ChangeMailStarNotifyOuterClass {
return this;
}
/**
* <code>repeated uint32 mail_id_list = 2;</code>
* <code>repeated uint32 mail_id_list = 13;</code>
* @return This builder for chaining.
*/
public Builder clearMailIdList() {
@@ -661,6 +638,37 @@ public final class ChangeMailStarNotifyOuterClass {
onChanged();
return this;
}
private boolean isStar_ ;
/**
* <code>bool is_star = 15;</code>
* @return The isStar.
*/
@java.lang.Override
public boolean getIsStar() {
return isStar_;
}
/**
* <code>bool is_star = 15;</code>
* @param value The isStar to set.
* @return This builder for chaining.
*/
public Builder setIsStar(boolean value) {
isStar_ = value;
onChanged();
return this;
}
/**
* <code>bool is_star = 15;</code>
* @return This builder for chaining.
*/
public Builder clearIsStar() {
isStar_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -729,8 +737,8 @@ public final class ChangeMailStarNotifyOuterClass {
static {
java.lang.String[] descriptorData = {
"\n\032ChangeMailStarNotify.proto\"=\n\024ChangeMa" +
"ilStarNotify\022\017\n\007is_star\030\016 \001(\010\022\024\n\014mail_id" +
"_list\030\002 \003(\rB\033\n\031emu.grasscutter.net.proto" +
"ilStarNotify\022\024\n\014mail_id_list\030\r \003(\r\022\017\n\007is" +
"_star\030\017 \001(\010B\033\n\031emu.grasscutter.net.proto" +
"b\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
@@ -742,7 +750,7 @@ public final class ChangeMailStarNotifyOuterClass {
internal_static_ChangeMailStarNotify_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_ChangeMailStarNotify_descriptor,
new java.lang.String[] { "IsStar", "MailIdList", });
new java.lang.String[] { "MailIdList", "IsStar", });
}
// @@protoc_insertion_point(outer_class_scope)