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

Function isLayerAt

library/include/modules/MapCache.h:160–165  ·  view source on GitHub ↗

Check if the base layer tile is layer stone or soil

Source from the content-addressed store, hash-verified

158 }
159 /// Check if the base layer tile is layer stone or soil
160 bool isLayerAt(df::coord2d p)
161 {
162 using namespace df::enums::tiletype_material;
163 auto tm = tileMaterial(baseTiletypeAt(p));
164 return tm == STONE || tm == SOIL;
165 }
166
167 /// Vein material at pos (even if there is no vein tile), or -1 if none
168 int16_t veinMaterialAt(df::coord2d p)

Callers

nothing calls this directly

Calls 3

tileMaterialFunction · 0.85
baseTiletypeAtFunction · 0.85
BlockAtTileFunction · 0.85

Tested by

no test coverage detected