(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 SQAICargoList_Register(Squirrel *engine) {
SQAICargoList.PreRegister(engine, "AIAbstractList");
SQAICargoList.AddConstructor<void (AICargoList::*)(), 1>(engine, "x");
SQAICargoList.DefSQStaticMethod(engine, &AICargoList::GetClassName, "GetClassName", 1, "x");
SQAICargoList.PostRegister(engine);
}
@@ -36,8 +34,6 @@ void SQAICargoList_IndustryAccepting_Register(Squirrel *engine) {
SQAICargoList_IndustryAccepting.PreRegister(engine, "AIAbstractList");
SQAICargoList_IndustryAccepting.AddConstructor<void (AICargoList_IndustryAccepting::*)(IndustryID industry_id), 2>(engine, "xi");
SQAICargoList_IndustryAccepting.DefSQStaticMethod(engine, &AICargoList_IndustryAccepting::GetClassName, "GetClassName", 1, "x");
SQAICargoList_IndustryAccepting.PostRegister(engine);
}
@@ -55,7 +51,5 @@ void SQAICargoList_IndustryProducing_Register(Squirrel *engine) {
SQAICargoList_IndustryProducing.PreRegister(engine, "AIAbstractList");
SQAICargoList_IndustryProducing.AddConstructor<void (AICargoList_IndustryProducing::*)(IndustryID industry_id), 2>(engine, "xi");
SQAICargoList_IndustryProducing.DefSQStaticMethod(engine, &AICargoList_IndustryProducing::GetClassName, "GetClassName", 1, "x");
SQAICargoList_IndustryProducing.PostRegister(engine);
}