diff options
| author | Petr Mrázek | 2012-02-21 18:19:17 +0100 |
|---|---|---|
| committer | Petr Mrázek | 2012-02-21 18:19:17 +0100 |
| commit | 2cd2ee9b0cc10b79f264c3a9a4597f59835fd419 (patch) | |
| tree | 7d95cbe0b7abd5d42990a15ed8b8d801a08a48ad /plugins/cleaners.cpp | |
| parent | 0b9e849096c95d68c6235c266560a2fb58908151 (diff) | |
| download | dfhack-2cd2ee9b0cc10b79f264c3a9a4597f59835fd419.tar.gz dfhack-2cd2ee9b0cc10b79f264c3a9a4597f59835fd419.tar.bz2 dfhack-2cd2ee9b0cc10b79f264c3a9a4597f59835fd419.tar.xz | |
New plugin interface
Diffstat (limited to 'plugins/cleaners.cpp')
| -rw-r--r-- | plugins/cleaners.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/cleaners.cpp b/plugins/cleaners.cpp index ffcb0e9d..42bb9e75 100644 --- a/plugins/cleaners.cpp +++ b/plugins/cleaners.cpp @@ -22,6 +22,8 @@ using namespace df::enums; using df::global::world; using df::global::cursor; +DFHACK_PLUGIN("cleaners"); + command_result cleanmap (Core * c, bool snow, bool mud) { // Invoked from clean(), already suspended @@ -186,14 +188,8 @@ command_result clean (Core * c, vector <string> & parameters) return CR_OK; } -DFhackCExport const char * plugin_name ( void ) -{ - return "cleaners"; -} - DFhackCExport command_result plugin_init ( Core * c, std::vector <PluginCommand> &commands) { - commands.clear(); commands.push_back(PluginCommand( "clean","Removes contaminants from map tiles, items and creatures.", clean, false, |
