| 18 | } |
| 19 | |
| 20 | Database::Database() |
| 21 | : m_textures ("Atlas/Low", 512, 16) |
| 22 | { |
| 23 | m_blocks[(int)ID::Air ] = std::make_unique<Default> ("Air"); |
| 24 | m_blocks[(int)ID::Grass ] = std::make_unique<Default> ("Grass"); |
| 25 | m_blocks[(int)ID::Dirt ] = std::make_unique<Default> ("Dirt"); |
| 26 | m_blocks[(int)ID::Stone ] = std::make_unique<Default> ("Stone"); |
| 27 | m_blocks[(int)ID::Sand ] = std::make_unique<BSand> (); |
| 28 | |
| 29 | m_blocks[(int)ID::Oak_Wood ] = std::make_unique<Default> ("Oak_Wood"); |
| 30 | m_blocks[(int)ID::Oak_Leaf ] = std::make_unique<Default> ("Oak_Leaf"); |
| 31 | |
| 32 | m_blocks[(int)ID::Water ] = std::make_unique<BWater> (); |
| 33 | |
| 34 | m_blocks[(int)ID::Rose ] = std::make_unique<BPlant> ("Rose"); |
| 35 | m_blocks[(int)ID::Tall_Grass ] = std::make_unique<BPlant> ("Tall_Grass"); |
| 36 | } |
| 37 | |
| 38 | const Type& Database::getBlock(uint8_t id) const |
| 39 | { |
nothing calls this directly
no outgoing calls
no test coverage detected