Enhancement - Hooks

- First fully functioning Lua hooks.  Woohoo.
This commit is contained in:
Paul Beckingham 2010-01-18 18:03:31 -05:00
parent eeefc8a992
commit 69cae7731f
6 changed files with 252 additions and 72 deletions

View file

@ -30,6 +30,7 @@
#include "auto.h"
#ifdef HAVE_LIBLUA
#include <vector>
#include <string>
extern "C"
{
@ -47,9 +48,17 @@ public:
~API ();
void initialize ();
bool callProgramHook (const std::string&, const std::string&);
bool callListHook (const std::string&, const std::string& /*, iterator */);
bool callTaskHook (const std::string&, const std::string&, int);
bool callFieldHook (const std::string&, const std::string&, const std::string&, const std::string&);
private:
void loadFile (const std::string&);
public:
lua_State* L;
std::vector <std::string> loaded;
};
#endif