MCPcopy Create free account
hub / github.com/DFHack/dfhack / command_result plugin_init

Function command_result plugin_init

plugins/autofarm.cpp:429–438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

427
428
429DFhackCExport command_result plugin_init(color_ostream& out, std::vector <PluginCommand>& commands)
430{
431 commands.push_back(
432 PluginCommand("autofarm",
433 "Automatically manage farm crop selection.",
434 autofarm));
435
436 autofarmInstance = std::move(std::make_unique<AutoFarm>());
437 return CR_OK;
438}
439
440DFhackCExport command_result plugin_shutdown(color_ostream& out)
441{

Callers

nothing calls this directly

Calls 1

PluginCommandFunction · 0.85

Tested by

no test coverage detected