]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/network/networkprotocol.h
Mark additional locales as broken
[dragonfireclient.git] / src / network / networkprotocol.h
index ab924f1dbd7dedb2fd512db94f7369b1f991529a..666e75e458e0cf5f73e8ec6561ecae09a666767b 100644 (file)
@@ -204,6 +204,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
        PROTOCOL VERSION 39:
                Updated set_sky packet
                Adds new sun, moon and stars packets
+               Minimap modes
 */
 
 #define LATEST_PROTOCOL_VERSION 39
@@ -238,8 +239,10 @@ with this program; if not, write to the Free Software Foundation, Inc.,
                bgcolor[]: use 3 parameters (bgcolor, formspec (now an enum), fbgcolor)
                box[] and image[] elements enable clipping by default
                new element: scroll_container[]
+       FORMSPEC VERSION 4:
+               Allow dropdown indexing events
 */
-#define FORMSPEC_API_VERSION 3
+#define FORMSPEC_API_VERSION 4
 
 #define TEXTURENAME_ALLOWED_CHARS "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_.-"
 
@@ -323,6 +326,15 @@ enum ToClientCommand
                v3f added_vel
         */
 
+       TOCLIENT_MEDIA_PUSH = 0x2C,
+       /*
+               std::string raw_hash
+               std::string filename
+               bool should_be_cached
+               u32 len
+               char filedata[len]
+       */
+
        // (oops, there is some gap here)
 
        TOCLIENT_CHAT_MESSAGE = 0x2F,
@@ -753,7 +765,18 @@ enum ToClientCommand
                u8[len] formspec
        */
 
-       TOCLIENT_NUM_MSG_TYPES = 0x62,
+       TOCLIENT_MINIMAP_MODES = 0x62,
+       /*
+               u16 count // modes
+               u16 mode  // wanted current mode index after change
+               for each mode
+                       u16 type
+                       std::string label
+                       u16 size
+                       std::string extra
+       */
+
+       TOCLIENT_NUM_MSG_TYPES = 0x63,
 };
 
 enum ToServerCommand
@@ -1023,7 +1046,7 @@ const static std::string accessDeniedStrings[SERVER_ACCESSDENIED_MAX] = {
        "This server has experienced an internal error. You will now be disconnected."
 };
 
-enum PlayerListModifer: u8
+enum PlayerListModifer : u8
 {
        PLAYER_LIST_INIT,
        PLAYER_LIST_ADD,