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

Method getTileBlock

library/modules/Maps.cpp:365–370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

363}
364
365df::map_block *Maps::getTileBlock (int32_t x, int32_t y, int32_t z)
366{
367 if (!isValidTilePos(x,y,z))
368 return NULL;
369 return world->map.block_index[x >> 4][y >> 4][z];
370}
371
372df::map_block *Maps::ensureTileBlock (int32_t x, int32_t y, int32_t z)
373{

Callers

nothing calls this directly

Calls 1

isValidTilePosFunction · 0.85

Tested by

no test coverage detected