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


const HEADER := 0x013a
const BYTE_LENGTH := 4


## Byte Type: i16
## Byte Length: 2
var current_attack_range: int


static func from_bytes(bytes: PackedByteArray):
	var packet = UpdateAttackRangePacket.new()
	
	packet.current_attack_range = bytes.decode_s16(2)
	
	return packet