summaryrefslogtreecommitdiff
path: root/src/scripting/script.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/scripting/script.hpp')
-rw-r--r--src/scripting/script.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/scripting/script.hpp b/src/scripting/script.hpp
index fad6ad95..c87bf182 100644
--- a/src/scripting/script.hpp
+++ b/src/scripting/script.hpp
@@ -68,7 +68,7 @@ class Script
* Loads a text file into script context and executes its global
* statements.
*/
- virtual void loadFile(std::string const &);
+ virtual bool loadFile(std::string const &);
/**
* Loads a chunk of text and considers it as an NPC handler. This
@@ -129,6 +129,9 @@ class Script
virtual void processDeathEvent(Being* thing) = 0;
+ protected:
+ std::string mScriptFile;
+
private:
MapComposite *mMap;
EventListener mEventListener; /**< Tracking of being deaths. */