diff options
author | kwolekr <kwolekr@minetest.net> | 2014-02-09 12:38:50 -0500 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2014-02-09 12:44:31 -0500 |
commit | 2a01050a0cf0826f25240e2cb407535394ee360f (patch) | |
tree | bb6d3fd3b27be094db7e885adc5ac25dc5e45139 /src/script/common/c_content.h | |
parent | 57710520dca6bce175a6be48989e0a4689b1404e (diff) | |
download | minetest-2a01050a0cf0826f25240e2cb407535394ee360f.tar.xz |
Add capability to read table flag fields from Lua API
Diffstat (limited to 'src/script/common/c_content.h')
-rw-r--r-- | src/script/common/c_content.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/script/common/c_content.h b/src/script/common/c_content.h index a89de1aad..61617d7ab 100644 --- a/src/script/common/c_content.h +++ b/src/script/common/c_content.h @@ -123,6 +123,9 @@ u32 getflagsfield (lua_State *L, int table, const char *fieldname, FlagDesc *flagdesc, u32 *flagmask); +u32 read_flags_table (lua_State *L, int table, + FlagDesc *flagdesc, u32 *flagmask); + void push_items (lua_State *L, const std::vector<ItemStack> &items); |