(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 87bc20e7dd
commit 0111a10d7a
46 changed files with 388 additions and 488 deletions

View File

@@ -17,8 +17,6 @@ void SQAIBridgeList_Register(Squirrel *engine) {
SQAIBridgeList.PreRegister(engine, "AIAbstractList");
SQAIBridgeList.AddConstructor<void (AIBridgeList::*)(), 1>(engine, "x");
SQAIBridgeList.DefSQStaticMethod(engine, &AIBridgeList::GetClassName, "GetClassName", 1, "x");
SQAIBridgeList.PostRegister(engine);
}
@@ -36,7 +34,5 @@ void SQAIBridgeList_Length_Register(Squirrel *engine) {
SQAIBridgeList_Length.PreRegister(engine, "AIAbstractList");
SQAIBridgeList_Length.AddConstructor<void (AIBridgeList_Length::*)(uint length), 2>(engine, "xi");
SQAIBridgeList_Length.DefSQStaticMethod(engine, &AIBridgeList_Length::GetClassName, "GetClassName", 1, "x");
SQAIBridgeList_Length.PostRegister(engine);
}