| 894 | } |
| 895 | |
| 896 | command_result prospector(color_ostream &con, vector <string> & parameters) |
| 897 | { |
| 898 | prospect_options options; |
| 899 | if (!Lua::CallLuaModuleFunction(con, "plugins.prospector", "parse_commandline", std::make_tuple(&options, parameters)) |
| 900 | || options.help) |
| 901 | return CR_WRONG_USAGE; |
| 902 | |
| 903 | // Embark screen active: estimate using world geology data |
| 904 | auto screen = Gui::getViewscreenByType<df::viewscreen_choose_start_sitest>(0); |
| 905 | return screen ? |
| 906 | embark_prospector(con, screen, options) : |
| 907 | map_prospector(con, options); |
| 908 | } |
nothing calls this directly
no test coverage detected