mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
LuaVoxelManip: Add option to allocate blank data
This commit is contained in:
parent
ae2721f2c8
commit
8334100fe1
6 changed files with 60 additions and 4 deletions
|
@ -33,7 +33,6 @@ class ManualMapVoxelManipulator;
|
|||
*/
|
||||
class LuaVoxelManip : public ModApiBase {
|
||||
private:
|
||||
ManualMapVoxelManipulator *vm;
|
||||
std::map<v3s16, MapBlock *> modified_blocks;
|
||||
bool is_mapgen_vm;
|
||||
|
||||
|
@ -62,8 +61,11 @@ private:
|
|||
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);
|
||||
|
||||
public:
|
||||
ManualMapVoxelManipulator *vm;
|
||||
|
||||
LuaVoxelManip(ManualMapVoxelManipulator *mmvm, bool is_mapgen_vm);
|
||||
LuaVoxelManip(Map *map);
|
||||
~LuaVoxelManip();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue