MCPcopy Create free account
hub / github.com/DFHack/dfhack / isGroundMaterial

Function isGroundMaterial

library/include/TileTypes.h:208–218  ·  view source on GitHub ↗

Regular ground materials = stone + soil

Source from the content-addressed store, hash-verified

206
207 // Regular ground materials = stone + soil
208 inline bool isGroundMaterial(df::tiletype_material mat)
209 {
210 using namespace df::enums::tiletype_material;
211 switch (mat) {
212 case SOIL:
213 case STONE: case LAVA_STONE: case MINERAL: case FEATURE:
214 return true;
215 default:
216 return false;
217 }
218 }
219 inline bool isGroundMaterial(df::tiletype tt) { return isGroundMaterial(tileMaterial(tt)); }
220
221 // Core materials - their tile sets are sufficiently close to stone

Callers

nothing calls this directly

Calls 1

tileMaterialFunction · 0.85

Tested by

no test coverage detected