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

Function newInvasionHandler

plugins/diggingInvaders/diggingInvaders.cpp:203–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201//bool important(df::coord pos, map<df::coord, set<Edge> >& edges, df::coord prev, set<df::coord>& importantPoints, set<Edge>& importantEdges);
202
203void newInvasionHandler(color_ostream& out, void* ptr) {
204 if ( activeDigging )
205 return;
206 activeDigging = true;
207 findAndAssignInvasionJob(out, (void*)0);
208}
209
210command_result diggingInvadersCommand(color_ostream& out, std::vector<std::string>& parameters) {
211 for ( size_t a = 0; a < parameters.size(); a++ ) {

Callers

nothing calls this directly

Calls 1

findAndAssignInvasionJobFunction · 0.85

Tested by

no test coverage detected