]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/network/networkprotocol.h
RTT fixes (#7428)
[dragonfireclient.git] / src / network / networkprotocol.h
index 6d11dacc635b5389eb7638a0ba888304ef9eee52..0a5701e59dcfcb417f5749f83038a3600189fae8 100644 (file)
@@ -179,6 +179,15 @@ with this program; if not, write to the Free Software Foundation, Inc.,
        PROTOCOL VERSION 36:
                Backwards compatibility drop
                Add 'can_zoom' to player object properties
+               Add glow to object properties
+               Change TileDef serialization format.
+               Add world-aligned tiles.
+               Mod channels
+               Raise ObjectProperties version to 3 for removing 'can_zoom' and adding
+                       'zoom_fov'.
+               Nodebox version 5
+               Add disconnected nodeboxes
+               Add TOCLIENT_FORMSPEC_PREPEND
 */
 
 #define LATEST_PROTOCOL_VERSION 36
@@ -204,6 +213,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 
 #define TEXTURENAME_ALLOWED_CHARS "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_.-"
 
+typedef u16 session_t;
+
 enum ToClientCommand
 {
        TOCLIENT_HELLO = 0x02,
@@ -610,6 +621,22 @@ enum ToClientCommand
                        u8[len] player name
        */
 
+       TOCLIENT_MODCHANNEL_MSG = 0x57,
+       /*
+               u16 channel name length
+               std::string channel name
+               u16 channel name sender
+               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_SRP_BYTES_S_B = 0x60,
        /*
                Belonging to AUTH_MECHANISM_SRP.
@@ -618,7 +645,13 @@ enum ToClientCommand
                std::string bytes_B
        */
 
-       TOCLIENT_NUM_MSG_TYPES = 0x61,
+       TOCLIENT_FORMSPEC_PREPEND = 0x61,
+       /*
+               u16 len
+               u8[len] formspec
+       */
+
+       TOCLIENT_NUM_MSG_TYPES = 0x62,
 };
 
 enum ToServerCommand
@@ -644,6 +677,26 @@ enum ToServerCommand
                [0] u16 TOSERVER_INIT2
        */
 
+       TOSERVER_MODCHANNEL_JOIN = 0x17,
+       /*
+               u16 channel name length
+               std::string channel name
+        */
+
+       TOSERVER_MODCHANNEL_LEAVE = 0x18,
+       /*
+               u16 channel name length
+               std::string channel name
+        */
+
+       TOSERVER_MODCHANNEL_MSG = 0x19,
+       /*
+               u16 channel name length
+               std::string channel name
+               u16 message length
+               std::string message
+        */
+
        TOSERVER_GETBLOCK = 0x20, // Obsolete
        TOSERVER_ADDNODE = 0x21, // Obsolete
        TOSERVER_REMOVENODE = 0x22, // Obsolete
@@ -877,10 +930,10 @@ enum PlayerListModifer: u8
 
 enum CSMFlavourLimit : u64 {
        CSM_FL_NONE = 0x00000000,
-       CSM_FL_LOOKUP_NODES = 0x00000001, // Limit node lookups
+       CSM_FL_LOAD_CLIENT_MODS = 0x00000001, // Disable mods provided by clients
        CSM_FL_CHAT_MESSAGES = 0x00000002, // Disable chat message sending from CSM
        CSM_FL_READ_ITEMDEFS = 0x00000004, // Disable itemdef lookups
        CSM_FL_READ_NODEDEFS = 0x00000008, // Disable nodedef lookups
+       CSM_FL_LOOKUP_NODES = 0x00000010, // Limit node lookups
        CSM_FL_ALL = 0xFFFFFFFF,
 };
-