From 917f7a2b698e6eea5a67ee5d034bf92bffcb4575 Mon Sep 17 00:00:00 2001 From: Sgeo Date: Fri, 2 Jun 2017 23:14:48 -0400 Subject: [PATCH] Updated Packet structure (markdown) --- Packet-structure.md | 8 ++++++-- 1 file 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