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

Function command_result plugin_init

plugins/autonestbox.cpp:56–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54static void autonestbox_cycle(color_ostream &out);
55
56DFhackCExport command_result plugin_init(color_ostream &out, std::vector <PluginCommand> &commands) {
57 commands.push_back(PluginCommand(
58 plugin_name,
59 "Auto-assign egg-laying female pets to nestbox zones.",
60 df_autonestbox));
61 return CR_OK;
62}
63
64DFhackCExport command_result plugin_enable(color_ostream &out, bool enable) {
65 if (!Core::getInstance().isMapLoaded() || !World::isFortressMode()) {

Callers

nothing calls this directly

Calls 1

PluginCommandFunction · 0.85

Tested by

no test coverage detected