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

Function command_result plugin_init

plugins/dig.cpp:70–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68static bool is_painting_damp = false;
69
70DFhackCExport command_result plugin_init ( color_ostream &out, std::vector <PluginCommand> &commands) {
71 textures = Textures::loadTileset(Core::getInstance().getHackPath() / "data" / "art" / "damp_dig_map.png", 32, 32, true);
72
73 commands.push_back(PluginCommand(
74 "digv",
75 "Dig a whole vein.",
76 digv,
77 Gui::cursor_hotkey));
78 commands.push_back(PluginCommand(
79 "digvx",
80 "Dig a whole vein, following through z-levels.",
81 digvx,
82 Gui::cursor_hotkey));
83 commands.push_back(PluginCommand(
84 "digl",
85 "Dig layerstone.",
86 digl,
87 Gui::cursor_hotkey));
88 commands.push_back(PluginCommand(
89 "diglx",
90 "Dig layerstone, following through z-levels.",
91 diglx,
92 Gui::cursor_hotkey));
93 commands.push_back(PluginCommand(
94 "digexp",
95 "Select or designate an exploratory pattern.",
96 digexp));
97 commands.push_back(PluginCommand(
98 "digcircle",
99 "Dig designate a circle (filled or hollow)",
100 digcircle));
101 commands.push_back(PluginCommand(
102 "digtype",
103 "Dig all veins of a given type.",
104 digtype,Gui::cursor_hotkey));
105 return CR_OK;
106}
107
108static void do_enable(bool enable) {
109 if (enable != is_enabled) {

Callers

nothing calls this directly

Calls 2

PluginCommandFunction · 0.85
getHackPathMethod · 0.80

Tested by

no test coverage detected