Fix cooking packet definitions

thanks nick!
This commit is contained in:
KingRainbow44
2023-05-17 23:44:53 -04:00
Unverified
2 changed files with 142 additions and 264 deletions
@@ -18,17 +18,11 @@ public final class PlayerCookReqOuterClass {
com.google.protobuf.MessageOrBuilder {
/**
* <code>uint32 cook_count = 13;</code>
*
*
* <pre>
* AIBLNBAFJOL
* </pre>
*
* <code>uint32 qte_quality = 13;</code>
*
* @return The qteQuality.
* @return The cookCount.
*/
int getQteQuality();
int getCookCount();
/**
* <code>uint32 assist_avatar = 1;</code>
@@ -38,17 +32,11 @@ public final class PlayerCookReqOuterClass {
int getAssistAvatar();
/**
* <code>uint32 qte_quality = 6;</code>
*
*
* <pre>
* EHPKNEPMOAO
* </pre>
*
* <code>uint32 cook_count = 6;</code>
*
* @return The cookCount.
* @return The qteQuality.
*/
int getCookCount();
int getQteQuality();
/**
* <code>uint32 recipe_id = 7;</code>
@@ -115,7 +103,7 @@ public final class PlayerCookReqOuterClass {
}
case 48:
{
cookCount_ = input.readUInt32();
qteQuality_ = input.readUInt32();
break;
}
case 56:
@@ -125,7 +113,7 @@ public final class PlayerCookReqOuterClass {
}
case 104:
{
qteQuality_ = input.readUInt32();
cookCount_ = input.readUInt32();
break;
}
default:
@@ -162,22 +150,16 @@ public final class PlayerCookReqOuterClass {
emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq.Builder.class);
}
public static final int QTE_QUALITY_FIELD_NUMBER = 13;
private int qteQuality_;
public static final int COOK_COUNT_FIELD_NUMBER = 13;
private int cookCount_;
/**
* <code>uint32 cook_count = 13;</code>
*
*
* <pre>
* AIBLNBAFJOL
* </pre>
*
* <code>uint32 qte_quality = 13;</code>
*
* @return The qteQuality.
* @return The cookCount.
*/
@java.lang.Override
public int getQteQuality() {
return qteQuality_;
public int getCookCount() {
return cookCount_;
}
public static final int ASSIST_AVATAR_FIELD_NUMBER = 1;
@@ -192,22 +174,16 @@ public final class PlayerCookReqOuterClass {
return assistAvatar_;
}
public static final int COOK_COUNT_FIELD_NUMBER = 6;
private int cookCount_;
public static final int QTE_QUALITY_FIELD_NUMBER = 6;
private int qteQuality_;
/**
* <code>uint32 qte_quality = 6;</code>
*
*
* <pre>
* EHPKNEPMOAO
* </pre>
*
* <code>uint32 cook_count = 6;</code>
*
* @return The cookCount.
* @return The qteQuality.
*/
@java.lang.Override
public int getCookCount() {
return cookCount_;
public int getQteQuality() {
return qteQuality_;
}
public static final int RECIPE_ID_FIELD_NUMBER = 7;
@@ -239,14 +215,14 @@ public final class PlayerCookReqOuterClass {
if (assistAvatar_ != 0) {
output.writeUInt32(1, assistAvatar_);
}
if (cookCount_ != 0) {
output.writeUInt32(6, cookCount_);
if (qteQuality_ != 0) {
output.writeUInt32(6, qteQuality_);
}
if (recipeId_ != 0) {
output.writeUInt32(7, recipeId_);
}
if (qteQuality_ != 0) {
output.writeUInt32(13, qteQuality_);
if (cookCount_ != 0) {
output.writeUInt32(13, cookCount_);
}
unknownFields.writeTo(output);
}
@@ -260,14 +236,14 @@ public final class PlayerCookReqOuterClass {
if (assistAvatar_ != 0) {
size += com.google.protobuf.CodedOutputStream.computeUInt32Size(1, assistAvatar_);
}
if (cookCount_ != 0) {
size += com.google.protobuf.CodedOutputStream.computeUInt32Size(6, cookCount_);
if (qteQuality_ != 0) {
size += com.google.protobuf.CodedOutputStream.computeUInt32Size(6, qteQuality_);
}
if (recipeId_ != 0) {
size += com.google.protobuf.CodedOutputStream.computeUInt32Size(7, recipeId_);
}
if (qteQuality_ != 0) {
size += com.google.protobuf.CodedOutputStream.computeUInt32Size(13, qteQuality_);
if (cookCount_ != 0) {
size += com.google.protobuf.CodedOutputStream.computeUInt32Size(13, cookCount_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
@@ -285,9 +261,9 @@ public final class PlayerCookReqOuterClass {
emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq other =
(emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq) obj;
if (getQteQuality() != other.getQteQuality()) return false;
if (getAssistAvatar() != other.getAssistAvatar()) return false;
if (getCookCount() != other.getCookCount()) return false;
if (getAssistAvatar() != other.getAssistAvatar()) return false;
if (getQteQuality() != other.getQteQuality()) return false;
if (getRecipeId() != other.getRecipeId()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
@@ -300,12 +276,12 @@ public final class PlayerCookReqOuterClass {
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + QTE_QUALITY_FIELD_NUMBER;
hash = (53 * hash) + getQteQuality();
hash = (37 * hash) + ASSIST_AVATAR_FIELD_NUMBER;
hash = (53 * hash) + getAssistAvatar();
hash = (37 * hash) + COOK_COUNT_FIELD_NUMBER;
hash = (53 * hash) + getCookCount();
hash = (37 * hash) + ASSIST_AVATAR_FIELD_NUMBER;
hash = (53 * hash) + getAssistAvatar();
hash = (37 * hash) + QTE_QUALITY_FIELD_NUMBER;
hash = (53 * hash) + getQteQuality();
hash = (37 * hash) + RECIPE_ID_FIELD_NUMBER;
hash = (53 * hash) + getRecipeId();
hash = (29 * hash) + unknownFields.hashCode();
@@ -459,11 +435,11 @@ public final class PlayerCookReqOuterClass {
@java.lang.Override
public Builder clear() {
super.clear();
qteQuality_ = 0;
cookCount_ = 0;
assistAvatar_ = 0;
cookCount_ = 0;
qteQuality_ = 0;
recipeId_ = 0;
@@ -495,9 +471,9 @@ public final class PlayerCookReqOuterClass {
public emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq buildPartial() {
emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq result =
new emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq(this);
result.qteQuality_ = qteQuality_;
result.assistAvatar_ = assistAvatar_;
result.cookCount_ = cookCount_;
result.assistAvatar_ = assistAvatar_;
result.qteQuality_ = qteQuality_;
result.recipeId_ = recipeId_;
onBuilt();
return result;
@@ -553,14 +529,14 @@ public final class PlayerCookReqOuterClass {
if (other
== emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq.getDefaultInstance())
return this;
if (other.getQteQuality() != 0) {
setQteQuality(other.getQteQuality());
if (other.getCookCount() != 0) {
setCookCount(other.getCookCount());
}
if (other.getAssistAvatar() != 0) {
setAssistAvatar(other.getAssistAvatar());
}
if (other.getCookCount() != 0) {
setCookCount(other.getCookCount());
if (other.getQteQuality() != 0) {
setQteQuality(other.getQteQuality());
}
if (other.getRecipeId() != 0) {
setRecipeId(other.getRecipeId());
@@ -596,54 +572,36 @@ public final class PlayerCookReqOuterClass {
return this;
}
private int qteQuality_;
private int cookCount_;
/**
* <code>uint32 cook_count = 13;</code>
*
*
* <pre>
* AIBLNBAFJOL
* </pre>
*
* <code>uint32 qte_quality = 13;</code>
*
* @return The qteQuality.
* @return The cookCount.
*/
@java.lang.Override
public int getQteQuality() {
return qteQuality_;
public int getCookCount() {
return cookCount_;
}
/**
* <code>uint32 cook_count = 13;</code>
*
*
* <pre>
* AIBLNBAFJOL
* </pre>
*
* <code>uint32 qte_quality = 13;</code>
*
* @param value The qteQuality to set.
* @param value The cookCount to set.
* @return This builder for chaining.
*/
public Builder setQteQuality(int value) {
public Builder setCookCount(int value) {
qteQuality_ = value;
cookCount_ = value;
onChanged();
return this;
}
/**
*
*
* <pre>
* AIBLNBAFJOL
* </pre>
*
* <code>uint32 qte_quality = 13;</code>
* <code>uint32 cook_count = 13;</code>
*
* @return This builder for chaining.
*/
public Builder clearQteQuality() {
public Builder clearCookCount() {
qteQuality_ = 0;
cookCount_ = 0;
onChanged();
return this;
}
@@ -682,54 +640,36 @@ public final class PlayerCookReqOuterClass {
return this;
}
private int cookCount_;
private int qteQuality_;
/**
* <code>uint32 qte_quality = 6;</code>
*
*
* <pre>
* EHPKNEPMOAO
* </pre>
*
* <code>uint32 cook_count = 6;</code>
*
* @return The cookCount.
* @return The qteQuality.
*/
@java.lang.Override
public int getCookCount() {
return cookCount_;
public int getQteQuality() {
return qteQuality_;
}
/**
* <code>uint32 qte_quality = 6;</code>
*
*
* <pre>
* EHPKNEPMOAO
* </pre>
*
* <code>uint32 cook_count = 6;</code>
*
* @param value The cookCount to set.
* @param value The qteQuality to set.
* @return This builder for chaining.
*/
public Builder setCookCount(int value) {
public Builder setQteQuality(int value) {
cookCount_ = value;
qteQuality_ = value;
onChanged();
return this;
}
/**
*
*
* <pre>
* EHPKNEPMOAO
* </pre>
*
* <code>uint32 cook_count = 6;</code>
* <code>uint32 qte_quality = 6;</code>
*
* @return This builder for chaining.
*/
public Builder clearCookCount() {
public Builder clearQteQuality() {
cookCount_ = 0;
qteQuality_ = 0;
onChanged();
return this;
}
@@ -836,11 +776,10 @@ public final class PlayerCookReqOuterClass {
static {
java.lang.String[] descriptorData = {
"\n\023PlayerCookReq.proto\"b\n\rPlayerCookReq\022\023"
+ "\n\013qte_quality\030\r \001(\r\022\025\n\rassist_avatar\030\001 \001"
+ "(\r\022\022\n\ncook_count\030\006 \001(\r\022\021\n\trecipe_id\030\007 \001("
+ "\rB!\n\031emu.grasscutter.net.protoZ\004/genb\006pr"
+ "oto3"
"\n\023PlayerCookReq.proto\"b\n\rPlayerCookReq\022\022"
+ "\n\ncook_count\030\r \001(\r\022\025\n\rassist_avatar\030\001 \001("
+ "\r\022\023\n\013qte_quality\030\006 \001(\r\022\021\n\trecipe_id\030\007 \001("
+ "\rB\033\n\031emu.grasscutter.net.protob\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -850,7 +789,7 @@ public final class PlayerCookReqOuterClass {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_PlayerCookReq_descriptor,
new java.lang.String[] {
"QteQuality", "AssistAvatar", "CookCount", "RecipeId",
"CookCount", "AssistAvatar", "QteQuality", "RecipeId",
});
}