diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2024-11-30 12:46:08 +0100 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2024-11-30 12:46:08 +0100 |
commit | d560f77811d4fc6f29bf477356a6d2e58dda0be1 (patch) | |
tree | 3ac2c4267b5c88e40849416115977574e9f09a83 /packets/packet_chunk.gd | |
parent | 313afffce7a823c30acf4853b083f9ca5132e879 (diff) |
next commit
Diffstat (limited to 'packets/packet_chunk.gd')
-rw-r--r-- | packets/packet_chunk.gd | 9 |
1 files changed, 6 insertions, 3 deletions
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 |