]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/clientserver.h
Add disable_jump and fall_damage_add_percent node groups
[dragonfireclient.git] / src / clientserver.h
index 559fb5b15526e7643ffd887d445e3578643e8584..a6ba8fe45c82d837404024f7b407b5c2928aada3 100644 (file)
@@ -58,9 +58,16 @@ with this program; if not, write to the Free Software Foundation, Inc.,
        PROTOCOL_VERSION 11:
                TileDef in ContentFeatures
                Nodebox drawtype
+               (some dev snapshot)
+               TOCLIENT_INVENTORY_FORMSPEC
+               (0.4.0, 0.4.1)
+       PROTOCOL_VERSION 12:
+               TOSERVER_INVENTORY_FIELDS
+               16-bit node ids
+               TOCLIENT_DETACHED_INVENTORY
 */
 
-#define PROTOCOL_VERSION 11
+#define PROTOCOL_VERSION 12
 
 #define PROTOCOL_ID 0x4f457403
 
@@ -308,6 +315,21 @@ enum ToClientCommand
                        u16 len
                        u8[len] privilege
        */
+
+       TOCLIENT_INVENTORY_FORMSPEC = 0x42,
+       /*
+               u16 command
+               u32 len
+               u8[len] formspec
+       */
+
+       TOCLIENT_DETACHED_INVENTORY = 0x43,
+       /*
+               [0] u16 command
+               u16 len
+               u8[len] name
+               [2] serialized inventory
+       */
 };
 
 enum ToServerCommand
@@ -502,6 +524,19 @@ enum ToServerCommand
                        u8[len] field value
        */
 
+       TOSERVER_INVENTORY_FIELDS = 0x3c,
+       /*
+               u16 command
+               u16 len
+               u8[len] form name (reserved for future use)
+               u16 number of fields
+               for each field:
+                       u16 len
+                       u8[len] field name
+                       u32 len
+                       u8[len] field value
+       */
+
        TOSERVER_REQUEST_MEDIA = 0x40,
        /*
                u16 command