summaryrefslogtreecommitdiff
path: root/packets/map_server/update_configuration_packet.gd
blob: c9b3652d60476fc52f258fc179244946ec5d7c0f (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
## rAthena References:
## - clif_configuration
class_name UpdateConfigurationPacket
extends Packet


const HEADER := 0x02d9
const BYTE_LENGTH := 10


## Byte Type: u32
## Byte Length: 4
var config_type: int

## Byte Type: u32
## Byte Length: 4
var enabled: bool


static func from_bytes(bytes: PackedByteArray) -> UpdateConfigurationPacket:
	var packet = UpdateConfigurationPacket.new()
	
	packet.config_type = bytes.decode_u32(2)
	packet.enabled = bytes.decode_u32(6)
	
	return packet