You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Define a df::coord iterator coordRange for the Maps module, similar to Units module's citizensRange.
This should iterate all df::coords contained in a cuboid defined by two given df::coords. We might decide to not check if the input coords lie in the current loaded map bounds, because the function could be used to iterate block, region, etc., coords. (We can have a version that accepts a df::coord2d by setting z to 0 and returning the appropriate type.)
We can also accept a cuboid struct (#4595) and make use of it to simplify the iterator (rather than figure out which direction we need to iterate x/y/z.)
The text was updated successfully, but these errors were encountered:
Define a
df::coord
iteratorcoordRange
for theMaps
module, similar toUnits
module'scitizensRange
.This should iterate all
df::coord
s contained in a cuboid defined by two givendf::coord
s. We might decide to not check if the input coords lie in the current loaded map bounds, because the function could be used to iterate block, region, etc., coords. (We can have a version that accepts adf::coord2d
by settingz
to 0 and returning the appropriate type.)We can also accept a cuboid struct (#4595) and make use of it to simplify the iterator (rather than figure out which direction we need to iterate x/y/z.)
The text was updated successfully, but these errors were encountered: