mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 21:41:50 +00:00
Refactor, world.bin file, BinaryWriter, BinaryReader
This commit is contained in:
parent
9bc236b71a
commit
6cd775c27d
14 changed files with 378 additions and 126 deletions
|
|
@ -15,13 +15,16 @@ class World {
|
|||
public:
|
||||
std::string name;
|
||||
WorldFiles* wfile;
|
||||
int seed;
|
||||
uint64_t seed;
|
||||
|
||||
World(std::string name, std::filesystem::path directory, int seed, EngineSettings& settings);
|
||||
World(std::string name,
|
||||
std::filesystem::path directory,
|
||||
uint64_t seed,
|
||||
EngineSettings& settings);
|
||||
~World();
|
||||
|
||||
void write(Level* level, bool writeChunks);
|
||||
Level* loadLevel(EngineSettings& settings);
|
||||
Level* load(EngineSettings& settings);
|
||||
};
|
||||
|
||||
#endif /* WORLD_WORLD_H_ */
|
||||
Loading…
Add table
Add a link
Reference in a new issue