summaryrefslogtreecommitdiff
path: root/Packet-structure.md
diff options
context:
space:
mode:
authorSgeo <[email protected]>2017-06-02 23:14:48 -0400
committerSgeo <[email protected]>2017-06-02 23:14:48 -0400
commit917f7a2b698e6eea5a67ee5d034bf92bffcb4575 (patch)
tree4579039a32ce5f5f47a8a4e1b3e631a7cc7e12dc /Packet-structure.md
parentUpdated Packet structure (markdown) (diff)
downloadlibreworlds-wiki-917f7a2b698e6eea5a67ee5d034bf92bffcb4575.tar.xz
libreworlds-wiki-917f7a2b698e6eea5a67ee5d034bf92bffcb4575.zip
Updated Packet structure (markdown)
Diffstat (limited to 'Packet-structure.md')
-rw-r--r--Packet-structure.md8
1 files changed, 6 insertions, 2 deletions
diff --git a/Packet-structure.md b/Packet-structure.md
index 48e2aea..9799664 100644
--- a/Packet-structure.md
+++ b/Packet-structure.md
@@ -1,2 +1,6 @@
-* Packet size: 1-2 bytes (2 byte packet size indicated by 0x80 bit being set, in which case size = (first byte - 1) * 256 + second byte)
-* ObjID: Either 1 byte, or if byte is 0, then a string. 254 is a special destination called "CO" \ No newline at end of file
+* Packet size: 1-2 bytes (2 byte packet size indicated by 0x80 bit being set, in which case size = 32768 + second byte)
+* ObjID: Either 1 byte, or if byte is 0, then after that a thing I will call a WorldsString. 254 is a special destination called "CO"
+* Packet type: 1 byte
+* Packet data
+
+If the initial ObjID is "CO" (254), Packet data consists of ObjIDs followed by packet data for the packet type. \ No newline at end of file