Added a function to spit out a generated graphics pack file. Not done yet.

develop
Japa Illo 2017-02-07 11:19:45 +05:30
parent b151ad7c75
commit 10bbd3cb39
1 changed files with 13 additions and 1 deletions

@ -19,6 +19,7 @@ REQUIRE_GLOBAL(world);
#define RENAMER_VERSION 3
command_result list_creatures(color_ostream &out, std::vector <std::string> & parameters);
command_result save_generated_raw(color_ostream &out, std::vector <std::string> & parameters);
DFhackCExport command_result plugin_init(color_ostream &out, std::vector <PluginCommand> &commands)
{
@ -29,7 +30,13 @@ DFhackCExport command_result plugin_init(color_ostream &out, std::vector <Plugin
false, //allow non-interactive use
"Prints a list of generated creature tokens. Use \"list-generated detailed\" to show descriptions."
));
return CR_OK;
commands.push_back(PluginCommand(
"save-generated-raws",
"Saves a graphics raw file to use with the renamed generated creatures.",
save_generated_raw,
false, //allow non-interactive use
"Saves a graphics raw file to use with the renamed generated creatures."
)); return CR_OK;
}
DFhackCExport command_result plugin_shutdown(color_ostream &out)
@ -195,3 +202,8 @@ command_result list_creatures(color_ostream &out, std::vector <std::string> & pa
}
}
command_result save_generated_raw(color_ostream &out, std::vector <std::string> & parameters)
{
return CR_OK;
}