#include <l_vmanip.h>
|
template<> |
bool | readParam (lua_State *L, int index) |
|
static bool | isNaN (lua_State *L, int idx) |
|
template<typename T > |
static T | readParam (lua_State *L, int index) |
| Read a value using a template type T from Lua State L and index. More...
|
|
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 and index. More...
|
|
◆ LuaVoxelManip() [1/3]
LuaVoxelManip::LuaVoxelManip |
( |
MMVManip * |
mmvm, |
|
|
bool |
is_mapgen_vm |
|
) |
| |
◆ LuaVoxelManip() [2/3]
◆ LuaVoxelManip() [3/3]
LuaVoxelManip::LuaVoxelManip |
( |
Map * |
map | ) |
|
◆ ~LuaVoxelManip()
LuaVoxelManip::~LuaVoxelManip |
( |
| ) |
|
◆ checkobject()
LuaVoxelManip * LuaVoxelManip::checkobject |
( |
lua_State * |
L, |
|
|
int |
narg |
|
) |
| |
|
static |
References className, and NO_MAP_LOCK_REQUIRED.
Referenced by l_calc_lighting(), ModApiMapgen::l_generate_decorations(), ModApiMapgen::l_generate_ores(), l_get_data(), l_get_emerged_area(), l_get_light_data(), l_get_node_at(), l_get_param2_data(), ModApiMapgen::l_place_schematic_on_vmanip(), l_read_from_map(), l_set_data(), l_set_light_data(), l_set_lighting(), l_set_node_at(), l_set_param2_data(), l_update_liquids(), l_was_modified(), and l_write_to_map().
◆ create_object()
int LuaVoxelManip::create_object |
( |
lua_State * |
L | ) |
|
|
static |
◆ gc_object()
int LuaVoxelManip::gc_object |
( |
lua_State * |
L | ) |
|
|
staticprivate |
◆ l_calc_lighting()
int LuaVoxelManip::l_calc_lighting |
( |
lua_State * |
L | ) |
|
|
staticprivate |
References Mapgen::calcLighting(), check_v3s16(), checkobject(), VoxelArea::contains(), Server::getEmergeManager(), Server::getNodeDefManager(), ModApiBase::getServer(), is_mapgen_vm, VoxelManipulator::m_area, MAP_BLOCKSIZE, VoxelArea::MaxEdge, EmergeManager::mgparams, VoxelArea::MinEdge, Mapgen::ndef, NO_MAP_LOCK_REQUIRED, sortBoxVerticies(), Mapgen::vm, vm, warningstream, MapgenParams::water_level, and Mapgen::water_level.
◆ l_get_data()
int LuaVoxelManip::l_get_data |
( |
lua_State * |
L | ) |
|
|
staticprivate |
◆ l_get_emerged_area()
int LuaVoxelManip::l_get_emerged_area |
( |
lua_State * |
L | ) |
|
|
staticprivate |
◆ l_get_light_data()
int LuaVoxelManip::l_get_light_data |
( |
lua_State * |
L | ) |
|
|
staticprivate |
◆ l_get_node_at()
int LuaVoxelManip::l_get_node_at |
( |
lua_State * |
L | ) |
|
|
staticprivate |
◆ l_get_param2_data()
int LuaVoxelManip::l_get_param2_data |
( |
lua_State * |
L | ) |
|
|
staticprivate |
◆ l_read_from_map()
int LuaVoxelManip::l_read_from_map |
( |
lua_State * |
L | ) |
|
|
staticprivate |
References check_v3s16(), checkobject(), getNodeBlockPos(), MMVManip::initialEmerge(), VoxelManipulator::m_area, MAP_LOCK_REQUIRED, VoxelArea::MaxEdge, VoxelArea::MinEdge, push_v3s16(), sortBoxVerticies(), and vm.
◆ l_set_data()
int LuaVoxelManip::l_set_data |
( |
lua_State * |
L | ) |
|
|
staticprivate |
◆ l_set_light_data()
int LuaVoxelManip::l_set_light_data |
( |
lua_State * |
L | ) |
|
|
staticprivate |
◆ l_set_lighting()
int LuaVoxelManip::l_set_lighting |
( |
lua_State * |
L | ) |
|
|
staticprivate |
References check_v3s16(), checkobject(), VoxelArea::contains(), getintfield_default(), is_mapgen_vm, VoxelManipulator::m_area, MAP_BLOCKSIZE, VoxelArea::MaxEdge, VoxelArea::MinEdge, NO_MAP_LOCK_REQUIRED, Mapgen::setLighting(), sortBoxVerticies(), Mapgen::vm, vm, and warningstream.
◆ l_set_node_at()
int LuaVoxelManip::l_set_node_at |
( |
lua_State * |
L | ) |
|
|
staticprivate |
◆ l_set_param2_data()
int LuaVoxelManip::l_set_param2_data |
( |
lua_State * |
L | ) |
|
|
staticprivate |
◆ l_update_liquids()
int LuaVoxelManip::l_update_liquids |
( |
lua_State * |
L | ) |
|
|
staticprivate |
References checkobject(), GET_ENV_PTR, Server::getNodeDefManager(), ModApiBase::getServer(), VoxelManipulator::m_area, Map::m_transforming_liquid, VoxelArea::MaxEdge, VoxelArea::MinEdge, Mapgen::ndef, Mapgen::updateLiquid(), Mapgen::vm, and vm.
◆ l_update_map()
int LuaVoxelManip::l_update_map |
( |
lua_State * |
L | ) |
|
|
staticprivate |
◆ l_was_modified()
int LuaVoxelManip::l_was_modified |
( |
lua_State * |
L | ) |
|
|
staticprivate |
◆ l_write_to_map()
int LuaVoxelManip::l_write_to_map |
( |
lua_State * |
L | ) |
|
|
staticprivate |
References voxalgo::blit_back_with_light(), MMVManip::blitBackAll(), checkobject(), Map::dispatchEvent(), GET_ENV_PTR, is_mapgen_vm, MAP_LOCK_REQUIRED, MEET_OTHER, modified_blocks, MapEditEvent::type, and vm.
◆ Register()
void LuaVoxelManip::Register |
( |
lua_State * |
L | ) |
|
|
static |
◆ className
const char LuaVoxelManip::className = "VoxelManip" |
|
staticprivate |
◆ is_mapgen_vm
bool LuaVoxelManip::is_mapgen_vm = false |
|
private |
◆ methods
const luaL_Reg LuaVoxelManip::methods |
|
staticprivate |
Initial value:= {
{0,0}
}
Definition: l_vmanip.h:34
#define luamethod(class, name)
Definition: l_internal.h:31
Referenced by Register().
◆ modified_blocks
◆ vm
Referenced by LuaVoxelManip(), ~LuaVoxelManip(), l_calc_lighting(), ModApiMapgen::l_generate_decorations(), ModApiMapgen::l_generate_ores(), l_get_data(), l_get_emerged_area(), l_get_light_data(), l_get_node_at(), l_get_param2_data(), ModApiMapgen::l_place_schematic_on_vmanip(), l_read_from_map(), l_set_data(), l_set_light_data(), l_set_lighting(), l_set_node_at(), l_set_param2_data(), l_update_liquids(), l_was_modified(), and l_write_to_map().
The documentation for this class was generated from the following files: