summaryrefslogtreecommitdiff
path: root/plugins/deramp.cpp
diff options
context:
space:
mode:
authorPetr Mrázek2012-02-21 18:19:17 +0100
committerPetr Mrázek2012-02-21 18:19:17 +0100
commit2cd2ee9b0cc10b79f264c3a9a4597f59835fd419 (patch)
tree7d95cbe0b7abd5d42990a15ed8b8d801a08a48ad /plugins/deramp.cpp
parent0b9e849096c95d68c6235c266560a2fb58908151 (diff)
downloaddfhack-2cd2ee9b0cc10b79f264c3a9a4597f59835fd419.tar.gz
dfhack-2cd2ee9b0cc10b79f264c3a9a4597f59835fd419.tar.bz2
dfhack-2cd2ee9b0cc10b79f264c3a9a4597f59835fd419.tar.xz
New plugin interface
Diffstat (limited to 'plugins/deramp.cpp')
-rw-r--r--plugins/deramp.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/deramp.cpp b/plugins/deramp.cpp
index a47fa932..14e8d684 100644
--- a/plugins/deramp.cpp
+++ b/plugins/deramp.cpp
@@ -17,6 +17,8 @@ using namespace df::enums;
using df::global::world;
+DFHACK_PLUGIN("deramp");
+
command_result df_deramp (Core * c, vector <string> & parameters)
{
if (!parameters.empty())
@@ -80,14 +82,8 @@ command_result df_deramp (Core * c, vector <string> & parameters)
return CR_OK;
}
-DFhackCExport const char * plugin_name ( void )
-{
- return "deramp";
-}
-
DFhackCExport command_result plugin_init ( Core * c, std::vector <PluginCommand> &commands)
{
- commands.clear();
commands.push_back(PluginCommand(
"deramp", "De-ramp. All ramps marked for removal are replaced with floors.",
df_deramp, false,