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

Function isStoneMaterial

library/include/TileTypes.h:195–204  ·  view source on GitHub ↗

Stone materials - their tiles are completely interchangable

Source from the content-addressed store, hash-verified

193
194 // Stone materials - their tiles are completely interchangable
195 inline bool isStoneMaterial(df::tiletype_material mat)
196 {
197 using namespace df::enums::tiletype_material;
198 switch (mat) {
199 case STONE: case LAVA_STONE: case MINERAL: case FEATURE:
200 return true;
201 default:
202 return false;
203 }
204 }
205 inline bool isStoneMaterial(df::tiletype tt) { return isStoneMaterial(tileMaterial(tt)); }
206
207 // Regular ground materials = stone + soil

Callers 3

FOR_ENUM_ITEMSFunction · 0.85
matchesMethod · 0.85
dig_nowFunction · 0.85

Calls 1

tileMaterialFunction · 0.85

Tested by

no test coverage detected