跳转至

CameraShakePacket

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

CameraShakePacket数据包,数字ID是159。该数据包用于protocol.packet.camerashakepacket.description

结构

digraph "CameraShakePacket" {
rankdir = LR
0
0 -> 1
1 -> 2
0 -> 3
3 -> 4
0 -> 5
5 -> 6
0 -> 7
7 -> 8

0 [label="CameraShakePacket",comment="name: \"CameraShakePacket\", typeName: \"\", id: 0, branchId: 159, recurseId: -1, attributes: 0, notes: \"\""];
1 [label="Intensity",comment="name: \"Intensity\", typeName: \"\", id: 1, branchId: 0, recurseId: -1, attributes: 0, notes: \"Camera shake intensity\""];
2 [label="float",comment="name: \"float\", typeName: \"\", id: 2, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
3 [label="Seconds",comment="name: \"Seconds\", typeName: \"\", id: 3, branchId: 0, recurseId: -1, attributes: 0, notes: \"Duration\""];
4 [label="float",comment="name: \"float\", typeName: \"\", id: 4, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
5 [label="Shake Type",comment="name: \"Shake Type\", typeName: \"\", id: 5, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
6 [label="byte",comment="name: \"byte\", typeName: \"\", id: 6, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
7 [label="Shake action",comment="name: \"Shake action\", typeName: \"\", id: 7, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
8 [label="byte",comment="name: \"byte\", typeName: \"\", id: 8, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
{ rank = max;2;4;6;8}

}

字段

CameraShakePacket
[intensity][seconds][shake_type][shake_action]
Intensity:float
基本类型。protocol.packet.camerashakepacket.intensity.descriptionCamera shake intensity
Seconds:float
基本类型。protocol.packet.camerashakepacket.seconds.descriptionDuration
Shake Type:byte
基本类型枚举。protocol.packet.camerashakepacket.shake_type.description枚举值如下:
描述
Positional 0 protocol.enum.positional
Rotational 1 protocol.enum.rotational
Shake action:byte
基本类型枚举。protocol.packet.camerashakepacket.shake_action.description枚举值如下:
描述
Add 0 protocol.enum.add
Stop 1 protocol.enum.stop