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,32 +19,36 @@ public final class PlayerChatReqOuterClass {
com.google.protobuf.MessageOrBuilder {
/**
* <code>uint32 channel_id = 13;</code>
* <code>uint32 channel_id = 3;</code>
* @return The channelId.
*/
int getChannelId();
/**
* <code>.ChatInfo chat_info = 15;</code>
* <code>.ChatInfo chat_info = 9;</code>
* @return Whether the chatInfo field is set.
*/
boolean hasChatInfo();
/**
* <code>.ChatInfo chat_info = 15;</code>
* <code>.ChatInfo chat_info = 9;</code>
* @return The chatInfo.
*/
emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo getChatInfo();
/**
* <code>.ChatInfo chat_info = 15;</code>
* <code>.ChatInfo chat_info = 9;</code>
*/
emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfoOrBuilder getChatInfoOrBuilder();
}
/**
* <pre>
* CmdId: 3185
* EnetChannelId: 0
* EnetIsReliable: false
* IsAllowClient: true
* enum CmdId {
* option allow_alias = true;
* NONE = 0;
* CMD_ID = 3305;
* ENET_CHANNEL_ID = 0;
* ENET_IS_RELIABLE = 1;
* IS_ALLOW_CLIENT = 1;
* }
* </pre>
*
* Protobuf type {@code PlayerChatReq}
@@ -91,12 +95,12 @@ public final class PlayerChatReqOuterClass {
case 0:
done = true;
break;
case 104: {
case 24: {
channelId_ = input.readUInt32();
break;
}
case 122: {
case 74: {
emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder subBuilder = null;
if (chatInfo_ != null) {
subBuilder = chatInfo_.toBuilder();
@@ -141,10 +145,10 @@ public final class PlayerChatReqOuterClass {
emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq.class, emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq.Builder.class);
}
public static final int CHANNEL_ID_FIELD_NUMBER = 13;
public static final int CHANNEL_ID_FIELD_NUMBER = 3;
private int channelId_;
/**
* <code>uint32 channel_id = 13;</code>
* <code>uint32 channel_id = 3;</code>
* @return The channelId.
*/
@java.lang.Override
@@ -152,10 +156,10 @@ public final class PlayerChatReqOuterClass {
return channelId_;
}
public static final int CHAT_INFO_FIELD_NUMBER = 15;
public static final int CHAT_INFO_FIELD_NUMBER = 9;
private emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo chatInfo_;
/**
* <code>.ChatInfo chat_info = 15;</code>
* <code>.ChatInfo chat_info = 9;</code>
* @return Whether the chatInfo field is set.
*/
@java.lang.Override
@@ -163,7 +167,7 @@ public final class PlayerChatReqOuterClass {
return chatInfo_ != null;
}
/**
* <code>.ChatInfo chat_info = 15;</code>
* <code>.ChatInfo chat_info = 9;</code>
* @return The chatInfo.
*/
@java.lang.Override
@@ -171,7 +175,7 @@ public final class PlayerChatReqOuterClass {
return chatInfo_ == null ? emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.getDefaultInstance() : chatInfo_;
}
/**
* <code>.ChatInfo chat_info = 15;</code>
* <code>.ChatInfo chat_info = 9;</code>
*/
@java.lang.Override
public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfoOrBuilder getChatInfoOrBuilder() {
@@ -193,10 +197,10 @@ public final class PlayerChatReqOuterClass {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (channelId_ != 0) {
output.writeUInt32(13, channelId_);
output.writeUInt32(3, channelId_);
}
if (chatInfo_ != null) {
output.writeMessage(15, getChatInfo());
output.writeMessage(9, getChatInfo());
}
unknownFields.writeTo(output);
}
@@ -209,11 +213,11 @@ public final class PlayerChatReqOuterClass {
size = 0;
if (channelId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(13, channelId_);
.computeUInt32Size(3, channelId_);
}
if (chatInfo_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, getChatInfo());
.computeMessageSize(9, getChatInfo());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
@@ -351,10 +355,14 @@ public final class PlayerChatReqOuterClass {
}
/**
* <pre>
* CmdId: 3185
* EnetChannelId: 0
* EnetIsReliable: false
* IsAllowClient: true
* enum CmdId {
* option allow_alias = true;
* NONE = 0;
* CMD_ID = 3305;
* ENET_CHANNEL_ID = 0;
* ENET_IS_RELIABLE = 1;
* IS_ALLOW_CLIENT = 1;
* }
* </pre>
*
* Protobuf type {@code PlayerChatReq}
@@ -519,7 +527,7 @@ public final class PlayerChatReqOuterClass {
private int channelId_ ;
/**
* <code>uint32 channel_id = 13;</code>
* <code>uint32 channel_id = 3;</code>
* @return The channelId.
*/
@java.lang.Override
@@ -527,7 +535,7 @@ public final class PlayerChatReqOuterClass {
return channelId_;
}
/**
* <code>uint32 channel_id = 13;</code>
* <code>uint32 channel_id = 3;</code>
* @param value The channelId to set.
* @return This builder for chaining.
*/
@@ -538,7 +546,7 @@ public final class PlayerChatReqOuterClass {
return this;
}
/**
* <code>uint32 channel_id = 13;</code>
* <code>uint32 channel_id = 3;</code>
* @return This builder for chaining.
*/
public Builder clearChannelId() {
@@ -552,14 +560,14 @@ public final class PlayerChatReqOuterClass {
private com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfoOrBuilder> chatInfoBuilder_;
/**
* <code>.ChatInfo chat_info = 15;</code>
* <code>.ChatInfo chat_info = 9;</code>
* @return Whether the chatInfo field is set.
*/
public boolean hasChatInfo() {
return chatInfoBuilder_ != null || chatInfo_ != null;
}
/**
* <code>.ChatInfo chat_info = 15;</code>
* <code>.ChatInfo chat_info = 9;</code>
* @return The chatInfo.
*/
public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo getChatInfo() {
@@ -570,7 +578,7 @@ public final class PlayerChatReqOuterClass {
}
}
/**
* <code>.ChatInfo chat_info = 15;</code>
* <code>.ChatInfo chat_info = 9;</code>
*/
public Builder setChatInfo(emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo value) {
if (chatInfoBuilder_ == null) {
@@ -586,7 +594,7 @@ public final class PlayerChatReqOuterClass {
return this;
}
/**
* <code>.ChatInfo chat_info = 15;</code>
* <code>.ChatInfo chat_info = 9;</code>
*/
public Builder setChatInfo(
emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder builderForValue) {
@@ -600,7 +608,7 @@ public final class PlayerChatReqOuterClass {
return this;
}
/**
* <code>.ChatInfo chat_info = 15;</code>
* <code>.ChatInfo chat_info = 9;</code>
*/
public Builder mergeChatInfo(emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo value) {
if (chatInfoBuilder_ == null) {
@@ -618,7 +626,7 @@ public final class PlayerChatReqOuterClass {
return this;
}
/**
* <code>.ChatInfo chat_info = 15;</code>
* <code>.ChatInfo chat_info = 9;</code>
*/
public Builder clearChatInfo() {
if (chatInfoBuilder_ == null) {
@@ -632,7 +640,7 @@ public final class PlayerChatReqOuterClass {
return this;
}
/**
* <code>.ChatInfo chat_info = 15;</code>
* <code>.ChatInfo chat_info = 9;</code>
*/
public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder getChatInfoBuilder() {
@@ -640,7 +648,7 @@ public final class PlayerChatReqOuterClass {
return getChatInfoFieldBuilder().getBuilder();
}
/**
* <code>.ChatInfo chat_info = 15;</code>
* <code>.ChatInfo chat_info = 9;</code>
*/
public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfoOrBuilder getChatInfoOrBuilder() {
if (chatInfoBuilder_ != null) {
@@ -651,7 +659,7 @@ public final class PlayerChatReqOuterClass {
}
}
/**
* <code>.ChatInfo chat_info = 15;</code>
* <code>.ChatInfo chat_info = 9;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfoOrBuilder>
@@ -734,8 +742,8 @@ public final class PlayerChatReqOuterClass {
static {
java.lang.String[] descriptorData = {
"\n\023PlayerChatReq.proto\032\016ChatInfo.proto\"A\n" +
"\rPlayerChatReq\022\022\n\nchannel_id\030\r \001(\r\022\034\n\tch" +
"at_info\030\017 \001(\0132\t.ChatInfoB\033\n\031emu.grasscut" +
"\rPlayerChatReq\022\022\n\nchannel_id\030\003 \001(\r\022\034\n\tch" +
"at_info\030\t \001(\0132\t.ChatInfoB\033\n\031emu.grasscut" +
"ter.net.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor