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

Method getSelectedPlant

library/modules/Gui.cpp:1708–1716  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1706}
1707
1708df::plant *Gui::getSelectedPlant(color_ostream &out, bool quiet)
1709{
1710 df::plant *plant = getAnyPlant(Core::getTopViewscreen());
1711
1712 if (!plant && !quiet)
1713 out.printerr("No plant is selected in the UI.\n");
1714
1715 return plant;
1716}
1717
1718//
1719

Callers 1

getAnyPlantMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected