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

Function bucket_watched_burrows

plugins/autochop.cpp:352–362  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

350}
351
352static void bucket_watched_burrows(color_ostream & out,
353 map<int, PersistentDataItem *> &clearcut_burrows,
354 map<int, PersistentDataItem *> &chop_burrows) {
355 for (auto &c : watched_burrows) {
356 int id = c.get_int(BURROW_CONFIG_ID);
357 if (c.get_bool(BURROW_CONFIG_CLEARCUT))
358 clearcut_burrows.emplace(id, &c);
359 else if (c.get_bool(BURROW_CONFIG_CHOP))
360 chop_burrows.emplace(id, &c);
361 }
362}
363
364typedef multimap<int, df::plant *, std::greater<int>> TreesBySize;
365

Callers 1

scan_treesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected