#include <l_env.h>
|
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 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.
|
|
◆ checkArea()
void ModApiEnvBase::checkArea |
( |
v3s16 & |
minp, |
|
|
v3s16 & |
maxp |
|
) |
| |
|
staticprotected |
◆ collectNodeIds()
void ModApiEnvBase::collectNodeIds |
( |
lua_State * |
L, |
|
|
int |
idx, |
|
|
const NodeDefManager * |
ndef, |
|
|
std::vector< content_t > & |
filter |
|
) |
| |
|
staticprotected |
◆ findNodeNear()
template<typename F >
int ModApiEnvBase::findNodeNear |
( |
lua_State * |
L, |
|
|
v3s16 |
pos, |
|
|
int |
radius, |
|
|
const std::vector< content_t > & |
filter, |
|
|
int |
start_radius, |
|
|
F && |
getNode |
|
) |
| |
|
staticprotected |
◆ findNodesInArea()
template<typename F >
int ModApiEnvBase::findNodesInArea |
( |
lua_State * |
L, |
|
|
const NodeDefManager * |
ndef, |
|
|
const std::vector< content_t > & |
filter, |
|
|
bool |
grouped, |
|
|
F && |
iterate |
|
) |
| |
|
staticprotected |
◆ findNodesInAreaUnderAir()
template<typename F >
int ModApiEnvBase::findNodesInAreaUnderAir |
( |
lua_State * |
L, |
|
|
v3s16 |
minp, |
|
|
v3s16 |
maxp, |
|
|
const std::vector< content_t > & |
filter, |
|
|
F && |
getNode |
|
) |
| |
|
staticprotected |
◆ es_BlockStatusType
const EnumString ModApiEnvBase::es_BlockStatusType |
|
staticprotected |
Initial value:=
{
{0, NULL},
}
@ BS_EMERGING
Definition: serverenvironment.h:370
@ BS_ACTIVE
Definition: serverenvironment.h:372
@ BS_LOADED
Definition: serverenvironment.h:371
@ BS_UNKNOWN
Definition: serverenvironment.h:369
Referenced by ModApiEnv::l_compare_block_status().
◆ es_ClearObjectsMode
const EnumString ModApiEnvBase::es_ClearObjectsMode |
|
staticprotected |
Initial value:=
{
{0, NULL},
}
@ CLEAR_OBJECTS_MODE_QUICK
Definition: serverenvironment.h:216
@ CLEAR_OBJECTS_MODE_FULL
Definition: serverenvironment.h:212
Referenced by ModApiEnv::l_clear_objects().
The documentation for this class was generated from the following files: