]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/clientserver.h
Add emerge.cpp, initial EmergeThread changes
[dragonfireclient.git] / src / clientserver.h
index 6f9396c02ceaf607689b0eccaf1235eb513e777a..769272a68a7db1344b1bef014830de360dfc7cc6 100644 (file)
@@ -1,6 +1,6 @@
 /*
-Minetest-c55
-Copyright (C) 2010-2012 celeron55, Perttu Ahola <celeron55@gmail.com>
+Minetest
+Copyright (C) 2010-2013 celeron55, Perttu Ahola <celeron55@gmail.com>
 
 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU Lesser General Public License as published by
@@ -77,9 +77,11 @@ SharedBuffer<u8> makePacket_TOCLIENT_TIME_OF_DAY(u16 time, float time_speed);
                GENERIC_CMD_SET_ATTACHMENT
        PROTOCOL_VERSION 15:
                Serialization format changes
+       PROTOCOL_VERSION 16:
+               TOCLIENT_SHOW_FORMSPEC
 */
 
-#define LATEST_PROTOCOL_VERSION 15
+#define LATEST_PROTOCOL_VERSION 16
 
 // Server's supported network protocol range
 #define SERVER_PROTOCOL_VERSION_MIN 13
@@ -267,6 +269,8 @@ enum ToClientCommand
                        u32 length of data
                        data
                }
+               u16 length of remote media server url (if applicable)
+               string url
        */
        
        TOCLIENT_TOOLDEF = 0x39,
@@ -352,6 +356,31 @@ enum ToClientCommand
                u8[len] name
                [2] serialized inventory
        */
+       TOCLIENT_SHOW_FORMSPEC = 0x44,
+       /*
+               [0] u16 command
+               u32 len
+               u8[len] formspec
+               u16 len
+               u8[len] formname
+       */
+
+       TOCLIENT_MOVEMENT = 0x45,
+       /*
+               u16 command
+               f1000 movement_acceleration_default
+               f1000 movement_acceleration_air
+               f1000 movement_acceleration_fast
+               f1000 movement_speed_walk
+               f1000 movement_speed_crouch
+               f1000 movement_speed_fast
+               f1000 movement_speed_climb
+               f1000 movement_speed_jump
+               f1000 movement_liquid_fluidity
+               f1000 movement_liquid_fluidity_smooth
+               f1000 movement_liquid_sink
+               f1000 movement_gravity
+       */
 };
 
 enum ToServerCommand
@@ -571,6 +600,10 @@ enum ToServerCommand
                }
         */
 
+       TOSERVER_RECEIVED_MEDIA = 0x41,
+       /*
+               u16 command
+       */
 };
 
 #endif