aboutsummaryrefslogtreecommitdiff
path: root/src/clientserver.h
diff options
context:
space:
mode:
authorsapier <Sapier at GMX dot net>2013-01-02 19:45:04 +0000
committerPerttu Ahola <celeron55@gmail.com>2013-01-02 20:59:37 +0200
commitda9707950e0f69d8a906572fc55f516277e057c4 (patch)
treec8991d2c8f650d0735e69ff93fc9ebe0b32b141c /src/clientserver.h
parent36f03a7f4ae81e8735328a38c9415b6e7081c37c (diff)
downloadminetest-da9707950e0f69d8a906572fc55f516277e057c4.tar.xz
Add TOCLIENT_SHOW_FORMSPEC to display formspecs at client from lua
Diffstat (limited to 'src/clientserver.h')
-rw-r--r--src/clientserver.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/clientserver.h b/src/clientserver.h
index db551a90c..bb7e1181e 100644
--- a/src/clientserver.h
+++ b/src/clientserver.h
@@ -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
@@ -354,6 +356,12 @@ enum ToClientCommand
u8[len] name
[2] serialized inventory
*/
+ TOCLIENT_SHOW_FORMSPEC = 0x44,
+ /*
+ [0] u16 command
+ u16 len
+ u8[len] formspec
+ */
};
enum ToServerCommand