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

Function ensureBlockAt

library/include/modules/MapCache.h:430–434  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

428 }
429
430 bool ensureBlockAt(df::coord coord)
431 {
432 Block *b = BlockAtTile(coord);
433 return b ? b->Allocate() : false;
434 }
435
436 /// delete the block from memory
437 void discardBlock(Block *block);

Callers

nothing calls this directly

Calls 2

BlockAtTileFunction · 0.85
AllocateMethod · 0.45

Tested by

no test coverage detected