mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 20:11:50 +00:00
collect generator voxel fragments to directory
This commit is contained in:
parent
788ad1f6a6
commit
d839da7dab
8 changed files with 5 additions and 3 deletions
|
|
@ -55,7 +55,7 @@ class ContentLoader {
|
|||
public:
|
||||
ContentLoader(ContentPack* pack, ContentBuilder& builder);
|
||||
|
||||
bool fixPackIndices(
|
||||
static bool fixPackIndices(
|
||||
const fs::path& folder,
|
||||
dv::value& indicesRoot,
|
||||
const std::string& contentSection
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ static VoxelStructureMeta load_structure_meta(
|
|||
static std::vector<std::unique_ptr<GeneratingVoxelStructure>> load_structures(
|
||||
const fs::path& structuresFile
|
||||
) {
|
||||
auto structuresDir = structuresFile.parent_path();
|
||||
auto structuresDir = structuresFile.parent_path() / fs::path("fragments");
|
||||
auto map = files::read_json(structuresFile);
|
||||
|
||||
std::vector<std::unique_ptr<GeneratingVoxelStructure>> structures;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue