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

Method get

plugins/dig.cpp:2366–2375  ·  view source on GitHub ↗

get from job; if no job, then fall back to querying map

Source from the content-addressed store, hash-verified

2364
2365 // get from job; if no job, then fall back to querying map
2366 designation get(const df::coord &pos) const {
2367 if (designations.count(pos)) {
2368 return designations.at(pos);
2369 }
2370 auto pdes = Maps::getTileDesignation(pos);
2371 auto pocc = Maps::getTileOccupancy(pos);
2372 if (!pdes || !pocc)
2373 return {};
2374 return designation(pos, *pdes, *pocc);
2375 }
2376};
2377
2378static bool is_designated_for_smoothing(const designation &designation) {

Callers 6

paintScreenDesignatedFunction · 0.45
getFunction · 0.45
startMethod · 0.45
connectMethod · 0.45
wrap_in_pointerMethod · 0.45

Calls 4

getTileDesignationFunction · 0.85
getTileOccupancyFunction · 0.85
designationClass · 0.70
countMethod · 0.45

Tested by

no test coverage detected