diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2011-06-12 21:51:47 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2011-06-12 21:51:47 +0200 |
commit | 48b4b813a51c374fce43a553608c67c6ca08ea37 (patch) | |
tree | 853cfe0c7551b44d3544f776e926e70e9382b121 /scripting.h | |
parent | b44b2cb4c16995d218e8d4c767c01c7b87c89816 (diff) |
Added a say() function to lua.
Diffstat (limited to 'scripting.h')
-rw-r--r-- | scripting.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripting.h b/scripting.h index d14aa3c..4b0bacf 100644 --- a/scripting.h +++ b/scripting.h @@ -16,13 +16,16 @@ class Lua { protected: lua_State *L; boost::function<void (const char*)> log_func; + boost::function<void (const char*)> say_func; public: Lua(); virtual ~Lua(); void set_log_func(boost::function<void (const char*)> log_func); + void set_say_func(boost::function<void (const char*)> say_func); void print(const char *s); + void say(const char *s); void dostring(std::string s); }; |