mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-06-05 07:05:03 +08:00
Add new protocol definitions
This commit is contained in:
+117
-117
@@ -19,36 +19,36 @@ public final class SceneAvatarStaminaStepRspOuterClass {
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>bool use_client_rot = 10;</code>
|
||||
* <code>.Vector rot = 12;</code>
|
||||
* @return Whether the rot field is set.
|
||||
*/
|
||||
boolean hasRot();
|
||||
/**
|
||||
* <code>.Vector rot = 12;</code>
|
||||
* @return The rot.
|
||||
*/
|
||||
emu.grasscutter.net.proto.VectorOuterClass.Vector getRot();
|
||||
/**
|
||||
* <code>.Vector rot = 12;</code>
|
||||
*/
|
||||
emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getRotOrBuilder();
|
||||
|
||||
/**
|
||||
* <code>bool use_client_rot = 7;</code>
|
||||
* @return The useClientRot.
|
||||
*/
|
||||
boolean getUseClientRot();
|
||||
|
||||
/**
|
||||
* <code>.Vector rot = 3;</code>
|
||||
* @return Whether the rot field is set.
|
||||
*/
|
||||
boolean hasRot();
|
||||
/**
|
||||
* <code>.Vector rot = 3;</code>
|
||||
* @return The rot.
|
||||
*/
|
||||
emu.grasscutter.net.proto.VectorOuterClass.Vector getRot();
|
||||
/**
|
||||
* <code>.Vector rot = 3;</code>
|
||||
*/
|
||||
emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getRotOrBuilder();
|
||||
|
||||
/**
|
||||
* <code>int32 retcode = 13;</code>
|
||||
* <code>int32 retcode = 4;</code>
|
||||
* @return The retcode.
|
||||
*/
|
||||
int getRetcode();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* CmdId: 284
|
||||
* Obf: FHHPFEOPMKH
|
||||
* CmdId: 28639
|
||||
* Obf: INKMFHKEGIA
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code SceneAvatarStaminaStepRsp}
|
||||
@@ -95,7 +95,17 @@ public final class SceneAvatarStaminaStepRspOuterClass {
|
||||
case 0:
|
||||
done = true;
|
||||
break;
|
||||
case 26: {
|
||||
case 32: {
|
||||
|
||||
retcode_ = input.readInt32();
|
||||
break;
|
||||
}
|
||||
case 56: {
|
||||
|
||||
useClientRot_ = input.readBool();
|
||||
break;
|
||||
}
|
||||
case 98: {
|
||||
emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder subBuilder = null;
|
||||
if (rot_ != null) {
|
||||
subBuilder = rot_.toBuilder();
|
||||
@@ -108,16 +118,6 @@ public final class SceneAvatarStaminaStepRspOuterClass {
|
||||
|
||||
break;
|
||||
}
|
||||
case 80: {
|
||||
|
||||
useClientRot_ = input.readBool();
|
||||
break;
|
||||
}
|
||||
case 104: {
|
||||
|
||||
retcode_ = input.readInt32();
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
if (!parseUnknownField(
|
||||
input, unknownFields, extensionRegistry, tag)) {
|
||||
@@ -150,21 +150,10 @@ public final class SceneAvatarStaminaStepRspOuterClass {
|
||||
emu.grasscutter.net.proto.SceneAvatarStaminaStepRspOuterClass.SceneAvatarStaminaStepRsp.class, emu.grasscutter.net.proto.SceneAvatarStaminaStepRspOuterClass.SceneAvatarStaminaStepRsp.Builder.class);
|
||||
}
|
||||
|
||||
public static final int USE_CLIENT_ROT_FIELD_NUMBER = 10;
|
||||
private boolean useClientRot_;
|
||||
/**
|
||||
* <code>bool use_client_rot = 10;</code>
|
||||
* @return The useClientRot.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public boolean getUseClientRot() {
|
||||
return useClientRot_;
|
||||
}
|
||||
|
||||
public static final int ROT_FIELD_NUMBER = 3;
|
||||
public static final int ROT_FIELD_NUMBER = 12;
|
||||
private emu.grasscutter.net.proto.VectorOuterClass.Vector rot_;
|
||||
/**
|
||||
* <code>.Vector rot = 3;</code>
|
||||
* <code>.Vector rot = 12;</code>
|
||||
* @return Whether the rot field is set.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -172,7 +161,7 @@ public final class SceneAvatarStaminaStepRspOuterClass {
|
||||
return rot_ != null;
|
||||
}
|
||||
/**
|
||||
* <code>.Vector rot = 3;</code>
|
||||
* <code>.Vector rot = 12;</code>
|
||||
* @return The rot.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -180,17 +169,28 @@ public final class SceneAvatarStaminaStepRspOuterClass {
|
||||
return rot_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : rot_;
|
||||
}
|
||||
/**
|
||||
* <code>.Vector rot = 3;</code>
|
||||
* <code>.Vector rot = 12;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getRotOrBuilder() {
|
||||
return getRot();
|
||||
}
|
||||
|
||||
public static final int RETCODE_FIELD_NUMBER = 13;
|
||||
public static final int USE_CLIENT_ROT_FIELD_NUMBER = 7;
|
||||
private boolean useClientRot_;
|
||||
/**
|
||||
* <code>bool use_client_rot = 7;</code>
|
||||
* @return The useClientRot.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public boolean getUseClientRot() {
|
||||
return useClientRot_;
|
||||
}
|
||||
|
||||
public static final int RETCODE_FIELD_NUMBER = 4;
|
||||
private int retcode_;
|
||||
/**
|
||||
* <code>int32 retcode = 13;</code>
|
||||
* <code>int32 retcode = 4;</code>
|
||||
* @return The retcode.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -212,14 +212,14 @@ public final class SceneAvatarStaminaStepRspOuterClass {
|
||||
@java.lang.Override
|
||||
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
||||
throws java.io.IOException {
|
||||
if (rot_ != null) {
|
||||
output.writeMessage(3, getRot());
|
||||
if (retcode_ != 0) {
|
||||
output.writeInt32(4, retcode_);
|
||||
}
|
||||
if (useClientRot_ != false) {
|
||||
output.writeBool(10, useClientRot_);
|
||||
output.writeBool(7, useClientRot_);
|
||||
}
|
||||
if (retcode_ != 0) {
|
||||
output.writeInt32(13, retcode_);
|
||||
if (rot_ != null) {
|
||||
output.writeMessage(12, getRot());
|
||||
}
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
@@ -230,17 +230,17 @@ public final class SceneAvatarStaminaStepRspOuterClass {
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (rot_ != null) {
|
||||
if (retcode_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeMessageSize(3, getRot());
|
||||
.computeInt32Size(4, retcode_);
|
||||
}
|
||||
if (useClientRot_ != false) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeBoolSize(10, useClientRot_);
|
||||
.computeBoolSize(7, useClientRot_);
|
||||
}
|
||||
if (retcode_ != 0) {
|
||||
if (rot_ != null) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeInt32Size(13, retcode_);
|
||||
.computeMessageSize(12, getRot());
|
||||
}
|
||||
size += unknownFields.getSerializedSize();
|
||||
memoizedSize = size;
|
||||
@@ -257,13 +257,13 @@ public final class SceneAvatarStaminaStepRspOuterClass {
|
||||
}
|
||||
emu.grasscutter.net.proto.SceneAvatarStaminaStepRspOuterClass.SceneAvatarStaminaStepRsp other = (emu.grasscutter.net.proto.SceneAvatarStaminaStepRspOuterClass.SceneAvatarStaminaStepRsp) obj;
|
||||
|
||||
if (getUseClientRot()
|
||||
!= other.getUseClientRot()) return false;
|
||||
if (hasRot() != other.hasRot()) return false;
|
||||
if (hasRot()) {
|
||||
if (!getRot()
|
||||
.equals(other.getRot())) return false;
|
||||
}
|
||||
if (getUseClientRot()
|
||||
!= other.getUseClientRot()) return false;
|
||||
if (getRetcode()
|
||||
!= other.getRetcode()) return false;
|
||||
if (!unknownFields.equals(other.unknownFields)) return false;
|
||||
@@ -277,13 +277,13 @@ public final class SceneAvatarStaminaStepRspOuterClass {
|
||||
}
|
||||
int hash = 41;
|
||||
hash = (19 * hash) + getDescriptor().hashCode();
|
||||
hash = (37 * hash) + USE_CLIENT_ROT_FIELD_NUMBER;
|
||||
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
|
||||
getUseClientRot());
|
||||
if (hasRot()) {
|
||||
hash = (37 * hash) + ROT_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getRot().hashCode();
|
||||
}
|
||||
hash = (37 * hash) + USE_CLIENT_ROT_FIELD_NUMBER;
|
||||
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
|
||||
getUseClientRot());
|
||||
hash = (37 * hash) + RETCODE_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getRetcode();
|
||||
hash = (29 * hash) + unknownFields.hashCode();
|
||||
@@ -383,8 +383,8 @@ public final class SceneAvatarStaminaStepRspOuterClass {
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* CmdId: 284
|
||||
* Obf: FHHPFEOPMKH
|
||||
* CmdId: 28639
|
||||
* Obf: INKMFHKEGIA
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code SceneAvatarStaminaStepRsp}
|
||||
@@ -424,14 +424,14 @@ public final class SceneAvatarStaminaStepRspOuterClass {
|
||||
@java.lang.Override
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
useClientRot_ = false;
|
||||
|
||||
if (rotBuilder_ == null) {
|
||||
rot_ = null;
|
||||
} else {
|
||||
rot_ = null;
|
||||
rotBuilder_ = null;
|
||||
}
|
||||
useClientRot_ = false;
|
||||
|
||||
retcode_ = 0;
|
||||
|
||||
return this;
|
||||
@@ -460,12 +460,12 @@ public final class SceneAvatarStaminaStepRspOuterClass {
|
||||
@java.lang.Override
|
||||
public emu.grasscutter.net.proto.SceneAvatarStaminaStepRspOuterClass.SceneAvatarStaminaStepRsp buildPartial() {
|
||||
emu.grasscutter.net.proto.SceneAvatarStaminaStepRspOuterClass.SceneAvatarStaminaStepRsp result = new emu.grasscutter.net.proto.SceneAvatarStaminaStepRspOuterClass.SceneAvatarStaminaStepRsp(this);
|
||||
result.useClientRot_ = useClientRot_;
|
||||
if (rotBuilder_ == null) {
|
||||
result.rot_ = rot_;
|
||||
} else {
|
||||
result.rot_ = rotBuilder_.build();
|
||||
}
|
||||
result.useClientRot_ = useClientRot_;
|
||||
result.retcode_ = retcode_;
|
||||
onBuilt();
|
||||
return result;
|
||||
@@ -515,12 +515,12 @@ public final class SceneAvatarStaminaStepRspOuterClass {
|
||||
|
||||
public Builder mergeFrom(emu.grasscutter.net.proto.SceneAvatarStaminaStepRspOuterClass.SceneAvatarStaminaStepRsp other) {
|
||||
if (other == emu.grasscutter.net.proto.SceneAvatarStaminaStepRspOuterClass.SceneAvatarStaminaStepRsp.getDefaultInstance()) return this;
|
||||
if (other.getUseClientRot() != false) {
|
||||
setUseClientRot(other.getUseClientRot());
|
||||
}
|
||||
if (other.hasRot()) {
|
||||
mergeRot(other.getRot());
|
||||
}
|
||||
if (other.getUseClientRot() != false) {
|
||||
setUseClientRot(other.getUseClientRot());
|
||||
}
|
||||
if (other.getRetcode() != 0) {
|
||||
setRetcode(other.getRetcode());
|
||||
}
|
||||
@@ -553,49 +553,18 @@ public final class SceneAvatarStaminaStepRspOuterClass {
|
||||
return this;
|
||||
}
|
||||
|
||||
private boolean useClientRot_ ;
|
||||
/**
|
||||
* <code>bool use_client_rot = 10;</code>
|
||||
* @return The useClientRot.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public boolean getUseClientRot() {
|
||||
return useClientRot_;
|
||||
}
|
||||
/**
|
||||
* <code>bool use_client_rot = 10;</code>
|
||||
* @param value The useClientRot to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setUseClientRot(boolean value) {
|
||||
|
||||
useClientRot_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>bool use_client_rot = 10;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearUseClientRot() {
|
||||
|
||||
useClientRot_ = false;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private emu.grasscutter.net.proto.VectorOuterClass.Vector rot_;
|
||||
private com.google.protobuf.SingleFieldBuilderV3<
|
||||
emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> rotBuilder_;
|
||||
/**
|
||||
* <code>.Vector rot = 3;</code>
|
||||
* <code>.Vector rot = 12;</code>
|
||||
* @return Whether the rot field is set.
|
||||
*/
|
||||
public boolean hasRot() {
|
||||
return rotBuilder_ != null || rot_ != null;
|
||||
}
|
||||
/**
|
||||
* <code>.Vector rot = 3;</code>
|
||||
* <code>.Vector rot = 12;</code>
|
||||
* @return The rot.
|
||||
*/
|
||||
public emu.grasscutter.net.proto.VectorOuterClass.Vector getRot() {
|
||||
@@ -606,7 +575,7 @@ public final class SceneAvatarStaminaStepRspOuterClass {
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>.Vector rot = 3;</code>
|
||||
* <code>.Vector rot = 12;</code>
|
||||
*/
|
||||
public Builder setRot(emu.grasscutter.net.proto.VectorOuterClass.Vector value) {
|
||||
if (rotBuilder_ == null) {
|
||||
@@ -622,7 +591,7 @@ public final class SceneAvatarStaminaStepRspOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.Vector rot = 3;</code>
|
||||
* <code>.Vector rot = 12;</code>
|
||||
*/
|
||||
public Builder setRot(
|
||||
emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder builderForValue) {
|
||||
@@ -636,7 +605,7 @@ public final class SceneAvatarStaminaStepRspOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.Vector rot = 3;</code>
|
||||
* <code>.Vector rot = 12;</code>
|
||||
*/
|
||||
public Builder mergeRot(emu.grasscutter.net.proto.VectorOuterClass.Vector value) {
|
||||
if (rotBuilder_ == null) {
|
||||
@@ -654,7 +623,7 @@ public final class SceneAvatarStaminaStepRspOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.Vector rot = 3;</code>
|
||||
* <code>.Vector rot = 12;</code>
|
||||
*/
|
||||
public Builder clearRot() {
|
||||
if (rotBuilder_ == null) {
|
||||
@@ -668,7 +637,7 @@ public final class SceneAvatarStaminaStepRspOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.Vector rot = 3;</code>
|
||||
* <code>.Vector rot = 12;</code>
|
||||
*/
|
||||
public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getRotBuilder() {
|
||||
|
||||
@@ -676,7 +645,7 @@ public final class SceneAvatarStaminaStepRspOuterClass {
|
||||
return getRotFieldBuilder().getBuilder();
|
||||
}
|
||||
/**
|
||||
* <code>.Vector rot = 3;</code>
|
||||
* <code>.Vector rot = 12;</code>
|
||||
*/
|
||||
public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getRotOrBuilder() {
|
||||
if (rotBuilder_ != null) {
|
||||
@@ -687,7 +656,7 @@ public final class SceneAvatarStaminaStepRspOuterClass {
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>.Vector rot = 3;</code>
|
||||
* <code>.Vector rot = 12;</code>
|
||||
*/
|
||||
private com.google.protobuf.SingleFieldBuilderV3<
|
||||
emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder>
|
||||
@@ -703,9 +672,40 @@ public final class SceneAvatarStaminaStepRspOuterClass {
|
||||
return rotBuilder_;
|
||||
}
|
||||
|
||||
private boolean useClientRot_ ;
|
||||
/**
|
||||
* <code>bool use_client_rot = 7;</code>
|
||||
* @return The useClientRot.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public boolean getUseClientRot() {
|
||||
return useClientRot_;
|
||||
}
|
||||
/**
|
||||
* <code>bool use_client_rot = 7;</code>
|
||||
* @param value The useClientRot to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setUseClientRot(boolean value) {
|
||||
|
||||
useClientRot_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>bool use_client_rot = 7;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearUseClientRot() {
|
||||
|
||||
useClientRot_ = false;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int retcode_ ;
|
||||
/**
|
||||
* <code>int32 retcode = 13;</code>
|
||||
* <code>int32 retcode = 4;</code>
|
||||
* @return The retcode.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -713,7 +713,7 @@ public final class SceneAvatarStaminaStepRspOuterClass {
|
||||
return retcode_;
|
||||
}
|
||||
/**
|
||||
* <code>int32 retcode = 13;</code>
|
||||
* <code>int32 retcode = 4;</code>
|
||||
* @param value The retcode to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
@@ -724,7 +724,7 @@ public final class SceneAvatarStaminaStepRspOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>int32 retcode = 13;</code>
|
||||
* <code>int32 retcode = 4;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearRetcode() {
|
||||
@@ -801,9 +801,9 @@ public final class SceneAvatarStaminaStepRspOuterClass {
|
||||
static {
|
||||
java.lang.String[] descriptorData = {
|
||||
"\n\037SceneAvatarStaminaStepRsp.proto\032\014Vecto" +
|
||||
"r.proto\"Z\n\031SceneAvatarStaminaStepRsp\022\026\n\016" +
|
||||
"use_client_rot\030\n \001(\010\022\024\n\003rot\030\003 \001(\0132\007.Vect" +
|
||||
"or\022\017\n\007retcode\030\r \001(\005B\033\n\031emu.grasscutter.n" +
|
||||
"r.proto\"Z\n\031SceneAvatarStaminaStepRsp\022\024\n\003" +
|
||||
"rot\030\014 \001(\0132\007.Vector\022\026\n\016use_client_rot\030\007 \001" +
|
||||
"(\010\022\017\n\007retcode\030\004 \001(\005B\033\n\031emu.grasscutter.n" +
|
||||
"et.protob\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
@@ -816,7 +816,7 @@ public final class SceneAvatarStaminaStepRspOuterClass {
|
||||
internal_static_SceneAvatarStaminaStepRsp_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_SceneAvatarStaminaStepRsp_descriptor,
|
||||
new java.lang.String[] { "UseClientRot", "Rot", "Retcode", });
|
||||
new java.lang.String[] { "Rot", "UseClientRot", "Retcode", });
|
||||
emu.grasscutter.net.proto.VectorOuterClass.getDescriptor();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user