1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Update set_mapgen_params and set_gen_notify Lua API to use new flag format

This commit is contained in:
kwolekr 2014-03-08 11:34:46 -05:00
parent db98ef6b45
commit 28d6326bd4
3 changed files with 43 additions and 27 deletions

View file

@ -119,9 +119,14 @@ int getenumfield (lua_State *L,
const EnumString *spec,
int default_);
u32 getflagsfield (lua_State *L, int table,
bool getflagsfield (lua_State *L, int table,
const char *fieldname,
FlagDesc *flagdesc, u32 *flagmask);
FlagDesc *flagdesc,
u32 *flags, u32 *flagmask);
bool read_flags (lua_State *L, int index,
FlagDesc *flagdesc,
u32 *flags, u32 *flagmask);
u32 read_flags_table (lua_State *L, int table,
FlagDesc *flagdesc, u32 *flagmask);