summaryrefslogtreecommitdiff
path: root/src/script/squirrel.hpp
diff options
context:
space:
mode:
authortruebrain <truebrain@openttd.org>2011-11-29 23:26:52 +0000
committertruebrain <truebrain@openttd.org>2011-11-29 23:26:52 +0000
commit3e6d0261291a1c91bf4f57c06fd9d180c175befc (patch)
tree11dcdfe79e138b991d531fa3d6955fdd99f5e428 /src/script/squirrel.hpp
parent4505edbd4715befb0944e91ad7f986a8ca83f113 (diff)
downloadopenttd-3e6d0261291a1c91bf4f57c06fd9d180c175befc.tar.xz
(svn r23366) -Codechange: move most of the Dummy code to script/, unifying it
Diffstat (limited to 'src/script/squirrel.hpp')
-rw-r--r--src/script/squirrel.hpp15
1 files changed, 5 insertions, 10 deletions
diff --git a/src/script/squirrel.hpp b/src/script/squirrel.hpp
index 6b9c3ab70..dbccd3c08 100644
--- a/src/script/squirrel.hpp
+++ b/src/script/squirrel.hpp
@@ -36,11 +36,6 @@ private:
static SQInteger _RunError(HSQUIRRELVM vm);
/**
- * Get the squirrel VM. Try to avoid using this.
- */
- HSQUIRRELVM GetVM() { return this->vm; }
-
- /**
* Get the API name.
*/
const char *GetAPIName() { return this->APIName; }
@@ -67,15 +62,15 @@ protected:
static void ErrorPrintFunc(HSQUIRRELVM vm, const SQChar *s, ...);
public:
- friend class AIScannerInfo;
- friend class ScriptInstance;
- friend class ScriptController;
- friend void squirrel_register_std(Squirrel *engine);
-
Squirrel(const char *APIName);
~Squirrel();
/**
+ * Get the squirrel VM. Try to avoid using this.
+ */
+ HSQUIRRELVM GetVM() { return this->vm; }
+
+ /**
* Load a script.
* @param script The full script-name to load.
* @return False if loading failed.