--- a/src/ai/squirrel/squirrel.hpp Wed Mar 14 09:53:24 2007 +0000
+++ b/src/ai/squirrel/squirrel.hpp Wed Mar 14 10:30:34 2007 +0000
@@ -12,6 +12,7 @@
class Squirrel: public AIController {
private:
HSQUIRRELVM vm; ///< The Virtual Machine for squirrel
+ SQUserPointer SQ_instance; ///< The internal instance of squirrel
/**
* Add a single method to a class (in creation) in Squirrel.
@@ -25,11 +26,17 @@
/**
* Constructor for Squirrel AIController. We assign the real 'this' value to
- * the instance pointer, so we can easy look up this->
+ * the instance pointer, so we can easy look up this->.
*/
static SQInteger SQConstructor(HSQUIRRELVM vm);
/**
+ * Destructor for Squirrel AIController. This is called if the class is
+ * destroyed inside the script.
+ */
+ static SQInteger SQDestructor(SQUserPointer p, SQInteger size);
+
+ /**
* A wrapper around the AIController class, as that can't be automated.
*/
static SQInteger SQGetTick(HSQUIRRELVM vm);