CSM: add requested CSM_RF_READ_PLAYERINFO (#8007)
[oweals/minetest.git] / src / network / networkprotocol.h
index 4e896602bf69e7c45d9b912db4bad90553cef9fb..6d6708482c28d579d0a267978dfd523aa071d718 100644 (file)
@@ -188,19 +188,23 @@ with this program; if not, write to the Free Software Foundation, Inc.,
                Nodebox version 5
                Add disconnected nodeboxes
                Add TOCLIENT_FORMSPEC_PREPEND
+       PROTOCOL VERSION 37:
+               Redo detached inventory sending
+               Add TOCLIENT_NODEMETA_CHANGED
+               New network float format
 */
 
-#define LATEST_PROTOCOL_VERSION 36
+#define LATEST_PROTOCOL_VERSION 37
 #define LATEST_PROTOCOL_VERSION_STRING TOSTRING(LATEST_PROTOCOL_VERSION)
 
 // Server's supported network protocol range
-#define SERVER_PROTOCOL_VERSION_MIN 36
+#define SERVER_PROTOCOL_VERSION_MIN 37
 #define SERVER_PROTOCOL_VERSION_MAX LATEST_PROTOCOL_VERSION
 
 // Client's supported network protocol range
 // The minimal version depends on whether
 // send_pre_v25_init is enabled or not
-#define CLIENT_PROTOCOL_VERSION_MIN 36
+#define CLIENT_PROTOCOL_VERSION_MIN 37
 #define CLIENT_PROTOCOL_VERSION_MAX LATEST_PROTOCOL_VERSION
 
 // Constant that differentiates the protocol from random data and other protocols
@@ -636,13 +640,19 @@ enum ToClientCommand
                std::string channel name
                u16 message length
                std::string message
-        */
+       */
+
        TOCLIENT_MODCHANNEL_SIGNAL = 0x58,
        /*
                u8 signal id
                u16 channel name length
                std::string channel name
-        */
+       */
+
+       TOCLIENT_NODEMETA_CHANGED = 0x59,
+       /*
+               serialized and compressed node metadata
+       */
 
        TOCLIENT_SRP_BYTES_S_B = 0x60,
        /*
@@ -942,5 +952,6 @@ enum CSMRestrictionFlags : u64 {
        CSM_RF_READ_ITEMDEFS = 0x00000004, // Disable itemdef lookups
        CSM_RF_READ_NODEDEFS = 0x00000008, // Disable nodedef lookups
        CSM_RF_LOOKUP_NODES = 0x00000010, // Limit node lookups
+       CSM_RF_READ_PLAYERINFO = 0x00000020, // Disable player info lookups
        CSM_RF_ALL = 0xFFFFFFFF,
 };