aboutsummaryrefslogtreecommitdiff
path: root/src/clientserver.h
diff options
context:
space:
mode:
authorJonathon Anderson <anderjon@umail.iu.edu>2013-04-11 13:23:38 -0500
committerkwolekr <kwolekr@minetest.net>2013-04-18 02:14:33 -0400
commit49f6e347f01f72e8854308d5a54aaae337489555 (patch)
tree232ed6de19e0671f34040b2705ffc6ce766e9e37 /src/clientserver.h
parent1f42479e0cad7d93ed9ef1a6f68a995c80e0b178 (diff)
downloadminetest-49f6e347f01f72e8854308d5a54aaae337489555.tar.gz
minetest-49f6e347f01f72e8854308d5a54aaae337489555.tar.bz2
minetest-49f6e347f01f72e8854308d5a54aaae337489555.zip
Lua HUD
Diffstat (limited to 'src/clientserver.h')
-rw-r--r--src/clientserver.h39
1 files changed, 38 insertions, 1 deletions
diff --git a/src/clientserver.h b/src/clientserver.h
index 8b1e0a7e4..6f7bb4402 100644
--- a/src/clientserver.h
+++ b/src/clientserver.h
@@ -90,9 +90,13 @@ SharedBuffer<u8> makePacket_TOCLIENT_TIME_OF_DAY(u16 time, float time_speed);
sound_place added to ItemDefinition
PROTOCOL_VERSION 19:
GENERIC_CMD_SET_PHYSICS_OVERRIDE
+ PROTOCOL_VERSION 20:
+ TOCLIENT_HUD_ADD
+ TOCLIENT_HUD_RM
+ TOCLIENT_HUD_CHANGE
*/
-#define LATEST_PROTOCOL_VERSION 19
+#define LATEST_PROTOCOL_VERSION 20
// Server's supported network protocol range
#define SERVER_PROTOCOL_VERSION_MIN 13
@@ -433,6 +437,39 @@ enum ToClientCommand
u16 command
u32 id
*/
+
+ TOCLIENT_HUDADD = 0x49,
+ /*
+ u16 command
+ u32 id
+ u8 type
+ v2f1000 pos
+ u32 len
+ u8[len] name
+ v2f1000 scale
+ u32 len2
+ u8[len2] text
+ u32 number
+ u32 item
+ u32 dir
+ */
+
+ TOCLIENT_HUDRM = 0x50,
+ /*
+ u16 command
+ u32 id
+ */
+
+ TOCLIENT_HUDCHANGE = 0x51,
+ /*
+ u16 command
+ u32 id
+ u8 stat
+ [v2f1000 data |
+ u32 len
+ u8[len] data |
+ u32 data]
+ */
};
enum ToServerCommand