summaryrefslogtreecommitdiff
path: root/src/scripting
diff options
context:
space:
mode:
authorPhilipp Sehmisch <mana@crushnet.org>2010-03-22 21:55:34 +0100
committerPhilipp Sehmisch <mana@crushnet.org>2010-04-11 18:27:20 +0200
commitf3ad48f5ce2b3b584870674e58a7265779b3836b (patch)
tree73323079c2accbdf20f4617be21506c556e66329 /src/scripting
parente0669e4025e3772590cbde835d79fb06efea04fa (diff)
downloadmanaserv-f3ad48f5ce2b3b584870674e58a7265779b3836b.tar.gz
manaserv-f3ad48f5ce2b3b584870674e58a7265779b3836b.tar.bz2
manaserv-f3ad48f5ce2b3b584870674e58a7265779b3836b.tar.xz
manaserv-f3ad48f5ce2b3b584870674e58a7265779b3836b.zip
Added global lua event script (only on_being_death_accept for now)
Reviewed-by: Jared Adams <Jaxad0127@gmail.com>
Diffstat (limited to 'src/scripting')
-rw-r--r--src/scripting/script.cpp1
-rw-r--r--src/scripting/script.hpp2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/scripting/script.cpp b/src/scripting/script.cpp
index 8c3b2af5..12c4417a 100644
--- a/src/scripting/script.cpp
+++ b/src/scripting/script.cpp
@@ -29,6 +29,7 @@
typedef std::map< std::string, Script::Factory > Engines;
static Engines *engines = NULL;
+Script *Script::global_event_script = NULL;
Script::Script():
mMap(NULL),
diff --git a/src/scripting/script.hpp b/src/scripting/script.hpp
index e11e5cc1..74925e8b 100644
--- a/src/scripting/script.hpp
+++ b/src/scripting/script.hpp
@@ -131,6 +131,8 @@ class Script
virtual void processRemoveEvent(Thing* thing) = 0;
+ static Script* global_event_script; // the global event script
+
protected:
std::string mScriptFile;