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

Method forCoord

library/modules/Maps.cpp:203–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201}
202
203void cuboid::forCoord(std::function<bool(df::coord)> fn, bool row_major) const
204{
205 if (isValid()) // Only iterate if valid cuboid.
206 Maps::forCoord(fn, x_min, y_min, z_max, x_max, y_max, z_min, row_major);
207}
208
209void cuboid::forBlock(std::function<bool(df::map_block *, cuboid)> fn, bool ensure_block) const
210{

Callers 6

setAreaAquiferMethod · 0.80
removeAreaAquiferMethod · 0.80
get_first_tileFunction · 0.80
addBlockColumnsFunction · 0.80
updateInvasionMapFunction · 0.80
regrass_cuboidFunction · 0.80

Calls 2

forCoordFunction · 0.85
isValidFunction · 0.50

Tested by

no test coverage detected