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

Function command_result plugin_init

plugins/liquids.cpp:67–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65command_result df_liquids_here (color_ostream &out, vector <string> & parameters);
66
67DFhackCExport command_result plugin_init ( color_ostream &out, std::vector <PluginCommand> &commands)
68{
69 liquids_hist.load(HISTORY_FILE);
70 commands.push_back(PluginCommand(
71 "liquids",
72 "Place magma, water or obsidian.",
73 df_liquids,
74 true, true)); // interactive, needs console for prompt
75 commands.push_back(PluginCommand(
76 "liquids-here",
77 "Use settings from liquids at cursor position.",
78 df_liquids_here,
79 Gui::cursor_hotkey)); // non-interactive, needs ingame cursor
80 return CR_OK;
81}
82
83DFhackCExport command_result plugin_shutdown ( color_ostream &out )
84{

Callers

nothing calls this directly

Calls 2

PluginCommandFunction · 0.85
loadMethod · 0.45

Tested by

no test coverage detected