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

Method mapLayer

plugins/3dveins.cpp:654–664  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

652 */
653
654GeoLayer *VeinGenerator::mapLayer(Block *pb, df::coord2d tile)
655{
656 int idx = pb->biomeIndexAt(tile);
657 GeoBiome *biome = biome_by_idx.at(idx);
658
659 int lidx = pb->layerIndexAt(tile);
660 if (unsigned(lidx) >= biome->layers.size())
661 return NULL;
662
663 return biome->layers[lidx];
664}
665
666static bool isTransientMaterial(df::tiletype tile)
667{

Callers

nothing calls this directly

Calls 2

biomeIndexAtMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected