Go to the source code of this file.
Classes | |
class | lua_mapgen::filter |
Namespaces | |
lua_mapgen | |
lua_terrainfilter | |
Typedefs | |
using | lua_mapgen::filter_ptr = std::unique_ptr< filter, std::function< void(filter *)> > |
Functions | |
std::string | lua_mapgen::register_filter_metatables (lua_State *L) |
bool | luaW_is_mgfilter (lua_State *L, int index) |
lua_mapgen::filter * | luaW_to_mgfilter (lua_State *L, int index) |
lua_mapgen::filter_ptr | luaW_check_mgfilter (lua_State *L, int index, bool allow_compile=false) |
void | lua_mgfilter_setmetatable (lua_State *L) |
int | intf_terrainfilter_create (lua_State *L) |
Create a filter. More... | |
int | intf_mg_get_locations (lua_State *L) |
int | intf_mg_get_tiles_radius (lua_State *L) |
std::string | lua_terrainfilter::register_metatables (lua_State *L) |
int intf_mg_get_locations | ( | lua_State * | L | ) |
Definition at line 712 of file lua_terrainfilter.cpp.
References f, gamemap_base::for_each_loc(), LOG_LMG, luaW_check_mgfilter(), luaW_checkterrainmap(), luaW_push_locationset(), luaW_to_locationset(), and s.
Referenced by mapgen_lua_kernel::mapgen_lua_kernel().
int intf_mg_get_tiles_radius | ( | lua_State * | L | ) |
Definition at line 744 of file lua_terrainfilter.cpp.
References f, get_tiles_radius(), luaW_check_mgfilter(), luaW_checkterrainmap(), luaW_push_locationset(), luaW_to_locationset(), gamemap_base::on_board_with_border(), and s.
Referenced by mapgen_lua_kernel::mapgen_lua_kernel().
int intf_terrainfilter_create | ( | lua_State * | L | ) |
Create a filter.
Definition at line 810 of file lua_terrainfilter.cpp.
References e, and luaW_push_mgfilter().
Referenced by mapgen_lua_kernel::mapgen_lua_kernel().
void lua_mgfilter_setmetatable | ( | lua_State * | L | ) |
Definition at line 793 of file lua_terrainfilter.cpp.
References terrinfilterKey.
Referenced by luaW_push_mgfilter().
lua_mapgen::filter_ptr luaW_check_mgfilter | ( | lua_State * | L, |
int | index, | ||
bool | allow_compile = false |
||
) |
Definition at line 777 of file lua_terrainfilter.cpp.
References f, utf8::index(), luaW_is_mgfilter(), and luaW_type_error().
Referenced by impl_terrainfilter_collect(), impl_terrainfilter_get(), impl_terrainfilter_set(), intf_clearcache(), intf_mg_get_locations(), and intf_mg_get_tiles_radius().
bool luaW_is_mgfilter | ( | lua_State * | L, |
int | index | ||
) |
Definition at line 763 of file lua_terrainfilter.cpp.
References utf8::index(), and terrinfilterKey.
Referenced by luaW_check_mgfilter(), and luaW_to_mgfilter().
lua_mapgen::filter* luaW_to_mgfilter | ( | lua_State * | L, |
int | index | ||
) |
Definition at line 769 of file lua_terrainfilter.cpp.
References utf8::index(), and luaW_is_mgfilter().