(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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user