mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
update WorldConverter (WIP)
This commit is contained in:
parent
3f826a88d3
commit
728795f0f3
12 changed files with 299 additions and 97 deletions
|
|
@ -74,7 +74,9 @@ fs::path WorldFiles::getPacksFile() const {
|
|||
return directory / fs::path("packs.list");
|
||||
}
|
||||
|
||||
void WorldFiles::write(const World* world, const Content* content) {
|
||||
void WorldFiles::write(
|
||||
const World* world, const Content* content
|
||||
) {
|
||||
if (world) {
|
||||
writeWorldInfo(world->getInfo());
|
||||
if (!fs::exists(getPacksFile())) {
|
||||
|
|
@ -84,8 +86,10 @@ void WorldFiles::write(const World* world, const Content* content) {
|
|||
if (generatorTestMode) {
|
||||
return;
|
||||
}
|
||||
writeIndices(content->getIndices());
|
||||
regions.write();
|
||||
if (content) {
|
||||
writeIndices(content->getIndices());
|
||||
}
|
||||
regions.writeAll();
|
||||
}
|
||||
|
||||
void WorldFiles::writePacks(const std::vector<ContentPack>& packs) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue