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/script/common/c_content.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/script/common/c_content.h')
-rw-r--r-- | src/script/common/c_content.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/script/common/c_content.h b/src/script/common/c_content.h index 241b1ca76..69b2a8355 100644 --- a/src/script/common/c_content.h +++ b/src/script/common/c_content.h @@ -88,6 +88,8 @@ ItemDefinition read_item_definition (lua_State *L, void read_object_properties (lua_State *L, int index, ObjectProperties *prop); +void push_object_properties (lua_State *L, + ObjectProperties *prop); void push_inventory_list (lua_State *L, Inventory *inv, @@ -127,6 +129,8 @@ bool getflagsfield (lua_State *L, int table, bool read_flags (lua_State *L, int index, FlagDesc *flagdesc, u32 *flags, u32 *flagmask); +void push_flags_string (lua_State *L, FlagDesc *flagdesc, + u32 flags, u32 flagmask); u32 read_flags_table (lua_State *L, int table, FlagDesc *flagdesc, u32 *flagmask); @@ -149,6 +153,7 @@ bool string_to_enum (const EnumString *spec, bool read_noiseparams (lua_State *L, int index, NoiseParams *np); +void push_noiseparams (lua_State *L, NoiseParams *np); void luaentity_get (lua_State *L,u16 id); |