(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 SQAIStationList_Register(Squirrel *engine) {
|
||||
SQAIStationList.PreRegister(engine, "AIAbstractList");
|
||||
SQAIStationList.AddConstructor<void (AIStationList::*)(AIStation::StationType station_type), 2>(engine, "xi");
|
||||
|
||||
SQAIStationList.DefSQStaticMethod(engine, &AIStationList::GetClassName, "GetClassName", 1, "x");
|
||||
|
||||
SQAIStationList.PostRegister(engine);
|
||||
}
|
||||
|
||||
@@ -36,7 +34,5 @@ void SQAIStationList_Vehicle_Register(Squirrel *engine) {
|
||||
SQAIStationList_Vehicle.PreRegister(engine, "AIAbstractList");
|
||||
SQAIStationList_Vehicle.AddConstructor<void (AIStationList_Vehicle::*)(VehicleID vehicle_id), 2>(engine, "xi");
|
||||
|
||||
SQAIStationList_Vehicle.DefSQStaticMethod(engine, &AIStationList_Vehicle::GetClassName, "GetClassName", 1, "x");
|
||||
|
||||
SQAIStationList_Vehicle.PostRegister(engine);
|
||||
}
|
||||
|
Reference in New Issue
Block a user