| 68 | static bool is_painting_damp = false; |
| 69 | |
| 70 | DFhackCExport 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 | |
| 108 | static void do_enable(bool enable) { |
| 109 | if (enable != is_enabled) { |
nothing calls this directly
no test coverage detected