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,29 +19,33 @@ public final class PlayerGameTimeNotifyOuterClass {
com.google.protobuf.MessageOrBuilder {
/**
* <code>uint32 uid = 7;</code>
* <code>uint32 uid = 15;</code>
* @return The uid.
*/
int getUid();
/**
* <code>uint32 game_time = 3;</code>
* @return The gameTime.
*/
int getGameTime();
/**
* <code>bool is_home = 13;</code>
* <code>bool is_home = 10;</code>
* @return The isHome.
*/
boolean getIsHome();
/**
* <code>uint32 game_time = 4;</code>
* @return The gameTime.
*/
int getGameTime();
}
/**
* <pre>
* CmdId: 131
* EnetChannelId: 0
* EnetIsReliable: false
* IsAllowClient: true
* enum CmdId {
* option allow_alias = true;
* NONE = 0;
* CMD_ID = 127;
* ENET_CHANNEL_ID = 0;
* ENET_IS_RELIABLE = 1;
* IS_ALLOW_CLIENT = 1;
* }
* </pre>
*
* Protobuf type {@code PlayerGameTimeNotify}
@@ -88,21 +92,21 @@ public final class PlayerGameTimeNotifyOuterClass {
case 0:
done = true;
break;
case 24: {
case 32: {
gameTime_ = input.readUInt32();
break;
}
case 56: {
uid_ = input.readUInt32();
break;
}
case 104: {
case 80: {
isHome_ = input.readBool();
break;
}
case 120: {
uid_ = input.readUInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
@@ -135,10 +139,10 @@ public final class PlayerGameTimeNotifyOuterClass {
emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.PlayerGameTimeNotify.class, emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.PlayerGameTimeNotify.Builder.class);
}
public static final int UID_FIELD_NUMBER = 7;
public static final int UID_FIELD_NUMBER = 15;
private int uid_;
/**
* <code>uint32 uid = 7;</code>
* <code>uint32 uid = 15;</code>
* @return The uid.
*/
@java.lang.Override
@@ -146,21 +150,10 @@ public final class PlayerGameTimeNotifyOuterClass {
return uid_;
}
public static final int GAME_TIME_FIELD_NUMBER = 3;
private int gameTime_;
/**
* <code>uint32 game_time = 3;</code>
* @return The gameTime.
*/
@java.lang.Override
public int getGameTime() {
return gameTime_;
}
public static final int IS_HOME_FIELD_NUMBER = 13;
public static final int IS_HOME_FIELD_NUMBER = 10;
private boolean isHome_;
/**
* <code>bool is_home = 13;</code>
* <code>bool is_home = 10;</code>
* @return The isHome.
*/
@java.lang.Override
@@ -168,6 +161,17 @@ public final class PlayerGameTimeNotifyOuterClass {
return isHome_;
}
public static final int GAME_TIME_FIELD_NUMBER = 4;
private int gameTime_;
/**
* <code>uint32 game_time = 4;</code>
* @return The gameTime.
*/
@java.lang.Override
public int getGameTime() {
return gameTime_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
@@ -183,13 +187,13 @@ public final class PlayerGameTimeNotifyOuterClass {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (gameTime_ != 0) {
output.writeUInt32(3, gameTime_);
}
if (uid_ != 0) {
output.writeUInt32(7, uid_);
output.writeUInt32(4, gameTime_);
}
if (isHome_ != false) {
output.writeBool(13, isHome_);
output.writeBool(10, isHome_);
}
if (uid_ != 0) {
output.writeUInt32(15, uid_);
}
unknownFields.writeTo(output);
}
@@ -202,15 +206,15 @@ public final class PlayerGameTimeNotifyOuterClass {
size = 0;
if (gameTime_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, gameTime_);
}
if (uid_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(7, uid_);
.computeUInt32Size(4, gameTime_);
}
if (isHome_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(13, isHome_);
.computeBoolSize(10, isHome_);
}
if (uid_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(15, uid_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
@@ -229,10 +233,10 @@ public final class PlayerGameTimeNotifyOuterClass {
if (getUid()
!= other.getUid()) return false;
if (getGameTime()
!= other.getGameTime()) return false;
if (getIsHome()
!= other.getIsHome()) return false;
if (getGameTime()
!= other.getGameTime()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -246,11 +250,11 @@ public final class PlayerGameTimeNotifyOuterClass {
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + UID_FIELD_NUMBER;
hash = (53 * hash) + getUid();
hash = (37 * hash) + GAME_TIME_FIELD_NUMBER;
hash = (53 * hash) + getGameTime();
hash = (37 * hash) + IS_HOME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsHome());
hash = (37 * hash) + GAME_TIME_FIELD_NUMBER;
hash = (53 * hash) + getGameTime();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -348,10 +352,14 @@ public final class PlayerGameTimeNotifyOuterClass {
}
/**
* <pre>
* CmdId: 131
* EnetChannelId: 0
* EnetIsReliable: false
* IsAllowClient: true
* enum CmdId {
* option allow_alias = true;
* NONE = 0;
* CMD_ID = 127;
* ENET_CHANNEL_ID = 0;
* ENET_IS_RELIABLE = 1;
* IS_ALLOW_CLIENT = 1;
* }
* </pre>
*
* Protobuf type {@code PlayerGameTimeNotify}
@@ -393,10 +401,10 @@ public final class PlayerGameTimeNotifyOuterClass {
super.clear();
uid_ = 0;
gameTime_ = 0;
isHome_ = false;
gameTime_ = 0;
return this;
}
@@ -424,8 +432,8 @@ public final class PlayerGameTimeNotifyOuterClass {
public emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.PlayerGameTimeNotify buildPartial() {
emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.PlayerGameTimeNotify result = new emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.PlayerGameTimeNotify(this);
result.uid_ = uid_;
result.gameTime_ = gameTime_;
result.isHome_ = isHome_;
result.gameTime_ = gameTime_;
onBuilt();
return result;
}
@@ -477,12 +485,12 @@ public final class PlayerGameTimeNotifyOuterClass {
if (other.getUid() != 0) {
setUid(other.getUid());
}
if (other.getGameTime() != 0) {
setGameTime(other.getGameTime());
}
if (other.getIsHome() != false) {
setIsHome(other.getIsHome());
}
if (other.getGameTime() != 0) {
setGameTime(other.getGameTime());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -514,7 +522,7 @@ public final class PlayerGameTimeNotifyOuterClass {
private int uid_ ;
/**
* <code>uint32 uid = 7;</code>
* <code>uint32 uid = 15;</code>
* @return The uid.
*/
@java.lang.Override
@@ -522,7 +530,7 @@ public final class PlayerGameTimeNotifyOuterClass {
return uid_;
}
/**
* <code>uint32 uid = 7;</code>
* <code>uint32 uid = 15;</code>
* @param value The uid to set.
* @return This builder for chaining.
*/
@@ -533,7 +541,7 @@ public final class PlayerGameTimeNotifyOuterClass {
return this;
}
/**
* <code>uint32 uid = 7;</code>
* <code>uint32 uid = 15;</code>
* @return This builder for chaining.
*/
public Builder clearUid() {
@@ -543,40 +551,9 @@ public final class PlayerGameTimeNotifyOuterClass {
return this;
}
private int gameTime_ ;
/**
* <code>uint32 game_time = 3;</code>
* @return The gameTime.
*/
@java.lang.Override
public int getGameTime() {
return gameTime_;
}
/**
* <code>uint32 game_time = 3;</code>
* @param value The gameTime to set.
* @return This builder for chaining.
*/
public Builder setGameTime(int value) {
gameTime_ = value;
onChanged();
return this;
}
/**
* <code>uint32 game_time = 3;</code>
* @return This builder for chaining.
*/
public Builder clearGameTime() {
gameTime_ = 0;
onChanged();
return this;
}
private boolean isHome_ ;
/**
* <code>bool is_home = 13;</code>
* <code>bool is_home = 10;</code>
* @return The isHome.
*/
@java.lang.Override
@@ -584,7 +561,7 @@ public final class PlayerGameTimeNotifyOuterClass {
return isHome_;
}
/**
* <code>bool is_home = 13;</code>
* <code>bool is_home = 10;</code>
* @param value The isHome to set.
* @return This builder for chaining.
*/
@@ -595,7 +572,7 @@ public final class PlayerGameTimeNotifyOuterClass {
return this;
}
/**
* <code>bool is_home = 13;</code>
* <code>bool is_home = 10;</code>
* @return This builder for chaining.
*/
public Builder clearIsHome() {
@@ -604,6 +581,37 @@ public final class PlayerGameTimeNotifyOuterClass {
onChanged();
return this;
}
private int gameTime_ ;
/**
* <code>uint32 game_time = 4;</code>
* @return The gameTime.
*/
@java.lang.Override
public int getGameTime() {
return gameTime_;
}
/**
* <code>uint32 game_time = 4;</code>
* @param value The gameTime to set.
* @return This builder for chaining.
*/
public Builder setGameTime(int value) {
gameTime_ = value;
onChanged();
return this;
}
/**
* <code>uint32 game_time = 4;</code>
* @return This builder for chaining.
*/
public Builder clearGameTime() {
gameTime_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -672,8 +680,8 @@ public final class PlayerGameTimeNotifyOuterClass {
static {
java.lang.String[] descriptorData = {
"\n\032PlayerGameTimeNotify.proto\"G\n\024PlayerGa" +
"meTimeNotify\022\013\n\003uid\030\007 \001(\r\022\021\n\tgame_time\030\003" +
" \001(\r\022\017\n\007is_home\030\r \001(\010B\033\n\031emu.grasscutter" +
"meTimeNotify\022\013\n\003uid\030\017 \001(\r\022\017\n\007is_home\030\n \001" +
"(\010\022\021\n\tgame_time\030\004 \001(\rB\033\n\031emu.grasscutter" +
".net.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
@@ -685,7 +693,7 @@ public final class PlayerGameTimeNotifyOuterClass {
internal_static_PlayerGameTimeNotify_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_PlayerGameTimeNotify_descriptor,
new java.lang.String[] { "Uid", "GameTime", "IsHome", });
new java.lang.String[] { "Uid", "IsHome", "GameTime", });
}
// @@protoc_insertion_point(outer_class_scope)