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

Function regrass_block

plugins/regrass.cpp:404–415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

402}
403
404int regrass_block(color_ostream &out, const regrass_options &options, df::map_block *block)
405{ // Regrass all tiles in a single block.
406 CHECK_NULL_POINTER(block);
407 DEBUG(log, out).print("Regrass block at ({}, {}, {})\n",
408 block->map_pos.x, block->map_pos.y, block->map_pos.z);
409
410 int count = 0;
411 for (int tx = 0; tx < 16; tx++)
412 for (int ty = 0; ty < 16; ty++)
413 count += regrass_tile(out, options, block, tx, ty);
414 return count;
415}
416
417int regrass_map(color_ostream &out, const regrass_options &options)
418{ // Regrass entire map.

Callers 2

regrass_mapFunction · 0.85
df_regrassFunction · 0.85

Calls 2

regrass_tileFunction · 0.85
printMethod · 0.45

Tested by

no test coverage detected