summaryrefslogtreecommitdiff
path: root/src/game-server/mapcomposite.h
diff options
context:
space:
mode:
authorErik Schilling <ablu.erikschilling@googlemail.com>2012-03-03 13:36:28 +0100
committerErik Schilling <ablu.erikschilling@googlemail.com>2012-03-03 16:41:39 +0100
commitf872528771f0b71741fb36ddf70f2ae23f54c1e3 (patch)
tree9b3751cab7d9f58ae0b15acf061e428f18bc07db /src/game-server/mapcomposite.h
parentc0c208d4c29ff49f940e8a6c54adb26cc4e5eba3 (diff)
downloadmanaserv-f872528771f0b71741fb36ddf70f2ae23f54c1e3.tar.gz
manaserv-f872528771f0b71741fb36ddf70f2ae23f54c1e3.tar.bz2
manaserv-f872528771f0b71741fb36ddf70f2ae23f54c1e3.tar.xz
manaserv-f872528771f0b71741fb36ddf70f2ae23f54c1e3.zip
Added further missing callbacks
Reviewed-by: bjorn.
Diffstat (limited to 'src/game-server/mapcomposite.h')
-rw-r--r--src/game-server/mapcomposite.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/game-server/mapcomposite.h b/src/game-server/mapcomposite.h
index 49296911..355f0f46 100644
--- a/src/game-server/mapcomposite.h
+++ b/src/game-server/mapcomposite.h
@@ -26,6 +26,8 @@
#include <vector>
#include <map>
+#include "scripting/script.h"
+
class Actor;
class Being;
class Character;
@@ -336,6 +338,9 @@ class MapComposite
const std::string &value)
{ mScriptVariables[key] = value; }
+ static void setInitializeCallback(Script *script)
+ { script->assignCallback(mInitializeCallback); }
+
private:
MapComposite(const MapComposite &);
@@ -348,6 +353,8 @@ class MapComposite
/** Cached persistent variables */
std::map<std::string, std::string> mScriptVariables;
PvPRules mPvPRules;
+
+ static Script::Ref mInitializeCallback;
};
#endif