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

Function fill_dig_jobs

plugins/dig.cpp:163–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161}
162
163static void fill_dig_jobs(std::unordered_map<df::coord, df::job *> &dig_jobs) {
164 df::job_list_link *link = world->jobs.list.next;
165 for (; link; link = link->next) {
166 auto job = link->item;
167 auto type = ENUM_ATTR(job_type, type, job->job_type);
168 if (type != job_type_class::Digging)
169 continue;
170 dig_jobs.emplace(job->pos, job);
171 }
172}
173
174// scrub no-longer designated tiles
175static void do_cycle(color_ostream &out) {

Callers 5

do_cycleFunction · 0.85
toggle_cur_levelFunction · 0.85
registerWarmDampTileFunction · 0.85
registerWarmDampBoxFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected