mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
rename generator/Structure to generator/VoxelStructure
This commit is contained in:
parent
8516cf4f7f
commit
390a16ace1
4 changed files with 14 additions and 13 deletions
|
|
@ -4,7 +4,7 @@
|
|||
#include "files/util.hpp"
|
||||
#include "coders/binary_json.hpp"
|
||||
#include "world/Level.hpp"
|
||||
#include "world/generator/Structure.hpp"
|
||||
#include "world/generator/VoxelStructure.hpp"
|
||||
|
||||
using namespace scripting;
|
||||
|
||||
|
|
@ -17,7 +17,7 @@ static int l_save_structure(lua::State* L) {
|
|||
}
|
||||
bool saveEntities = lua::toboolean(L, 4);
|
||||
|
||||
auto structure = Structure::create(level, pointA, pointB, saveEntities);
|
||||
auto structure = VoxelStructure::create(level, pointA, pointB, saveEntities);
|
||||
auto map = structure->serialize();
|
||||
|
||||
auto bytes = json::to_binary(map.get());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue