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

Method blockAt

plugins/3dveins.cpp:404–416  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

402 }
403
404 GeoBlock *blockAt(df::coord pos)
405 {
406 assert(pos.z >= 0);
407 if (pos.z >= blocks.size().z)
408 blocks.resize_depth(pos.z+1);
409
410 GeoBlock *&blk = blocks(pos);
411 if (!blk) {
412 blk = new GeoBlock(this, pos);
413 block_list.push_back(blk);
414 }
415 return blk;
416 }
417
418 GeoBlock *getBlockAt(df::coord pos)
419 {

Callers 1

scan_block_tilesMethod · 0.80

Calls 2

resize_depthMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected