diff options
author | Philipp Sehmisch <crush@themanaworld.org> | 2009-01-17 16:21:58 +0100 |
---|---|---|
committer | Philipp Sehmisch <crush@themanaworld.org> | 2009-01-17 16:21:58 +0100 |
commit | 8b171e3a7e006aa492e2369969999a2336e2a731 (patch) | |
tree | 1642226437301217570c242038f230afd46ddb58 /src/scripting/script.hpp | |
parent | 2f28f585b12880d3cddab9d634fedff2f5954485 (diff) | |
download | manaserv-8b171e3a7e006aa492e2369969999a2336e2a731.tar.gz manaserv-8b171e3a7e006aa492e2369969999a2336e2a731.tar.bz2 manaserv-8b171e3a7e006aa492e2369969999a2336e2a731.tar.xz manaserv-8b171e3a7e006aa492e2369969999a2336e2a731.zip |
Made script error reports more informative and readable
Diffstat (limited to 'src/scripting/script.hpp')
-rw-r--r-- | src/scripting/script.hpp | 5 |
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. */ |