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

Method getSelectedUnit

plugins/dwarfmonitor.cpp:1548–1551  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1546 }
1547
1548 df::unit *getSelectedUnit() override
1549 {
1550 return (selected_column == 1) ? dwarf_column.getFirstSelectedElem() : nullptr;
1551 }
1552
1553 void feed(set<df::interface_key> *input) override {
1554 bool key_processed = false;

Callers

nothing calls this directly

Calls 1

getFirstSelectedElemMethod · 0.80

Tested by

no test coverage detected