diff --git a/src/ai/ai_scanner.cpp b/src/ai/ai_scanner.cpp --- a/src/ai/ai_scanner.cpp +++ b/src/ai/ai_scanner.cpp @@ -28,14 +28,14 @@ void AIScanner::RescanAIDir() this->Scan(PATHSEP "library.nut", AI_LIBRARY_DIR); } -template <> const char *GetClassName() { return "AIInfo"; } +template <> const char *GetClassName() { return "AIInfo"; } AIScanner::AIScanner() : ScriptScanner(), info_dummy(NULL) { /* Create the AIInfo class, and add the RegisterAI function */ - DefSQClass SQAIInfo("AIInfo"); + DefSQClass SQAIInfo("AIInfo"); SQAIInfo.PreRegister(engine); SQAIInfo.AddConstructor(engine, "x"); SQAIInfo.DefSQAdvancedMethod(this->engine, &AIInfo::AddSetting, "AddSetting"); diff --git a/src/ai/api/ai_accounting.hpp.sq b/src/ai/api/ai_accounting.hpp.sq --- a/src/ai/api/ai_accounting.hpp.sq +++ b/src/ai/api/ai_accounting.hpp.sq @@ -20,11 +20,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIAccounting *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIAccounting", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIAccounting"; } +template <> const char *GetClassName() { return "AIAccounting"; } void SQAIAccounting_Register(Squirrel *engine) { - DefSQClass SQAIAccounting("AIAccounting"); + DefSQClass SQAIAccounting("AIAccounting"); SQAIAccounting.PreRegister(engine); SQAIAccounting.AddConstructor(engine, "x"); diff --git a/src/ai/api/ai_airport.hpp.sq b/src/ai/api/ai_airport.hpp.sq --- a/src/ai/api/ai_airport.hpp.sq +++ b/src/ai/api/ai_airport.hpp.sq @@ -26,11 +26,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIAirport *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIAirport", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIAirport"; } +template <> const char *GetClassName() { return "AIAirport"; } void SQAIAirport_Register(Squirrel *engine) { - DefSQClass SQAIAirport("AIAirport"); + DefSQClass SQAIAirport("AIAirport"); SQAIAirport.PreRegister(engine); SQAIAirport.AddConstructor(engine, "x"); diff --git a/src/ai/api/ai_base.hpp.sq b/src/ai/api/ai_base.hpp.sq --- a/src/ai/api/ai_base.hpp.sq +++ b/src/ai/api/ai_base.hpp.sq @@ -20,11 +20,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIBase *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIBase", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIBase"; } +template <> const char *GetClassName() { return "AIBase"; } void SQAIBase_Register(Squirrel *engine) { - DefSQClass SQAIBase("AIBase"); + DefSQClass SQAIBase("AIBase"); SQAIBase.PreRegister(engine); SQAIBase.AddConstructor(engine, "x"); diff --git a/src/ai/api/ai_basestation.hpp.sq b/src/ai/api/ai_basestation.hpp.sq --- a/src/ai/api/ai_basestation.hpp.sq +++ b/src/ai/api/ai_basestation.hpp.sq @@ -24,11 +24,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIBaseStation *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIBaseStation", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIBaseStation"; } +template <> const char *GetClassName() { return "AIBaseStation"; } void SQAIBaseStation_Register(Squirrel *engine) { - DefSQClass SQAIBaseStation("AIBaseStation"); + DefSQClass SQAIBaseStation("AIBaseStation"); SQAIBaseStation.PreRegister(engine); SQAIBaseStation.AddConstructor(engine, "x"); diff --git a/src/ai/api/ai_bridge.hpp.sq b/src/ai/api/ai_bridge.hpp.sq --- a/src/ai/api/ai_bridge.hpp.sq +++ b/src/ai/api/ai_bridge.hpp.sq @@ -24,11 +24,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIBridge *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIBridge", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIBridge"; } +template <> const char *GetClassName() { return "AIBridge"; } void SQAIBridge_Register(Squirrel *engine) { - DefSQClass SQAIBridge("AIBridge"); + DefSQClass SQAIBridge("AIBridge"); SQAIBridge.PreRegister(engine); SQAIBridge.AddConstructor(engine, "x"); diff --git a/src/ai/api/ai_bridgelist.hpp.sq b/src/ai/api/ai_bridgelist.hpp.sq --- a/src/ai/api/ai_bridgelist.hpp.sq +++ b/src/ai/api/ai_bridgelist.hpp.sq @@ -20,11 +20,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIBridgeList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIBridgeList", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIBridgeList"; } +template <> const char *GetClassName() { return "AIBridgeList"; } void SQAIBridgeList_Register(Squirrel *engine) { - DefSQClass SQAIBridgeList("AIBridgeList"); + DefSQClass SQAIBridgeList("AIBridgeList"); SQAIBridgeList.PreRegister(engine, "AIList"); SQAIBridgeList.AddConstructor(engine, "x"); @@ -40,11 +40,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIBridgeList_Length *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIBridgeList_Length", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIBridgeList_Length"; } +template <> const char *GetClassName() { return "AIBridgeList_Length"; } void SQAIBridgeList_Length_Register(Squirrel *engine) { - DefSQClass SQAIBridgeList_Length("AIBridgeList_Length"); + DefSQClass SQAIBridgeList_Length("AIBridgeList_Length"); SQAIBridgeList_Length.PreRegister(engine, "AIList"); SQAIBridgeList_Length.AddConstructor(engine, "xi"); diff --git a/src/ai/api/ai_cargo.hpp.sq b/src/ai/api/ai_cargo.hpp.sq --- a/src/ai/api/ai_cargo.hpp.sq +++ b/src/ai/api/ai_cargo.hpp.sq @@ -28,11 +28,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AICargo *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AICargo", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AICargo"; } +template <> const char *GetClassName() { return "AICargo"; } void SQAICargo_Register(Squirrel *engine) { - DefSQClass SQAICargo("AICargo"); + DefSQClass SQAICargo("AICargo"); SQAICargo.PreRegister(engine); SQAICargo.AddConstructor(engine, "x"); diff --git a/src/ai/api/ai_cargolist.hpp.sq b/src/ai/api/ai_cargolist.hpp.sq --- a/src/ai/api/ai_cargolist.hpp.sq +++ b/src/ai/api/ai_cargolist.hpp.sq @@ -20,11 +20,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AICargoList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AICargoList", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AICargoList"; } +template <> const char *GetClassName() { return "AICargoList"; } void SQAICargoList_Register(Squirrel *engine) { - DefSQClass SQAICargoList("AICargoList"); + DefSQClass SQAICargoList("AICargoList"); SQAICargoList.PreRegister(engine, "AIList"); SQAICargoList.AddConstructor(engine, "x"); @@ -40,11 +40,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AICargoList_IndustryAccepting *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AICargoList_IndustryAccepting", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AICargoList_IndustryAccepting"; } +template <> const char *GetClassName() { return "AICargoList_IndustryAccepting"; } void SQAICargoList_IndustryAccepting_Register(Squirrel *engine) { - DefSQClass SQAICargoList_IndustryAccepting("AICargoList_IndustryAccepting"); + DefSQClass SQAICargoList_IndustryAccepting("AICargoList_IndustryAccepting"); SQAICargoList_IndustryAccepting.PreRegister(engine, "AIList"); SQAICargoList_IndustryAccepting.AddConstructor(engine, "xi"); @@ -60,11 +60,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AICargoList_IndustryProducing *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AICargoList_IndustryProducing", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AICargoList_IndustryProducing"; } +template <> const char *GetClassName() { return "AICargoList_IndustryProducing"; } void SQAICargoList_IndustryProducing_Register(Squirrel *engine) { - DefSQClass SQAICargoList_IndustryProducing("AICargoList_IndustryProducing"); + DefSQClass SQAICargoList_IndustryProducing("AICargoList_IndustryProducing"); SQAICargoList_IndustryProducing.PreRegister(engine, "AIList"); SQAICargoList_IndustryProducing.AddConstructor(engine, "xi"); @@ -80,11 +80,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AICargoList_StationAccepting *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AICargoList_StationAccepting", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AICargoList_StationAccepting"; } +template <> const char *GetClassName() { return "AICargoList_StationAccepting"; } void SQAICargoList_StationAccepting_Register(Squirrel *engine) { - DefSQClass SQAICargoList_StationAccepting("AICargoList_StationAccepting"); + DefSQClass SQAICargoList_StationAccepting("AICargoList_StationAccepting"); SQAICargoList_StationAccepting.PreRegister(engine, "AIList"); SQAICargoList_StationAccepting.AddConstructor(engine, "xi"); diff --git a/src/ai/api/ai_company.hpp.sq b/src/ai/api/ai_company.hpp.sq --- a/src/ai/api/ai_company.hpp.sq +++ b/src/ai/api/ai_company.hpp.sq @@ -28,11 +28,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AICompany *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AICompany", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AICompany"; } +template <> const char *GetClassName() { return "AICompany"; } void SQAICompany_Register(Squirrel *engine) { - DefSQClass SQAICompany("AICompany"); + DefSQClass SQAICompany("AICompany"); SQAICompany.PreRegister(engine); SQAICompany.AddConstructor(engine, "x"); diff --git a/src/ai/api/ai_controller.hpp.sq b/src/ai/api/ai_controller.hpp.sq --- a/src/ai/api/ai_controller.hpp.sq +++ b/src/ai/api/ai_controller.hpp.sq @@ -9,11 +9,11 @@ #include "ai_controller.hpp" -template <> const char *GetClassName() { return "AIController"; } +template <> const char *GetClassName() { return "AIController"; } void SQAIController_Register(Squirrel *engine) { - DefSQClass SQAIController("AIController"); + DefSQClass SQAIController("AIController"); SQAIController.PreRegister(engine); SQAIController.DefSQStaticMethod(engine, &AIController::GetTick, "GetTick", 1, "."); diff --git a/src/ai/api/ai_date.hpp.sq b/src/ai/api/ai_date.hpp.sq --- a/src/ai/api/ai_date.hpp.sq +++ b/src/ai/api/ai_date.hpp.sq @@ -20,11 +20,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIDate *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIDate", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIDate"; } +template <> const char *GetClassName() { return "AIDate"; } void SQAIDate_Register(Squirrel *engine) { - DefSQClass SQAIDate("AIDate"); + DefSQClass SQAIDate("AIDate"); SQAIDate.PreRegister(engine); SQAIDate.AddConstructor(engine, "x"); diff --git a/src/ai/api/ai_depotlist.hpp.sq b/src/ai/api/ai_depotlist.hpp.sq --- a/src/ai/api/ai_depotlist.hpp.sq +++ b/src/ai/api/ai_depotlist.hpp.sq @@ -20,11 +20,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIDepotList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIDepotList", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIDepotList"; } +template <> const char *GetClassName() { return "AIDepotList"; } void SQAIDepotList_Register(Squirrel *engine) { - DefSQClass SQAIDepotList("AIDepotList"); + DefSQClass SQAIDepotList("AIDepotList"); SQAIDepotList.PreRegister(engine, "AIList"); SQAIDepotList.AddConstructor(engine, "xi"); diff --git a/src/ai/api/ai_engine.hpp.sq b/src/ai/api/ai_engine.hpp.sq --- a/src/ai/api/ai_engine.hpp.sq +++ b/src/ai/api/ai_engine.hpp.sq @@ -20,11 +20,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIEngine *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEngine", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIEngine"; } +template <> const char *GetClassName() { return "AIEngine"; } void SQAIEngine_Register(Squirrel *engine) { - DefSQClass SQAIEngine("AIEngine"); + DefSQClass SQAIEngine("AIEngine"); SQAIEngine.PreRegister(engine); SQAIEngine.AddConstructor(engine, "x"); diff --git a/src/ai/api/ai_enginelist.hpp.sq b/src/ai/api/ai_enginelist.hpp.sq --- a/src/ai/api/ai_enginelist.hpp.sq +++ b/src/ai/api/ai_enginelist.hpp.sq @@ -20,11 +20,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIEngineList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEngineList", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIEngineList"; } +template <> const char *GetClassName() { return "AIEngineList"; } void SQAIEngineList_Register(Squirrel *engine) { - DefSQClass SQAIEngineList("AIEngineList"); + DefSQClass SQAIEngineList("AIEngineList"); SQAIEngineList.PreRegister(engine, "AIList"); SQAIEngineList.AddConstructor(engine, "xi"); diff --git a/src/ai/api/ai_error.hpp.sq b/src/ai/api/ai_error.hpp.sq --- a/src/ai/api/ai_error.hpp.sq +++ b/src/ai/api/ai_error.hpp.sq @@ -26,11 +26,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIError *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIError", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIError"; } +template <> const char *GetClassName() { return "AIError"; } void SQAIError_Register(Squirrel *engine) { - DefSQClass SQAIError("AIError"); + DefSQClass SQAIError("AIError"); SQAIError.PreRegister(engine); SQAIError.AddConstructor(engine, "x"); diff --git a/src/ai/api/ai_event.hpp.sq b/src/ai/api/ai_event.hpp.sq --- a/src/ai/api/ai_event.hpp.sq +++ b/src/ai/api/ai_event.hpp.sq @@ -24,11 +24,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIEvent *res) { if (res == NULL) { sq_pushnull(vm); return 1; } Squirrel::CreateClassInstanceVM(vm, "AIEvent", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIEvent"; } +template <> const char *GetClassName() { return "AIEvent"; } void SQAIEvent_Register(Squirrel *engine) { - DefSQClass SQAIEvent("AIEvent"); + DefSQClass SQAIEvent("AIEvent"); SQAIEvent.PreRegister(engine); SQAIEvent.AddConstructor(engine, "xi"); @@ -70,11 +70,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIEventController *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventController", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIEventController"; } +template <> const char *GetClassName() { return "AIEventController"; } void SQAIEventController_Register(Squirrel *engine) { - DefSQClass SQAIEventController("AIEventController"); + DefSQClass SQAIEventController("AIEventController"); SQAIEventController.PreRegister(engine); SQAIEventController.AddConstructor(engine, "x"); diff --git a/src/ai/api/ai_event_types.hpp.sq b/src/ai/api/ai_event_types.hpp.sq --- a/src/ai/api/ai_event_types.hpp.sq +++ b/src/ai/api/ai_event_types.hpp.sq @@ -24,11 +24,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIEventVehicleCrashed *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventVehicleCrashed", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIEventVehicleCrashed"; } +template <> const char *GetClassName() { return "AIEventVehicleCrashed"; } void SQAIEventVehicleCrashed_Register(Squirrel *engine) { - DefSQClass SQAIEventVehicleCrashed("AIEventVehicleCrashed"); + DefSQClass SQAIEventVehicleCrashed("AIEventVehicleCrashed"); SQAIEventVehicleCrashed.PreRegister(engine, "AIEvent"); SQAIEventVehicleCrashed.DefSQConst(engine, AIEventVehicleCrashed::CRASH_TRAIN, "CRASH_TRAIN"); @@ -56,11 +56,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIEventSubsidyOffer *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventSubsidyOffer", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIEventSubsidyOffer"; } +template <> const char *GetClassName() { return "AIEventSubsidyOffer"; } void SQAIEventSubsidyOffer_Register(Squirrel *engine) { - DefSQClass SQAIEventSubsidyOffer("AIEventSubsidyOffer"); + DefSQClass SQAIEventSubsidyOffer("AIEventSubsidyOffer"); SQAIEventSubsidyOffer.PreRegister(engine, "AIEvent"); SQAIEventSubsidyOffer.DefSQStaticMethod(engine, &AIEventSubsidyOffer::Convert, "Convert", 2, ".x"); @@ -79,11 +79,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIEventSubsidyOfferExpired *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventSubsidyOfferExpired", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIEventSubsidyOfferExpired"; } +template <> const char *GetClassName() { return "AIEventSubsidyOfferExpired"; } void SQAIEventSubsidyOfferExpired_Register(Squirrel *engine) { - DefSQClass SQAIEventSubsidyOfferExpired("AIEventSubsidyOfferExpired"); + DefSQClass SQAIEventSubsidyOfferExpired("AIEventSubsidyOfferExpired"); SQAIEventSubsidyOfferExpired.PreRegister(engine, "AIEvent"); SQAIEventSubsidyOfferExpired.DefSQStaticMethod(engine, &AIEventSubsidyOfferExpired::Convert, "Convert", 2, ".x"); @@ -102,11 +102,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIEventSubsidyAwarded *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventSubsidyAwarded", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIEventSubsidyAwarded"; } +template <> const char *GetClassName() { return "AIEventSubsidyAwarded"; } void SQAIEventSubsidyAwarded_Register(Squirrel *engine) { - DefSQClass SQAIEventSubsidyAwarded("AIEventSubsidyAwarded"); + DefSQClass SQAIEventSubsidyAwarded("AIEventSubsidyAwarded"); SQAIEventSubsidyAwarded.PreRegister(engine, "AIEvent"); SQAIEventSubsidyAwarded.DefSQStaticMethod(engine, &AIEventSubsidyAwarded::Convert, "Convert", 2, ".x"); @@ -125,11 +125,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIEventSubsidyExpired *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventSubsidyExpired", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIEventSubsidyExpired"; } +template <> const char *GetClassName() { return "AIEventSubsidyExpired"; } void SQAIEventSubsidyExpired_Register(Squirrel *engine) { - DefSQClass SQAIEventSubsidyExpired("AIEventSubsidyExpired"); + DefSQClass SQAIEventSubsidyExpired("AIEventSubsidyExpired"); SQAIEventSubsidyExpired.PreRegister(engine, "AIEvent"); SQAIEventSubsidyExpired.DefSQStaticMethod(engine, &AIEventSubsidyExpired::Convert, "Convert", 2, ".x"); @@ -148,11 +148,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIEventEnginePreview *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventEnginePreview", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIEventEnginePreview"; } +template <> const char *GetClassName() { return "AIEventEnginePreview"; } void SQAIEventEnginePreview_Register(Squirrel *engine) { - DefSQClass SQAIEventEnginePreview("AIEventEnginePreview"); + DefSQClass SQAIEventEnginePreview("AIEventEnginePreview"); SQAIEventEnginePreview.PreRegister(engine, "AIEvent"); SQAIEventEnginePreview.DefSQStaticMethod(engine, &AIEventEnginePreview::Convert, "Convert", 2, ".x"); @@ -178,11 +178,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIEventCompanyNew *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventCompanyNew", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIEventCompanyNew"; } +template <> const char *GetClassName() { return "AIEventCompanyNew"; } void SQAIEventCompanyNew_Register(Squirrel *engine) { - DefSQClass SQAIEventCompanyNew("AIEventCompanyNew"); + DefSQClass SQAIEventCompanyNew("AIEventCompanyNew"); SQAIEventCompanyNew.PreRegister(engine, "AIEvent"); SQAIEventCompanyNew.DefSQStaticMethod(engine, &AIEventCompanyNew::Convert, "Convert", 2, ".x"); @@ -201,11 +201,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIEventCompanyInTrouble *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventCompanyInTrouble", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIEventCompanyInTrouble"; } +template <> const char *GetClassName() { return "AIEventCompanyInTrouble"; } void SQAIEventCompanyInTrouble_Register(Squirrel *engine) { - DefSQClass SQAIEventCompanyInTrouble("AIEventCompanyInTrouble"); + DefSQClass SQAIEventCompanyInTrouble("AIEventCompanyInTrouble"); SQAIEventCompanyInTrouble.PreRegister(engine, "AIEvent"); SQAIEventCompanyInTrouble.DefSQStaticMethod(engine, &AIEventCompanyInTrouble::Convert, "Convert", 2, ".x"); @@ -224,11 +224,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIEventCompanyAskMerger *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventCompanyAskMerger", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIEventCompanyAskMerger"; } +template <> const char *GetClassName() { return "AIEventCompanyAskMerger"; } void SQAIEventCompanyAskMerger_Register(Squirrel *engine) { - DefSQClass SQAIEventCompanyAskMerger("AIEventCompanyAskMerger"); + DefSQClass SQAIEventCompanyAskMerger("AIEventCompanyAskMerger"); SQAIEventCompanyAskMerger.PreRegister(engine, "AIEvent"); SQAIEventCompanyAskMerger.DefSQStaticMethod(engine, &AIEventCompanyAskMerger::Convert, "Convert", 2, ".x"); @@ -249,11 +249,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIEventCompanyMerger *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventCompanyMerger", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIEventCompanyMerger"; } +template <> const char *GetClassName() { return "AIEventCompanyMerger"; } void SQAIEventCompanyMerger_Register(Squirrel *engine) { - DefSQClass SQAIEventCompanyMerger("AIEventCompanyMerger"); + DefSQClass SQAIEventCompanyMerger("AIEventCompanyMerger"); SQAIEventCompanyMerger.PreRegister(engine, "AIEvent"); SQAIEventCompanyMerger.DefSQStaticMethod(engine, &AIEventCompanyMerger::Convert, "Convert", 2, ".x"); @@ -273,11 +273,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIEventCompanyBankrupt *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventCompanyBankrupt", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIEventCompanyBankrupt"; } +template <> const char *GetClassName() { return "AIEventCompanyBankrupt"; } void SQAIEventCompanyBankrupt_Register(Squirrel *engine) { - DefSQClass SQAIEventCompanyBankrupt("AIEventCompanyBankrupt"); + DefSQClass SQAIEventCompanyBankrupt("AIEventCompanyBankrupt"); SQAIEventCompanyBankrupt.PreRegister(engine, "AIEvent"); SQAIEventCompanyBankrupt.DefSQStaticMethod(engine, &AIEventCompanyBankrupt::Convert, "Convert", 2, ".x"); @@ -296,11 +296,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIEventVehicleLost *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventVehicleLost", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIEventVehicleLost"; } +template <> const char *GetClassName() { return "AIEventVehicleLost"; } void SQAIEventVehicleLost_Register(Squirrel *engine) { - DefSQClass SQAIEventVehicleLost("AIEventVehicleLost"); + DefSQClass SQAIEventVehicleLost("AIEventVehicleLost"); SQAIEventVehicleLost.PreRegister(engine, "AIEvent"); SQAIEventVehicleLost.DefSQStaticMethod(engine, &AIEventVehicleLost::Convert, "Convert", 2, ".x"); @@ -319,11 +319,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIEventVehicleWaitingInDepot *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventVehicleWaitingInDepot", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIEventVehicleWaitingInDepot"; } +template <> const char *GetClassName() { return "AIEventVehicleWaitingInDepot"; } void SQAIEventVehicleWaitingInDepot_Register(Squirrel *engine) { - DefSQClass SQAIEventVehicleWaitingInDepot("AIEventVehicleWaitingInDepot"); + DefSQClass SQAIEventVehicleWaitingInDepot("AIEventVehicleWaitingInDepot"); SQAIEventVehicleWaitingInDepot.PreRegister(engine, "AIEvent"); SQAIEventVehicleWaitingInDepot.DefSQStaticMethod(engine, &AIEventVehicleWaitingInDepot::Convert, "Convert", 2, ".x"); @@ -342,11 +342,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIEventVehicleUnprofitable *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventVehicleUnprofitable", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIEventVehicleUnprofitable"; } +template <> const char *GetClassName() { return "AIEventVehicleUnprofitable"; } void SQAIEventVehicleUnprofitable_Register(Squirrel *engine) { - DefSQClass SQAIEventVehicleUnprofitable("AIEventVehicleUnprofitable"); + DefSQClass SQAIEventVehicleUnprofitable("AIEventVehicleUnprofitable"); SQAIEventVehicleUnprofitable.PreRegister(engine, "AIEvent"); SQAIEventVehicleUnprofitable.DefSQStaticMethod(engine, &AIEventVehicleUnprofitable::Convert, "Convert", 2, ".x"); @@ -365,11 +365,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIEventIndustryOpen *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventIndustryOpen", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIEventIndustryOpen"; } +template <> const char *GetClassName() { return "AIEventIndustryOpen"; } void SQAIEventIndustryOpen_Register(Squirrel *engine) { - DefSQClass SQAIEventIndustryOpen("AIEventIndustryOpen"); + DefSQClass SQAIEventIndustryOpen("AIEventIndustryOpen"); SQAIEventIndustryOpen.PreRegister(engine, "AIEvent"); SQAIEventIndustryOpen.DefSQStaticMethod(engine, &AIEventIndustryOpen::Convert, "Convert", 2, ".x"); @@ -388,11 +388,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIEventIndustryClose *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventIndustryClose", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIEventIndustryClose"; } +template <> const char *GetClassName() { return "AIEventIndustryClose"; } void SQAIEventIndustryClose_Register(Squirrel *engine) { - DefSQClass SQAIEventIndustryClose("AIEventIndustryClose"); + DefSQClass SQAIEventIndustryClose("AIEventIndustryClose"); SQAIEventIndustryClose.PreRegister(engine, "AIEvent"); SQAIEventIndustryClose.DefSQStaticMethod(engine, &AIEventIndustryClose::Convert, "Convert", 2, ".x"); @@ -411,11 +411,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIEventEngineAvailable *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventEngineAvailable", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIEventEngineAvailable"; } +template <> const char *GetClassName() { return "AIEventEngineAvailable"; } void SQAIEventEngineAvailable_Register(Squirrel *engine) { - DefSQClass SQAIEventEngineAvailable("AIEventEngineAvailable"); + DefSQClass SQAIEventEngineAvailable("AIEventEngineAvailable"); SQAIEventEngineAvailable.PreRegister(engine, "AIEvent"); SQAIEventEngineAvailable.DefSQStaticMethod(engine, &AIEventEngineAvailable::Convert, "Convert", 2, ".x"); @@ -434,11 +434,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIEventStationFirstVehicle *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventStationFirstVehicle", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIEventStationFirstVehicle"; } +template <> const char *GetClassName() { return "AIEventStationFirstVehicle"; } void SQAIEventStationFirstVehicle_Register(Squirrel *engine) { - DefSQClass SQAIEventStationFirstVehicle("AIEventStationFirstVehicle"); + DefSQClass SQAIEventStationFirstVehicle("AIEventStationFirstVehicle"); SQAIEventStationFirstVehicle.PreRegister(engine, "AIEvent"); SQAIEventStationFirstVehicle.DefSQStaticMethod(engine, &AIEventStationFirstVehicle::Convert, "Convert", 2, ".x"); @@ -458,11 +458,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIEventDisasterZeppelinerCrashed *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventDisasterZeppelinerCrashed", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIEventDisasterZeppelinerCrashed"; } +template <> const char *GetClassName() { return "AIEventDisasterZeppelinerCrashed"; } void SQAIEventDisasterZeppelinerCrashed_Register(Squirrel *engine) { - DefSQClass SQAIEventDisasterZeppelinerCrashed("AIEventDisasterZeppelinerCrashed"); + DefSQClass SQAIEventDisasterZeppelinerCrashed("AIEventDisasterZeppelinerCrashed"); SQAIEventDisasterZeppelinerCrashed.PreRegister(engine, "AIEvent"); SQAIEventDisasterZeppelinerCrashed.DefSQStaticMethod(engine, &AIEventDisasterZeppelinerCrashed::Convert, "Convert", 2, ".x"); @@ -481,11 +481,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIEventDisasterZeppelinerCleared *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventDisasterZeppelinerCleared", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIEventDisasterZeppelinerCleared"; } +template <> const char *GetClassName() { return "AIEventDisasterZeppelinerCleared"; } void SQAIEventDisasterZeppelinerCleared_Register(Squirrel *engine) { - DefSQClass SQAIEventDisasterZeppelinerCleared("AIEventDisasterZeppelinerCleared"); + DefSQClass SQAIEventDisasterZeppelinerCleared("AIEventDisasterZeppelinerCleared"); SQAIEventDisasterZeppelinerCleared.PreRegister(engine, "AIEvent"); SQAIEventDisasterZeppelinerCleared.DefSQStaticMethod(engine, &AIEventDisasterZeppelinerCleared::Convert, "Convert", 2, ".x"); @@ -504,11 +504,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIEventTownFounded *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventTownFounded", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIEventTownFounded"; } +template <> const char *GetClassName() { return "AIEventTownFounded"; } void SQAIEventTownFounded_Register(Squirrel *engine) { - DefSQClass SQAIEventTownFounded("AIEventTownFounded"); + DefSQClass SQAIEventTownFounded("AIEventTownFounded"); SQAIEventTownFounded.PreRegister(engine, "AIEvent"); SQAIEventTownFounded.DefSQStaticMethod(engine, &AIEventTownFounded::Convert, "Convert", 2, ".x"); diff --git a/src/ai/api/ai_execmode.hpp.sq b/src/ai/api/ai_execmode.hpp.sq --- a/src/ai/api/ai_execmode.hpp.sq +++ b/src/ai/api/ai_execmode.hpp.sq @@ -20,11 +20,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIExecMode *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIExecMode", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIExecMode"; } +template <> const char *GetClassName() { return "AIExecMode"; } void SQAIExecMode_Register(Squirrel *engine) { - DefSQClass SQAIExecMode("AIExecMode"); + DefSQClass SQAIExecMode("AIExecMode"); SQAIExecMode.PreRegister(engine); SQAIExecMode.AddConstructor(engine, "x"); diff --git a/src/ai/api/ai_gamesettings.hpp.sq b/src/ai/api/ai_gamesettings.hpp.sq --- a/src/ai/api/ai_gamesettings.hpp.sq +++ b/src/ai/api/ai_gamesettings.hpp.sq @@ -20,11 +20,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIGameSettings *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIGameSettings", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIGameSettings"; } +template <> const char *GetClassName() { return "AIGameSettings"; } void SQAIGameSettings_Register(Squirrel *engine) { - DefSQClass SQAIGameSettings("AIGameSettings"); + DefSQClass SQAIGameSettings("AIGameSettings"); SQAIGameSettings.PreRegister(engine); SQAIGameSettings.AddConstructor(engine, "x"); diff --git a/src/ai/api/ai_group.hpp.sq b/src/ai/api/ai_group.hpp.sq --- a/src/ai/api/ai_group.hpp.sq +++ b/src/ai/api/ai_group.hpp.sq @@ -24,11 +24,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIGroup *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIGroup", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIGroup"; } +template <> const char *GetClassName() { return "AIGroup"; } void SQAIGroup_Register(Squirrel *engine) { - DefSQClass SQAIGroup("AIGroup"); + DefSQClass SQAIGroup("AIGroup"); SQAIGroup.PreRegister(engine); SQAIGroup.AddConstructor(engine, "x"); diff --git a/src/ai/api/ai_grouplist.hpp.sq b/src/ai/api/ai_grouplist.hpp.sq --- a/src/ai/api/ai_grouplist.hpp.sq +++ b/src/ai/api/ai_grouplist.hpp.sq @@ -20,11 +20,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIGroupList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIGroupList", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIGroupList"; } +template <> const char *GetClassName() { return "AIGroupList"; } void SQAIGroupList_Register(Squirrel *engine) { - DefSQClass SQAIGroupList("AIGroupList"); + DefSQClass SQAIGroupList("AIGroupList"); SQAIGroupList.PreRegister(engine, "AIList"); SQAIGroupList.AddConstructor(engine, "x"); diff --git a/src/ai/api/ai_industry.hpp.sq b/src/ai/api/ai_industry.hpp.sq --- a/src/ai/api/ai_industry.hpp.sq +++ b/src/ai/api/ai_industry.hpp.sq @@ -24,11 +24,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIIndustry *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIIndustry", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIIndustry"; } +template <> const char *GetClassName() { return "AIIndustry"; } void SQAIIndustry_Register(Squirrel *engine) { - DefSQClass SQAIIndustry("AIIndustry"); + DefSQClass SQAIIndustry("AIIndustry"); SQAIIndustry.PreRegister(engine); SQAIIndustry.AddConstructor(engine, "x"); diff --git a/src/ai/api/ai_industrylist.hpp.sq b/src/ai/api/ai_industrylist.hpp.sq --- a/src/ai/api/ai_industrylist.hpp.sq +++ b/src/ai/api/ai_industrylist.hpp.sq @@ -20,11 +20,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIIndustryList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIIndustryList", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIIndustryList"; } +template <> const char *GetClassName() { return "AIIndustryList"; } void SQAIIndustryList_Register(Squirrel *engine) { - DefSQClass SQAIIndustryList("AIIndustryList"); + DefSQClass SQAIIndustryList("AIIndustryList"); SQAIIndustryList.PreRegister(engine, "AIList"); SQAIIndustryList.AddConstructor(engine, "x"); @@ -40,11 +40,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIIndustryList_CargoAccepting *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIIndustryList_CargoAccepting", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIIndustryList_CargoAccepting"; } +template <> const char *GetClassName() { return "AIIndustryList_CargoAccepting"; } void SQAIIndustryList_CargoAccepting_Register(Squirrel *engine) { - DefSQClass SQAIIndustryList_CargoAccepting("AIIndustryList_CargoAccepting"); + DefSQClass SQAIIndustryList_CargoAccepting("AIIndustryList_CargoAccepting"); SQAIIndustryList_CargoAccepting.PreRegister(engine, "AIList"); SQAIIndustryList_CargoAccepting.AddConstructor(engine, "xi"); @@ -60,11 +60,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIIndustryList_CargoProducing *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIIndustryList_CargoProducing", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIIndustryList_CargoProducing"; } +template <> const char *GetClassName() { return "AIIndustryList_CargoProducing"; } void SQAIIndustryList_CargoProducing_Register(Squirrel *engine) { - DefSQClass SQAIIndustryList_CargoProducing("AIIndustryList_CargoProducing"); + DefSQClass SQAIIndustryList_CargoProducing("AIIndustryList_CargoProducing"); SQAIIndustryList_CargoProducing.PreRegister(engine, "AIList"); SQAIIndustryList_CargoProducing.AddConstructor(engine, "xi"); diff --git a/src/ai/api/ai_industrytype.hpp.sq b/src/ai/api/ai_industrytype.hpp.sq --- a/src/ai/api/ai_industrytype.hpp.sq +++ b/src/ai/api/ai_industrytype.hpp.sq @@ -24,11 +24,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIIndustryType *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIIndustryType", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIIndustryType"; } +template <> const char *GetClassName() { return "AIIndustryType"; } void SQAIIndustryType_Register(Squirrel *engine) { - DefSQClass SQAIIndustryType("AIIndustryType"); + DefSQClass SQAIIndustryType("AIIndustryType"); SQAIIndustryType.PreRegister(engine); SQAIIndustryType.AddConstructor(engine, "x"); diff --git a/src/ai/api/ai_industrytypelist.hpp.sq b/src/ai/api/ai_industrytypelist.hpp.sq --- a/src/ai/api/ai_industrytypelist.hpp.sq +++ b/src/ai/api/ai_industrytypelist.hpp.sq @@ -20,11 +20,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIIndustryTypeList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIIndustryTypeList", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIIndustryTypeList"; } +template <> const char *GetClassName() { return "AIIndustryTypeList"; } void SQAIIndustryTypeList_Register(Squirrel *engine) { - DefSQClass SQAIIndustryTypeList("AIIndustryTypeList"); + DefSQClass SQAIIndustryTypeList("AIIndustryTypeList"); SQAIIndustryTypeList.PreRegister(engine, "AIList"); SQAIIndustryTypeList.AddConstructor(engine, "x"); diff --git a/src/ai/api/ai_list.hpp.sq b/src/ai/api/ai_list.hpp.sq --- a/src/ai/api/ai_list.hpp.sq +++ b/src/ai/api/ai_list.hpp.sq @@ -24,11 +24,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIList", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIList"; } +template <> const char *GetClassName() { return "AIList"; } void SQAIList_Register(Squirrel *engine) { - DefSQClass SQAIList("AIList"); + DefSQClass SQAIList("AIList"); SQAIList.PreRegister(engine); SQAIList.AddConstructor(engine, "x"); diff --git a/src/ai/api/ai_log.hpp.sq b/src/ai/api/ai_log.hpp.sq --- a/src/ai/api/ai_log.hpp.sq +++ b/src/ai/api/ai_log.hpp.sq @@ -20,11 +20,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AILog *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AILog", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AILog"; } +template <> const char *GetClassName() { return "AILog"; } void SQAILog_Register(Squirrel *engine) { - DefSQClass SQAILog("AILog"); + DefSQClass SQAILog("AILog"); SQAILog.PreRegister(engine); SQAILog.AddConstructor(engine, "x"); diff --git a/src/ai/api/ai_map.hpp.sq b/src/ai/api/ai_map.hpp.sq --- a/src/ai/api/ai_map.hpp.sq +++ b/src/ai/api/ai_map.hpp.sq @@ -20,11 +20,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIMap *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIMap", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIMap"; } +template <> const char *GetClassName() { return "AIMap"; } void SQAIMap_Register(Squirrel *engine) { - DefSQClass SQAIMap("AIMap"); + DefSQClass SQAIMap("AIMap"); SQAIMap.PreRegister(engine); SQAIMap.AddConstructor(engine, "x"); diff --git a/src/ai/api/ai_marine.hpp.sq b/src/ai/api/ai_marine.hpp.sq --- a/src/ai/api/ai_marine.hpp.sq +++ b/src/ai/api/ai_marine.hpp.sq @@ -26,11 +26,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIMarine *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIMarine", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIMarine"; } +template <> const char *GetClassName() { return "AIMarine"; } void SQAIMarine_Register(Squirrel *engine) { - DefSQClass SQAIMarine("AIMarine"); + DefSQClass SQAIMarine("AIMarine"); SQAIMarine.PreRegister(engine); SQAIMarine.AddConstructor(engine, "x"); diff --git a/src/ai/api/ai_order.hpp.sq b/src/ai/api/ai_order.hpp.sq --- a/src/ai/api/ai_order.hpp.sq +++ b/src/ai/api/ai_order.hpp.sq @@ -34,11 +34,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIOrder *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIOrder", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIOrder"; } +template <> const char *GetClassName() { return "AIOrder"; } void SQAIOrder_Register(Squirrel *engine) { - DefSQClass SQAIOrder("AIOrder"); + DefSQClass SQAIOrder("AIOrder"); SQAIOrder.PreRegister(engine); SQAIOrder.AddConstructor(engine, "x"); diff --git a/src/ai/api/ai_rail.hpp.sq b/src/ai/api/ai_rail.hpp.sq --- a/src/ai/api/ai_rail.hpp.sq +++ b/src/ai/api/ai_rail.hpp.sq @@ -32,11 +32,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIRail *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIRail", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIRail"; } +template <> const char *GetClassName() { return "AIRail"; } void SQAIRail_Register(Squirrel *engine) { - DefSQClass SQAIRail("AIRail"); + DefSQClass SQAIRail("AIRail"); SQAIRail.PreRegister(engine); SQAIRail.AddConstructor(engine, "x"); diff --git a/src/ai/api/ai_railtypelist.hpp.sq b/src/ai/api/ai_railtypelist.hpp.sq --- a/src/ai/api/ai_railtypelist.hpp.sq +++ b/src/ai/api/ai_railtypelist.hpp.sq @@ -20,11 +20,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIRailTypeList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIRailTypeList", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIRailTypeList"; } +template <> const char *GetClassName() { return "AIRailTypeList"; } void SQAIRailTypeList_Register(Squirrel *engine) { - DefSQClass SQAIRailTypeList("AIRailTypeList"); + DefSQClass SQAIRailTypeList("AIRailTypeList"); SQAIRailTypeList.PreRegister(engine, "AIList"); SQAIRailTypeList.AddConstructor(engine, "x"); diff --git a/src/ai/api/ai_road.hpp.sq b/src/ai/api/ai_road.hpp.sq --- a/src/ai/api/ai_road.hpp.sq +++ b/src/ai/api/ai_road.hpp.sq @@ -30,11 +30,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIRoad *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIRoad", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIRoad"; } +template <> const char *GetClassName() { return "AIRoad"; } void SQAIRoad_Register(Squirrel *engine) { - DefSQClass SQAIRoad("AIRoad"); + DefSQClass SQAIRoad("AIRoad"); SQAIRoad.PreRegister(engine); SQAIRoad.AddConstructor(engine, "x"); diff --git a/src/ai/api/ai_sign.hpp.sq b/src/ai/api/ai_sign.hpp.sq --- a/src/ai/api/ai_sign.hpp.sq +++ b/src/ai/api/ai_sign.hpp.sq @@ -24,11 +24,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AISign *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AISign", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AISign"; } +template <> const char *GetClassName() { return "AISign"; } void SQAISign_Register(Squirrel *engine) { - DefSQClass SQAISign("AISign"); + DefSQClass SQAISign("AISign"); SQAISign.PreRegister(engine); SQAISign.AddConstructor(engine, "x"); diff --git a/src/ai/api/ai_signlist.hpp.sq b/src/ai/api/ai_signlist.hpp.sq --- a/src/ai/api/ai_signlist.hpp.sq +++ b/src/ai/api/ai_signlist.hpp.sq @@ -20,11 +20,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AISignList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AISignList", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AISignList"; } +template <> const char *GetClassName() { return "AISignList"; } void SQAISignList_Register(Squirrel *engine) { - DefSQClass SQAISignList("AISignList"); + DefSQClass SQAISignList("AISignList"); SQAISignList.PreRegister(engine, "AIList"); SQAISignList.AddConstructor(engine, "x"); diff --git a/src/ai/api/ai_station.hpp.sq b/src/ai/api/ai_station.hpp.sq --- a/src/ai/api/ai_station.hpp.sq +++ b/src/ai/api/ai_station.hpp.sq @@ -26,11 +26,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIStation *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIStation", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIStation"; } +template <> const char *GetClassName() { return "AIStation"; } void SQAIStation_Register(Squirrel *engine) { - DefSQClass SQAIStation("AIStation"); + DefSQClass SQAIStation("AIStation"); SQAIStation.PreRegister(engine, "AIBaseStation"); SQAIStation.AddConstructor(engine, "x"); diff --git a/src/ai/api/ai_stationlist.hpp.sq b/src/ai/api/ai_stationlist.hpp.sq --- a/src/ai/api/ai_stationlist.hpp.sq +++ b/src/ai/api/ai_stationlist.hpp.sq @@ -20,11 +20,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIStationList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIStationList", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIStationList"; } +template <> const char *GetClassName() { return "AIStationList"; } void SQAIStationList_Register(Squirrel *engine) { - DefSQClass SQAIStationList("AIStationList"); + DefSQClass SQAIStationList("AIStationList"); SQAIStationList.PreRegister(engine, "AIList"); SQAIStationList.AddConstructor(engine, "xi"); @@ -40,11 +40,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIStationList_Vehicle *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIStationList_Vehicle", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIStationList_Vehicle"; } +template <> const char *GetClassName() { return "AIStationList_Vehicle"; } void SQAIStationList_Vehicle_Register(Squirrel *engine) { - DefSQClass SQAIStationList_Vehicle("AIStationList_Vehicle"); + DefSQClass SQAIStationList_Vehicle("AIStationList_Vehicle"); SQAIStationList_Vehicle.PreRegister(engine, "AIList"); SQAIStationList_Vehicle.AddConstructor(engine, "xi"); diff --git a/src/ai/api/ai_subsidy.hpp.sq b/src/ai/api/ai_subsidy.hpp.sq --- a/src/ai/api/ai_subsidy.hpp.sq +++ b/src/ai/api/ai_subsidy.hpp.sq @@ -24,11 +24,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AISubsidy *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AISubsidy", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AISubsidy"; } +template <> const char *GetClassName() { return "AISubsidy"; } void SQAISubsidy_Register(Squirrel *engine) { - DefSQClass SQAISubsidy("AISubsidy"); + DefSQClass SQAISubsidy("AISubsidy"); SQAISubsidy.PreRegister(engine); SQAISubsidy.AddConstructor(engine, "x"); diff --git a/src/ai/api/ai_subsidylist.hpp.sq b/src/ai/api/ai_subsidylist.hpp.sq --- a/src/ai/api/ai_subsidylist.hpp.sq +++ b/src/ai/api/ai_subsidylist.hpp.sq @@ -20,11 +20,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AISubsidyList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AISubsidyList", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AISubsidyList"; } +template <> const char *GetClassName() { return "AISubsidyList"; } void SQAISubsidyList_Register(Squirrel *engine) { - DefSQClass SQAISubsidyList("AISubsidyList"); + DefSQClass SQAISubsidyList("AISubsidyList"); SQAISubsidyList.PreRegister(engine, "AIList"); SQAISubsidyList.AddConstructor(engine, "x"); diff --git a/src/ai/api/ai_testmode.hpp.sq b/src/ai/api/ai_testmode.hpp.sq --- a/src/ai/api/ai_testmode.hpp.sq +++ b/src/ai/api/ai_testmode.hpp.sq @@ -20,11 +20,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AITestMode *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AITestMode", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AITestMode"; } +template <> const char *GetClassName() { return "AITestMode"; } void SQAITestMode_Register(Squirrel *engine) { - DefSQClass SQAITestMode("AITestMode"); + DefSQClass SQAITestMode("AITestMode"); SQAITestMode.PreRegister(engine); SQAITestMode.AddConstructor(engine, "x"); diff --git a/src/ai/api/ai_tile.hpp.sq b/src/ai/api/ai_tile.hpp.sq --- a/src/ai/api/ai_tile.hpp.sq +++ b/src/ai/api/ai_tile.hpp.sq @@ -32,11 +32,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AITile *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AITile", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AITile"; } +template <> const char *GetClassName() { return "AITile"; } void SQAITile_Register(Squirrel *engine) { - DefSQClass SQAITile("AITile"); + DefSQClass SQAITile("AITile"); SQAITile.PreRegister(engine); SQAITile.AddConstructor(engine, "x"); diff --git a/src/ai/api/ai_tilelist.hpp.sq b/src/ai/api/ai_tilelist.hpp.sq --- a/src/ai/api/ai_tilelist.hpp.sq +++ b/src/ai/api/ai_tilelist.hpp.sq @@ -20,11 +20,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AITileList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AITileList", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AITileList"; } +template <> const char *GetClassName() { return "AITileList"; } void SQAITileList_Register(Squirrel *engine) { - DefSQClass SQAITileList("AITileList"); + DefSQClass SQAITileList("AITileList"); SQAITileList.PreRegister(engine, "AIList"); SQAITileList.AddConstructor(engine, "x"); @@ -45,11 +45,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AITileList_IndustryAccepting *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AITileList_IndustryAccepting", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AITileList_IndustryAccepting"; } +template <> const char *GetClassName() { return "AITileList_IndustryAccepting"; } void SQAITileList_IndustryAccepting_Register(Squirrel *engine) { - DefSQClass SQAITileList_IndustryAccepting("AITileList_IndustryAccepting"); + DefSQClass SQAITileList_IndustryAccepting("AITileList_IndustryAccepting"); SQAITileList_IndustryAccepting.PreRegister(engine, "AITileList"); SQAITileList_IndustryAccepting.AddConstructor(engine, "xii"); @@ -65,11 +65,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AITileList_IndustryProducing *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AITileList_IndustryProducing", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AITileList_IndustryProducing"; } +template <> const char *GetClassName() { return "AITileList_IndustryProducing"; } void SQAITileList_IndustryProducing_Register(Squirrel *engine) { - DefSQClass SQAITileList_IndustryProducing("AITileList_IndustryProducing"); + DefSQClass SQAITileList_IndustryProducing("AITileList_IndustryProducing"); SQAITileList_IndustryProducing.PreRegister(engine, "AITileList"); SQAITileList_IndustryProducing.AddConstructor(engine, "xii"); @@ -85,11 +85,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AITileList_StationType *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AITileList_StationType", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AITileList_StationType"; } +template <> const char *GetClassName() { return "AITileList_StationType"; } void SQAITileList_StationType_Register(Squirrel *engine) { - DefSQClass SQAITileList_StationType("AITileList_StationType"); + DefSQClass SQAITileList_StationType("AITileList_StationType"); SQAITileList_StationType.PreRegister(engine, "AITileList"); SQAITileList_StationType.AddConstructor(engine, "xii"); diff --git a/src/ai/api/ai_town.hpp.sq b/src/ai/api/ai_town.hpp.sq --- a/src/ai/api/ai_town.hpp.sq +++ b/src/ai/api/ai_town.hpp.sq @@ -28,11 +28,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AITown *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AITown", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AITown"; } +template <> const char *GetClassName() { return "AITown"; } void SQAITown_Register(Squirrel *engine) { - DefSQClass SQAITown("AITown"); + DefSQClass SQAITown("AITown"); SQAITown.PreRegister(engine); SQAITown.AddConstructor(engine, "x"); diff --git a/src/ai/api/ai_townlist.hpp.sq b/src/ai/api/ai_townlist.hpp.sq --- a/src/ai/api/ai_townlist.hpp.sq +++ b/src/ai/api/ai_townlist.hpp.sq @@ -20,11 +20,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AITownList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AITownList", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AITownList"; } +template <> const char *GetClassName() { return "AITownList"; } void SQAITownList_Register(Squirrel *engine) { - DefSQClass SQAITownList("AITownList"); + DefSQClass SQAITownList("AITownList"); SQAITownList.PreRegister(engine, "AIList"); SQAITownList.AddConstructor(engine, "x"); diff --git a/src/ai/api/ai_tunnel.hpp.sq b/src/ai/api/ai_tunnel.hpp.sq --- a/src/ai/api/ai_tunnel.hpp.sq +++ b/src/ai/api/ai_tunnel.hpp.sq @@ -24,11 +24,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AITunnel *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AITunnel", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AITunnel"; } +template <> const char *GetClassName() { return "AITunnel"; } void SQAITunnel_Register(Squirrel *engine) { - DefSQClass SQAITunnel("AITunnel"); + DefSQClass SQAITunnel("AITunnel"); SQAITunnel.PreRegister(engine); SQAITunnel.AddConstructor(engine, "x"); diff --git a/src/ai/api/ai_vehicle.hpp.sq b/src/ai/api/ai_vehicle.hpp.sq --- a/src/ai/api/ai_vehicle.hpp.sq +++ b/src/ai/api/ai_vehicle.hpp.sq @@ -28,11 +28,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIVehicle *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIVehicle", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIVehicle"; } +template <> const char *GetClassName() { return "AIVehicle"; } void SQAIVehicle_Register(Squirrel *engine) { - DefSQClass SQAIVehicle("AIVehicle"); + DefSQClass SQAIVehicle("AIVehicle"); SQAIVehicle.PreRegister(engine); SQAIVehicle.AddConstructor(engine, "x"); diff --git a/src/ai/api/ai_vehiclelist.hpp.sq b/src/ai/api/ai_vehiclelist.hpp.sq --- a/src/ai/api/ai_vehiclelist.hpp.sq +++ b/src/ai/api/ai_vehiclelist.hpp.sq @@ -20,11 +20,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIVehicleList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIVehicleList", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIVehicleList"; } +template <> const char *GetClassName() { return "AIVehicleList"; } void SQAIVehicleList_Register(Squirrel *engine) { - DefSQClass SQAIVehicleList("AIVehicleList"); + DefSQClass SQAIVehicleList("AIVehicleList"); SQAIVehicleList.PreRegister(engine, "AIList"); SQAIVehicleList.AddConstructor(engine, "x"); @@ -40,11 +40,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIVehicleList_Station *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIVehicleList_Station", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIVehicleList_Station"; } +template <> const char *GetClassName() { return "AIVehicleList_Station"; } void SQAIVehicleList_Station_Register(Squirrel *engine) { - DefSQClass SQAIVehicleList_Station("AIVehicleList_Station"); + DefSQClass SQAIVehicleList_Station("AIVehicleList_Station"); SQAIVehicleList_Station.PreRegister(engine, "AIList"); SQAIVehicleList_Station.AddConstructor(engine, "xi"); @@ -60,11 +60,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIVehicleList_Depot *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIVehicleList_Depot", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIVehicleList_Depot"; } +template <> const char *GetClassName() { return "AIVehicleList_Depot"; } void SQAIVehicleList_Depot_Register(Squirrel *engine) { - DefSQClass SQAIVehicleList_Depot("AIVehicleList_Depot"); + DefSQClass SQAIVehicleList_Depot("AIVehicleList_Depot"); SQAIVehicleList_Depot.PreRegister(engine, "AIList"); SQAIVehicleList_Depot.AddConstructor(engine, "xi"); @@ -80,11 +80,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIVehicleList_SharedOrders *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIVehicleList_SharedOrders", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIVehicleList_SharedOrders"; } +template <> const char *GetClassName() { return "AIVehicleList_SharedOrders"; } void SQAIVehicleList_SharedOrders_Register(Squirrel *engine) { - DefSQClass SQAIVehicleList_SharedOrders("AIVehicleList_SharedOrders"); + DefSQClass SQAIVehicleList_SharedOrders("AIVehicleList_SharedOrders"); SQAIVehicleList_SharedOrders.PreRegister(engine, "AIList"); SQAIVehicleList_SharedOrders.AddConstructor(engine, "xi"); @@ -100,11 +100,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIVehicleList_Group *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIVehicleList_Group", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIVehicleList_Group"; } +template <> const char *GetClassName() { return "AIVehicleList_Group"; } void SQAIVehicleList_Group_Register(Squirrel *engine) { - DefSQClass SQAIVehicleList_Group("AIVehicleList_Group"); + DefSQClass SQAIVehicleList_Group("AIVehicleList_Group"); SQAIVehicleList_Group.PreRegister(engine, "AIList"); SQAIVehicleList_Group.AddConstructor(engine, "xi"); @@ -120,11 +120,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIVehicleList_DefaultGroup *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIVehicleList_DefaultGroup", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIVehicleList_DefaultGroup"; } +template <> const char *GetClassName() { return "AIVehicleList_DefaultGroup"; } void SQAIVehicleList_DefaultGroup_Register(Squirrel *engine) { - DefSQClass SQAIVehicleList_DefaultGroup("AIVehicleList_DefaultGroup"); + DefSQClass SQAIVehicleList_DefaultGroup("AIVehicleList_DefaultGroup"); SQAIVehicleList_DefaultGroup.PreRegister(engine, "AIList"); SQAIVehicleList_DefaultGroup.AddConstructor(engine, "xi"); diff --git a/src/ai/api/ai_waypoint.hpp.sq b/src/ai/api/ai_waypoint.hpp.sq --- a/src/ai/api/ai_waypoint.hpp.sq +++ b/src/ai/api/ai_waypoint.hpp.sq @@ -26,11 +26,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIWaypoint *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIWaypoint", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIWaypoint"; } +template <> const char *GetClassName() { return "AIWaypoint"; } void SQAIWaypoint_Register(Squirrel *engine) { - DefSQClass SQAIWaypoint("AIWaypoint"); + DefSQClass SQAIWaypoint("AIWaypoint"); SQAIWaypoint.PreRegister(engine, "AIBaseStation"); SQAIWaypoint.AddConstructor(engine, "x"); diff --git a/src/ai/api/ai_waypointlist.hpp.sq b/src/ai/api/ai_waypointlist.hpp.sq --- a/src/ai/api/ai_waypointlist.hpp.sq +++ b/src/ai/api/ai_waypointlist.hpp.sq @@ -20,11 +20,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIWaypointList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIWaypointList", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIWaypointList"; } +template <> const char *GetClassName() { return "AIWaypointList"; } void SQAIWaypointList_Register(Squirrel *engine) { - DefSQClass SQAIWaypointList("AIWaypointList"); + DefSQClass SQAIWaypointList("AIWaypointList"); SQAIWaypointList.PreRegister(engine, "AIList"); SQAIWaypointList.AddConstructor(engine, "xi"); @@ -40,11 +40,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AIWaypointList_Vehicle *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIWaypointList_Vehicle", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AIWaypointList_Vehicle"; } +template <> const char *GetClassName() { return "AIWaypointList_Vehicle"; } void SQAIWaypointList_Vehicle_Register(Squirrel *engine) { - DefSQClass SQAIWaypointList_Vehicle("AIWaypointList_Vehicle"); + DefSQClass SQAIWaypointList_Vehicle("AIWaypointList_Vehicle"); SQAIWaypointList_Vehicle.PreRegister(engine, "AIList"); SQAIWaypointList_Vehicle.AddConstructor(engine, "xi"); diff --git a/src/ai/api/squirrel_export.awk b/src/ai/api/squirrel_export.awk --- a/src/ai/api/squirrel_export.awk +++ b/src/ai/api/squirrel_export.awk @@ -209,13 +209,13 @@ BEGIN { print "} // namespace SQConvert" print ""; - print "template <> const char *GetClassName<" cls ">() { return \"" cls "\"; }" + print "template <> const char *GetClassName<" cls ", ST_AI>() { return \"" cls "\"; }" print ""; # Then do the registration functions of the class. */ print "void SQ" cls "_Register(Squirrel *engine)" print "{" - print " DefSQClass <" cls "> SQ" cls "(\"" cls "\");" + print " DefSQClass<" cls ", ST_AI> SQ" cls "(\"" cls "\");" if (super_cls == "AIObject" || super_cls == "AIAbstractList::Valuator") { print " SQ" cls ".PreRegister(engine);" } else { diff --git a/src/script/squirrel.hpp b/src/script/squirrel.hpp --- a/src/script/squirrel.hpp +++ b/src/script/squirrel.hpp @@ -14,6 +14,11 @@ #include +/** The type of script we're working with, i.e. for who is it? */ +enum ScriptType { + ST_AI, ///< The script is for the AI. +}; + class Squirrel { private: typedef void (SQPrintFunc)(bool error_msg, const SQChar *message); diff --git a/src/script/squirrel_class.hpp b/src/script/squirrel_class.hpp --- a/src/script/squirrel_class.hpp +++ b/src/script/squirrel_class.hpp @@ -18,7 +18,7 @@ * The template to define classes in Squirrel. It takes care of the creation * and calling of such classes, to minimize the API layer. */ -template +template class DefSQClass { private: const char *classname; @@ -35,7 +35,7 @@ public: void DefSQMethod(Squirrel *engine, Func function_proc, const char *function_name) { using namespace SQConvert; - engine->AddMethod(function_name, DefSQNonStaticCallback, 0, NULL, &function_proc, sizeof(function_proc)); + engine->AddMethod(function_name, DefSQNonStaticCallback, 0, NULL, &function_proc, sizeof(function_proc)); } /** @@ -45,7 +45,7 @@ public: void DefSQAdvancedMethod(Squirrel *engine, Func function_proc, const char *function_name) { using namespace SQConvert; - engine->AddMethod(function_name, DefSQAdvancedNonStaticCallback, 0, NULL, &function_proc, sizeof(function_proc)); + engine->AddMethod(function_name, DefSQAdvancedNonStaticCallback, 0, NULL, &function_proc, sizeof(function_proc)); } /** @@ -58,7 +58,7 @@ public: void DefSQMethod(Squirrel *engine, Func function_proc, const char *function_name, int nparam, const char *params) { using namespace SQConvert; - engine->AddMethod(function_name, DefSQNonStaticCallback, nparam, params, &function_proc, sizeof(function_proc)); + engine->AddMethod(function_name, DefSQNonStaticCallback, nparam, params, &function_proc, sizeof(function_proc)); } /** diff --git a/src/script/squirrel_helper.hpp b/src/script/squirrel_helper.hpp --- a/src/script/squirrel_helper.hpp +++ b/src/script/squirrel_helper.hpp @@ -19,7 +19,7 @@ #include "../string_func.h" #include "squirrel_helper_type.hpp" -template const char *GetClassName(); +template const char *GetClassName(); /** * The Squirrel convert routines @@ -731,7 +731,7 @@ namespace SQConvert { * In here the function_proc is recovered, and the SQCall is called that * can handle this exact amount of params. */ - template + template inline SQInteger DefSQNonStaticCallback(HSQUIRRELVM vm) { /* Find the amount of params we got */ @@ -745,7 +745,7 @@ namespace SQConvert { /* Protect against calls to a non-static method in a static way */ sq_pushroottable(vm); - const char *className = GetClassName(); + const char *className = GetClassName(); sq_pushstring(vm, OTTD2SQ(className), -1); sq_get(vm, -2); sq_pushobject(vm, instance); @@ -773,7 +773,7 @@ namespace SQConvert { * In here the function_proc is recovered, and the SQCall is called that * can handle this exact amount of params. */ - template + template inline SQInteger DefSQAdvancedNonStaticCallback(HSQUIRRELVM vm) { /* Find the amount of params we got */ @@ -787,7 +787,7 @@ namespace SQConvert { /* Protect against calls to a non-static method in a static way */ sq_pushroottable(vm); - const char *className = GetClassName(); + const char *className = GetClassName(); sq_pushstring(vm, OTTD2SQ(className), -1); sq_get(vm, -2); sq_pushobject(vm, instance);