(svn r15460) -Fix [NoAI]: don't require an instance to exist in the scope for static functions and limit exposure of the internal function GetClassName.

This commit is contained in:
rubidium
2009-02-12 22:25:53 +00:00
parent 3314ef39d2
commit dea3490b2f
46 changed files with 388 additions and 488 deletions

View File

@@ -27,11 +27,10 @@ void SQAILog_Register(Squirrel *engine) {
SQAILog.DefSQConst(engine, AILog::LOG_WARNING, "LOG_WARNING");
SQAILog.DefSQConst(engine, AILog::LOG_INFO, "LOG_INFO");
SQAILog.DefSQStaticMethod(engine, &AILog::GetClassName, "GetClassName", 1, "x");
SQAILog.DefSQStaticMethod(engine, &AILog::Info, "Info", 2, "xs");
SQAILog.DefSQStaticMethod(engine, &AILog::Warning, "Warning", 2, "xs");
SQAILog.DefSQStaticMethod(engine, &AILog::Error, "Error", 2, "xs");
SQAILog.DefSQStaticMethod(engine, &AILog::FreeLogPointer, "FreeLogPointer", 1, "x");
SQAILog.DefSQStaticMethod(engine, &AILog::Info, "Info", 2, "?s");
SQAILog.DefSQStaticMethod(engine, &AILog::Warning, "Warning", 2, "?s");
SQAILog.DefSQStaticMethod(engine, &AILog::Error, "Error", 2, "?s");
SQAILog.DefSQStaticMethod(engine, &AILog::FreeLogPointer, "FreeLogPointer", 1, "?");
SQAILog.PostRegister(engine);
}