diff options
Diffstat (limited to 'src/scripting/script.h')
-rw-r--r-- | src/scripting/script.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/scripting/script.h b/src/scripting/script.h index e2ab3afa..a7737512 100644 --- a/src/scripting/script.h +++ b/src/scripting/script.h @@ -136,25 +136,29 @@ class Script virtual void processRemoveEvent(Thing *thing) = 0; /** + * Loads the global event script file + */ + static bool loadGlobalEventScript(const std::string &file); + + /** * Runs a function from the global event script file */ static bool executeGlobalEventFunction(const std::string &function, Being *obj); static void addDataToSpecial(int specialId, Special *special); static bool performSpecialAction(int specialId, Being *caster); - static bool performCraft(Being* crafter, std::list<InventoryItem> recipe); + static bool performCraft(Being *crafter, const std::list<InventoryItem> &recipe); static std::string determineEngineByFilename(const std::string &filename); protected: - static Script *globalEventScript; - static Script *specialActionsScript; - static Script *craftScript; std::string mScriptFile; private: MapComposite *mMap; EventListener mEventListener; /**< Tracking of being deaths. */ + static Script *globalEventScript; + friend struct ScriptEventDispatch; }; |