summaryrefslogtreecommitdiff
path: root/packets/packet_chunk.gd
blob: 52981e644c103492beffc1ee4db59ff7f5d11972 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
class_name PacketChunk


# set to 0 if variable length
#const BYTE_LENGTH := 0

var byte_length: int = 0:
	get = get_byte_length


## Override if packet has variable length.
func get_byte_length() -> int:
	return self.BYTE_LENGTH