Hotkey input works on windows/under wine. Added skeleton for the veindigger plugin.

develop
Petr Mrázek 2011-07-10 21:07:14 +02:00
parent 07c11c704d
commit 3850954449
4 changed files with 37 additions and 2 deletions

@ -2234,6 +2234,8 @@
<Offsets>
<Group name="GUI">
<Address name="hotkeys" value="0x14f5cc8" />
<Address name="interface" value="0x14f6070" />
<Address name="current_menu_state" value="0x14f5fac" />
</Group>
<Group name="Creatures">
<Group name="creature">

@ -36,7 +36,6 @@ namespace DFHack
{
class Process;
class Module;
class Context;
class Creatures;
class Engravings;
class Maps;
@ -53,7 +52,6 @@ namespace DFHack
class Console;
class PluginManager;
class Core;
class Hotkey;
// anon type, pretty much
struct DFLibrary;

@ -29,3 +29,4 @@ DFHACK_PLUGIN(kittens kittens.cpp)
DFHACK_PLUGIN(prospector prospector.cpp)
DFHACK_PLUGIN(cleanmap cleanmap.cpp)
DFHACK_PLUGIN(weather weather.cpp)
DFHACK_PLUGIN(vdig vdig.cpp)

@ -0,0 +1,34 @@
#include <dfhack/Core.h>
#include <dfhack/Console.h>
#include <dfhack/Export.h>
#include <dfhack/PluginManager.h>
#include <vector>
#include <string>
using std::vector;
using std::string;
using namespace DFHack;
DFhackCExport command_result vdig (Core * c, vector <string> & parameters);
DFhackCExport const char * plugin_name ( void )
{
return "vein digger";
}
DFhackCExport command_result plugin_init ( Core * c, std::vector <PluginCommand> &commands)
{
commands.clear();
commands.push_back(PluginCommand("vdig","Dig a whole vein.",vdig));
return CR_OK;
}
DFhackCExport command_result plugin_shutdown ( Core * c )
{
return CR_OK;
}
DFhackCExport command_result vdig (Core * c, vector <string> & parameters)
{
return CR_OK;
}