跳转至

UpdateAttributesPacket

文档版本:r/20_u8
协议版本:671

UpdateAttributesPacket数据包,数字ID是29。该数据包用于protocol.packet.updateattributespacket.description

结构

digraph "UpdateAttributesPacket" {
rankdir = LR
0
0 -> 1
1 -> 2
0 -> 3
3 -> 4
4 -> 5
3 -> 6
6 -> 7
7 -> 8
6 -> 9
9 -> 10
6 -> 11
11 -> 12
6 -> 13
13 -> 14
6 -> 15
15 -> 16
6 -> 17
17 -> 18
18 -> 19
17 -> 20
20 -> 21
21 -> 22
20 -> 23
23 -> 24
20 -> 25
25 -> 26
20 -> 27
27 -> 28
20 -> 29
29 -> 30
20 -> 31
31 -> 32
0 -> 33
33 -> 34

0 [label="UpdateAttributesPacket",comment="name: \"UpdateAttributesPacket\", typeName: \"\", id: 0, branchId: 29, recurseId: -1, attributes: 0, notes: \"\""];
1 [label="Target Runtime ID",comment="name: \"Target Runtime ID\", typeName: \"ActorRuntimeID\", id: 1, branchId: 0, recurseId: -1, attributes: 256, notes: \"\""];
2 [label="ActorRuntimeID",comment="name: \"ActorRuntimeID\", typeName: \"\", id: 2, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
3 [label="Attribute List",comment="name: \"Attribute List\", typeName: \"\", id: 3, branchId: 0, recurseId: -1, attributes: 8, notes: \"AttributeData - Helper Struct\""];
4 [label="Array Size",comment="name: \"Array Size\", typeName: \"\", id: 4, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
5 [label="unsigned varint",comment="name: \"unsigned varint\", typeName: \"\", id: 5, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
6 [label="example element",style=dotted,comment="name: \"example element\", typeName: \"\", id: 6, branchId: 0, recurseId: -1, attributes: 16, notes: \"\""];
7 [label="Min Value",comment="name: \"Min Value\", typeName: \"\", id: 7, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
8 [label="float",comment="name: \"float\", typeName: \"\", id: 8, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
9 [label="Max Value",comment="name: \"Max Value\", typeName: \"\", id: 9, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
10 [label="float",comment="name: \"float\", typeName: \"\", id: 10, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
11 [label="Current Value",comment="name: \"Current Value\", typeName: \"\", id: 11, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
12 [label="float",comment="name: \"float\", typeName: \"\", id: 12, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
13 [label="Default Value",comment="name: \"Default Value\", typeName: \"\", id: 13, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
14 [label="float",comment="name: \"float\", typeName: \"\", id: 14, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
15 [label="Attribute Name",comment="name: \"Attribute Name\", typeName: \"\", id: 15, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
16 [label="string",comment="name: \"string\", typeName: \"\", id: 16, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
17 [label="Attribute Modifier",comment="name: \"Attribute Modifier\", typeName: \"\", id: 17, branchId: 0, recurseId: -1, attributes: 8, notes: \"\""];
18 [label="Array Size",comment="name: \"Array Size\", typeName: \"\", id: 18, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
19 [label="unsigned varint",comment="name: \"unsigned varint\", typeName: \"\", id: 19, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
20 [label="example element",style=dotted,comment="name: \"example element\", typeName: \"\", id: 20, branchId: 0, recurseId: -1, attributes: 16, notes: \"\""];
21 [label="ID",comment="name: \"ID\", typeName: \"\", id: 21, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
22 [label="string",comment="name: \"string\", typeName: \"\", id: 22, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
23 [label="Name",comment="name: \"Name\", typeName: \"\", id: 23, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
24 [label="string",comment="name: \"string\", typeName: \"\", id: 24, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
25 [label="Amount",comment="name: \"Amount\", typeName: \"\", id: 25, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
26 [label="float",comment="name: \"float\", typeName: \"\", id: 26, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
27 [label="Operation",comment="name: \"Operation\", typeName: \"\", id: 27, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
28 [label="int",comment="name: \"int\", typeName: \"\", id: 28, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
29 [label="Operand",comment="name: \"Operand\", typeName: \"\", id: 29, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
30 [label="int",comment="name: \"int\", typeName: \"\", id: 30, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
31 [label="isSerializable?",comment="name: \"isSerializable?\", typeName: \"\", id: 31, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
32 [label="bool",comment="name: \"bool\", typeName: \"\", id: 32, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
33 [label="Count of ticks since simulation started",comment="name: \"Count of ticks since simulation started\", typeName: \"\", id: 33, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
34 [label="unsigned varint64",comment="name: \"unsigned varint64\", typeName: \"\", id: 34, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
{ rank = max;2;5;8;10;12;14;16;19;22;24;26;28;30;32;34}

}

字段

UpdateAttributesPacket
[target_runtime_id][attribute_list][count_of_ticks_since_simulation_started]
Target Runtime ID:ActorRuntimeID
特殊类型。protocol.packet.updateattributespacket.target_runtime_id.description
Attribute List
[array_size][[example_element]..]
数组大小:unsigned varint
基本类型。protocol.packet.updateattributespacket.attribute_list.array_size.description
示例元素
[min_value][max_value][current_value][default_value][attribute_name][attribute_modifier]
Min Value:float
基本类型。protocol.packet.updateattributespacket.attribute_list.example_element.min_value.description
Max Value:float
基本类型。protocol.packet.updateattributespacket.attribute_list.example_element.max_value.description
Current Value:float
基本类型。protocol.packet.updateattributespacket.attribute_list.example_element.current_value.description
Default Value:float
基本类型。protocol.packet.updateattributespacket.attribute_list.example_element.default_value.description
Attribute Name:string
特殊类型。protocol.packet.updateattributespacket.attribute_list.example_element.attribute_name.description
Attribute Modifier
[array_size][[example_element]..]
数组大小:unsigned varint
基本类型。protocol.packet.updateattributespacket.attribute_list.example_element.attribute_modifier.array_size.description
示例元素
[id][name][amount][operation][operand][isserializable]
ID:string
特殊类型。protocol.packet.updateattributespacket.attribute_list.example_element.attribute_modifier.example_element.id.description
Name:string
特殊类型。protocol.packet.updateattributespacket.attribute_list.example_element.attribute_modifier.example_element.name.description
Amount:float
基本类型。protocol.packet.updateattributespacket.attribute_list.example_element.attribute_modifier.example_element.amount.description
Operation:int
基本类型枚举。protocol.packet.updateattributespacket.attribute_list.example_element.attribute_modifier.example_element.operation.description枚举值如下:
描述
OPERATION_ADDITION 0 protocol.enum.operation_addition
OPERATION_MULTIPLY_BASE 1 protocol.enum.operation_multiply_base
OPERATION_MULTIPLY_TOTAL 2 protocol.enum.operation_multiply_total
OPERATION_CAP 3 protocol.enum.operation_cap
TOTAL_OPERATIONS 4 protocol.enum.total_operations
OPERATION_INVALID TOTAL_OPERATIONS protocol.enum.operation_invalid
Operand:int
基本类型枚举。protocol.packet.updateattributespacket.attribute_list.example_element.attribute_modifier.example_element.operand.description枚举值如下:
描述
OPERAND_MIN 0 protocol.enum.operand_min
OPERAND_MAX 1 protocol.enum.operand_max
OPERAND_CURRENT 2 protocol.enum.operand_current
TOTAL_OPERANDS 3 protocol.enum.total_operands
OPERAND_INVALID TOTAL_OPERANDS protocol.enum.operand_invalid
isSerializable?:bool
基本类型。protocol.packet.updateattributespacket.attribute_list.example_element.attribute_modifier.example_element.isserializable.description
Count of ticks since simulation started:unsigned varint64
基本类型。protocol.packet.updateattributespacket.count_of_ticks_since_simulation_started.description