diff options
author | TeTpaAka <TeTpaAka@users.noreply.github.com> | 2015-05-26 14:10:08 +0200 |
---|---|---|
committer | est31 <MTest31@outlook.com> | 2015-05-28 16:46:35 +0200 |
commit | c0335f7d13ee46c6a46d0ceebea96960439ec9fd (patch) | |
tree | 20183ec9aac1dd1dfdd6f193430fb331268b92b0 /src/server.h | |
parent | 990a96578f20244626b6b9f67f8e79a7e2e614ea (diff) | |
download | minetest-c0335f7d13ee46c6a46d0ceebea96960439ec9fd.tar.gz minetest-c0335f7d13ee46c6a46d0ceebea96960439ec9fd.tar.bz2 minetest-c0335f7d13ee46c6a46d0ceebea96960439ec9fd.zip |
Add some missing getter functions to the lua API
ObjectRef:
get_properties
get_armor_groups
get_animation
get_attach
get_bone_position
Players:
get_physics_override
hud_get_hotbar_itemcount
hud_get_hotbar_image
hud_get_hotbar_selected_image
get_sky
get_day_night_ratio
get_local_animation
get_eye_offset
Global:
minetest.get_gen_notify
minetest.get_noiseparams
Diffstat (limited to 'src/server.h')
-rw-r--r-- | src/server.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/server.h b/src/server.h index 2030d6669..131c3c67b 100644 --- a/src/server.h +++ b/src/server.h @@ -343,8 +343,11 @@ public: bool hudChange(Player *player, u32 id, HudElementStat stat, void *value); bool hudSetFlags(Player *player, u32 flags, u32 mask); bool hudSetHotbarItemcount(Player *player, s32 hotbar_itemcount); + s32 hudGetHotbarItemcount(Player *player); void hudSetHotbarImage(Player *player, std::string name); + std::string hudGetHotbarImage(Player *player); void hudSetHotbarSelectedImage(Player *player, std::string name); + std::string hudGetHotbarSelectedImage(Player *player); inline Address getPeerAddress(u16 peer_id) { return m_con.GetPeerAddress(peer_id); } |