src/ai/squirrel/squirrel.hpp
branchnoai
changeset 9411 29c9dfcdb8e9
parent 9410 286fcd8edc64
child 9422 33efcc5f1b09
--- a/src/ai/squirrel/squirrel.hpp	Thu Mar 15 14:50:03 2007 +0000
+++ b/src/ai/squirrel/squirrel.hpp	Thu Mar 15 15:20:26 2007 +0000
@@ -40,8 +40,17 @@
 	SquirrelEngine *engine; ///< The SquirrelEngine
 	const char *current_script; ///< Temporary variable to know which script defines which class
 
+	/**
+	 * The constructor for when a script makes an instance of the Factory class.
+	 */
 	static SQInteger FactoryConstructor(HSQUIRRELVM vm);
 
+	/**
+	 * Scans a dir to see if there are dirs in it which have a file called 'main.nut'.
+	 *  If found it loads the script.
+	 */
+	void ScanDir(const char *dirname);
+
 public:
 	~FSquirrel();