Worlds indexing

This commit is contained in:
MihailRis
2023-12-08 21:00:15 +03:00
parent eea920d98f
commit f513c094a9
19 changed files with 383 additions and 141 deletions
+5 -1
View File
@@ -13,6 +13,7 @@ class WorldFiles;
class Chunks;
class Level;
class Player;
class ContentLUT;
class world_load_error : public std::runtime_error {
public:
@@ -44,6 +45,9 @@ public:
void updateTimers(float delta);
void write(Level* level);
static ContentLUT* checkIndices(const std::filesystem::path& directory,
const Content* content);
static Level* create(std::string name,
std::filesystem::path directory,
uint64_t seed,
@@ -54,4 +58,4 @@ public:
const Content* content);
};
#endif /* WORLD_WORLD_H_ */
#endif /* WORLD_WORLD_H_ */