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

Function baseMaterialAt

library/include/modules/MapCache.h:144–151  ·  view source on GitHub ↗

Base layer material (i.e. layer stone, veins, feature stone)

Source from the content-addressed store, hash-verified

142 }
143 /// Base layer material (i.e. layer stone, veins, feature stone)
144 t_matpair baseMaterialAt(df::coord2d p)
145 {
146 if (!basemats) init_tiles(true);
147 return t_matpair(
148 index_tile(basemats->mat_type,p),
149 index_tile(basemats->mat_index,p)
150 );
151 }
152 /// Check if the base layer tile is a vein
153 bool isVeinAt(df::coord2d p)
154 {

Callers 1

staticMaterialAtFunction · 0.85

Calls 3

t_matpairClass · 0.85
index_tileFunction · 0.85
BlockAtTileFunction · 0.85

Tested by

no test coverage detected