From d560f77811d4fc6f29bf477356a6d2e58dda0be1 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sat, 30 Nov 2024 12:46:08 +0100 Subject: next commit --- packets/packet_chunk.gd | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'packets/packet_chunk.gd') diff --git a/packets/packet_chunk.gd b/packets/packet_chunk.gd index 2bd8bc6..52981e6 100644 --- a/packets/packet_chunk.gd +++ b/packets/packet_chunk.gd @@ -1,10 +1,13 @@ class_name PacketChunk -var byte_length: int: +# set to 0 if variable length +#const BYTE_LENGTH := 0 + +var byte_length: int = 0: get = get_byte_length -## to be overriden +## Override if packet has variable length. func get_byte_length() -> int: - return byte_length + return self.BYTE_LENGTH -- cgit v1.2.3