mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
30 lines
No EOL
519 B
C++
30 lines
No EOL
519 B
C++
#ifndef WORLD_WORLD_H_
|
|
#define WORLD_WORLD_H_
|
|
|
|
#include <string>
|
|
#include <filesystem>
|
|
#include "../typedefs.h"
|
|
#include "../settings.h"
|
|
|
|
class WorldFiles;
|
|
class Chunks;
|
|
class Level;
|
|
class Player;
|
|
|
|
class World {
|
|
public:
|
|
std::string name;
|
|
WorldFiles* wfile;
|
|
uint64_t seed;
|
|
|
|
World(std::string name,
|
|
std::filesystem::path directory,
|
|
uint64_t seed,
|
|
EngineSettings& settings);
|
|
~World();
|
|
|
|
void write(Level* level, bool writeChunks);
|
|
Level* load(EngineSettings& settings);
|
|
};
|
|
|
|
#endif /* WORLD_WORLD_H_ */ |