From e7fb5f00e7b97c235aaad45844ad816f0df5e31e Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 4 Oct 2009 18:16:44 +0000 Subject: (svn r17697) -Codechange: coding style in the automatically generated squirrel wrapper code --- src/ai/api/ai_abstractlist.hpp.sq | 3 +- src/ai/api/ai_accounting.hpp.sq | 3 +- src/ai/api/ai_airport.hpp.sq | 3 +- src/ai/api/ai_base.hpp.sq | 3 +- src/ai/api/ai_basestation.hpp.sq | 3 +- src/ai/api/ai_bridge.hpp.sq | 3 +- src/ai/api/ai_bridgelist.hpp.sq | 6 ++-- src/ai/api/ai_buoylist.hpp.sq | 3 +- src/ai/api/ai_cargo.hpp.sq | 3 +- src/ai/api/ai_cargolist.hpp.sq | 9 ++++-- src/ai/api/ai_company.hpp.sq | 3 +- src/ai/api/ai_controller.hpp.sq | 3 +- src/ai/api/ai_date.hpp.sq | 3 +- src/ai/api/ai_depotlist.hpp.sq | 3 +- src/ai/api/ai_engine.hpp.sq | 3 +- src/ai/api/ai_enginelist.hpp.sq | 3 +- src/ai/api/ai_error.hpp.sq | 3 +- src/ai/api/ai_event.hpp.sq | 6 ++-- src/ai/api/ai_event_types.hpp.sq | 60 +++++++++++++++++++++++------------ src/ai/api/ai_execmode.hpp.sq | 3 +- src/ai/api/ai_gamesettings.hpp.sq | 3 +- src/ai/api/ai_group.hpp.sq | 3 +- src/ai/api/ai_grouplist.hpp.sq | 3 +- src/ai/api/ai_industry.hpp.sq | 3 +- src/ai/api/ai_industrylist.hpp.sq | 9 ++++-- src/ai/api/ai_industrytype.hpp.sq | 3 +- src/ai/api/ai_industrytypelist.hpp.sq | 3 +- src/ai/api/ai_list.hpp.sq | 3 +- src/ai/api/ai_log.hpp.sq | 3 +- src/ai/api/ai_map.hpp.sq | 3 +- src/ai/api/ai_marine.hpp.sq | 3 +- src/ai/api/ai_order.hpp.sq | 3 +- src/ai/api/ai_rail.hpp.sq | 3 +- src/ai/api/ai_railtypelist.hpp.sq | 3 +- src/ai/api/ai_road.hpp.sq | 3 +- src/ai/api/ai_sign.hpp.sq | 3 +- src/ai/api/ai_signlist.hpp.sq | 3 +- src/ai/api/ai_station.hpp.sq | 3 +- src/ai/api/ai_stationlist.hpp.sq | 6 ++-- src/ai/api/ai_subsidy.hpp.sq | 3 +- src/ai/api/ai_subsidylist.hpp.sq | 3 +- src/ai/api/ai_testmode.hpp.sq | 3 +- src/ai/api/ai_tile.hpp.sq | 3 +- src/ai/api/ai_tilelist.hpp.sq | 12 ++++--- src/ai/api/ai_town.hpp.sq | 3 +- src/ai/api/ai_townlist.hpp.sq | 3 +- src/ai/api/ai_tunnel.hpp.sq | 3 +- src/ai/api/ai_vehicle.hpp.sq | 3 +- src/ai/api/ai_vehiclelist.hpp.sq | 18 +++++++---- src/ai/api/ai_waypoint.hpp.sq | 3 +- src/ai/api/ai_waypointlist.hpp.sq | 6 ++-- src/ai/api/squirrel_export.awk | 3 +- src/ai/api/squirrel_export.sh | 4 +-- 53 files changed, 176 insertions(+), 89 deletions(-) diff --git a/src/ai/api/ai_abstractlist.hpp.sq b/src/ai/api/ai_abstractlist.hpp.sq index df681aa5a..22b8977c7 100644 --- a/src/ai/api/ai_abstractlist.hpp.sq +++ b/src/ai/api/ai_abstractlist.hpp.sq @@ -24,7 +24,8 @@ namespace SQConvert { template <> int Return(HSQUIRRELVM vm, AIAbstractList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIAbstractList", res, NULL, DefSQDestructorCallback); return 1; } }; // namespace SQConvert -void SQAIAbstractList_Register(Squirrel *engine) { +void SQAIAbstractList_Register(Squirrel *engine) +{ DefSQClass SQAIAbstractList("AIAbstractList"); SQAIAbstractList.PreRegister(engine); SQAIAbstractList.AddConstructor(engine, "x"); diff --git a/src/ai/api/ai_accounting.hpp.sq b/src/ai/api/ai_accounting.hpp.sq index ad871c2c2..899812010 100644 --- a/src/ai/api/ai_accounting.hpp.sq +++ b/src/ai/api/ai_accounting.hpp.sq @@ -20,7 +20,8 @@ namespace SQConvert { template <> 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 -void SQAIAccounting_Register(Squirrel *engine) { +void SQAIAccounting_Register(Squirrel *engine) +{ 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 index dd98768f3..7afd83dac 100644 --- a/src/ai/api/ai_airport.hpp.sq +++ b/src/ai/api/ai_airport.hpp.sq @@ -26,7 +26,8 @@ namespace SQConvert { template <> 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 -void SQAIAirport_Register(Squirrel *engine) { +void SQAIAirport_Register(Squirrel *engine) +{ 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 index f00f6bb2d..a8078c1fa 100644 --- a/src/ai/api/ai_base.hpp.sq +++ b/src/ai/api/ai_base.hpp.sq @@ -20,7 +20,8 @@ namespace SQConvert { template <> 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 -void SQAIBase_Register(Squirrel *engine) { +void SQAIBase_Register(Squirrel *engine) +{ 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 index 93cedfe4c..5d82d0cd2 100644 --- a/src/ai/api/ai_basestation.hpp.sq +++ b/src/ai/api/ai_basestation.hpp.sq @@ -24,7 +24,8 @@ namespace SQConvert { template <> 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 -void SQAIBaseStation_Register(Squirrel *engine) { +void SQAIBaseStation_Register(Squirrel *engine) +{ 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 index d0ed61b2b..001a9e22f 100644 --- a/src/ai/api/ai_bridge.hpp.sq +++ b/src/ai/api/ai_bridge.hpp.sq @@ -24,7 +24,8 @@ namespace SQConvert { template <> 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 -void SQAIBridge_Register(Squirrel *engine) { +void SQAIBridge_Register(Squirrel *engine) +{ 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 index d2cc0b02d..2a1211b83 100644 --- a/src/ai/api/ai_bridgelist.hpp.sq +++ b/src/ai/api/ai_bridgelist.hpp.sq @@ -20,7 +20,8 @@ namespace SQConvert { template <> 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 -void SQAIBridgeList_Register(Squirrel *engine) { +void SQAIBridgeList_Register(Squirrel *engine) +{ DefSQClass SQAIBridgeList("AIBridgeList"); SQAIBridgeList.PreRegister(engine, "AIAbstractList"); SQAIBridgeList.AddConstructor(engine, "x"); @@ -37,7 +38,8 @@ namespace SQConvert { template <> 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 -void SQAIBridgeList_Length_Register(Squirrel *engine) { +void SQAIBridgeList_Length_Register(Squirrel *engine) +{ DefSQClass SQAIBridgeList_Length("AIBridgeList_Length"); SQAIBridgeList_Length.PreRegister(engine, "AIAbstractList"); SQAIBridgeList_Length.AddConstructor(engine, "xi"); diff --git a/src/ai/api/ai_buoylist.hpp.sq b/src/ai/api/ai_buoylist.hpp.sq index e7ceb1749..99b3a45ce 100644 --- a/src/ai/api/ai_buoylist.hpp.sq +++ b/src/ai/api/ai_buoylist.hpp.sq @@ -20,7 +20,8 @@ namespace SQConvert { template <> int Return(HSQUIRRELVM vm, AIBuoyList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIBuoyList", res, NULL, DefSQDestructorCallback); return 1; } }; // namespace SQConvert -void SQAIBuoyList_Register(Squirrel *engine) { +void SQAIBuoyList_Register(Squirrel *engine) +{ DefSQClass SQAIBuoyList("AIBuoyList"); SQAIBuoyList.PreRegister(engine, "AIAbstractList"); SQAIBuoyList.AddConstructor(engine, "x"); diff --git a/src/ai/api/ai_cargo.hpp.sq b/src/ai/api/ai_cargo.hpp.sq index 7b54a31e6..dda0ffa2c 100644 --- a/src/ai/api/ai_cargo.hpp.sq +++ b/src/ai/api/ai_cargo.hpp.sq @@ -26,7 +26,8 @@ namespace SQConvert { template <> 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 -void SQAICargo_Register(Squirrel *engine) { +void SQAICargo_Register(Squirrel *engine) +{ 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 index 1496ab651..8f70e6903 100644 --- a/src/ai/api/ai_cargolist.hpp.sq +++ b/src/ai/api/ai_cargolist.hpp.sq @@ -20,7 +20,8 @@ namespace SQConvert { template <> 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 -void SQAICargoList_Register(Squirrel *engine) { +void SQAICargoList_Register(Squirrel *engine) +{ DefSQClass SQAICargoList("AICargoList"); SQAICargoList.PreRegister(engine, "AIAbstractList"); SQAICargoList.AddConstructor(engine, "x"); @@ -37,7 +38,8 @@ namespace SQConvert { template <> 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 -void SQAICargoList_IndustryAccepting_Register(Squirrel *engine) { +void SQAICargoList_IndustryAccepting_Register(Squirrel *engine) +{ DefSQClass SQAICargoList_IndustryAccepting("AICargoList_IndustryAccepting"); SQAICargoList_IndustryAccepting.PreRegister(engine, "AIAbstractList"); SQAICargoList_IndustryAccepting.AddConstructor(engine, "xi"); @@ -54,7 +56,8 @@ namespace SQConvert { template <> 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 -void SQAICargoList_IndustryProducing_Register(Squirrel *engine) { +void SQAICargoList_IndustryProducing_Register(Squirrel *engine) +{ DefSQClass SQAICargoList_IndustryProducing("AICargoList_IndustryProducing"); SQAICargoList_IndustryProducing.PreRegister(engine, "AIAbstractList"); SQAICargoList_IndustryProducing.AddConstructor(engine, "xi"); diff --git a/src/ai/api/ai_company.hpp.sq b/src/ai/api/ai_company.hpp.sq index a6005f9f3..29fab8cb3 100644 --- a/src/ai/api/ai_company.hpp.sq +++ b/src/ai/api/ai_company.hpp.sq @@ -26,7 +26,8 @@ namespace SQConvert { template <> 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 -void SQAICompany_Register(Squirrel *engine) { +void SQAICompany_Register(Squirrel *engine) +{ 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 index 0da7ad516..ec8ddca83 100644 --- a/src/ai/api/ai_controller.hpp.sq +++ b/src/ai/api/ai_controller.hpp.sq @@ -9,7 +9,8 @@ #include "ai_controller.hpp" -void SQAIController_Register(Squirrel *engine) { +void SQAIController_Register(Squirrel *engine) +{ 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 index cc2e2bf8b..a56a9dcf1 100644 --- a/src/ai/api/ai_date.hpp.sq +++ b/src/ai/api/ai_date.hpp.sq @@ -20,7 +20,8 @@ namespace SQConvert { template <> 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 -void SQAIDate_Register(Squirrel *engine) { +void SQAIDate_Register(Squirrel *engine) +{ 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 index 46ff9708a..96d2200de 100644 --- a/src/ai/api/ai_depotlist.hpp.sq +++ b/src/ai/api/ai_depotlist.hpp.sq @@ -20,7 +20,8 @@ namespace SQConvert { template <> 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 -void SQAIDepotList_Register(Squirrel *engine) { +void SQAIDepotList_Register(Squirrel *engine) +{ DefSQClass SQAIDepotList("AIDepotList"); SQAIDepotList.PreRegister(engine, "AIAbstractList"); SQAIDepotList.AddConstructor(engine, "xi"); diff --git a/src/ai/api/ai_engine.hpp.sq b/src/ai/api/ai_engine.hpp.sq index b5e646c14..78f9a1c06 100644 --- a/src/ai/api/ai_engine.hpp.sq +++ b/src/ai/api/ai_engine.hpp.sq @@ -20,7 +20,8 @@ namespace SQConvert { template <> 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 -void SQAIEngine_Register(Squirrel *engine) { +void SQAIEngine_Register(Squirrel *engine) +{ 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 index 84a44b386..28013da87 100644 --- a/src/ai/api/ai_enginelist.hpp.sq +++ b/src/ai/api/ai_enginelist.hpp.sq @@ -20,7 +20,8 @@ namespace SQConvert { template <> 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 -void SQAIEngineList_Register(Squirrel *engine) { +void SQAIEngineList_Register(Squirrel *engine) +{ DefSQClass SQAIEngineList("AIEngineList"); SQAIEngineList.PreRegister(engine, "AIAbstractList"); SQAIEngineList.AddConstructor(engine, "xi"); diff --git a/src/ai/api/ai_error.hpp.sq b/src/ai/api/ai_error.hpp.sq index d648c70c7..0a5337cfb 100644 --- a/src/ai/api/ai_error.hpp.sq +++ b/src/ai/api/ai_error.hpp.sq @@ -26,7 +26,8 @@ namespace SQConvert { template <> 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 -void SQAIError_Register(Squirrel *engine) { +void SQAIError_Register(Squirrel *engine) +{ 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 index cc250961f..f3ee565e1 100644 --- a/src/ai/api/ai_event.hpp.sq +++ b/src/ai/api/ai_event.hpp.sq @@ -24,7 +24,8 @@ namespace SQConvert { template <> 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 -void SQAIEvent_Register(Squirrel *engine) { +void SQAIEvent_Register(Squirrel *engine) +{ DefSQClass SQAIEvent("AIEvent"); SQAIEvent.PreRegister(engine); SQAIEvent.AddConstructor(engine, "xi"); @@ -66,7 +67,8 @@ namespace SQConvert { template <> 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 -void SQAIEventController_Register(Squirrel *engine) { +void SQAIEventController_Register(Squirrel *engine) +{ 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 index a0842231a..a2e369d8a 100644 --- a/src/ai/api/ai_event_types.hpp.sq +++ b/src/ai/api/ai_event_types.hpp.sq @@ -24,7 +24,8 @@ namespace SQConvert { template <> 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 -void SQAIEventVehicleCrashed_Register(Squirrel *engine) { +void SQAIEventVehicleCrashed_Register(Squirrel *engine) +{ DefSQClass SQAIEventVehicleCrashed("AIEventVehicleCrashed"); SQAIEventVehicleCrashed.PreRegister(engine, "AIEvent"); @@ -53,7 +54,8 @@ namespace SQConvert { template <> 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 -void SQAIEventSubsidyOffer_Register(Squirrel *engine) { +void SQAIEventSubsidyOffer_Register(Squirrel *engine) +{ DefSQClass SQAIEventSubsidyOffer("AIEventSubsidyOffer"); SQAIEventSubsidyOffer.PreRegister(engine, "AIEvent"); @@ -73,7 +75,8 @@ namespace SQConvert { template <> 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 -void SQAIEventSubsidyOfferExpired_Register(Squirrel *engine) { +void SQAIEventSubsidyOfferExpired_Register(Squirrel *engine) +{ DefSQClass SQAIEventSubsidyOfferExpired("AIEventSubsidyOfferExpired"); SQAIEventSubsidyOfferExpired.PreRegister(engine, "AIEvent"); @@ -93,7 +96,8 @@ namespace SQConvert { template <> 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 -void SQAIEventSubsidyAwarded_Register(Squirrel *engine) { +void SQAIEventSubsidyAwarded_Register(Squirrel *engine) +{ DefSQClass SQAIEventSubsidyAwarded("AIEventSubsidyAwarded"); SQAIEventSubsidyAwarded.PreRegister(engine, "AIEvent"); @@ -113,7 +117,8 @@ namespace SQConvert { template <> 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 -void SQAIEventSubsidyExpired_Register(Squirrel *engine) { +void SQAIEventSubsidyExpired_Register(Squirrel *engine) +{ DefSQClass SQAIEventSubsidyExpired("AIEventSubsidyExpired"); SQAIEventSubsidyExpired.PreRegister(engine, "AIEvent"); @@ -133,7 +138,8 @@ namespace SQConvert { template <> 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 -void SQAIEventEnginePreview_Register(Squirrel *engine) { +void SQAIEventEnginePreview_Register(Squirrel *engine) +{ DefSQClass SQAIEventEnginePreview("AIEventEnginePreview"); SQAIEventEnginePreview.PreRegister(engine, "AIEvent"); @@ -160,7 +166,8 @@ namespace SQConvert { template <> 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 -void SQAIEventCompanyNew_Register(Squirrel *engine) { +void SQAIEventCompanyNew_Register(Squirrel *engine) +{ DefSQClass SQAIEventCompanyNew("AIEventCompanyNew"); SQAIEventCompanyNew.PreRegister(engine, "AIEvent"); @@ -180,7 +187,8 @@ namespace SQConvert { template <> 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 -void SQAIEventCompanyInTrouble_Register(Squirrel *engine) { +void SQAIEventCompanyInTrouble_Register(Squirrel *engine) +{ DefSQClass SQAIEventCompanyInTrouble("AIEventCompanyInTrouble"); SQAIEventCompanyInTrouble.PreRegister(engine, "AIEvent"); @@ -200,7 +208,8 @@ namespace SQConvert { template <> 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 -void SQAIEventCompanyAskMerger_Register(Squirrel *engine) { +void SQAIEventCompanyAskMerger_Register(Squirrel *engine) +{ DefSQClass SQAIEventCompanyAskMerger("AIEventCompanyAskMerger"); SQAIEventCompanyAskMerger.PreRegister(engine, "AIEvent"); @@ -222,7 +231,8 @@ namespace SQConvert { template <> 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 -void SQAIEventCompanyMerger_Register(Squirrel *engine) { +void SQAIEventCompanyMerger_Register(Squirrel *engine) +{ DefSQClass SQAIEventCompanyMerger("AIEventCompanyMerger"); SQAIEventCompanyMerger.PreRegister(engine, "AIEvent"); @@ -243,7 +253,8 @@ namespace SQConvert { template <> 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 -void SQAIEventCompanyBankrupt_Register(Squirrel *engine) { +void SQAIEventCompanyBankrupt_Register(Squirrel *engine) +{ DefSQClass SQAIEventCompanyBankrupt("AIEventCompanyBankrupt"); SQAIEventCompanyBankrupt.PreRegister(engine, "AIEvent"); @@ -263,7 +274,8 @@ namespace SQConvert { template <> 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 -void SQAIEventVehicleLost_Register(Squirrel *engine) { +void SQAIEventVehicleLost_Register(Squirrel *engine) +{ DefSQClass SQAIEventVehicleLost("AIEventVehicleLost"); SQAIEventVehicleLost.PreRegister(engine, "AIEvent"); @@ -283,7 +295,8 @@ namespace SQConvert { template <> 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 -void SQAIEventVehicleWaitingInDepot_Register(Squirrel *engine) { +void SQAIEventVehicleWaitingInDepot_Register(Squirrel *engine) +{ DefSQClass SQAIEventVehicleWaitingInDepot("AIEventVehicleWaitingInDepot"); SQAIEventVehicleWaitingInDepot.PreRegister(engine, "AIEvent"); @@ -303,7 +316,8 @@ namespace SQConvert { template <> 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 -void SQAIEventVehicleUnprofitable_Register(Squirrel *engine) { +void SQAIEventVehicleUnprofitable_Register(Squirrel *engine) +{ DefSQClass SQAIEventVehicleUnprofitable("AIEventVehicleUnprofitable"); SQAIEventVehicleUnprofitable.PreRegister(engine, "AIEvent"); @@ -323,7 +337,8 @@ namespace SQConvert { template <> 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 -void SQAIEventIndustryOpen_Register(Squirrel *engine) { +void SQAIEventIndustryOpen_Register(Squirrel *engine) +{ DefSQClass SQAIEventIndustryOpen("AIEventIndustryOpen"); SQAIEventIndustryOpen.PreRegister(engine, "AIEvent"); @@ -343,7 +358,8 @@ namespace SQConvert { template <> 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 -void SQAIEventIndustryClose_Register(Squirrel *engine) { +void SQAIEventIndustryClose_Register(Squirrel *engine) +{ DefSQClass SQAIEventIndustryClose("AIEventIndustryClose"); SQAIEventIndustryClose.PreRegister(engine, "AIEvent"); @@ -363,7 +379,8 @@ namespace SQConvert { template <> 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 -void SQAIEventEngineAvailable_Register(Squirrel *engine) { +void SQAIEventEngineAvailable_Register(Squirrel *engine) +{ DefSQClass SQAIEventEngineAvailable("AIEventEngineAvailable"); SQAIEventEngineAvailable.PreRegister(engine, "AIEvent"); @@ -383,7 +400,8 @@ namespace SQConvert { template <> 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 -void SQAIEventStationFirstVehicle_Register(Squirrel *engine) { +void SQAIEventStationFirstVehicle_Register(Squirrel *engine) +{ DefSQClass SQAIEventStationFirstVehicle("AIEventStationFirstVehicle"); SQAIEventStationFirstVehicle.PreRegister(engine, "AIEvent"); @@ -404,7 +422,8 @@ namespace SQConvert { template <> 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 -void SQAIEventDisasterZeppelinerCrashed_Register(Squirrel *engine) { +void SQAIEventDisasterZeppelinerCrashed_Register(Squirrel *engine) +{ DefSQClass SQAIEventDisasterZeppelinerCrashed("AIEventDisasterZeppelinerCrashed"); SQAIEventDisasterZeppelinerCrashed.PreRegister(engine, "AIEvent"); @@ -424,7 +443,8 @@ namespace SQConvert { template <> 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 -void SQAIEventDisasterZeppelinerCleared_Register(Squirrel *engine) { +void SQAIEventDisasterZeppelinerCleared_Register(Squirrel *engine) +{ DefSQClass SQAIEventDisasterZeppelinerCleared("AIEventDisasterZeppelinerCleared"); SQAIEventDisasterZeppelinerCleared.PreRegister(engine, "AIEvent"); diff --git a/src/ai/api/ai_execmode.hpp.sq b/src/ai/api/ai_execmode.hpp.sq index a449c5f9b..46f8d2fda 100644 --- a/src/ai/api/ai_execmode.hpp.sq +++ b/src/ai/api/ai_execmode.hpp.sq @@ -20,7 +20,8 @@ namespace SQConvert { template <> 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 -void SQAIExecMode_Register(Squirrel *engine) { +void SQAIExecMode_Register(Squirrel *engine) +{ 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 index 18c44d626..2ae0bb99c 100644 --- a/src/ai/api/ai_gamesettings.hpp.sq +++ b/src/ai/api/ai_gamesettings.hpp.sq @@ -20,7 +20,8 @@ namespace SQConvert { template <> 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 -void SQAIGameSettings_Register(Squirrel *engine) { +void SQAIGameSettings_Register(Squirrel *engine) +{ 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 index 98d2cc716..1d23dbb9f 100644 --- a/src/ai/api/ai_group.hpp.sq +++ b/src/ai/api/ai_group.hpp.sq @@ -24,7 +24,8 @@ namespace SQConvert { template <> 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 -void SQAIGroup_Register(Squirrel *engine) { +void SQAIGroup_Register(Squirrel *engine) +{ 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 index 88256e98e..13f026115 100644 --- a/src/ai/api/ai_grouplist.hpp.sq +++ b/src/ai/api/ai_grouplist.hpp.sq @@ -20,7 +20,8 @@ namespace SQConvert { template <> 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 -void SQAIGroupList_Register(Squirrel *engine) { +void SQAIGroupList_Register(Squirrel *engine) +{ DefSQClass SQAIGroupList("AIGroupList"); SQAIGroupList.PreRegister(engine, "AIAbstractList"); SQAIGroupList.AddConstructor(engine, "x"); diff --git a/src/ai/api/ai_industry.hpp.sq b/src/ai/api/ai_industry.hpp.sq index 2eb8e129e..9e7e25120 100644 --- a/src/ai/api/ai_industry.hpp.sq +++ b/src/ai/api/ai_industry.hpp.sq @@ -20,7 +20,8 @@ namespace SQConvert { template <> 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 -void SQAIIndustry_Register(Squirrel *engine) { +void SQAIIndustry_Register(Squirrel *engine) +{ 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 index 9dfea038d..768c00b41 100644 --- a/src/ai/api/ai_industrylist.hpp.sq +++ b/src/ai/api/ai_industrylist.hpp.sq @@ -20,7 +20,8 @@ namespace SQConvert { template <> 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 -void SQAIIndustryList_Register(Squirrel *engine) { +void SQAIIndustryList_Register(Squirrel *engine) +{ DefSQClass SQAIIndustryList("AIIndustryList"); SQAIIndustryList.PreRegister(engine, "AIAbstractList"); SQAIIndustryList.AddConstructor(engine, "x"); @@ -37,7 +38,8 @@ namespace SQConvert { template <> 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 -void SQAIIndustryList_CargoAccepting_Register(Squirrel *engine) { +void SQAIIndustryList_CargoAccepting_Register(Squirrel *engine) +{ DefSQClass SQAIIndustryList_CargoAccepting("AIIndustryList_CargoAccepting"); SQAIIndustryList_CargoAccepting.PreRegister(engine, "AIAbstractList"); SQAIIndustryList_CargoAccepting.AddConstructor(engine, "xi"); @@ -54,7 +56,8 @@ namespace SQConvert { template <> 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 -void SQAIIndustryList_CargoProducing_Register(Squirrel *engine) { +void SQAIIndustryList_CargoProducing_Register(Squirrel *engine) +{ DefSQClass SQAIIndustryList_CargoProducing("AIIndustryList_CargoProducing"); SQAIIndustryList_CargoProducing.PreRegister(engine, "AIAbstractList"); SQAIIndustryList_CargoProducing.AddConstructor(engine, "xi"); diff --git a/src/ai/api/ai_industrytype.hpp.sq b/src/ai/api/ai_industrytype.hpp.sq index 1b352356b..bd43cb87c 100644 --- a/src/ai/api/ai_industrytype.hpp.sq +++ b/src/ai/api/ai_industrytype.hpp.sq @@ -20,7 +20,8 @@ namespace SQConvert { template <> 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 -void SQAIIndustryType_Register(Squirrel *engine) { +void SQAIIndustryType_Register(Squirrel *engine) +{ 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 index e2abe3621..2dc728a7a 100644 --- a/src/ai/api/ai_industrytypelist.hpp.sq +++ b/src/ai/api/ai_industrytypelist.hpp.sq @@ -20,7 +20,8 @@ namespace SQConvert { template <> 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 -void SQAIIndustryTypeList_Register(Squirrel *engine) { +void SQAIIndustryTypeList_Register(Squirrel *engine) +{ DefSQClass SQAIIndustryTypeList("AIIndustryTypeList"); SQAIIndustryTypeList.PreRegister(engine, "AIAbstractList"); SQAIIndustryTypeList.AddConstructor(engine, "x"); diff --git a/src/ai/api/ai_list.hpp.sq b/src/ai/api/ai_list.hpp.sq index e87068297..d42b3b505 100644 --- a/src/ai/api/ai_list.hpp.sq +++ b/src/ai/api/ai_list.hpp.sq @@ -20,7 +20,8 @@ namespace SQConvert { template <> 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 -void SQAIList_Register(Squirrel *engine) { +void SQAIList_Register(Squirrel *engine) +{ DefSQClass SQAIList("AIList"); SQAIList.PreRegister(engine, "AIAbstractList"); SQAIList.AddConstructor(engine, "x"); diff --git a/src/ai/api/ai_log.hpp.sq b/src/ai/api/ai_log.hpp.sq index 39c07de42..f21728eee 100644 --- a/src/ai/api/ai_log.hpp.sq +++ b/src/ai/api/ai_log.hpp.sq @@ -20,7 +20,8 @@ namespace SQConvert { template <> 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 -void SQAILog_Register(Squirrel *engine) { +void SQAILog_Register(Squirrel *engine) +{ 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 index 9367276f9..a49c274e7 100644 --- a/src/ai/api/ai_map.hpp.sq +++ b/src/ai/api/ai_map.hpp.sq @@ -20,7 +20,8 @@ namespace SQConvert { template <> 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 -void SQAIMap_Register(Squirrel *engine) { +void SQAIMap_Register(Squirrel *engine) +{ 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 index 93400a260..5c6b86900 100644 --- a/src/ai/api/ai_marine.hpp.sq +++ b/src/ai/api/ai_marine.hpp.sq @@ -24,7 +24,8 @@ namespace SQConvert { template <> 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 -void SQAIMarine_Register(Squirrel *engine) { +void SQAIMarine_Register(Squirrel *engine) +{ 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 index 323c8d372..3d8cefefd 100644 --- a/src/ai/api/ai_order.hpp.sq +++ b/src/ai/api/ai_order.hpp.sq @@ -32,7 +32,8 @@ namespace SQConvert { template <> 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 -void SQAIOrder_Register(Squirrel *engine) { +void SQAIOrder_Register(Squirrel *engine) +{ 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 index 6ecaf45db..33d46b8c3 100644 --- a/src/ai/api/ai_rail.hpp.sq +++ b/src/ai/api/ai_rail.hpp.sq @@ -30,7 +30,8 @@ namespace SQConvert { template <> 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 -void SQAIRail_Register(Squirrel *engine) { +void SQAIRail_Register(Squirrel *engine) +{ 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 index 665fc51a2..9b7c4cba6 100644 --- a/src/ai/api/ai_railtypelist.hpp.sq +++ b/src/ai/api/ai_railtypelist.hpp.sq @@ -20,7 +20,8 @@ namespace SQConvert { template <> 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 -void SQAIRailTypeList_Register(Squirrel *engine) { +void SQAIRailTypeList_Register(Squirrel *engine) +{ DefSQClass SQAIRailTypeList("AIRailTypeList"); SQAIRailTypeList.PreRegister(engine, "AIAbstractList"); SQAIRailTypeList.AddConstructor(engine, "x"); diff --git a/src/ai/api/ai_road.hpp.sq b/src/ai/api/ai_road.hpp.sq index 632d2250e..eff30e808 100644 --- a/src/ai/api/ai_road.hpp.sq +++ b/src/ai/api/ai_road.hpp.sq @@ -28,7 +28,8 @@ namespace SQConvert { template <> 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 -void SQAIRoad_Register(Squirrel *engine) { +void SQAIRoad_Register(Squirrel *engine) +{ 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 index 8221a944b..6d25b240e 100644 --- a/src/ai/api/ai_sign.hpp.sq +++ b/src/ai/api/ai_sign.hpp.sq @@ -24,7 +24,8 @@ namespace SQConvert { template <> 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 -void SQAISign_Register(Squirrel *engine) { +void SQAISign_Register(Squirrel *engine) +{ 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 index dad916f34..781b205e5 100644 --- a/src/ai/api/ai_signlist.hpp.sq +++ b/src/ai/api/ai_signlist.hpp.sq @@ -20,7 +20,8 @@ namespace SQConvert { template <> 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 -void SQAISignList_Register(Squirrel *engine) { +void SQAISignList_Register(Squirrel *engine) +{ DefSQClass SQAISignList("AISignList"); SQAISignList.PreRegister(engine, "AIAbstractList"); SQAISignList.AddConstructor(engine, "x"); diff --git a/src/ai/api/ai_station.hpp.sq b/src/ai/api/ai_station.hpp.sq index e6fe6ddc6..5bd1a3a58 100644 --- a/src/ai/api/ai_station.hpp.sq +++ b/src/ai/api/ai_station.hpp.sq @@ -26,7 +26,8 @@ namespace SQConvert { template <> 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 -void SQAIStation_Register(Squirrel *engine) { +void SQAIStation_Register(Squirrel *engine) +{ 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 index f922ee2d8..1617781e2 100644 --- a/src/ai/api/ai_stationlist.hpp.sq +++ b/src/ai/api/ai_stationlist.hpp.sq @@ -20,7 +20,8 @@ namespace SQConvert { template <> 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 -void SQAIStationList_Register(Squirrel *engine) { +void SQAIStationList_Register(Squirrel *engine) +{ DefSQClass SQAIStationList("AIStationList"); SQAIStationList.PreRegister(engine, "AIAbstractList"); SQAIStationList.AddConstructor(engine, "xi"); @@ -37,7 +38,8 @@ namespace SQConvert { template <> 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 -void SQAIStationList_Vehicle_Register(Squirrel *engine) { +void SQAIStationList_Vehicle_Register(Squirrel *engine) +{ DefSQClass SQAIStationList_Vehicle("AIStationList_Vehicle"); SQAIStationList_Vehicle.PreRegister(engine, "AIAbstractList"); SQAIStationList_Vehicle.AddConstructor(engine, "xi"); diff --git a/src/ai/api/ai_subsidy.hpp.sq b/src/ai/api/ai_subsidy.hpp.sq index 93290d0a3..bb631ad35 100644 --- a/src/ai/api/ai_subsidy.hpp.sq +++ b/src/ai/api/ai_subsidy.hpp.sq @@ -24,7 +24,8 @@ namespace SQConvert { template <> 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 -void SQAISubsidy_Register(Squirrel *engine) { +void SQAISubsidy_Register(Squirrel *engine) +{ 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 index 60b1fd9e4..328e17e36 100644 --- a/src/ai/api/ai_subsidylist.hpp.sq +++ b/src/ai/api/ai_subsidylist.hpp.sq @@ -20,7 +20,8 @@ namespace SQConvert { template <> 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 -void SQAISubsidyList_Register(Squirrel *engine) { +void SQAISubsidyList_Register(Squirrel *engine) +{ DefSQClass SQAISubsidyList("AISubsidyList"); SQAISubsidyList.PreRegister(engine, "AIAbstractList"); SQAISubsidyList.AddConstructor(engine, "x"); diff --git a/src/ai/api/ai_testmode.hpp.sq b/src/ai/api/ai_testmode.hpp.sq index a36fd43ab..70b161752 100644 --- a/src/ai/api/ai_testmode.hpp.sq +++ b/src/ai/api/ai_testmode.hpp.sq @@ -20,7 +20,8 @@ namespace SQConvert { template <> 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 -void SQAITestMode_Register(Squirrel *engine) { +void SQAITestMode_Register(Squirrel *engine) +{ 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 index a99e79a14..4abaaeecd 100644 --- a/src/ai/api/ai_tile.hpp.sq +++ b/src/ai/api/ai_tile.hpp.sq @@ -30,7 +30,8 @@ namespace SQConvert { template <> 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 -void SQAITile_Register(Squirrel *engine) { +void SQAITile_Register(Squirrel *engine) +{ 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 index e469f10ef..3caa087d5 100644 --- a/src/ai/api/ai_tilelist.hpp.sq +++ b/src/ai/api/ai_tilelist.hpp.sq @@ -20,7 +20,8 @@ namespace SQConvert { template <> 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 -void SQAITileList_Register(Squirrel *engine) { +void SQAITileList_Register(Squirrel *engine) +{ DefSQClass SQAITileList("AITileList"); SQAITileList.PreRegister(engine, "AIAbstractList"); SQAITileList.AddConstructor(engine, "x"); @@ -42,7 +43,8 @@ namespace SQConvert { template <> 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 -void SQAITileList_IndustryAccepting_Register(Squirrel *engine) { +void SQAITileList_IndustryAccepting_Register(Squirrel *engine) +{ DefSQClass SQAITileList_IndustryAccepting("AITileList_IndustryAccepting"); SQAITileList_IndustryAccepting.PreRegister(engine, "AITileList"); SQAITileList_IndustryAccepting.AddConstructor(engine, "xii"); @@ -59,7 +61,8 @@ namespace SQConvert { template <> 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 -void SQAITileList_IndustryProducing_Register(Squirrel *engine) { +void SQAITileList_IndustryProducing_Register(Squirrel *engine) +{ DefSQClass SQAITileList_IndustryProducing("AITileList_IndustryProducing"); SQAITileList_IndustryProducing.PreRegister(engine, "AITileList"); SQAITileList_IndustryProducing.AddConstructor(engine, "xii"); @@ -76,7 +79,8 @@ namespace SQConvert { template <> 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 -void SQAITileList_StationType_Register(Squirrel *engine) { +void SQAITileList_StationType_Register(Squirrel *engine) +{ 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 index 924de2b9b..a670cbc72 100644 --- a/src/ai/api/ai_town.hpp.sq +++ b/src/ai/api/ai_town.hpp.sq @@ -28,7 +28,8 @@ namespace SQConvert { template <> 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 -void SQAITown_Register(Squirrel *engine) { +void SQAITown_Register(Squirrel *engine) +{ 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 index 585edd67c..dc44d205e 100644 --- a/src/ai/api/ai_townlist.hpp.sq +++ b/src/ai/api/ai_townlist.hpp.sq @@ -20,7 +20,8 @@ namespace SQConvert { template <> 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 -void SQAITownList_Register(Squirrel *engine) { +void SQAITownList_Register(Squirrel *engine) +{ DefSQClass SQAITownList("AITownList"); SQAITownList.PreRegister(engine, "AIAbstractList"); SQAITownList.AddConstructor(engine, "x"); diff --git a/src/ai/api/ai_tunnel.hpp.sq b/src/ai/api/ai_tunnel.hpp.sq index 1ae13fe80..695938b88 100644 --- a/src/ai/api/ai_tunnel.hpp.sq +++ b/src/ai/api/ai_tunnel.hpp.sq @@ -24,7 +24,8 @@ namespace SQConvert { template <> 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 -void SQAITunnel_Register(Squirrel *engine) { +void SQAITunnel_Register(Squirrel *engine) +{ 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 index b8a894223..8f9f7586e 100644 --- a/src/ai/api/ai_vehicle.hpp.sq +++ b/src/ai/api/ai_vehicle.hpp.sq @@ -28,7 +28,8 @@ namespace SQConvert { template <> 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 -void SQAIVehicle_Register(Squirrel *engine) { +void SQAIVehicle_Register(Squirrel *engine) +{ 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 index 1e7817cdf..a6ce9e50e 100644 --- a/src/ai/api/ai_vehiclelist.hpp.sq +++ b/src/ai/api/ai_vehiclelist.hpp.sq @@ -20,7 +20,8 @@ namespace SQConvert { template <> 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 -void SQAIVehicleList_Register(Squirrel *engine) { +void SQAIVehicleList_Register(Squirrel *engine) +{ DefSQClass SQAIVehicleList("AIVehicleList"); SQAIVehicleList.PreRegister(engine, "AIAbstractList"); SQAIVehicleList.AddConstructor(engine, "x"); @@ -37,7 +38,8 @@ namespace SQConvert { template <> 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 -void SQAIVehicleList_Station_Register(Squirrel *engine) { +void SQAIVehicleList_Station_Register(Squirrel *engine) +{ DefSQClass SQAIVehicleList_Station("AIVehicleList_Station"); SQAIVehicleList_Station.PreRegister(engine, "AIAbstractList"); SQAIVehicleList_Station.AddConstructor(engine, "xi"); @@ -54,7 +56,8 @@ namespace SQConvert { template <> 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 -void SQAIVehicleList_Depot_Register(Squirrel *engine) { +void SQAIVehicleList_Depot_Register(Squirrel *engine) +{ DefSQClass SQAIVehicleList_Depot("AIVehicleList_Depot"); SQAIVehicleList_Depot.PreRegister(engine, "AIAbstractList"); SQAIVehicleList_Depot.AddConstructor(engine, "xi"); @@ -71,7 +74,8 @@ namespace SQConvert { template <> 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 -void SQAIVehicleList_SharedOrders_Register(Squirrel *engine) { +void SQAIVehicleList_SharedOrders_Register(Squirrel *engine) +{ DefSQClass SQAIVehicleList_SharedOrders("AIVehicleList_SharedOrders"); SQAIVehicleList_SharedOrders.PreRegister(engine, "AIAbstractList"); SQAIVehicleList_SharedOrders.AddConstructor(engine, "xi"); @@ -88,7 +92,8 @@ namespace SQConvert { template <> 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 -void SQAIVehicleList_Group_Register(Squirrel *engine) { +void SQAIVehicleList_Group_Register(Squirrel *engine) +{ DefSQClass SQAIVehicleList_Group("AIVehicleList_Group"); SQAIVehicleList_Group.PreRegister(engine, "AIAbstractList"); SQAIVehicleList_Group.AddConstructor(engine, "xi"); @@ -105,7 +110,8 @@ namespace SQConvert { template <> 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 -void SQAIVehicleList_DefaultGroup_Register(Squirrel *engine) { +void SQAIVehicleList_DefaultGroup_Register(Squirrel *engine) +{ DefSQClass SQAIVehicleList_DefaultGroup("AIVehicleList_DefaultGroup"); SQAIVehicleList_DefaultGroup.PreRegister(engine, "AIAbstractList"); SQAIVehicleList_DefaultGroup.AddConstructor(engine, "xi"); diff --git a/src/ai/api/ai_waypoint.hpp.sq b/src/ai/api/ai_waypoint.hpp.sq index 2cbb9c542..815c104c5 100644 --- a/src/ai/api/ai_waypoint.hpp.sq +++ b/src/ai/api/ai_waypoint.hpp.sq @@ -20,7 +20,8 @@ namespace SQConvert { template <> 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 -void SQAIWaypoint_Register(Squirrel *engine) { +void SQAIWaypoint_Register(Squirrel *engine) +{ 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 index ea6319d26..c2f70c3ef 100644 --- a/src/ai/api/ai_waypointlist.hpp.sq +++ b/src/ai/api/ai_waypointlist.hpp.sq @@ -20,7 +20,8 @@ namespace SQConvert { template <> 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 -void SQAIWaypointList_Register(Squirrel *engine) { +void SQAIWaypointList_Register(Squirrel *engine) +{ DefSQClass SQAIWaypointList("AIWaypointList"); SQAIWaypointList.PreRegister(engine, "AIAbstractList"); SQAIWaypointList.AddConstructor(engine, "x"); @@ -37,7 +38,8 @@ namespace SQConvert { template <> 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 -void SQAIWaypointList_Vehicle_Register(Squirrel *engine) { +void SQAIWaypointList_Vehicle_Register(Squirrel *engine) +{ DefSQClass SQAIWaypointList_Vehicle("AIWaypointList_Vehicle"); SQAIWaypointList_Vehicle.PreRegister(engine, "AIAbstractList"); SQAIWaypointList_Vehicle.AddConstructor(engine, "xi"); diff --git a/src/ai/api/squirrel_export.awk b/src/ai/api/squirrel_export.awk index 3f57ff7d7..58ebfb93e 100644 --- a/src/ai/api/squirrel_export.awk +++ b/src/ai/api/squirrel_export.awk @@ -210,7 +210,8 @@ BEGIN { print ""; # Then do the registration functions of the class. */ - print "void SQ" cls "_Register(Squirrel *engine) {" + print "void SQ" cls "_Register(Squirrel *engine)" + print "{" print " DefSQClass <" cls "> SQ" cls "(\"" cls "\");" if (super_cls == "AIObject" || super_cls == "AIAbstractList::Valuator") { print " SQ" cls ".PreRegister(engine);" diff --git a/src/ai/api/squirrel_export.sh b/src/ai/api/squirrel_export.sh index 3e0d77e40..aed180da6 100755 --- a/src/ai/api/squirrel_export.sh +++ b/src/ai/api/squirrel_export.sh @@ -76,7 +76,7 @@ echo " /Note: this line a marker in squirrel_export.sh. Do not change!/ { print \$0 gsub(\"^.*/\", \"\") - split(\"`grep '^void SQAI.*_Register(Squirrel \*engine) {$' *.hpp.sq | sed 's/:.*$//' | sort | uniq | tr -d '\r' | tr '\n' ' '`\", files, \" \") + split(\"`grep '^void SQAI.*_Register(Squirrel \*engine)$' *.hpp.sq | sed 's/:.*$//' | sort | uniq | tr -d '\r' | tr '\n' ' '`\", files, \" \") for (i = 1; files[i] != \"\"; i++) { print \"#include \\\"api/\" files[i] \"\\\"\" \$0 @@ -89,7 +89,7 @@ echo " print \$0 gsub(\"^.*/\", \"\") print \" squirrel_register_std(this->engine);\" \$0 - split(\"`grep '^void SQAI.*_Register(Squirrel \*engine) {$' *.hpp.sq | sed 's/^.*void //;s/Squirrel \*/this->/;s/ {/;/;s/_Register/0000Register/g;' | sort | sed 's/0000Register/_Register/g' | tr -d '\r' | tr '\n' ' '`\", regs, \" \") + split(\"`grep '^void SQAI.*_Register(Squirrel \*engine)$' *.hpp.sq | sed 's/^.*void //;s/Squirrel \*/this->/;s/$/;/;s/_Register/0000Register/g;' | sort | sed 's/0000Register/_Register/g' | tr -d '\r' | tr '\n' ' '`\", regs, \" \") for (i = 1; regs[i] != \"\"; i++) { if (regs[i] == \"SQAIController_Register(this->engine);\") continue -- cgit v1.2.3-70-g09d2