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,35 +19,39 @@ public final class PlayerCookReqOuterClass {
com.google.protobuf.MessageOrBuilder {
/**
* <code>uint32 cook_count = 1;</code>
* @return The cookCount.
*/
int getCookCount();
/**
* <code>uint32 qte_quality = 12;</code>
* @return The qteQuality.
*/
int getQteQuality();
/**
* <code>uint32 recipe_id = 8;</code>
* <code>uint32 recipe_id = 1;</code>
* @return The recipeId.
*/
int getRecipeId();
/**
* <code>uint32 assist_avatar = 14;</code>
* <code>uint32 qte_quality = 5;</code>
* @return The qteQuality.
*/
int getQteQuality();
/**
* <code>uint32 cook_count = 7;</code>
* @return The cookCount.
*/
int getCookCount();
/**
* <code>uint32 assist_avatar = 12;</code>
* @return The assistAvatar.
*/
int getAssistAvatar();
}
/**
* <pre>
* CmdId: 194
* EnetChannelId: 0
* EnetIsReliable: false
* IsAllowClient: true
* enum CmdId {
* option allow_alias = true;
* NONE = 0;
* CMD_ID = 105;
* ENET_CHANNEL_ID = 0;
* ENET_IS_RELIABLE = 1;
* IS_ALLOW_CLIENT = 1;
* }
* </pre>
*
* Protobuf type {@code PlayerCookReq}
@@ -96,20 +100,20 @@ public final class PlayerCookReqOuterClass {
break;
case 8: {
cookCount_ = input.readUInt32();
break;
}
case 64: {
recipeId_ = input.readUInt32();
break;
}
case 96: {
case 40: {
qteQuality_ = input.readUInt32();
break;
}
case 112: {
case 56: {
cookCount_ = input.readUInt32();
break;
}
case 96: {
assistAvatar_ = input.readUInt32();
break;
@@ -146,32 +150,10 @@ public final class PlayerCookReqOuterClass {
emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq.class, emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq.Builder.class);
}
public static final int COOK_COUNT_FIELD_NUMBER = 1;
private int cookCount_;
/**
* <code>uint32 cook_count = 1;</code>
* @return The cookCount.
*/
@java.lang.Override
public int getCookCount() {
return cookCount_;
}
public static final int QTE_QUALITY_FIELD_NUMBER = 12;
private int qteQuality_;
/**
* <code>uint32 qte_quality = 12;</code>
* @return The qteQuality.
*/
@java.lang.Override
public int getQteQuality() {
return qteQuality_;
}
public static final int RECIPE_ID_FIELD_NUMBER = 8;
public static final int RECIPE_ID_FIELD_NUMBER = 1;
private int recipeId_;
/**
* <code>uint32 recipe_id = 8;</code>
* <code>uint32 recipe_id = 1;</code>
* @return The recipeId.
*/
@java.lang.Override
@@ -179,10 +161,32 @@ public final class PlayerCookReqOuterClass {
return recipeId_;
}
public static final int ASSIST_AVATAR_FIELD_NUMBER = 14;
public static final int QTE_QUALITY_FIELD_NUMBER = 5;
private int qteQuality_;
/**
* <code>uint32 qte_quality = 5;</code>
* @return The qteQuality.
*/
@java.lang.Override
public int getQteQuality() {
return qteQuality_;
}
public static final int COOK_COUNT_FIELD_NUMBER = 7;
private int cookCount_;
/**
* <code>uint32 cook_count = 7;</code>
* @return The cookCount.
*/
@java.lang.Override
public int getCookCount() {
return cookCount_;
}
public static final int ASSIST_AVATAR_FIELD_NUMBER = 12;
private int assistAvatar_;
/**
* <code>uint32 assist_avatar = 14;</code>
* <code>uint32 assist_avatar = 12;</code>
* @return The assistAvatar.
*/
@java.lang.Override
@@ -204,17 +208,17 @@ public final class PlayerCookReqOuterClass {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (cookCount_ != 0) {
output.writeUInt32(1, cookCount_);
}
if (recipeId_ != 0) {
output.writeUInt32(8, recipeId_);
output.writeUInt32(1, recipeId_);
}
if (qteQuality_ != 0) {
output.writeUInt32(12, qteQuality_);
output.writeUInt32(5, qteQuality_);
}
if (cookCount_ != 0) {
output.writeUInt32(7, cookCount_);
}
if (assistAvatar_ != 0) {
output.writeUInt32(14, assistAvatar_);
output.writeUInt32(12, assistAvatar_);
}
unknownFields.writeTo(output);
}
@@ -225,21 +229,21 @@ public final class PlayerCookReqOuterClass {
if (size != -1) return size;
size = 0;
if (cookCount_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, cookCount_);
}
if (recipeId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(8, recipeId_);
.computeUInt32Size(1, recipeId_);
}
if (qteQuality_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(12, qteQuality_);
.computeUInt32Size(5, qteQuality_);
}
if (cookCount_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(7, cookCount_);
}
if (assistAvatar_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(14, assistAvatar_);
.computeUInt32Size(12, assistAvatar_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
@@ -256,12 +260,12 @@ public final class PlayerCookReqOuterClass {
}
emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq other = (emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq) obj;
if (getCookCount()
!= other.getCookCount()) return false;
if (getQteQuality()
!= other.getQteQuality()) return false;
if (getRecipeId()
!= other.getRecipeId()) return false;
if (getQteQuality()
!= other.getQteQuality()) return false;
if (getCookCount()
!= other.getCookCount()) return false;
if (getAssistAvatar()
!= other.getAssistAvatar()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
@@ -275,12 +279,12 @@ public final class PlayerCookReqOuterClass {
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + COOK_COUNT_FIELD_NUMBER;
hash = (53 * hash) + getCookCount();
hash = (37 * hash) + QTE_QUALITY_FIELD_NUMBER;
hash = (53 * hash) + getQteQuality();
hash = (37 * hash) + RECIPE_ID_FIELD_NUMBER;
hash = (53 * hash) + getRecipeId();
hash = (37 * hash) + QTE_QUALITY_FIELD_NUMBER;
hash = (53 * hash) + getQteQuality();
hash = (37 * hash) + COOK_COUNT_FIELD_NUMBER;
hash = (53 * hash) + getCookCount();
hash = (37 * hash) + ASSIST_AVATAR_FIELD_NUMBER;
hash = (53 * hash) + getAssistAvatar();
hash = (29 * hash) + unknownFields.hashCode();
@@ -380,10 +384,14 @@ public final class PlayerCookReqOuterClass {
}
/**
* <pre>
* CmdId: 194
* EnetChannelId: 0
* EnetIsReliable: false
* IsAllowClient: true
* enum CmdId {
* option allow_alias = true;
* NONE = 0;
* CMD_ID = 105;
* ENET_CHANNEL_ID = 0;
* ENET_IS_RELIABLE = 1;
* IS_ALLOW_CLIENT = 1;
* }
* </pre>
*
* Protobuf type {@code PlayerCookReq}
@@ -423,11 +431,11 @@ public final class PlayerCookReqOuterClass {
@java.lang.Override
public Builder clear() {
super.clear();
cookCount_ = 0;
recipeId_ = 0;
qteQuality_ = 0;
recipeId_ = 0;
cookCount_ = 0;
assistAvatar_ = 0;
@@ -457,9 +465,9 @@ public final class PlayerCookReqOuterClass {
@java.lang.Override
public emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq buildPartial() {
emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq result = new emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq(this);
result.cookCount_ = cookCount_;
result.qteQuality_ = qteQuality_;
result.recipeId_ = recipeId_;
result.qteQuality_ = qteQuality_;
result.cookCount_ = cookCount_;
result.assistAvatar_ = assistAvatar_;
onBuilt();
return result;
@@ -509,14 +517,14 @@ public final class PlayerCookReqOuterClass {
public Builder mergeFrom(emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq other) {
if (other == emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq.getDefaultInstance()) return this;
if (other.getCookCount() != 0) {
setCookCount(other.getCookCount());
if (other.getRecipeId() != 0) {
setRecipeId(other.getRecipeId());
}
if (other.getQteQuality() != 0) {
setQteQuality(other.getQteQuality());
}
if (other.getRecipeId() != 0) {
setRecipeId(other.getRecipeId());
if (other.getCookCount() != 0) {
setCookCount(other.getCookCount());
}
if (other.getAssistAvatar() != 0) {
setAssistAvatar(other.getAssistAvatar());
@@ -550,71 +558,9 @@ public final class PlayerCookReqOuterClass {
return this;
}
private int cookCount_ ;
/**
* <code>uint32 cook_count = 1;</code>
* @return The cookCount.
*/
@java.lang.Override
public int getCookCount() {
return cookCount_;
}
/**
* <code>uint32 cook_count = 1;</code>
* @param value The cookCount to set.
* @return This builder for chaining.
*/
public Builder setCookCount(int value) {
cookCount_ = value;
onChanged();
return this;
}
/**
* <code>uint32 cook_count = 1;</code>
* @return This builder for chaining.
*/
public Builder clearCookCount() {
cookCount_ = 0;
onChanged();
return this;
}
private int qteQuality_ ;
/**
* <code>uint32 qte_quality = 12;</code>
* @return The qteQuality.
*/
@java.lang.Override
public int getQteQuality() {
return qteQuality_;
}
/**
* <code>uint32 qte_quality = 12;</code>
* @param value The qteQuality to set.
* @return This builder for chaining.
*/
public Builder setQteQuality(int value) {
qteQuality_ = value;
onChanged();
return this;
}
/**
* <code>uint32 qte_quality = 12;</code>
* @return This builder for chaining.
*/
public Builder clearQteQuality() {
qteQuality_ = 0;
onChanged();
return this;
}
private int recipeId_ ;
/**
* <code>uint32 recipe_id = 8;</code>
* <code>uint32 recipe_id = 1;</code>
* @return The recipeId.
*/
@java.lang.Override
@@ -622,7 +568,7 @@ public final class PlayerCookReqOuterClass {
return recipeId_;
}
/**
* <code>uint32 recipe_id = 8;</code>
* <code>uint32 recipe_id = 1;</code>
* @param value The recipeId to set.
* @return This builder for chaining.
*/
@@ -633,7 +579,7 @@ public final class PlayerCookReqOuterClass {
return this;
}
/**
* <code>uint32 recipe_id = 8;</code>
* <code>uint32 recipe_id = 1;</code>
* @return This builder for chaining.
*/
public Builder clearRecipeId() {
@@ -643,9 +589,71 @@ public final class PlayerCookReqOuterClass {
return this;
}
private int qteQuality_ ;
/**
* <code>uint32 qte_quality = 5;</code>
* @return The qteQuality.
*/
@java.lang.Override
public int getQteQuality() {
return qteQuality_;
}
/**
* <code>uint32 qte_quality = 5;</code>
* @param value The qteQuality to set.
* @return This builder for chaining.
*/
public Builder setQteQuality(int value) {
qteQuality_ = value;
onChanged();
return this;
}
/**
* <code>uint32 qte_quality = 5;</code>
* @return This builder for chaining.
*/
public Builder clearQteQuality() {
qteQuality_ = 0;
onChanged();
return this;
}
private int cookCount_ ;
/**
* <code>uint32 cook_count = 7;</code>
* @return The cookCount.
*/
@java.lang.Override
public int getCookCount() {
return cookCount_;
}
/**
* <code>uint32 cook_count = 7;</code>
* @param value The cookCount to set.
* @return This builder for chaining.
*/
public Builder setCookCount(int value) {
cookCount_ = value;
onChanged();
return this;
}
/**
* <code>uint32 cook_count = 7;</code>
* @return This builder for chaining.
*/
public Builder clearCookCount() {
cookCount_ = 0;
onChanged();
return this;
}
private int assistAvatar_ ;
/**
* <code>uint32 assist_avatar = 14;</code>
* <code>uint32 assist_avatar = 12;</code>
* @return The assistAvatar.
*/
@java.lang.Override
@@ -653,7 +661,7 @@ public final class PlayerCookReqOuterClass {
return assistAvatar_;
}
/**
* <code>uint32 assist_avatar = 14;</code>
* <code>uint32 assist_avatar = 12;</code>
* @param value The assistAvatar to set.
* @return This builder for chaining.
*/
@@ -664,7 +672,7 @@ public final class PlayerCookReqOuterClass {
return this;
}
/**
* <code>uint32 assist_avatar = 14;</code>
* <code>uint32 assist_avatar = 12;</code>
* @return This builder for chaining.
*/
public Builder clearAssistAvatar() {
@@ -740,9 +748,9 @@ public final class PlayerCookReqOuterClass {
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\023PlayerCookReq.proto\"b\n\rPlayerCookReq\022\022" +
"\n\ncook_count\030\001 \001(\r\022\023\n\013qte_quality\030\014 \001(\r\022" +
"\021\n\trecipe_id\030\010 \001(\r\022\025\n\rassist_avatar\030\016 \001(" +
"\n\023PlayerCookReq.proto\"b\n\rPlayerCookReq\022\021" +
"\n\trecipe_id\030\001 \001(\r\022\023\n\013qte_quality\030\005 \001(\r\022\022" +
"\n\ncook_count\030\007 \001(\r\022\025\n\rassist_avatar\030\014 \001(" +
"\rB\033\n\031emu.grasscutter.net.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
@@ -754,7 +762,7 @@ public final class PlayerCookReqOuterClass {
internal_static_PlayerCookReq_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_PlayerCookReq_descriptor,
new java.lang.String[] { "CookCount", "QteQuality", "RecipeId", "AssistAvatar", });
new java.lang.String[] { "RecipeId", "QteQuality", "CookCount", "AssistAvatar", });
}
// @@protoc_insertion_point(outer_class_scope)