1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00
This commit is contained in:
Jonathon Anderson 2013-04-11 13:23:38 -05:00 committed by kwolekr
parent 1f42479e0c
commit 49f6e347f0
12 changed files with 873 additions and 5 deletions

View file

@ -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