summaryrefslogtreecommitdiff
path: root/packets/map_server/equippable_switch_item_list_packet.gd
blob: 98d42f1f9659635ea0cf2d122cd13c26f994daa1 (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
## rAthena References:
## - clif_equipswitch_list
class_name EquippableSwitchItemListPacket
extends Packet


const HEADER := 0x0a9b
const BYTE_LENGTH := 0


## Byte Type: u16
## Byte Length: 2
var packet_length: int

## Byte Type: u8
var item_information: Array[EquippableSwitchItemInformation]


static func from_bytes(bytes: PackedByteArray) -> EquippableSwitchItemListPacket:
	var packet = EquippableSwitchItemListPacket.new()
	
	packet.packet_length = bytes.decode_u16(2)
	packet.item_information = EquippableSwitchItemInformation.array_from_bytes(bytes.slice(4))
	
	return packet