mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 14:01:49 +00:00
Worlds indexing
This commit is contained in:
parent
eea920d98f
commit
f513c094a9
19 changed files with 383 additions and 141 deletions
|
|
@ -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_ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue