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

Function staticMaterialAt

library/include/modules/MapCache.h:218–227  ·  view source on GitHub ↗

Static layer material (i.e. base + constructions)

Source from the content-addressed store, hash-verified

216 }
217 /// Static layer material (i.e. base + constructions)
218 t_matpair staticMaterialAt(df::coord2d p)
219 {
220 if (!basemats) init_tiles(true);
221 if (tiles->con_info)
222 return t_matpair(
223 index_tile(tiles->con_info->mat_type,p),
224 index_tile(tiles->con_info->mat_index,p)
225 );
226 return baseMaterialAt(p);
227 }
228 bool hasConstructionAt(df::coord2d p)
229 {
230 if (!tiles) init_tiles();

Callers

nothing calls this directly

Calls 4

t_matpairClass · 0.85
index_tileFunction · 0.85
baseMaterialAtFunction · 0.85
BlockAtTileFunction · 0.85

Tested by

no test coverage detected