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

Method init_layers

plugins/3dveins.cpp:633–645  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

631}
632
633bool GeoBiome::init_layers()
634{
635 auto &info_layers = info.geobiome->layers;
636
637 layers.resize(info_layers.size());
638
639 for (size_t i = 0; i < layers.size(); i++)
640 {
641 layers[i] = new GeoLayer(this, i, info_layers[i]);
642 }
643
644 return true;
645}
646
647/*
648 * Initial statistics collection scan. It has to:

Callers 1

init_biomesMethod · 0.80

Calls 2

resizeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected