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

Method fromUnit

plugins/manipulator.cpp:745–753  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

743 }
744
745 void fromUnit(UnitInfo* u)
746 {
747 for (size_t i = 0; i < NUM_COLUMNS; i++)
748 {
749 if (u->unit->status.labors[columns[i].labor])
750 labors.push_back(columns[i].labor);
751 }
752
753 }
754
755 bool hasLabor (df::unit_labor labor)
756 {

Callers 1

save_from_unitMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected