blob: 6949ef911c7e0d3d529924d6817aace3841979ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
## rAthena References:
## - clif_emotion
## - enum emotion_type
class_name DisplayEmotionPacket
extends Packet
const HEADER := 0x00c0
const BYTE_LENGTH := 7
## Byte Type: u32
## Byte Length: 4
var entity_id: int
## Byte Type: u8
## Byte Length: 1
var emotion: Constants.EmotionType
static func from_bytes(bytes: PackedByteArray) -> DisplayEmotionPacket:
var packet = DisplayEmotionPacket.new()
packet.entity_id = bytes.decode_u32(2)
packet.emotion = bytes.decode_u8(6)
return packet
|