]> git.lizzy.rs Git - minetest.git/blobdiff - src/network/networkprotocol.h
Fix the serialization error by ff73c7a (#5964)
[minetest.git] / src / network / networkprotocol.h
index ea532d9e070b2d863bceca8e74eb03c0531341da..8304d3003c589de6cfc935fbf49d7c851ead09f6 100644 (file)
@@ -50,6 +50,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
                ContentFeatures and NodeDefManager use a different serialization
                    format; better for future version cross-compatibility
                Many things
+               Obsolete TOCLIENT_PLAYERITEM
        PROTOCOL_VERSION 10:
                TOCLIENT_PRIVILEGES
                Version raised to force 'fly' and 'fast' privileges into effect.
@@ -104,7 +105,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
        PROTOCOL_VERSION 22:
                add swap_node
        PROTOCOL_VERSION 23:
-               TOSERVER_CLIENT_READY
+               Obsolete TOSERVER_RECEIVED_MEDIA
+               Server: Stop using TOSERVER_CLIENT_READY
        PROTOCOL_VERSION 24:
                ContentFeatures version 7
                ContentFeatures: change number of special tiles to 6 (CF_SPECIAL_COUNT)
@@ -148,9 +150,19 @@ with this program; if not, write to the Free Software Foundation, Inc.,
                Add node and tile color and palette
                Fix plantlike visual_scale being applied squared and add compatibility
                        with pre-30 clients by sending sqrt(visual_scale)
+       PROTOCOL VERSION 31:
+               Add tile overlay
+               Stop sending TOSERVER_CLIENT_READY
+       PROTOCOL VERSION 32:
+               Add fading sounds
+       PROTOCOL VERSION 33:
+               Add TOCLIENT_UPDATE_PLAYER_LIST and send the player list to the client,
+                       instead of guessing based on the active object list.
+       PROTOCOL VERSION 34:
+               Add sound pitch
 */
 
-#define LATEST_PROTOCOL_VERSION 30
+#define LATEST_PROTOCOL_VERSION 34
 
 // Server's supported network protocol range
 #define SERVER_PROTOCOL_VERSION_MIN 24
@@ -577,6 +589,7 @@ enum ToClientCommand
                foreach count:
                        u8 len
                        u8[len] param
+               u8 clouds (boolean)
        */
 
        TOCLIENT_OVERRIDE_DAY_NIGHT_RATIO = 0x50,
@@ -605,6 +618,31 @@ enum ToClientCommand
                u32 id
        */
 
+       TOCLIENT_CLOUD_PARAMS = 0x54,
+       /*
+               f1000 density
+               u8[4] color_diffuse (ARGB)
+               u8[4] color_ambient (ARGB)
+               f1000 height
+               f1000 thickness
+               v2f1000 speed
+       */
+
+       TOCLIENT_FADE_SOUND = 0x55,
+       /*
+               s32 sound_id
+               float step
+               float gain
+       */
+       TOCLIENT_UPDATE_PLAYER_LIST = 0x56,
+       /*
+               u8 type
+               u16 number of players
+               for each player
+                       u16 len
+                       u8[len] player name
+       */
+
        TOCLIENT_SRP_BYTES_S_B = 0x60,
        /*
                Belonging to AUTH_MECHANISM_LEGACY_PASSWORD and AUTH_MECHANISM_SRP.
@@ -940,4 +978,12 @@ const static std::string accessDeniedStrings[SERVER_ACCESSDENIED_MAX] = {
        "This server has experienced an internal error. You will now be disconnected."
 };
 
+enum PlayerListModifer: u8
+{
+       PLAYER_LIST_INIT,
+       PLAYER_LIST_ADD,
+       PLAYER_LIST_REMOVE,
+};
+
+
 #endif