mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 04:21:50 +00:00
Refactor: added Screen interface class, LevelScreen
This commit is contained in:
parent
79aa754e66
commit
fee25abb5e
11 changed files with 64 additions and 84 deletions
|
|
@ -5,6 +5,7 @@
|
|||
#include <string>
|
||||
#include <unordered_map>
|
||||
#include <string>
|
||||
#include <filesystem>
|
||||
|
||||
#include <glm/glm.hpp>
|
||||
#define GLM_ENABLE_EXPERIMENTAL
|
||||
|
|
@ -29,11 +30,11 @@ struct WorldRegion {
|
|||
class WorldFiles {
|
||||
public:
|
||||
std::unordered_map<glm::ivec2, WorldRegion> regions;
|
||||
std::string directory;
|
||||
std::filesystem::path directory;
|
||||
ubyte* compressionBuffer;
|
||||
bool generatorTestMode;
|
||||
|
||||
WorldFiles(std::string directory, size_t mainBufferCapacity, bool generatorTestMode);
|
||||
WorldFiles(std::filesystem::path directory, size_t mainBufferCapacity, bool generatorTestMode);
|
||||
~WorldFiles();
|
||||
|
||||
void put(Chunk* chunk);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue