#include <l_vmanip.h>
Public Member Functions | |
LuaVoxelManip (MMVManip *mmvm, bool is_mapgen_vm) | |
LuaVoxelManip (Map *map, v3s16 p1, v3s16 p2) | |
LuaVoxelManip (Map *map) | |
~LuaVoxelManip () | |
Static Public Member Functions | |
static int | create_object (lua_State *L) |
static void | create (lua_State *L, MMVManip *mmvm, bool is_mapgen_vm) |
static void * | packIn (lua_State *L, int idx) |
static void | packOut (lua_State *L, void *ptr) |
static void | Register (lua_State *L) |
Static Public Member Functions inherited from ModApiBase | |
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. | |
Public Attributes | |
MMVManip * | vm = nullptr |
Static Public Attributes | |
static const char | className [] = "VoxelManip" |
Static Private Member Functions | |
static int | gc_object (lua_State *L) |
static int | l_read_from_map (lua_State *L) |
static int | l_get_data (lua_State *L) |
static int | l_set_data (lua_State *L) |
static int | l_write_to_map (lua_State *L) |
static int | l_get_node_at (lua_State *L) |
static int | l_set_node_at (lua_State *L) |
static int | l_update_map (lua_State *L) |
static int | l_update_liquids (lua_State *L) |
static int | l_calc_lighting (lua_State *L) |
static int | l_set_lighting (lua_State *L) |
static int | l_get_light_data (lua_State *L) |
static int | l_set_light_data (lua_State *L) |
static int | l_get_param2_data (lua_State *L) |
static int | l_set_param2_data (lua_State *L) |
static int | l_was_modified (lua_State *L) |
static int | l_get_emerged_area (lua_State *L) |
Private Attributes | |
bool | is_mapgen_vm = false |
Static Private Attributes | |
static const luaL_Reg | methods [] |
Additional Inherited Members | |
Protected Member Functions inherited from LuaHelper | |
template<> | |
bool | readParam (lua_State *L, int index) |
template<> | |
s16 | readParam (lua_State *L, int index) |
template<> | |
int | readParam (lua_State *L, int index) |
template<> | |
float | readParam (lua_State *L, int index) |
template<> | |
v2s16 | readParam (lua_State *L, int index) |
template<> | |
v2f | readParam (lua_State *L, int index) |
template<> | |
v3f | readParam (lua_State *L, int index) |
template<> | |
std::string_view | readParam (lua_State *L, int index) |
template<> | |
std::string | readParam (lua_State *L, int index) |
template<> | |
std::string_view | readParam (lua_State *L, int index) |
Read a string from Lua state L at index without copying it. | |
Static Protected Member Functions inherited from LuaHelper | |
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. | |
LuaVoxelManip::LuaVoxelManip | ( | MMVManip * | mmvm, |
bool | is_mapgen_vm ) |
References getNodeBlockPos(), MMVManip::initialEmerge(), sortBoxVerticies(), and vm.
LuaVoxelManip::LuaVoxelManip | ( | Map * | map | ) |
LuaVoxelManip::~LuaVoxelManip | ( | ) |
References is_mapgen_vm, and vm.
|
static |
References LuaVoxelManip(), className, and is_mapgen_vm.
Referenced by ModApiMapgen::l_get_mapgen_object(), ScriptApiMapgen::on_generated(), and packOut().
|
static |
References LuaVoxelManip(), check_v3s16(), className, and GET_ENV_PTR.
Referenced by ModApiEnv::l_get_voxel_manip(), and Register().
|
staticprivate |
|
staticprivate |
References ModApiMapgen::calc_lighting(), check_v3s16(), ModApiBase::checkObject(), VoxelArea::contains(), is_mapgen_vm, log_deprecated(), VoxelManipulator::m_area, MAP_BLOCKSIZE, VoxelArea::MaxEdge, VoxelArea::MinEdge, LuaHelper::readParam(), sortBoxVerticies(), and vm.
|
staticprivate |
References ModApiBase::checkObject(), MapNode::getContent(), VoxelArea::getVolume(), VoxelManipulator::m_area, VoxelManipulator::m_data, NO_MAP_LOCK_REQUIRED, and vm.
|
staticprivate |
References ModApiBase::checkObject(), VoxelManipulator::m_area, VoxelArea::MaxEdge, VoxelArea::MinEdge, NO_MAP_LOCK_REQUIRED, push_v3s16(), and vm.
|
staticprivate |
References ModApiBase::checkObject(), VoxelArea::getVolume(), VoxelManipulator::m_area, VoxelManipulator::m_data, NO_MAP_LOCK_REQUIRED, MapNode::param1, and vm.
|
staticprivate |
References check_v3s16(), ModApiBase::checkObject(), VoxelManipulator::getNodeNoExNoEmerge(), NO_MAP_LOCK_REQUIRED, pushnode(), and vm.
|
staticprivate |
References ModApiBase::checkObject(), VoxelArea::getVolume(), VoxelManipulator::m_area, VoxelManipulator::m_data, NO_MAP_LOCK_REQUIRED, MapNode::param2, and vm.
|
staticprivate |
References check_v3s16(), ModApiBase::checkObject(), ModApiBase::getEmergeThread(), getNodeBlockPos(), MMVManip::initialEmerge(), MMVManip::isOrphan(), VoxelManipulator::m_area, MAP_LOCK_REQUIRED, VoxelArea::MaxEdge, VoxelArea::MinEdge, push_v3s16(), sortBoxVerticies(), and vm.
|
staticprivate |
References ModApiBase::checkObject(), VoxelArea::getVolume(), VoxelManipulator::m_area, VoxelManipulator::m_data, NO_MAP_LOCK_REQUIRED, MapNode::setContent(), and vm.
|
staticprivate |
References ModApiBase::checkObject(), VoxelArea::getVolume(), VoxelManipulator::m_area, VoxelManipulator::m_data, NO_MAP_LOCK_REQUIRED, MapNode::param1, and vm.
|
staticprivate |
References check_v3s16(), ModApiBase::checkObject(), VoxelArea::contains(), getintfield_default(), is_mapgen_vm, log_deprecated(), VoxelManipulator::m_area, MAP_BLOCKSIZE, VoxelArea::MaxEdge, VoxelArea::MinEdge, ModApiMapgen::set_lighting(), sortBoxVerticies(), and vm.
|
staticprivate |
References check_v3s16(), ModApiBase::checkObject(), NO_MAP_LOCK_REQUIRED, readnode(), VoxelManipulator::setNodeNoEmerge(), and vm.
|
staticprivate |
References ModApiBase::checkObject(), VoxelArea::getVolume(), VoxelManipulator::m_area, VoxelManipulator::m_data, NO_MAP_LOCK_REQUIRED, MapNode::param2, and vm.
|
staticprivate |
References ModApiBase::checkObject(), ModApiMapgen::update_liquids(), and vm.
|
staticprivate |
|
staticprivate |
References ModApiBase::checkObject(), MMVManip::m_is_dirty, NO_MAP_LOCK_REQUIRED, and vm.
|
staticprivate |
References voxalgo::blit_back_with_light(), MMVManip::blitBackAll(), ModApiBase::checkObject(), Map::dispatchEvent(), GET_ENV_PTR, ModApiBase::getEmergeThread(), is_mapgen_vm, MMVManip::isOrphan(), MEET_OTHER, LuaHelper::readParam(), MapEditEvent::type, and vm.
|
static |
References ModApiBase::checkObject(), MMVManip::clone(), idx, is_mapgen_vm, and vm.
Referenced by Register().
|
static |
References create(), ModApiBase::getEnv(), Environment::getMap(), MMVManip::reparent(), and vm.
Referenced by Register().
|
static |
References className, create_object(), gc_object(), methods, packIn(), packOut(), ModApiBase::registerClass(), and script_register_packer().
Referenced by ServerScripting::InitializeAsync(), EmergeScripting::InitializeModApi(), and ServerScripting::InitializeModApi().
|
static |
Referenced by create(), create_object(), and Register().
|
private |
Referenced by ~LuaVoxelManip(), create(), l_calc_lighting(), l_set_lighting(), l_write_to_map(), and packIn().
|
staticprivate |
Referenced by Register().
MMVManip* LuaVoxelManip::vm = nullptr |
Referenced by LuaVoxelManip(), ~LuaVoxelManip(), l_calc_lighting(), l_get_data(), l_get_emerged_area(), l_get_light_data(), l_get_node_at(), l_get_param2_data(), 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(), l_write_to_map(), packIn(), and packOut().