summaryrefslogtreecommitdiff
path: root/packets/map_server/new_mail_status_packet.gd
blob: 4e87ed5e0d00016f13b818f7ee8f4d9316c53600 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
class_name NewMailStatusPacket
extends Packet


const HEADER := 0x09e7
const BYTE_LENGTH := 3


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


static func from_bytes(bytes: PackedByteArray):
	var packet = NewMailStatusPacket.new()
	
	packet.new_available = bytes.decode_u8(2)
	
	return packet