(svn r23612) -Add: allow importing libraries in the same way as AI does, only with GS prefix (and in game/library)

This commit is contained in:
truebrain
2011-12-19 20:56:59 +00:00
parent 83f2785f54
commit 963802e9a7
14 changed files with 214 additions and 27 deletions

View File

@@ -25,4 +25,7 @@ void SQGSController_Register(Squirrel *engine)
SQGSController.DefSQStaticMethod(engine, &ScriptController::Print, "Print", 3, ".bs");
SQGSController.PostRegister(engine);
/* Register the import statement to the global scope */
SQGSController.DefSQStaticMethod(engine, &ScriptController::Import, "import", 4, ".ssi");
}