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

Function isVeinAt

library/include/modules/MapCache.h:153–158  ·  view source on GitHub ↗

Check if the base layer tile is a vein

Source from the content-addressed store, hash-verified

151 }
152 /// Check if the base layer tile is a vein
153 bool isVeinAt(df::coord2d p)
154 {
155 using namespace df::enums::tiletype_material;
156 auto tm = tileMaterial(baseTiletypeAt(p));
157 return tm == MINERAL;
158 }
159 /// Check if the base layer tile is layer stone or soil
160 bool isLayerAt(df::coord2d p)
161 {

Callers

nothing calls this directly

Calls 3

tileMaterialFunction · 0.85
baseTiletypeAtFunction · 0.85
BlockAtTileFunction · 0.85

Tested by

no test coverage detected