#include <l_env.h>
|
static void | InitializeEmerge (lua_State *L, int top) |
|
static ScriptApiBase * | getScriptApiBase (lua_State *L) |
|
static Server * | getServer (lua_State *L) |
|
static ServerInventoryManager * | getServerInventoryMgr (lua_State *L) |
|
static Client * | getClient (lua_State *L) |
|
static GUIEngine * | getGuiEngine (lua_State *L) |
|
static EmergeThread * | getEmergeThread (lua_State *L) |
|
static IGameDef * | getGameDef (lua_State *L) |
|
static Environment * | getEnv (lua_State *L) |
|
static std::string | getCurrentModPath (lua_State *L) |
|
template<typename T > |
static T * | getScriptApi (lua_State *L) |
|
static bool | registerFunction (lua_State *L, const char *name, lua_CFunction func, int top) |
|
static void | registerClass (lua_State *L, const char *name, const luaL_Reg *methods, const luaL_Reg *metamethods) |
|
template<typename T > |
static T * | checkObject (lua_State *L, int narg) |
|
static int | l_deprecated_function (lua_State *L, const char *good, const char *bad, lua_CFunction func) |
| A wrapper for deprecated functions.
|
|
|
template<> |
bool | readParam (lua_State *L, int index) |
| Read a string from Lua state L at index without copying it.
|
|
static void | collectNodeIds (lua_State *L, int idx, const NodeDefManager *ndef, std::vector< content_t > &filter) |
|
static void | checkArea (v3s16 &minp, v3s16 &maxp) |
|
template<typename F > |
static int | findNodeNear (lua_State *L, v3s16 pos, int radius, const std::vector< content_t > &filter, int start_radius, F &&getNode) |
|
template<typename F > |
static int | findNodesInArea (lua_State *L, const NodeDefManager *ndef, const std::vector< content_t > &filter, bool grouped, F &&iterate) |
|
template<typename F > |
static int | findNodesInAreaUnderAir (lua_State *L, v3s16 minp, v3s16 maxp, const std::vector< content_t > &filter, F &&getNode) |
|
template<typename T > |
static T | readParam (lua_State *L, int index) |
| Read a value using a template type T from Lua state L at index.
|
|
template<typename T > |
static T | readParam (lua_State *L, int index, const T &default_value) |
| Read a value using a template type T from Lua state L at index.
|
|
static const EnumString | es_ClearObjectsMode [] |
|
static const EnumString | es_BlockStatusType [] |
|
◆ getVManip()
MMVManip * ModApiEnvVM::getVManip |
( |
lua_State * |
L | ) |
|
|
staticprivate |
◆ InitializeEmerge()
void ModApiEnvVM::InitializeEmerge |
( |
lua_State * |
L, |
|
|
int |
top |
|
) |
| |
|
static |
◆ l_add_node_level()
int ModApiEnvVM::l_add_node_level |
( |
lua_State * |
L | ) |
|
|
staticprivate |
◆ l_find_node_near()
int ModApiEnvVM::l_find_node_near |
( |
lua_State * |
L | ) |
|
|
staticprivate |
◆ l_find_nodes_in_area()
int ModApiEnvVM::l_find_nodes_in_area |
( |
lua_State * |
L | ) |
|
|
staticprivate |
References ModApiEnvBase::checkArea(), ModApiEnvBase::collectNodeIds(), ModApiEnvBase::findNodesInArea(), GET_VM_PTR, ModApiBase::getGameDef(), VoxelArea::intersect(), VoxelArea::MaxEdge, VoxelArea::MinEdge, IGameDef::ndef(), read_v3s16(), and sortBoxVerticies().
◆ l_find_nodes_in_area_under_air()
int ModApiEnvVM::l_find_nodes_in_area_under_air |
( |
lua_State * |
L | ) |
|
|
staticprivate |
◆ l_get_node_level()
int ModApiEnvVM::l_get_node_level |
( |
lua_State * |
L | ) |
|
|
staticprivate |
◆ l_get_node_max_level()
int ModApiEnvVM::l_get_node_max_level |
( |
lua_State * |
L | ) |
|
|
staticprivate |
◆ l_get_node_or_nil()
int ModApiEnvVM::l_get_node_or_nil |
( |
lua_State * |
L | ) |
|
|
staticprivate |
◆ l_set_node_level()
int ModApiEnvVM::l_set_node_level |
( |
lua_State * |
L | ) |
|
|
staticprivate |
◆ l_spawn_tree()
int ModApiEnvVM::l_spawn_tree |
( |
lua_State * |
L | ) |
|
|
staticprivate |
The documentation for this class was generated from the following files: