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

Function has_any_groups_above

plugins/channel-safely/include/inlines.h:175–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173}
174
175inline bool has_any_groups_above(const ChannelGroups &groups, const Group &group) {
176 // for each designation in the group
177 for (auto &pos : group) {
178 df::coord above(pos);
179 above.z++;
180 if (groups.count(above)) {
181 return true;
182 }
183 }
184 // if there are no incomplete groups above this group, then this group is ready
185 return false;
186}
187
188inline void cancel_job(df::job* job) {
189 if (job) {

Callers 2

manage_groupsMethod · 0.85
manage_groupMethod · 0.85

Calls 1

countMethod · 0.45

Tested by

no test coverage detected