From 88f8e20871fadc58bc69c5b1fca4b7c4d850fdb2 Mon Sep 17 00:00:00 2001 From: Philipp Sehmisch Date: Wed, 24 Mar 2010 21:09:16 +0100 Subject: Implemented global event function call to on_chr_death Reviewed-by: Jared Adams --- src/scripting/script.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/scripting/script.hpp') diff --git a/src/scripting/script.hpp b/src/scripting/script.hpp index 74925e8..2c8481d 100644 --- a/src/scripting/script.hpp +++ b/src/scripting/script.hpp @@ -131,6 +131,11 @@ class Script virtual void processRemoveEvent(Thing* thing) = 0; + /** + * Runs a function in the global event script file + */ + static bool execute_global_event_function(const std::string &function, Being *obj); + static Script* global_event_script; // the global event script protected: -- cgit