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

Function init_diggers

plugins/burrow.cpp:114–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112//
113
114static void init_diggers(color_ostream& out) {
115 if (!Core::getInstance().isMapLoaded() || !World::isFortressMode()) {
116 DEBUG(status, out).print("map not yet loaded; not scanning jobs\n");
117 return;
118 }
119
120 std::vector<df::job*> pvec;
121 int start_id = 0;
122 if (Job::listNewlyCreated(&pvec, &start_id)) {
123 for (auto job : pvec) {
124 if (Job::getWorker(job))
125 jobStartedHandler(out, job);
126 }
127 }
128}
129
130static void jobStartedHandler(color_ostream& out, void* ptr) {
131 DEBUG(event, out).print("entering jobStartedHandler\n");

Callers 1

Calls 2

jobStartedHandlerFunction · 0.85
printMethod · 0.45

Tested by

no test coverage detected