mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
Merge branch 'dev' into pathfinding
This commit is contained in:
commit
ca1b761c8c
57 changed files with 818 additions and 207 deletions
|
|
@ -116,6 +116,8 @@ std::unique_ptr<Level> World::load(
|
|||
if (!info.has_value()) {
|
||||
throw world_load_error("could not to find world.json");
|
||||
}
|
||||
info->isLoaded = true;
|
||||
|
||||
logger.info() << "loading world " << info->name << " ("
|
||||
<< worldFilesPtr->getFolder().string() << ")";
|
||||
logger.info() << "world version: " << info->major << "." << info->minor
|
||||
|
|
|
|||
|
|
@ -45,6 +45,8 @@ struct WorldInfo : public Serializable {
|
|||
|
||||
int major = 0, minor = -1;
|
||||
|
||||
bool isLoaded = false;
|
||||
|
||||
dv::value serialize() const override;
|
||||
void deserialize(const dv::value& src) override;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue