diff options
author | Jonathon Anderson <anderjon@umail.iu.edu> | 2013-04-11 13:23:38 -0500 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2013-04-18 02:14:33 -0400 |
commit | 49f6e347f01f72e8854308d5a54aaae337489555 (patch) | |
tree | 232ed6de19e0671f34040b2705ffc6ce766e9e37 /src/server.h | |
parent | 1f42479e0cad7d93ed9ef1a6f68a995c80e0b178 (diff) | |
download | minetest-49f6e347f01f72e8854308d5a54aaae337489555.tar.gz minetest-49f6e347f01f72e8854308d5a54aaae337489555.tar.bz2 minetest-49f6e347f01f72e8854308d5a54aaae337489555.zip |
Lua HUD
Diffstat (limited to 'src/server.h')
-rw-r--r-- | src/server.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/server.h b/src/server.h index ea1cb79af..ef0c45a6a 100644 --- a/src/server.h +++ b/src/server.h @@ -534,6 +534,11 @@ public: } bool showFormspec(const char *name, const std::string &formspec, const std::string &formname); + bool hudadd(const char *pname, const u32 &id, HudElement *element); + bool hudrm(const char *pname, const u32 &id); + bool hudchange(const char *pname, const u32 &id, const u8 &stat, v2f data); + bool hudchange(const char *pname, const u32 &id, const u8 &stat, std::string data); + bool hudchange(const char *pname, const u32 &id, const u8 &stat, u32 data); private: // con::PeerHandler implementation. @@ -573,6 +578,11 @@ private: void SendPlayerPrivileges(u16 peer_id); void SendPlayerInventoryFormspec(u16 peer_id); void SendShowFormspecMessage(u16 peer_id, const std::string formspec, const std::string formname); + void SendHUDAdd(u16 peer_id, const u32 id, HudElement* form); + void SendHUDRm(u16 peer_id, const u32 id); + void SendHUDChange(u16 peer_id, const u32 id, const u8 stat, v2f data); + void SendHUDChange(u16 peer_id, const u32 id, const u8 stat, std::string data); + void SendHUDChange(u16 peer_id, const u32 id, const u8 stat, u32 data); /* Send a node removal/addition event to all clients except ignore_id. Additionally, if far_players!=NULL, players further away than |