#ifndef BIOMECOLLECTION_H #define BIOMECOLLECTION_H #include #include #include #include "Biome.h" #include "Chunk.h" #include "Maths/Vec2.h" class BiomeCollection { public: inline BiomeCollection() { m_collection.emplace("grassland", std::make_unique(Biome( static_cast(BlockType::Stone), 0, { {20, {BlockPlacementType::Simple, {BlockType::Sand}}}, {255, {BlockPlacementType::Simple, {BlockType::Snow}}} }) )); }; const std::array GetBiomeBlocks(std::string biome, std::uint32_t height, Scop::Vec2i pos) const; ~BiomeCollection() = default; private: std::unordered_map> m_collection; }; #endif