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

Method getSelectedJob

library/modules/Gui.cpp:1115–1123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1113}
1114
1115df::job *Gui::getSelectedJob(color_ostream &out, bool quiet)
1116{
1117 df::job *job = getAnyJob(Core::getTopViewscreen());
1118
1119 if (!job && !quiet)
1120 out.printerr("No job can be found from what is selected in the UI.\n");
1121
1122 return job;
1123}
1124
1125df::unit *Gui::getAnyUnit(df::viewscreen *top)
1126{

Callers 1

getAnyJobMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected