X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;ds=sidebyside;f=src%2Fworld%2FWorld.hpp;h=2fd312c7ce39efb990ed2be07b16f0ce6b7313a8;hb=ede25c0a2f59e21521d1cd962e6ea9d78169ca12;hp=6bd8128dc9fb41073748952702ee071546306369;hpb=7bb75960dbf9bfdee9ac865384aca81791b3da5c;p=blank.git diff --git a/src/world/World.hpp b/src/world/World.hpp index 6bd8128..2fd312c 100644 --- a/src/world/World.hpp +++ b/src/world/World.hpp @@ -6,7 +6,6 @@ #include "Entity.hpp" #include "Generator.hpp" #include "../graphics/ArrayTexture.hpp" -#include "../model/shapes.hpp" #include #include @@ -37,7 +36,7 @@ public: ChunkLoader::Config load = ChunkLoader::Config(); }; - World(const Assets &, const Config &); + World(const Assets &, const Config &, const WorldSave &); bool Intersection( const Ray &, @@ -50,7 +49,7 @@ public: bool Intersection(const Entity &e, std::vector &); void Resolve(Entity &e, std::vector &); - BlockTypeRegistry &BlockTypes() noexcept { return blockType; } + BlockTypeRegistry &BlockTypes() noexcept { return block_type; } ChunkLoader &Loader() noexcept { return chunks; } Entity &Player() { return *player; } @@ -64,10 +63,7 @@ public: void Render(Viewport &); private: - BlockTypeRegistry blockType; - CuboidShape blockShape; - StairShape stairShape; - CuboidShape slabShape; + BlockTypeRegistry block_type; ArrayTexture block_tex;