mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-06-05 12:53:34 +08:00
Update(5.0): protocol definitions
This commit is contained in:
@@ -19,26 +19,30 @@ public final class AiSyncInfoOuterClass {
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>uint32 entity_id = 2;</code>
|
||||
* <code>uint32 entity_id = 1;</code>
|
||||
* @return The entityId.
|
||||
*/
|
||||
int getEntityId();
|
||||
|
||||
/**
|
||||
* <code>bool has_path_to_target = 4;</code>
|
||||
* <code>bool has_path_to_target = 7;</code>
|
||||
* @return The hasPathToTarget.
|
||||
*/
|
||||
boolean getHasPathToTarget();
|
||||
|
||||
/**
|
||||
* <code>bool is_self_killing = 1;</code>
|
||||
* <pre>
|
||||
* bool类型字段可能不对
|
||||
* </pre>
|
||||
*
|
||||
* <code>bool is_self_killing = 12;</code>
|
||||
* @return The isSelfKilling.
|
||||
*/
|
||||
boolean getIsSelfKilling();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Obf: HLGFNMAEPJO
|
||||
* 5.0.0
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code AiSyncInfo}
|
||||
@@ -87,19 +91,19 @@ public final class AiSyncInfoOuterClass {
|
||||
break;
|
||||
case 8: {
|
||||
|
||||
isSelfKilling_ = input.readBool();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
|
||||
entityId_ = input.readUInt32();
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
case 56: {
|
||||
|
||||
hasPathToTarget_ = input.readBool();
|
||||
break;
|
||||
}
|
||||
case 96: {
|
||||
|
||||
isSelfKilling_ = input.readBool();
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
if (!parseUnknownField(
|
||||
input, unknownFields, extensionRegistry, tag)) {
|
||||
@@ -132,10 +136,10 @@ public final class AiSyncInfoOuterClass {
|
||||
emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo.class, emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo.Builder.class);
|
||||
}
|
||||
|
||||
public static final int ENTITY_ID_FIELD_NUMBER = 2;
|
||||
public static final int ENTITY_ID_FIELD_NUMBER = 1;
|
||||
private int entityId_;
|
||||
/**
|
||||
* <code>uint32 entity_id = 2;</code>
|
||||
* <code>uint32 entity_id = 1;</code>
|
||||
* @return The entityId.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -143,10 +147,10 @@ public final class AiSyncInfoOuterClass {
|
||||
return entityId_;
|
||||
}
|
||||
|
||||
public static final int HAS_PATH_TO_TARGET_FIELD_NUMBER = 4;
|
||||
public static final int HAS_PATH_TO_TARGET_FIELD_NUMBER = 7;
|
||||
private boolean hasPathToTarget_;
|
||||
/**
|
||||
* <code>bool has_path_to_target = 4;</code>
|
||||
* <code>bool has_path_to_target = 7;</code>
|
||||
* @return The hasPathToTarget.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -154,10 +158,14 @@ public final class AiSyncInfoOuterClass {
|
||||
return hasPathToTarget_;
|
||||
}
|
||||
|
||||
public static final int IS_SELF_KILLING_FIELD_NUMBER = 1;
|
||||
public static final int IS_SELF_KILLING_FIELD_NUMBER = 12;
|
||||
private boolean isSelfKilling_;
|
||||
/**
|
||||
* <code>bool is_self_killing = 1;</code>
|
||||
* <pre>
|
||||
* bool类型字段可能不对
|
||||
* </pre>
|
||||
*
|
||||
* <code>bool is_self_killing = 12;</code>
|
||||
* @return The isSelfKilling.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -179,14 +187,14 @@ public final class AiSyncInfoOuterClass {
|
||||
@java.lang.Override
|
||||
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
||||
throws java.io.IOException {
|
||||
if (isSelfKilling_ != false) {
|
||||
output.writeBool(1, isSelfKilling_);
|
||||
}
|
||||
if (entityId_ != 0) {
|
||||
output.writeUInt32(2, entityId_);
|
||||
output.writeUInt32(1, entityId_);
|
||||
}
|
||||
if (hasPathToTarget_ != false) {
|
||||
output.writeBool(4, hasPathToTarget_);
|
||||
output.writeBool(7, hasPathToTarget_);
|
||||
}
|
||||
if (isSelfKilling_ != false) {
|
||||
output.writeBool(12, isSelfKilling_);
|
||||
}
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
@@ -197,17 +205,17 @@ public final class AiSyncInfoOuterClass {
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (isSelfKilling_ != false) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeBoolSize(1, isSelfKilling_);
|
||||
}
|
||||
if (entityId_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt32Size(2, entityId_);
|
||||
.computeUInt32Size(1, entityId_);
|
||||
}
|
||||
if (hasPathToTarget_ != false) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeBoolSize(4, hasPathToTarget_);
|
||||
.computeBoolSize(7, hasPathToTarget_);
|
||||
}
|
||||
if (isSelfKilling_ != false) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeBoolSize(12, isSelfKilling_);
|
||||
}
|
||||
size += unknownFields.getSerializedSize();
|
||||
memoizedSize = size;
|
||||
@@ -346,7 +354,7 @@ public final class AiSyncInfoOuterClass {
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Obf: HLGFNMAEPJO
|
||||
* 5.0.0
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code AiSyncInfo}
|
||||
@@ -509,7 +517,7 @@ public final class AiSyncInfoOuterClass {
|
||||
|
||||
private int entityId_ ;
|
||||
/**
|
||||
* <code>uint32 entity_id = 2;</code>
|
||||
* <code>uint32 entity_id = 1;</code>
|
||||
* @return The entityId.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -517,7 +525,7 @@ public final class AiSyncInfoOuterClass {
|
||||
return entityId_;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 entity_id = 2;</code>
|
||||
* <code>uint32 entity_id = 1;</code>
|
||||
* @param value The entityId to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
@@ -528,7 +536,7 @@ public final class AiSyncInfoOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 entity_id = 2;</code>
|
||||
* <code>uint32 entity_id = 1;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearEntityId() {
|
||||
@@ -540,7 +548,7 @@ public final class AiSyncInfoOuterClass {
|
||||
|
||||
private boolean hasPathToTarget_ ;
|
||||
/**
|
||||
* <code>bool has_path_to_target = 4;</code>
|
||||
* <code>bool has_path_to_target = 7;</code>
|
||||
* @return The hasPathToTarget.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -548,7 +556,7 @@ public final class AiSyncInfoOuterClass {
|
||||
return hasPathToTarget_;
|
||||
}
|
||||
/**
|
||||
* <code>bool has_path_to_target = 4;</code>
|
||||
* <code>bool has_path_to_target = 7;</code>
|
||||
* @param value The hasPathToTarget to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
@@ -559,7 +567,7 @@ public final class AiSyncInfoOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>bool has_path_to_target = 4;</code>
|
||||
* <code>bool has_path_to_target = 7;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearHasPathToTarget() {
|
||||
@@ -571,7 +579,11 @@ public final class AiSyncInfoOuterClass {
|
||||
|
||||
private boolean isSelfKilling_ ;
|
||||
/**
|
||||
* <code>bool is_self_killing = 1;</code>
|
||||
* <pre>
|
||||
* bool类型字段可能不对
|
||||
* </pre>
|
||||
*
|
||||
* <code>bool is_self_killing = 12;</code>
|
||||
* @return The isSelfKilling.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -579,7 +591,11 @@ public final class AiSyncInfoOuterClass {
|
||||
return isSelfKilling_;
|
||||
}
|
||||
/**
|
||||
* <code>bool is_self_killing = 1;</code>
|
||||
* <pre>
|
||||
* bool类型字段可能不对
|
||||
* </pre>
|
||||
*
|
||||
* <code>bool is_self_killing = 12;</code>
|
||||
* @param value The isSelfKilling to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
@@ -590,7 +606,11 @@ public final class AiSyncInfoOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>bool is_self_killing = 1;</code>
|
||||
* <pre>
|
||||
* bool类型字段可能不对
|
||||
* </pre>
|
||||
*
|
||||
* <code>bool is_self_killing = 12;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearIsSelfKilling() {
|
||||
@@ -667,8 +687,8 @@ public final class AiSyncInfoOuterClass {
|
||||
static {
|
||||
java.lang.String[] descriptorData = {
|
||||
"\n\020AiSyncInfo.proto\"T\n\nAiSyncInfo\022\021\n\tenti" +
|
||||
"ty_id\030\002 \001(\r\022\032\n\022has_path_to_target\030\004 \001(\010\022" +
|
||||
"\027\n\017is_self_killing\030\001 \001(\010B\033\n\031emu.grasscut" +
|
||||
"ty_id\030\001 \001(\r\022\032\n\022has_path_to_target\030\007 \001(\010\022" +
|
||||
"\027\n\017is_self_killing\030\014 \001(\010B\033\n\031emu.grasscut" +
|
||||
"ter.net.protob\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
|
||||
Reference in New Issue
Block a user