summaryrefslogtreecommitdiff
path: root/packets/inventory_end_packet.gd
blob: d8d313bbae6fe5d05ba4ae0d2e71af873411566a (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:
## - PACKET_ZC_INVENTORY_END
## - clif_inventoryEnd
class_name InventoryEndPacket
extends Packet


const HEADER := 0x0b0b
const BYTE_LENGTH := 4


## Byte Type: u8
## Byte Length: 1
var inventory_type: int

## Byte Type: u8
var flag: int


static func from_bytes(bytes: PackedByteArray) -> InventoryEndPacket:
	var packet = InventoryEndPacket.new()
	
	packet.inventory_type = bytes.decode_u8(2)
	packet.flag = bytes.decode_u8(3)
	
	return packet