mirror of https://github.com/OpenTTD/OpenTTD
(svn r17697) -Codechange: coding style in the automatically generated squirrel wrapper code
parent
54806e7437
commit
e7fb5f00e7
|
@ -24,7 +24,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIAbstractList *>(HSQUIRRELVM vm, AIAbstractList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIAbstractList", res, NULL, DefSQDestructorCallback<AIAbstractList>); return 1; }
|
template <> int Return<AIAbstractList *>(HSQUIRRELVM vm, AIAbstractList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIAbstractList", res, NULL, DefSQDestructorCallback<AIAbstractList>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIAbstractList_Register(Squirrel *engine) {
|
void SQAIAbstractList_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIAbstractList> SQAIAbstractList("AIAbstractList");
|
DefSQClass <AIAbstractList> SQAIAbstractList("AIAbstractList");
|
||||||
SQAIAbstractList.PreRegister(engine);
|
SQAIAbstractList.PreRegister(engine);
|
||||||
SQAIAbstractList.AddConstructor<void (AIAbstractList::*)(), 1>(engine, "x");
|
SQAIAbstractList.AddConstructor<void (AIAbstractList::*)(), 1>(engine, "x");
|
||||||
|
|
|
@ -20,7 +20,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIAccounting *>(HSQUIRRELVM vm, AIAccounting *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIAccounting", res, NULL, DefSQDestructorCallback<AIAccounting>); return 1; }
|
template <> int Return<AIAccounting *>(HSQUIRRELVM vm, AIAccounting *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIAccounting", res, NULL, DefSQDestructorCallback<AIAccounting>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIAccounting_Register(Squirrel *engine) {
|
void SQAIAccounting_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIAccounting> SQAIAccounting("AIAccounting");
|
DefSQClass <AIAccounting> SQAIAccounting("AIAccounting");
|
||||||
SQAIAccounting.PreRegister(engine);
|
SQAIAccounting.PreRegister(engine);
|
||||||
SQAIAccounting.AddConstructor<void (AIAccounting::*)(), 1>(engine, "x");
|
SQAIAccounting.AddConstructor<void (AIAccounting::*)(), 1>(engine, "x");
|
||||||
|
|
|
@ -26,7 +26,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIAirport *>(HSQUIRRELVM vm, AIAirport *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIAirport", res, NULL, DefSQDestructorCallback<AIAirport>); return 1; }
|
template <> int Return<AIAirport *>(HSQUIRRELVM vm, AIAirport *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIAirport", res, NULL, DefSQDestructorCallback<AIAirport>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIAirport_Register(Squirrel *engine) {
|
void SQAIAirport_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIAirport> SQAIAirport("AIAirport");
|
DefSQClass <AIAirport> SQAIAirport("AIAirport");
|
||||||
SQAIAirport.PreRegister(engine);
|
SQAIAirport.PreRegister(engine);
|
||||||
SQAIAirport.AddConstructor<void (AIAirport::*)(), 1>(engine, "x");
|
SQAIAirport.AddConstructor<void (AIAirport::*)(), 1>(engine, "x");
|
||||||
|
|
|
@ -20,7 +20,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIBase *>(HSQUIRRELVM vm, AIBase *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIBase", res, NULL, DefSQDestructorCallback<AIBase>); return 1; }
|
template <> int Return<AIBase *>(HSQUIRRELVM vm, AIBase *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIBase", res, NULL, DefSQDestructorCallback<AIBase>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIBase_Register(Squirrel *engine) {
|
void SQAIBase_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIBase> SQAIBase("AIBase");
|
DefSQClass <AIBase> SQAIBase("AIBase");
|
||||||
SQAIBase.PreRegister(engine);
|
SQAIBase.PreRegister(engine);
|
||||||
SQAIBase.AddConstructor<void (AIBase::*)(), 1>(engine, "x");
|
SQAIBase.AddConstructor<void (AIBase::*)(), 1>(engine, "x");
|
||||||
|
|
|
@ -24,7 +24,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIBaseStation *>(HSQUIRRELVM vm, AIBaseStation *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIBaseStation", res, NULL, DefSQDestructorCallback<AIBaseStation>); return 1; }
|
template <> int Return<AIBaseStation *>(HSQUIRRELVM vm, AIBaseStation *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIBaseStation", res, NULL, DefSQDestructorCallback<AIBaseStation>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIBaseStation_Register(Squirrel *engine) {
|
void SQAIBaseStation_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIBaseStation> SQAIBaseStation("AIBaseStation");
|
DefSQClass <AIBaseStation> SQAIBaseStation("AIBaseStation");
|
||||||
SQAIBaseStation.PreRegister(engine);
|
SQAIBaseStation.PreRegister(engine);
|
||||||
SQAIBaseStation.AddConstructor<void (AIBaseStation::*)(), 1>(engine, "x");
|
SQAIBaseStation.AddConstructor<void (AIBaseStation::*)(), 1>(engine, "x");
|
||||||
|
|
|
@ -24,7 +24,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIBridge *>(HSQUIRRELVM vm, AIBridge *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIBridge", res, NULL, DefSQDestructorCallback<AIBridge>); return 1; }
|
template <> int Return<AIBridge *>(HSQUIRRELVM vm, AIBridge *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIBridge", res, NULL, DefSQDestructorCallback<AIBridge>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIBridge_Register(Squirrel *engine) {
|
void SQAIBridge_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIBridge> SQAIBridge("AIBridge");
|
DefSQClass <AIBridge> SQAIBridge("AIBridge");
|
||||||
SQAIBridge.PreRegister(engine);
|
SQAIBridge.PreRegister(engine);
|
||||||
SQAIBridge.AddConstructor<void (AIBridge::*)(), 1>(engine, "x");
|
SQAIBridge.AddConstructor<void (AIBridge::*)(), 1>(engine, "x");
|
||||||
|
|
|
@ -20,7 +20,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIBridgeList *>(HSQUIRRELVM vm, AIBridgeList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIBridgeList", res, NULL, DefSQDestructorCallback<AIBridgeList>); return 1; }
|
template <> int Return<AIBridgeList *>(HSQUIRRELVM vm, AIBridgeList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIBridgeList", res, NULL, DefSQDestructorCallback<AIBridgeList>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIBridgeList_Register(Squirrel *engine) {
|
void SQAIBridgeList_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIBridgeList> SQAIBridgeList("AIBridgeList");
|
DefSQClass <AIBridgeList> SQAIBridgeList("AIBridgeList");
|
||||||
SQAIBridgeList.PreRegister(engine, "AIAbstractList");
|
SQAIBridgeList.PreRegister(engine, "AIAbstractList");
|
||||||
SQAIBridgeList.AddConstructor<void (AIBridgeList::*)(), 1>(engine, "x");
|
SQAIBridgeList.AddConstructor<void (AIBridgeList::*)(), 1>(engine, "x");
|
||||||
|
@ -37,7 +38,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIBridgeList_Length *>(HSQUIRRELVM vm, AIBridgeList_Length *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIBridgeList_Length", res, NULL, DefSQDestructorCallback<AIBridgeList_Length>); return 1; }
|
template <> int Return<AIBridgeList_Length *>(HSQUIRRELVM vm, AIBridgeList_Length *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIBridgeList_Length", res, NULL, DefSQDestructorCallback<AIBridgeList_Length>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIBridgeList_Length_Register(Squirrel *engine) {
|
void SQAIBridgeList_Length_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIBridgeList_Length> SQAIBridgeList_Length("AIBridgeList_Length");
|
DefSQClass <AIBridgeList_Length> SQAIBridgeList_Length("AIBridgeList_Length");
|
||||||
SQAIBridgeList_Length.PreRegister(engine, "AIAbstractList");
|
SQAIBridgeList_Length.PreRegister(engine, "AIAbstractList");
|
||||||
SQAIBridgeList_Length.AddConstructor<void (AIBridgeList_Length::*)(uint length), 2>(engine, "xi");
|
SQAIBridgeList_Length.AddConstructor<void (AIBridgeList_Length::*)(uint length), 2>(engine, "xi");
|
||||||
|
|
|
@ -20,7 +20,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIBuoyList *>(HSQUIRRELVM vm, AIBuoyList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIBuoyList", res, NULL, DefSQDestructorCallback<AIBuoyList>); return 1; }
|
template <> int Return<AIBuoyList *>(HSQUIRRELVM vm, AIBuoyList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIBuoyList", res, NULL, DefSQDestructorCallback<AIBuoyList>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIBuoyList_Register(Squirrel *engine) {
|
void SQAIBuoyList_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIBuoyList> SQAIBuoyList("AIBuoyList");
|
DefSQClass <AIBuoyList> SQAIBuoyList("AIBuoyList");
|
||||||
SQAIBuoyList.PreRegister(engine, "AIAbstractList");
|
SQAIBuoyList.PreRegister(engine, "AIAbstractList");
|
||||||
SQAIBuoyList.AddConstructor<void (AIBuoyList::*)(), 1>(engine, "x");
|
SQAIBuoyList.AddConstructor<void (AIBuoyList::*)(), 1>(engine, "x");
|
||||||
|
|
|
@ -26,7 +26,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AICargo *>(HSQUIRRELVM vm, AICargo *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AICargo", res, NULL, DefSQDestructorCallback<AICargo>); return 1; }
|
template <> int Return<AICargo *>(HSQUIRRELVM vm, AICargo *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AICargo", res, NULL, DefSQDestructorCallback<AICargo>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAICargo_Register(Squirrel *engine) {
|
void SQAICargo_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AICargo> SQAICargo("AICargo");
|
DefSQClass <AICargo> SQAICargo("AICargo");
|
||||||
SQAICargo.PreRegister(engine);
|
SQAICargo.PreRegister(engine);
|
||||||
SQAICargo.AddConstructor<void (AICargo::*)(), 1>(engine, "x");
|
SQAICargo.AddConstructor<void (AICargo::*)(), 1>(engine, "x");
|
||||||
|
|
|
@ -20,7 +20,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AICargoList *>(HSQUIRRELVM vm, AICargoList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AICargoList", res, NULL, DefSQDestructorCallback<AICargoList>); return 1; }
|
template <> int Return<AICargoList *>(HSQUIRRELVM vm, AICargoList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AICargoList", res, NULL, DefSQDestructorCallback<AICargoList>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAICargoList_Register(Squirrel *engine) {
|
void SQAICargoList_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AICargoList> SQAICargoList("AICargoList");
|
DefSQClass <AICargoList> SQAICargoList("AICargoList");
|
||||||
SQAICargoList.PreRegister(engine, "AIAbstractList");
|
SQAICargoList.PreRegister(engine, "AIAbstractList");
|
||||||
SQAICargoList.AddConstructor<void (AICargoList::*)(), 1>(engine, "x");
|
SQAICargoList.AddConstructor<void (AICargoList::*)(), 1>(engine, "x");
|
||||||
|
@ -37,7 +38,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AICargoList_IndustryAccepting *>(HSQUIRRELVM vm, AICargoList_IndustryAccepting *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AICargoList_IndustryAccepting", res, NULL, DefSQDestructorCallback<AICargoList_IndustryAccepting>); return 1; }
|
template <> int Return<AICargoList_IndustryAccepting *>(HSQUIRRELVM vm, AICargoList_IndustryAccepting *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AICargoList_IndustryAccepting", res, NULL, DefSQDestructorCallback<AICargoList_IndustryAccepting>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAICargoList_IndustryAccepting_Register(Squirrel *engine) {
|
void SQAICargoList_IndustryAccepting_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AICargoList_IndustryAccepting> SQAICargoList_IndustryAccepting("AICargoList_IndustryAccepting");
|
DefSQClass <AICargoList_IndustryAccepting> SQAICargoList_IndustryAccepting("AICargoList_IndustryAccepting");
|
||||||
SQAICargoList_IndustryAccepting.PreRegister(engine, "AIAbstractList");
|
SQAICargoList_IndustryAccepting.PreRegister(engine, "AIAbstractList");
|
||||||
SQAICargoList_IndustryAccepting.AddConstructor<void (AICargoList_IndustryAccepting::*)(IndustryID industry_id), 2>(engine, "xi");
|
SQAICargoList_IndustryAccepting.AddConstructor<void (AICargoList_IndustryAccepting::*)(IndustryID industry_id), 2>(engine, "xi");
|
||||||
|
@ -54,7 +56,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AICargoList_IndustryProducing *>(HSQUIRRELVM vm, AICargoList_IndustryProducing *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AICargoList_IndustryProducing", res, NULL, DefSQDestructorCallback<AICargoList_IndustryProducing>); return 1; }
|
template <> int Return<AICargoList_IndustryProducing *>(HSQUIRRELVM vm, AICargoList_IndustryProducing *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AICargoList_IndustryProducing", res, NULL, DefSQDestructorCallback<AICargoList_IndustryProducing>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAICargoList_IndustryProducing_Register(Squirrel *engine) {
|
void SQAICargoList_IndustryProducing_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AICargoList_IndustryProducing> SQAICargoList_IndustryProducing("AICargoList_IndustryProducing");
|
DefSQClass <AICargoList_IndustryProducing> SQAICargoList_IndustryProducing("AICargoList_IndustryProducing");
|
||||||
SQAICargoList_IndustryProducing.PreRegister(engine, "AIAbstractList");
|
SQAICargoList_IndustryProducing.PreRegister(engine, "AIAbstractList");
|
||||||
SQAICargoList_IndustryProducing.AddConstructor<void (AICargoList_IndustryProducing::*)(IndustryID industry_id), 2>(engine, "xi");
|
SQAICargoList_IndustryProducing.AddConstructor<void (AICargoList_IndustryProducing::*)(IndustryID industry_id), 2>(engine, "xi");
|
||||||
|
|
|
@ -26,7 +26,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AICompany *>(HSQUIRRELVM vm, AICompany *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AICompany", res, NULL, DefSQDestructorCallback<AICompany>); return 1; }
|
template <> int Return<AICompany *>(HSQUIRRELVM vm, AICompany *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AICompany", res, NULL, DefSQDestructorCallback<AICompany>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAICompany_Register(Squirrel *engine) {
|
void SQAICompany_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AICompany> SQAICompany("AICompany");
|
DefSQClass <AICompany> SQAICompany("AICompany");
|
||||||
SQAICompany.PreRegister(engine);
|
SQAICompany.PreRegister(engine);
|
||||||
SQAICompany.AddConstructor<void (AICompany::*)(), 1>(engine, "x");
|
SQAICompany.AddConstructor<void (AICompany::*)(), 1>(engine, "x");
|
||||||
|
|
|
@ -9,7 +9,8 @@
|
||||||
|
|
||||||
#include "ai_controller.hpp"
|
#include "ai_controller.hpp"
|
||||||
|
|
||||||
void SQAIController_Register(Squirrel *engine) {
|
void SQAIController_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIController> SQAIController("AIController");
|
DefSQClass <AIController> SQAIController("AIController");
|
||||||
SQAIController.PreRegister(engine);
|
SQAIController.PreRegister(engine);
|
||||||
SQAIController.DefSQStaticMethod(engine, &AIController::GetTick, "GetTick", 1, ".");
|
SQAIController.DefSQStaticMethod(engine, &AIController::GetTick, "GetTick", 1, ".");
|
||||||
|
|
|
@ -20,7 +20,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIDate *>(HSQUIRRELVM vm, AIDate *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIDate", res, NULL, DefSQDestructorCallback<AIDate>); return 1; }
|
template <> int Return<AIDate *>(HSQUIRRELVM vm, AIDate *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIDate", res, NULL, DefSQDestructorCallback<AIDate>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIDate_Register(Squirrel *engine) {
|
void SQAIDate_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIDate> SQAIDate("AIDate");
|
DefSQClass <AIDate> SQAIDate("AIDate");
|
||||||
SQAIDate.PreRegister(engine);
|
SQAIDate.PreRegister(engine);
|
||||||
SQAIDate.AddConstructor<void (AIDate::*)(), 1>(engine, "x");
|
SQAIDate.AddConstructor<void (AIDate::*)(), 1>(engine, "x");
|
||||||
|
|
|
@ -20,7 +20,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIDepotList *>(HSQUIRRELVM vm, AIDepotList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIDepotList", res, NULL, DefSQDestructorCallback<AIDepotList>); return 1; }
|
template <> int Return<AIDepotList *>(HSQUIRRELVM vm, AIDepotList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIDepotList", res, NULL, DefSQDestructorCallback<AIDepotList>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIDepotList_Register(Squirrel *engine) {
|
void SQAIDepotList_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIDepotList> SQAIDepotList("AIDepotList");
|
DefSQClass <AIDepotList> SQAIDepotList("AIDepotList");
|
||||||
SQAIDepotList.PreRegister(engine, "AIAbstractList");
|
SQAIDepotList.PreRegister(engine, "AIAbstractList");
|
||||||
SQAIDepotList.AddConstructor<void (AIDepotList::*)(AITile::TransportType transport_type), 2>(engine, "xi");
|
SQAIDepotList.AddConstructor<void (AIDepotList::*)(AITile::TransportType transport_type), 2>(engine, "xi");
|
||||||
|
|
|
@ -20,7 +20,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIEngine *>(HSQUIRRELVM vm, AIEngine *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEngine", res, NULL, DefSQDestructorCallback<AIEngine>); return 1; }
|
template <> int Return<AIEngine *>(HSQUIRRELVM vm, AIEngine *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEngine", res, NULL, DefSQDestructorCallback<AIEngine>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIEngine_Register(Squirrel *engine) {
|
void SQAIEngine_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIEngine> SQAIEngine("AIEngine");
|
DefSQClass <AIEngine> SQAIEngine("AIEngine");
|
||||||
SQAIEngine.PreRegister(engine);
|
SQAIEngine.PreRegister(engine);
|
||||||
SQAIEngine.AddConstructor<void (AIEngine::*)(), 1>(engine, "x");
|
SQAIEngine.AddConstructor<void (AIEngine::*)(), 1>(engine, "x");
|
||||||
|
|
|
@ -20,7 +20,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIEngineList *>(HSQUIRRELVM vm, AIEngineList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEngineList", res, NULL, DefSQDestructorCallback<AIEngineList>); return 1; }
|
template <> int Return<AIEngineList *>(HSQUIRRELVM vm, AIEngineList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEngineList", res, NULL, DefSQDestructorCallback<AIEngineList>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIEngineList_Register(Squirrel *engine) {
|
void SQAIEngineList_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIEngineList> SQAIEngineList("AIEngineList");
|
DefSQClass <AIEngineList> SQAIEngineList("AIEngineList");
|
||||||
SQAIEngineList.PreRegister(engine, "AIAbstractList");
|
SQAIEngineList.PreRegister(engine, "AIAbstractList");
|
||||||
SQAIEngineList.AddConstructor<void (AIEngineList::*)(AIVehicle::VehicleType vehicle_type), 2>(engine, "xi");
|
SQAIEngineList.AddConstructor<void (AIEngineList::*)(AIVehicle::VehicleType vehicle_type), 2>(engine, "xi");
|
||||||
|
|
|
@ -26,7 +26,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIError *>(HSQUIRRELVM vm, AIError *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIError", res, NULL, DefSQDestructorCallback<AIError>); return 1; }
|
template <> int Return<AIError *>(HSQUIRRELVM vm, AIError *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIError", res, NULL, DefSQDestructorCallback<AIError>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIError_Register(Squirrel *engine) {
|
void SQAIError_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIError> SQAIError("AIError");
|
DefSQClass <AIError> SQAIError("AIError");
|
||||||
SQAIError.PreRegister(engine);
|
SQAIError.PreRegister(engine);
|
||||||
SQAIError.AddConstructor<void (AIError::*)(), 1>(engine, "x");
|
SQAIError.AddConstructor<void (AIError::*)(), 1>(engine, "x");
|
||||||
|
|
|
@ -24,7 +24,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIEvent *>(HSQUIRRELVM vm, AIEvent *res) { if (res == NULL) { sq_pushnull(vm); return 1; } Squirrel::CreateClassInstanceVM(vm, "AIEvent", res, NULL, DefSQDestructorCallback<AIEvent>); return 1; }
|
template <> int Return<AIEvent *>(HSQUIRRELVM vm, AIEvent *res) { if (res == NULL) { sq_pushnull(vm); return 1; } Squirrel::CreateClassInstanceVM(vm, "AIEvent", res, NULL, DefSQDestructorCallback<AIEvent>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIEvent_Register(Squirrel *engine) {
|
void SQAIEvent_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIEvent> SQAIEvent("AIEvent");
|
DefSQClass <AIEvent> SQAIEvent("AIEvent");
|
||||||
SQAIEvent.PreRegister(engine);
|
SQAIEvent.PreRegister(engine);
|
||||||
SQAIEvent.AddConstructor<void (AIEvent::*)(AIEvent::AIEventType type), 2>(engine, "xi");
|
SQAIEvent.AddConstructor<void (AIEvent::*)(AIEvent::AIEventType type), 2>(engine, "xi");
|
||||||
|
@ -66,7 +67,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIEventController *>(HSQUIRRELVM vm, AIEventController *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventController", res, NULL, DefSQDestructorCallback<AIEventController>); return 1; }
|
template <> int Return<AIEventController *>(HSQUIRRELVM vm, AIEventController *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventController", res, NULL, DefSQDestructorCallback<AIEventController>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIEventController_Register(Squirrel *engine) {
|
void SQAIEventController_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIEventController> SQAIEventController("AIEventController");
|
DefSQClass <AIEventController> SQAIEventController("AIEventController");
|
||||||
SQAIEventController.PreRegister(engine);
|
SQAIEventController.PreRegister(engine);
|
||||||
SQAIEventController.AddConstructor<void (AIEventController::*)(), 1>(engine, "x");
|
SQAIEventController.AddConstructor<void (AIEventController::*)(), 1>(engine, "x");
|
||||||
|
|
|
@ -24,7 +24,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIEventVehicleCrashed *>(HSQUIRRELVM vm, AIEventVehicleCrashed *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventVehicleCrashed", res, NULL, DefSQDestructorCallback<AIEventVehicleCrashed>); return 1; }
|
template <> int Return<AIEventVehicleCrashed *>(HSQUIRRELVM vm, AIEventVehicleCrashed *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventVehicleCrashed", res, NULL, DefSQDestructorCallback<AIEventVehicleCrashed>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIEventVehicleCrashed_Register(Squirrel *engine) {
|
void SQAIEventVehicleCrashed_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIEventVehicleCrashed> SQAIEventVehicleCrashed("AIEventVehicleCrashed");
|
DefSQClass <AIEventVehicleCrashed> SQAIEventVehicleCrashed("AIEventVehicleCrashed");
|
||||||
SQAIEventVehicleCrashed.PreRegister(engine, "AIEvent");
|
SQAIEventVehicleCrashed.PreRegister(engine, "AIEvent");
|
||||||
|
|
||||||
|
@ -53,7 +54,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIEventSubsidyOffer *>(HSQUIRRELVM vm, AIEventSubsidyOffer *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventSubsidyOffer", res, NULL, DefSQDestructorCallback<AIEventSubsidyOffer>); return 1; }
|
template <> int Return<AIEventSubsidyOffer *>(HSQUIRRELVM vm, AIEventSubsidyOffer *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventSubsidyOffer", res, NULL, DefSQDestructorCallback<AIEventSubsidyOffer>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIEventSubsidyOffer_Register(Squirrel *engine) {
|
void SQAIEventSubsidyOffer_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIEventSubsidyOffer> SQAIEventSubsidyOffer("AIEventSubsidyOffer");
|
DefSQClass <AIEventSubsidyOffer> SQAIEventSubsidyOffer("AIEventSubsidyOffer");
|
||||||
SQAIEventSubsidyOffer.PreRegister(engine, "AIEvent");
|
SQAIEventSubsidyOffer.PreRegister(engine, "AIEvent");
|
||||||
|
|
||||||
|
@ -73,7 +75,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIEventSubsidyOfferExpired *>(HSQUIRRELVM vm, AIEventSubsidyOfferExpired *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventSubsidyOfferExpired", res, NULL, DefSQDestructorCallback<AIEventSubsidyOfferExpired>); return 1; }
|
template <> int Return<AIEventSubsidyOfferExpired *>(HSQUIRRELVM vm, AIEventSubsidyOfferExpired *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventSubsidyOfferExpired", res, NULL, DefSQDestructorCallback<AIEventSubsidyOfferExpired>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIEventSubsidyOfferExpired_Register(Squirrel *engine) {
|
void SQAIEventSubsidyOfferExpired_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIEventSubsidyOfferExpired> SQAIEventSubsidyOfferExpired("AIEventSubsidyOfferExpired");
|
DefSQClass <AIEventSubsidyOfferExpired> SQAIEventSubsidyOfferExpired("AIEventSubsidyOfferExpired");
|
||||||
SQAIEventSubsidyOfferExpired.PreRegister(engine, "AIEvent");
|
SQAIEventSubsidyOfferExpired.PreRegister(engine, "AIEvent");
|
||||||
|
|
||||||
|
@ -93,7 +96,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIEventSubsidyAwarded *>(HSQUIRRELVM vm, AIEventSubsidyAwarded *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventSubsidyAwarded", res, NULL, DefSQDestructorCallback<AIEventSubsidyAwarded>); return 1; }
|
template <> int Return<AIEventSubsidyAwarded *>(HSQUIRRELVM vm, AIEventSubsidyAwarded *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventSubsidyAwarded", res, NULL, DefSQDestructorCallback<AIEventSubsidyAwarded>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIEventSubsidyAwarded_Register(Squirrel *engine) {
|
void SQAIEventSubsidyAwarded_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIEventSubsidyAwarded> SQAIEventSubsidyAwarded("AIEventSubsidyAwarded");
|
DefSQClass <AIEventSubsidyAwarded> SQAIEventSubsidyAwarded("AIEventSubsidyAwarded");
|
||||||
SQAIEventSubsidyAwarded.PreRegister(engine, "AIEvent");
|
SQAIEventSubsidyAwarded.PreRegister(engine, "AIEvent");
|
||||||
|
|
||||||
|
@ -113,7 +117,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIEventSubsidyExpired *>(HSQUIRRELVM vm, AIEventSubsidyExpired *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventSubsidyExpired", res, NULL, DefSQDestructorCallback<AIEventSubsidyExpired>); return 1; }
|
template <> int Return<AIEventSubsidyExpired *>(HSQUIRRELVM vm, AIEventSubsidyExpired *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventSubsidyExpired", res, NULL, DefSQDestructorCallback<AIEventSubsidyExpired>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIEventSubsidyExpired_Register(Squirrel *engine) {
|
void SQAIEventSubsidyExpired_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIEventSubsidyExpired> SQAIEventSubsidyExpired("AIEventSubsidyExpired");
|
DefSQClass <AIEventSubsidyExpired> SQAIEventSubsidyExpired("AIEventSubsidyExpired");
|
||||||
SQAIEventSubsidyExpired.PreRegister(engine, "AIEvent");
|
SQAIEventSubsidyExpired.PreRegister(engine, "AIEvent");
|
||||||
|
|
||||||
|
@ -133,7 +138,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIEventEnginePreview *>(HSQUIRRELVM vm, AIEventEnginePreview *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventEnginePreview", res, NULL, DefSQDestructorCallback<AIEventEnginePreview>); return 1; }
|
template <> int Return<AIEventEnginePreview *>(HSQUIRRELVM vm, AIEventEnginePreview *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventEnginePreview", res, NULL, DefSQDestructorCallback<AIEventEnginePreview>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIEventEnginePreview_Register(Squirrel *engine) {
|
void SQAIEventEnginePreview_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIEventEnginePreview> SQAIEventEnginePreview("AIEventEnginePreview");
|
DefSQClass <AIEventEnginePreview> SQAIEventEnginePreview("AIEventEnginePreview");
|
||||||
SQAIEventEnginePreview.PreRegister(engine, "AIEvent");
|
SQAIEventEnginePreview.PreRegister(engine, "AIEvent");
|
||||||
|
|
||||||
|
@ -160,7 +166,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIEventCompanyNew *>(HSQUIRRELVM vm, AIEventCompanyNew *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventCompanyNew", res, NULL, DefSQDestructorCallback<AIEventCompanyNew>); return 1; }
|
template <> int Return<AIEventCompanyNew *>(HSQUIRRELVM vm, AIEventCompanyNew *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventCompanyNew", res, NULL, DefSQDestructorCallback<AIEventCompanyNew>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIEventCompanyNew_Register(Squirrel *engine) {
|
void SQAIEventCompanyNew_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIEventCompanyNew> SQAIEventCompanyNew("AIEventCompanyNew");
|
DefSQClass <AIEventCompanyNew> SQAIEventCompanyNew("AIEventCompanyNew");
|
||||||
SQAIEventCompanyNew.PreRegister(engine, "AIEvent");
|
SQAIEventCompanyNew.PreRegister(engine, "AIEvent");
|
||||||
|
|
||||||
|
@ -180,7 +187,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIEventCompanyInTrouble *>(HSQUIRRELVM vm, AIEventCompanyInTrouble *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventCompanyInTrouble", res, NULL, DefSQDestructorCallback<AIEventCompanyInTrouble>); return 1; }
|
template <> int Return<AIEventCompanyInTrouble *>(HSQUIRRELVM vm, AIEventCompanyInTrouble *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventCompanyInTrouble", res, NULL, DefSQDestructorCallback<AIEventCompanyInTrouble>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIEventCompanyInTrouble_Register(Squirrel *engine) {
|
void SQAIEventCompanyInTrouble_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIEventCompanyInTrouble> SQAIEventCompanyInTrouble("AIEventCompanyInTrouble");
|
DefSQClass <AIEventCompanyInTrouble> SQAIEventCompanyInTrouble("AIEventCompanyInTrouble");
|
||||||
SQAIEventCompanyInTrouble.PreRegister(engine, "AIEvent");
|
SQAIEventCompanyInTrouble.PreRegister(engine, "AIEvent");
|
||||||
|
|
||||||
|
@ -200,7 +208,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIEventCompanyAskMerger *>(HSQUIRRELVM vm, AIEventCompanyAskMerger *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventCompanyAskMerger", res, NULL, DefSQDestructorCallback<AIEventCompanyAskMerger>); return 1; }
|
template <> int Return<AIEventCompanyAskMerger *>(HSQUIRRELVM vm, AIEventCompanyAskMerger *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventCompanyAskMerger", res, NULL, DefSQDestructorCallback<AIEventCompanyAskMerger>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIEventCompanyAskMerger_Register(Squirrel *engine) {
|
void SQAIEventCompanyAskMerger_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIEventCompanyAskMerger> SQAIEventCompanyAskMerger("AIEventCompanyAskMerger");
|
DefSQClass <AIEventCompanyAskMerger> SQAIEventCompanyAskMerger("AIEventCompanyAskMerger");
|
||||||
SQAIEventCompanyAskMerger.PreRegister(engine, "AIEvent");
|
SQAIEventCompanyAskMerger.PreRegister(engine, "AIEvent");
|
||||||
|
|
||||||
|
@ -222,7 +231,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIEventCompanyMerger *>(HSQUIRRELVM vm, AIEventCompanyMerger *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventCompanyMerger", res, NULL, DefSQDestructorCallback<AIEventCompanyMerger>); return 1; }
|
template <> int Return<AIEventCompanyMerger *>(HSQUIRRELVM vm, AIEventCompanyMerger *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventCompanyMerger", res, NULL, DefSQDestructorCallback<AIEventCompanyMerger>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIEventCompanyMerger_Register(Squirrel *engine) {
|
void SQAIEventCompanyMerger_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIEventCompanyMerger> SQAIEventCompanyMerger("AIEventCompanyMerger");
|
DefSQClass <AIEventCompanyMerger> SQAIEventCompanyMerger("AIEventCompanyMerger");
|
||||||
SQAIEventCompanyMerger.PreRegister(engine, "AIEvent");
|
SQAIEventCompanyMerger.PreRegister(engine, "AIEvent");
|
||||||
|
|
||||||
|
@ -243,7 +253,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIEventCompanyBankrupt *>(HSQUIRRELVM vm, AIEventCompanyBankrupt *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventCompanyBankrupt", res, NULL, DefSQDestructorCallback<AIEventCompanyBankrupt>); return 1; }
|
template <> int Return<AIEventCompanyBankrupt *>(HSQUIRRELVM vm, AIEventCompanyBankrupt *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventCompanyBankrupt", res, NULL, DefSQDestructorCallback<AIEventCompanyBankrupt>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIEventCompanyBankrupt_Register(Squirrel *engine) {
|
void SQAIEventCompanyBankrupt_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIEventCompanyBankrupt> SQAIEventCompanyBankrupt("AIEventCompanyBankrupt");
|
DefSQClass <AIEventCompanyBankrupt> SQAIEventCompanyBankrupt("AIEventCompanyBankrupt");
|
||||||
SQAIEventCompanyBankrupt.PreRegister(engine, "AIEvent");
|
SQAIEventCompanyBankrupt.PreRegister(engine, "AIEvent");
|
||||||
|
|
||||||
|
@ -263,7 +274,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIEventVehicleLost *>(HSQUIRRELVM vm, AIEventVehicleLost *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventVehicleLost", res, NULL, DefSQDestructorCallback<AIEventVehicleLost>); return 1; }
|
template <> int Return<AIEventVehicleLost *>(HSQUIRRELVM vm, AIEventVehicleLost *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventVehicleLost", res, NULL, DefSQDestructorCallback<AIEventVehicleLost>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIEventVehicleLost_Register(Squirrel *engine) {
|
void SQAIEventVehicleLost_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIEventVehicleLost> SQAIEventVehicleLost("AIEventVehicleLost");
|
DefSQClass <AIEventVehicleLost> SQAIEventVehicleLost("AIEventVehicleLost");
|
||||||
SQAIEventVehicleLost.PreRegister(engine, "AIEvent");
|
SQAIEventVehicleLost.PreRegister(engine, "AIEvent");
|
||||||
|
|
||||||
|
@ -283,7 +295,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIEventVehicleWaitingInDepot *>(HSQUIRRELVM vm, AIEventVehicleWaitingInDepot *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventVehicleWaitingInDepot", res, NULL, DefSQDestructorCallback<AIEventVehicleWaitingInDepot>); return 1; }
|
template <> int Return<AIEventVehicleWaitingInDepot *>(HSQUIRRELVM vm, AIEventVehicleWaitingInDepot *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventVehicleWaitingInDepot", res, NULL, DefSQDestructorCallback<AIEventVehicleWaitingInDepot>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIEventVehicleWaitingInDepot_Register(Squirrel *engine) {
|
void SQAIEventVehicleWaitingInDepot_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIEventVehicleWaitingInDepot> SQAIEventVehicleWaitingInDepot("AIEventVehicleWaitingInDepot");
|
DefSQClass <AIEventVehicleWaitingInDepot> SQAIEventVehicleWaitingInDepot("AIEventVehicleWaitingInDepot");
|
||||||
SQAIEventVehicleWaitingInDepot.PreRegister(engine, "AIEvent");
|
SQAIEventVehicleWaitingInDepot.PreRegister(engine, "AIEvent");
|
||||||
|
|
||||||
|
@ -303,7 +316,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIEventVehicleUnprofitable *>(HSQUIRRELVM vm, AIEventVehicleUnprofitable *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventVehicleUnprofitable", res, NULL, DefSQDestructorCallback<AIEventVehicleUnprofitable>); return 1; }
|
template <> int Return<AIEventVehicleUnprofitable *>(HSQUIRRELVM vm, AIEventVehicleUnprofitable *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventVehicleUnprofitable", res, NULL, DefSQDestructorCallback<AIEventVehicleUnprofitable>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIEventVehicleUnprofitable_Register(Squirrel *engine) {
|
void SQAIEventVehicleUnprofitable_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIEventVehicleUnprofitable> SQAIEventVehicleUnprofitable("AIEventVehicleUnprofitable");
|
DefSQClass <AIEventVehicleUnprofitable> SQAIEventVehicleUnprofitable("AIEventVehicleUnprofitable");
|
||||||
SQAIEventVehicleUnprofitable.PreRegister(engine, "AIEvent");
|
SQAIEventVehicleUnprofitable.PreRegister(engine, "AIEvent");
|
||||||
|
|
||||||
|
@ -323,7 +337,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIEventIndustryOpen *>(HSQUIRRELVM vm, AIEventIndustryOpen *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventIndustryOpen", res, NULL, DefSQDestructorCallback<AIEventIndustryOpen>); return 1; }
|
template <> int Return<AIEventIndustryOpen *>(HSQUIRRELVM vm, AIEventIndustryOpen *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventIndustryOpen", res, NULL, DefSQDestructorCallback<AIEventIndustryOpen>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIEventIndustryOpen_Register(Squirrel *engine) {
|
void SQAIEventIndustryOpen_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIEventIndustryOpen> SQAIEventIndustryOpen("AIEventIndustryOpen");
|
DefSQClass <AIEventIndustryOpen> SQAIEventIndustryOpen("AIEventIndustryOpen");
|
||||||
SQAIEventIndustryOpen.PreRegister(engine, "AIEvent");
|
SQAIEventIndustryOpen.PreRegister(engine, "AIEvent");
|
||||||
|
|
||||||
|
@ -343,7 +358,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIEventIndustryClose *>(HSQUIRRELVM vm, AIEventIndustryClose *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventIndustryClose", res, NULL, DefSQDestructorCallback<AIEventIndustryClose>); return 1; }
|
template <> int Return<AIEventIndustryClose *>(HSQUIRRELVM vm, AIEventIndustryClose *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventIndustryClose", res, NULL, DefSQDestructorCallback<AIEventIndustryClose>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIEventIndustryClose_Register(Squirrel *engine) {
|
void SQAIEventIndustryClose_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIEventIndustryClose> SQAIEventIndustryClose("AIEventIndustryClose");
|
DefSQClass <AIEventIndustryClose> SQAIEventIndustryClose("AIEventIndustryClose");
|
||||||
SQAIEventIndustryClose.PreRegister(engine, "AIEvent");
|
SQAIEventIndustryClose.PreRegister(engine, "AIEvent");
|
||||||
|
|
||||||
|
@ -363,7 +379,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIEventEngineAvailable *>(HSQUIRRELVM vm, AIEventEngineAvailable *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventEngineAvailable", res, NULL, DefSQDestructorCallback<AIEventEngineAvailable>); return 1; }
|
template <> int Return<AIEventEngineAvailable *>(HSQUIRRELVM vm, AIEventEngineAvailable *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventEngineAvailable", res, NULL, DefSQDestructorCallback<AIEventEngineAvailable>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIEventEngineAvailable_Register(Squirrel *engine) {
|
void SQAIEventEngineAvailable_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIEventEngineAvailable> SQAIEventEngineAvailable("AIEventEngineAvailable");
|
DefSQClass <AIEventEngineAvailable> SQAIEventEngineAvailable("AIEventEngineAvailable");
|
||||||
SQAIEventEngineAvailable.PreRegister(engine, "AIEvent");
|
SQAIEventEngineAvailable.PreRegister(engine, "AIEvent");
|
||||||
|
|
||||||
|
@ -383,7 +400,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIEventStationFirstVehicle *>(HSQUIRRELVM vm, AIEventStationFirstVehicle *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventStationFirstVehicle", res, NULL, DefSQDestructorCallback<AIEventStationFirstVehicle>); return 1; }
|
template <> int Return<AIEventStationFirstVehicle *>(HSQUIRRELVM vm, AIEventStationFirstVehicle *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventStationFirstVehicle", res, NULL, DefSQDestructorCallback<AIEventStationFirstVehicle>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIEventStationFirstVehicle_Register(Squirrel *engine) {
|
void SQAIEventStationFirstVehicle_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIEventStationFirstVehicle> SQAIEventStationFirstVehicle("AIEventStationFirstVehicle");
|
DefSQClass <AIEventStationFirstVehicle> SQAIEventStationFirstVehicle("AIEventStationFirstVehicle");
|
||||||
SQAIEventStationFirstVehicle.PreRegister(engine, "AIEvent");
|
SQAIEventStationFirstVehicle.PreRegister(engine, "AIEvent");
|
||||||
|
|
||||||
|
@ -404,7 +422,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIEventDisasterZeppelinerCrashed *>(HSQUIRRELVM vm, AIEventDisasterZeppelinerCrashed *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventDisasterZeppelinerCrashed", res, NULL, DefSQDestructorCallback<AIEventDisasterZeppelinerCrashed>); return 1; }
|
template <> int Return<AIEventDisasterZeppelinerCrashed *>(HSQUIRRELVM vm, AIEventDisasterZeppelinerCrashed *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventDisasterZeppelinerCrashed", res, NULL, DefSQDestructorCallback<AIEventDisasterZeppelinerCrashed>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIEventDisasterZeppelinerCrashed_Register(Squirrel *engine) {
|
void SQAIEventDisasterZeppelinerCrashed_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIEventDisasterZeppelinerCrashed> SQAIEventDisasterZeppelinerCrashed("AIEventDisasterZeppelinerCrashed");
|
DefSQClass <AIEventDisasterZeppelinerCrashed> SQAIEventDisasterZeppelinerCrashed("AIEventDisasterZeppelinerCrashed");
|
||||||
SQAIEventDisasterZeppelinerCrashed.PreRegister(engine, "AIEvent");
|
SQAIEventDisasterZeppelinerCrashed.PreRegister(engine, "AIEvent");
|
||||||
|
|
||||||
|
@ -424,7 +443,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIEventDisasterZeppelinerCleared *>(HSQUIRRELVM vm, AIEventDisasterZeppelinerCleared *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventDisasterZeppelinerCleared", res, NULL, DefSQDestructorCallback<AIEventDisasterZeppelinerCleared>); return 1; }
|
template <> int Return<AIEventDisasterZeppelinerCleared *>(HSQUIRRELVM vm, AIEventDisasterZeppelinerCleared *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventDisasterZeppelinerCleared", res, NULL, DefSQDestructorCallback<AIEventDisasterZeppelinerCleared>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIEventDisasterZeppelinerCleared_Register(Squirrel *engine) {
|
void SQAIEventDisasterZeppelinerCleared_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIEventDisasterZeppelinerCleared> SQAIEventDisasterZeppelinerCleared("AIEventDisasterZeppelinerCleared");
|
DefSQClass <AIEventDisasterZeppelinerCleared> SQAIEventDisasterZeppelinerCleared("AIEventDisasterZeppelinerCleared");
|
||||||
SQAIEventDisasterZeppelinerCleared.PreRegister(engine, "AIEvent");
|
SQAIEventDisasterZeppelinerCleared.PreRegister(engine, "AIEvent");
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIExecMode *>(HSQUIRRELVM vm, AIExecMode *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIExecMode", res, NULL, DefSQDestructorCallback<AIExecMode>); return 1; }
|
template <> int Return<AIExecMode *>(HSQUIRRELVM vm, AIExecMode *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIExecMode", res, NULL, DefSQDestructorCallback<AIExecMode>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIExecMode_Register(Squirrel *engine) {
|
void SQAIExecMode_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIExecMode> SQAIExecMode("AIExecMode");
|
DefSQClass <AIExecMode> SQAIExecMode("AIExecMode");
|
||||||
SQAIExecMode.PreRegister(engine);
|
SQAIExecMode.PreRegister(engine);
|
||||||
SQAIExecMode.AddConstructor<void (AIExecMode::*)(), 1>(engine, "x");
|
SQAIExecMode.AddConstructor<void (AIExecMode::*)(), 1>(engine, "x");
|
||||||
|
|
|
@ -20,7 +20,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIGameSettings *>(HSQUIRRELVM vm, AIGameSettings *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIGameSettings", res, NULL, DefSQDestructorCallback<AIGameSettings>); return 1; }
|
template <> int Return<AIGameSettings *>(HSQUIRRELVM vm, AIGameSettings *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIGameSettings", res, NULL, DefSQDestructorCallback<AIGameSettings>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIGameSettings_Register(Squirrel *engine) {
|
void SQAIGameSettings_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIGameSettings> SQAIGameSettings("AIGameSettings");
|
DefSQClass <AIGameSettings> SQAIGameSettings("AIGameSettings");
|
||||||
SQAIGameSettings.PreRegister(engine);
|
SQAIGameSettings.PreRegister(engine);
|
||||||
SQAIGameSettings.AddConstructor<void (AIGameSettings::*)(), 1>(engine, "x");
|
SQAIGameSettings.AddConstructor<void (AIGameSettings::*)(), 1>(engine, "x");
|
||||||
|
|
|
@ -24,7 +24,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIGroup *>(HSQUIRRELVM vm, AIGroup *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIGroup", res, NULL, DefSQDestructorCallback<AIGroup>); return 1; }
|
template <> int Return<AIGroup *>(HSQUIRRELVM vm, AIGroup *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIGroup", res, NULL, DefSQDestructorCallback<AIGroup>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIGroup_Register(Squirrel *engine) {
|
void SQAIGroup_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIGroup> SQAIGroup("AIGroup");
|
DefSQClass <AIGroup> SQAIGroup("AIGroup");
|
||||||
SQAIGroup.PreRegister(engine);
|
SQAIGroup.PreRegister(engine);
|
||||||
SQAIGroup.AddConstructor<void (AIGroup::*)(), 1>(engine, "x");
|
SQAIGroup.AddConstructor<void (AIGroup::*)(), 1>(engine, "x");
|
||||||
|
|
|
@ -20,7 +20,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIGroupList *>(HSQUIRRELVM vm, AIGroupList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIGroupList", res, NULL, DefSQDestructorCallback<AIGroupList>); return 1; }
|
template <> int Return<AIGroupList *>(HSQUIRRELVM vm, AIGroupList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIGroupList", res, NULL, DefSQDestructorCallback<AIGroupList>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIGroupList_Register(Squirrel *engine) {
|
void SQAIGroupList_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIGroupList> SQAIGroupList("AIGroupList");
|
DefSQClass <AIGroupList> SQAIGroupList("AIGroupList");
|
||||||
SQAIGroupList.PreRegister(engine, "AIAbstractList");
|
SQAIGroupList.PreRegister(engine, "AIAbstractList");
|
||||||
SQAIGroupList.AddConstructor<void (AIGroupList::*)(), 1>(engine, "x");
|
SQAIGroupList.AddConstructor<void (AIGroupList::*)(), 1>(engine, "x");
|
||||||
|
|
|
@ -20,7 +20,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIIndustry *>(HSQUIRRELVM vm, AIIndustry *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIIndustry", res, NULL, DefSQDestructorCallback<AIIndustry>); return 1; }
|
template <> int Return<AIIndustry *>(HSQUIRRELVM vm, AIIndustry *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIIndustry", res, NULL, DefSQDestructorCallback<AIIndustry>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIIndustry_Register(Squirrel *engine) {
|
void SQAIIndustry_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIIndustry> SQAIIndustry("AIIndustry");
|
DefSQClass <AIIndustry> SQAIIndustry("AIIndustry");
|
||||||
SQAIIndustry.PreRegister(engine);
|
SQAIIndustry.PreRegister(engine);
|
||||||
SQAIIndustry.AddConstructor<void (AIIndustry::*)(), 1>(engine, "x");
|
SQAIIndustry.AddConstructor<void (AIIndustry::*)(), 1>(engine, "x");
|
||||||
|
|
|
@ -20,7 +20,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIIndustryList *>(HSQUIRRELVM vm, AIIndustryList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIIndustryList", res, NULL, DefSQDestructorCallback<AIIndustryList>); return 1; }
|
template <> int Return<AIIndustryList *>(HSQUIRRELVM vm, AIIndustryList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIIndustryList", res, NULL, DefSQDestructorCallback<AIIndustryList>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIIndustryList_Register(Squirrel *engine) {
|
void SQAIIndustryList_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIIndustryList> SQAIIndustryList("AIIndustryList");
|
DefSQClass <AIIndustryList> SQAIIndustryList("AIIndustryList");
|
||||||
SQAIIndustryList.PreRegister(engine, "AIAbstractList");
|
SQAIIndustryList.PreRegister(engine, "AIAbstractList");
|
||||||
SQAIIndustryList.AddConstructor<void (AIIndustryList::*)(), 1>(engine, "x");
|
SQAIIndustryList.AddConstructor<void (AIIndustryList::*)(), 1>(engine, "x");
|
||||||
|
@ -37,7 +38,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIIndustryList_CargoAccepting *>(HSQUIRRELVM vm, AIIndustryList_CargoAccepting *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIIndustryList_CargoAccepting", res, NULL, DefSQDestructorCallback<AIIndustryList_CargoAccepting>); return 1; }
|
template <> int Return<AIIndustryList_CargoAccepting *>(HSQUIRRELVM vm, AIIndustryList_CargoAccepting *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIIndustryList_CargoAccepting", res, NULL, DefSQDestructorCallback<AIIndustryList_CargoAccepting>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIIndustryList_CargoAccepting_Register(Squirrel *engine) {
|
void SQAIIndustryList_CargoAccepting_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIIndustryList_CargoAccepting> SQAIIndustryList_CargoAccepting("AIIndustryList_CargoAccepting");
|
DefSQClass <AIIndustryList_CargoAccepting> SQAIIndustryList_CargoAccepting("AIIndustryList_CargoAccepting");
|
||||||
SQAIIndustryList_CargoAccepting.PreRegister(engine, "AIAbstractList");
|
SQAIIndustryList_CargoAccepting.PreRegister(engine, "AIAbstractList");
|
||||||
SQAIIndustryList_CargoAccepting.AddConstructor<void (AIIndustryList_CargoAccepting::*)(CargoID cargo_id), 2>(engine, "xi");
|
SQAIIndustryList_CargoAccepting.AddConstructor<void (AIIndustryList_CargoAccepting::*)(CargoID cargo_id), 2>(engine, "xi");
|
||||||
|
@ -54,7 +56,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIIndustryList_CargoProducing *>(HSQUIRRELVM vm, AIIndustryList_CargoProducing *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIIndustryList_CargoProducing", res, NULL, DefSQDestructorCallback<AIIndustryList_CargoProducing>); return 1; }
|
template <> int Return<AIIndustryList_CargoProducing *>(HSQUIRRELVM vm, AIIndustryList_CargoProducing *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIIndustryList_CargoProducing", res, NULL, DefSQDestructorCallback<AIIndustryList_CargoProducing>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIIndustryList_CargoProducing_Register(Squirrel *engine) {
|
void SQAIIndustryList_CargoProducing_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIIndustryList_CargoProducing> SQAIIndustryList_CargoProducing("AIIndustryList_CargoProducing");
|
DefSQClass <AIIndustryList_CargoProducing> SQAIIndustryList_CargoProducing("AIIndustryList_CargoProducing");
|
||||||
SQAIIndustryList_CargoProducing.PreRegister(engine, "AIAbstractList");
|
SQAIIndustryList_CargoProducing.PreRegister(engine, "AIAbstractList");
|
||||||
SQAIIndustryList_CargoProducing.AddConstructor<void (AIIndustryList_CargoProducing::*)(CargoID cargo_id), 2>(engine, "xi");
|
SQAIIndustryList_CargoProducing.AddConstructor<void (AIIndustryList_CargoProducing::*)(CargoID cargo_id), 2>(engine, "xi");
|
||||||
|
|
|
@ -20,7 +20,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIIndustryType *>(HSQUIRRELVM vm, AIIndustryType *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIIndustryType", res, NULL, DefSQDestructorCallback<AIIndustryType>); return 1; }
|
template <> int Return<AIIndustryType *>(HSQUIRRELVM vm, AIIndustryType *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIIndustryType", res, NULL, DefSQDestructorCallback<AIIndustryType>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIIndustryType_Register(Squirrel *engine) {
|
void SQAIIndustryType_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIIndustryType> SQAIIndustryType("AIIndustryType");
|
DefSQClass <AIIndustryType> SQAIIndustryType("AIIndustryType");
|
||||||
SQAIIndustryType.PreRegister(engine);
|
SQAIIndustryType.PreRegister(engine);
|
||||||
SQAIIndustryType.AddConstructor<void (AIIndustryType::*)(), 1>(engine, "x");
|
SQAIIndustryType.AddConstructor<void (AIIndustryType::*)(), 1>(engine, "x");
|
||||||
|
|
|
@ -20,7 +20,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIIndustryTypeList *>(HSQUIRRELVM vm, AIIndustryTypeList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIIndustryTypeList", res, NULL, DefSQDestructorCallback<AIIndustryTypeList>); return 1; }
|
template <> int Return<AIIndustryTypeList *>(HSQUIRRELVM vm, AIIndustryTypeList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIIndustryTypeList", res, NULL, DefSQDestructorCallback<AIIndustryTypeList>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIIndustryTypeList_Register(Squirrel *engine) {
|
void SQAIIndustryTypeList_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIIndustryTypeList> SQAIIndustryTypeList("AIIndustryTypeList");
|
DefSQClass <AIIndustryTypeList> SQAIIndustryTypeList("AIIndustryTypeList");
|
||||||
SQAIIndustryTypeList.PreRegister(engine, "AIAbstractList");
|
SQAIIndustryTypeList.PreRegister(engine, "AIAbstractList");
|
||||||
SQAIIndustryTypeList.AddConstructor<void (AIIndustryTypeList::*)(), 1>(engine, "x");
|
SQAIIndustryTypeList.AddConstructor<void (AIIndustryTypeList::*)(), 1>(engine, "x");
|
||||||
|
|
|
@ -20,7 +20,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIList *>(HSQUIRRELVM vm, AIList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIList", res, NULL, DefSQDestructorCallback<AIList>); return 1; }
|
template <> int Return<AIList *>(HSQUIRRELVM vm, AIList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIList", res, NULL, DefSQDestructorCallback<AIList>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIList_Register(Squirrel *engine) {
|
void SQAIList_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIList> SQAIList("AIList");
|
DefSQClass <AIList> SQAIList("AIList");
|
||||||
SQAIList.PreRegister(engine, "AIAbstractList");
|
SQAIList.PreRegister(engine, "AIAbstractList");
|
||||||
SQAIList.AddConstructor<void (AIList::*)(), 1>(engine, "x");
|
SQAIList.AddConstructor<void (AIList::*)(), 1>(engine, "x");
|
||||||
|
|
|
@ -20,7 +20,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AILog *>(HSQUIRRELVM vm, AILog *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AILog", res, NULL, DefSQDestructorCallback<AILog>); return 1; }
|
template <> int Return<AILog *>(HSQUIRRELVM vm, AILog *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AILog", res, NULL, DefSQDestructorCallback<AILog>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAILog_Register(Squirrel *engine) {
|
void SQAILog_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AILog> SQAILog("AILog");
|
DefSQClass <AILog> SQAILog("AILog");
|
||||||
SQAILog.PreRegister(engine);
|
SQAILog.PreRegister(engine);
|
||||||
SQAILog.AddConstructor<void (AILog::*)(), 1>(engine, "x");
|
SQAILog.AddConstructor<void (AILog::*)(), 1>(engine, "x");
|
||||||
|
|
|
@ -20,7 +20,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIMap *>(HSQUIRRELVM vm, AIMap *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIMap", res, NULL, DefSQDestructorCallback<AIMap>); return 1; }
|
template <> int Return<AIMap *>(HSQUIRRELVM vm, AIMap *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIMap", res, NULL, DefSQDestructorCallback<AIMap>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIMap_Register(Squirrel *engine) {
|
void SQAIMap_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIMap> SQAIMap("AIMap");
|
DefSQClass <AIMap> SQAIMap("AIMap");
|
||||||
SQAIMap.PreRegister(engine);
|
SQAIMap.PreRegister(engine);
|
||||||
SQAIMap.AddConstructor<void (AIMap::*)(), 1>(engine, "x");
|
SQAIMap.AddConstructor<void (AIMap::*)(), 1>(engine, "x");
|
||||||
|
|
|
@ -24,7 +24,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIMarine *>(HSQUIRRELVM vm, AIMarine *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIMarine", res, NULL, DefSQDestructorCallback<AIMarine>); return 1; }
|
template <> int Return<AIMarine *>(HSQUIRRELVM vm, AIMarine *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIMarine", res, NULL, DefSQDestructorCallback<AIMarine>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIMarine_Register(Squirrel *engine) {
|
void SQAIMarine_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIMarine> SQAIMarine("AIMarine");
|
DefSQClass <AIMarine> SQAIMarine("AIMarine");
|
||||||
SQAIMarine.PreRegister(engine);
|
SQAIMarine.PreRegister(engine);
|
||||||
SQAIMarine.AddConstructor<void (AIMarine::*)(), 1>(engine, "x");
|
SQAIMarine.AddConstructor<void (AIMarine::*)(), 1>(engine, "x");
|
||||||
|
|
|
@ -32,7 +32,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIOrder *>(HSQUIRRELVM vm, AIOrder *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIOrder", res, NULL, DefSQDestructorCallback<AIOrder>); return 1; }
|
template <> int Return<AIOrder *>(HSQUIRRELVM vm, AIOrder *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIOrder", res, NULL, DefSQDestructorCallback<AIOrder>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIOrder_Register(Squirrel *engine) {
|
void SQAIOrder_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIOrder> SQAIOrder("AIOrder");
|
DefSQClass <AIOrder> SQAIOrder("AIOrder");
|
||||||
SQAIOrder.PreRegister(engine);
|
SQAIOrder.PreRegister(engine);
|
||||||
SQAIOrder.AddConstructor<void (AIOrder::*)(), 1>(engine, "x");
|
SQAIOrder.AddConstructor<void (AIOrder::*)(), 1>(engine, "x");
|
||||||
|
|
|
@ -30,7 +30,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIRail *>(HSQUIRRELVM vm, AIRail *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIRail", res, NULL, DefSQDestructorCallback<AIRail>); return 1; }
|
template <> int Return<AIRail *>(HSQUIRRELVM vm, AIRail *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIRail", res, NULL, DefSQDestructorCallback<AIRail>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIRail_Register(Squirrel *engine) {
|
void SQAIRail_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIRail> SQAIRail("AIRail");
|
DefSQClass <AIRail> SQAIRail("AIRail");
|
||||||
SQAIRail.PreRegister(engine);
|
SQAIRail.PreRegister(engine);
|
||||||
SQAIRail.AddConstructor<void (AIRail::*)(), 1>(engine, "x");
|
SQAIRail.AddConstructor<void (AIRail::*)(), 1>(engine, "x");
|
||||||
|
|
|
@ -20,7 +20,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIRailTypeList *>(HSQUIRRELVM vm, AIRailTypeList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIRailTypeList", res, NULL, DefSQDestructorCallback<AIRailTypeList>); return 1; }
|
template <> int Return<AIRailTypeList *>(HSQUIRRELVM vm, AIRailTypeList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIRailTypeList", res, NULL, DefSQDestructorCallback<AIRailTypeList>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIRailTypeList_Register(Squirrel *engine) {
|
void SQAIRailTypeList_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIRailTypeList> SQAIRailTypeList("AIRailTypeList");
|
DefSQClass <AIRailTypeList> SQAIRailTypeList("AIRailTypeList");
|
||||||
SQAIRailTypeList.PreRegister(engine, "AIAbstractList");
|
SQAIRailTypeList.PreRegister(engine, "AIAbstractList");
|
||||||
SQAIRailTypeList.AddConstructor<void (AIRailTypeList::*)(), 1>(engine, "x");
|
SQAIRailTypeList.AddConstructor<void (AIRailTypeList::*)(), 1>(engine, "x");
|
||||||
|
|
|
@ -28,7 +28,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIRoad *>(HSQUIRRELVM vm, AIRoad *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIRoad", res, NULL, DefSQDestructorCallback<AIRoad>); return 1; }
|
template <> int Return<AIRoad *>(HSQUIRRELVM vm, AIRoad *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIRoad", res, NULL, DefSQDestructorCallback<AIRoad>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIRoad_Register(Squirrel *engine) {
|
void SQAIRoad_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIRoad> SQAIRoad("AIRoad");
|
DefSQClass <AIRoad> SQAIRoad("AIRoad");
|
||||||
SQAIRoad.PreRegister(engine);
|
SQAIRoad.PreRegister(engine);
|
||||||
SQAIRoad.AddConstructor<void (AIRoad::*)(), 1>(engine, "x");
|
SQAIRoad.AddConstructor<void (AIRoad::*)(), 1>(engine, "x");
|
||||||
|
|
|
@ -24,7 +24,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AISign *>(HSQUIRRELVM vm, AISign *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AISign", res, NULL, DefSQDestructorCallback<AISign>); return 1; }
|
template <> int Return<AISign *>(HSQUIRRELVM vm, AISign *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AISign", res, NULL, DefSQDestructorCallback<AISign>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAISign_Register(Squirrel *engine) {
|
void SQAISign_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AISign> SQAISign("AISign");
|
DefSQClass <AISign> SQAISign("AISign");
|
||||||
SQAISign.PreRegister(engine);
|
SQAISign.PreRegister(engine);
|
||||||
SQAISign.AddConstructor<void (AISign::*)(), 1>(engine, "x");
|
SQAISign.AddConstructor<void (AISign::*)(), 1>(engine, "x");
|
||||||
|
|
|
@ -20,7 +20,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AISignList *>(HSQUIRRELVM vm, AISignList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AISignList", res, NULL, DefSQDestructorCallback<AISignList>); return 1; }
|
template <> int Return<AISignList *>(HSQUIRRELVM vm, AISignList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AISignList", res, NULL, DefSQDestructorCallback<AISignList>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAISignList_Register(Squirrel *engine) {
|
void SQAISignList_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AISignList> SQAISignList("AISignList");
|
DefSQClass <AISignList> SQAISignList("AISignList");
|
||||||
SQAISignList.PreRegister(engine, "AIAbstractList");
|
SQAISignList.PreRegister(engine, "AIAbstractList");
|
||||||
SQAISignList.AddConstructor<void (AISignList::*)(), 1>(engine, "x");
|
SQAISignList.AddConstructor<void (AISignList::*)(), 1>(engine, "x");
|
||||||
|
|
|
@ -26,7 +26,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIStation *>(HSQUIRRELVM vm, AIStation *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIStation", res, NULL, DefSQDestructorCallback<AIStation>); return 1; }
|
template <> int Return<AIStation *>(HSQUIRRELVM vm, AIStation *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIStation", res, NULL, DefSQDestructorCallback<AIStation>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIStation_Register(Squirrel *engine) {
|
void SQAIStation_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIStation> SQAIStation("AIStation");
|
DefSQClass <AIStation> SQAIStation("AIStation");
|
||||||
SQAIStation.PreRegister(engine, "AIBaseStation");
|
SQAIStation.PreRegister(engine, "AIBaseStation");
|
||||||
SQAIStation.AddConstructor<void (AIStation::*)(), 1>(engine, "x");
|
SQAIStation.AddConstructor<void (AIStation::*)(), 1>(engine, "x");
|
||||||
|
|
|
@ -20,7 +20,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIStationList *>(HSQUIRRELVM vm, AIStationList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIStationList", res, NULL, DefSQDestructorCallback<AIStationList>); return 1; }
|
template <> int Return<AIStationList *>(HSQUIRRELVM vm, AIStationList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIStationList", res, NULL, DefSQDestructorCallback<AIStationList>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIStationList_Register(Squirrel *engine) {
|
void SQAIStationList_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIStationList> SQAIStationList("AIStationList");
|
DefSQClass <AIStationList> SQAIStationList("AIStationList");
|
||||||
SQAIStationList.PreRegister(engine, "AIAbstractList");
|
SQAIStationList.PreRegister(engine, "AIAbstractList");
|
||||||
SQAIStationList.AddConstructor<void (AIStationList::*)(AIStation::StationType station_type), 2>(engine, "xi");
|
SQAIStationList.AddConstructor<void (AIStationList::*)(AIStation::StationType station_type), 2>(engine, "xi");
|
||||||
|
@ -37,7 +38,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIStationList_Vehicle *>(HSQUIRRELVM vm, AIStationList_Vehicle *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIStationList_Vehicle", res, NULL, DefSQDestructorCallback<AIStationList_Vehicle>); return 1; }
|
template <> int Return<AIStationList_Vehicle *>(HSQUIRRELVM vm, AIStationList_Vehicle *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIStationList_Vehicle", res, NULL, DefSQDestructorCallback<AIStationList_Vehicle>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIStationList_Vehicle_Register(Squirrel *engine) {
|
void SQAIStationList_Vehicle_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIStationList_Vehicle> SQAIStationList_Vehicle("AIStationList_Vehicle");
|
DefSQClass <AIStationList_Vehicle> SQAIStationList_Vehicle("AIStationList_Vehicle");
|
||||||
SQAIStationList_Vehicle.PreRegister(engine, "AIAbstractList");
|
SQAIStationList_Vehicle.PreRegister(engine, "AIAbstractList");
|
||||||
SQAIStationList_Vehicle.AddConstructor<void (AIStationList_Vehicle::*)(VehicleID vehicle_id), 2>(engine, "xi");
|
SQAIStationList_Vehicle.AddConstructor<void (AIStationList_Vehicle::*)(VehicleID vehicle_id), 2>(engine, "xi");
|
||||||
|
|
|
@ -24,7 +24,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AISubsidy *>(HSQUIRRELVM vm, AISubsidy *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AISubsidy", res, NULL, DefSQDestructorCallback<AISubsidy>); return 1; }
|
template <> int Return<AISubsidy *>(HSQUIRRELVM vm, AISubsidy *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AISubsidy", res, NULL, DefSQDestructorCallback<AISubsidy>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAISubsidy_Register(Squirrel *engine) {
|
void SQAISubsidy_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AISubsidy> SQAISubsidy("AISubsidy");
|
DefSQClass <AISubsidy> SQAISubsidy("AISubsidy");
|
||||||
SQAISubsidy.PreRegister(engine);
|
SQAISubsidy.PreRegister(engine);
|
||||||
SQAISubsidy.AddConstructor<void (AISubsidy::*)(), 1>(engine, "x");
|
SQAISubsidy.AddConstructor<void (AISubsidy::*)(), 1>(engine, "x");
|
||||||
|
|
|
@ -20,7 +20,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AISubsidyList *>(HSQUIRRELVM vm, AISubsidyList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AISubsidyList", res, NULL, DefSQDestructorCallback<AISubsidyList>); return 1; }
|
template <> int Return<AISubsidyList *>(HSQUIRRELVM vm, AISubsidyList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AISubsidyList", res, NULL, DefSQDestructorCallback<AISubsidyList>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAISubsidyList_Register(Squirrel *engine) {
|
void SQAISubsidyList_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AISubsidyList> SQAISubsidyList("AISubsidyList");
|
DefSQClass <AISubsidyList> SQAISubsidyList("AISubsidyList");
|
||||||
SQAISubsidyList.PreRegister(engine, "AIAbstractList");
|
SQAISubsidyList.PreRegister(engine, "AIAbstractList");
|
||||||
SQAISubsidyList.AddConstructor<void (AISubsidyList::*)(), 1>(engine, "x");
|
SQAISubsidyList.AddConstructor<void (AISubsidyList::*)(), 1>(engine, "x");
|
||||||
|
|
|
@ -20,7 +20,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AITestMode *>(HSQUIRRELVM vm, AITestMode *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AITestMode", res, NULL, DefSQDestructorCallback<AITestMode>); return 1; }
|
template <> int Return<AITestMode *>(HSQUIRRELVM vm, AITestMode *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AITestMode", res, NULL, DefSQDestructorCallback<AITestMode>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAITestMode_Register(Squirrel *engine) {
|
void SQAITestMode_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AITestMode> SQAITestMode("AITestMode");
|
DefSQClass <AITestMode> SQAITestMode("AITestMode");
|
||||||
SQAITestMode.PreRegister(engine);
|
SQAITestMode.PreRegister(engine);
|
||||||
SQAITestMode.AddConstructor<void (AITestMode::*)(), 1>(engine, "x");
|
SQAITestMode.AddConstructor<void (AITestMode::*)(), 1>(engine, "x");
|
||||||
|
|
|
@ -30,7 +30,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AITile *>(HSQUIRRELVM vm, AITile *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AITile", res, NULL, DefSQDestructorCallback<AITile>); return 1; }
|
template <> int Return<AITile *>(HSQUIRRELVM vm, AITile *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AITile", res, NULL, DefSQDestructorCallback<AITile>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAITile_Register(Squirrel *engine) {
|
void SQAITile_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AITile> SQAITile("AITile");
|
DefSQClass <AITile> SQAITile("AITile");
|
||||||
SQAITile.PreRegister(engine);
|
SQAITile.PreRegister(engine);
|
||||||
SQAITile.AddConstructor<void (AITile::*)(), 1>(engine, "x");
|
SQAITile.AddConstructor<void (AITile::*)(), 1>(engine, "x");
|
||||||
|
|
|
@ -20,7 +20,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AITileList *>(HSQUIRRELVM vm, AITileList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AITileList", res, NULL, DefSQDestructorCallback<AITileList>); return 1; }
|
template <> int Return<AITileList *>(HSQUIRRELVM vm, AITileList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AITileList", res, NULL, DefSQDestructorCallback<AITileList>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAITileList_Register(Squirrel *engine) {
|
void SQAITileList_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AITileList> SQAITileList("AITileList");
|
DefSQClass <AITileList> SQAITileList("AITileList");
|
||||||
SQAITileList.PreRegister(engine, "AIAbstractList");
|
SQAITileList.PreRegister(engine, "AIAbstractList");
|
||||||
SQAITileList.AddConstructor<void (AITileList::*)(), 1>(engine, "x");
|
SQAITileList.AddConstructor<void (AITileList::*)(), 1>(engine, "x");
|
||||||
|
@ -42,7 +43,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AITileList_IndustryAccepting *>(HSQUIRRELVM vm, AITileList_IndustryAccepting *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AITileList_IndustryAccepting", res, NULL, DefSQDestructorCallback<AITileList_IndustryAccepting>); return 1; }
|
template <> int Return<AITileList_IndustryAccepting *>(HSQUIRRELVM vm, AITileList_IndustryAccepting *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AITileList_IndustryAccepting", res, NULL, DefSQDestructorCallback<AITileList_IndustryAccepting>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAITileList_IndustryAccepting_Register(Squirrel *engine) {
|
void SQAITileList_IndustryAccepting_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AITileList_IndustryAccepting> SQAITileList_IndustryAccepting("AITileList_IndustryAccepting");
|
DefSQClass <AITileList_IndustryAccepting> SQAITileList_IndustryAccepting("AITileList_IndustryAccepting");
|
||||||
SQAITileList_IndustryAccepting.PreRegister(engine, "AITileList");
|
SQAITileList_IndustryAccepting.PreRegister(engine, "AITileList");
|
||||||
SQAITileList_IndustryAccepting.AddConstructor<void (AITileList_IndustryAccepting::*)(IndustryID industry_id, int radius), 3>(engine, "xii");
|
SQAITileList_IndustryAccepting.AddConstructor<void (AITileList_IndustryAccepting::*)(IndustryID industry_id, int radius), 3>(engine, "xii");
|
||||||
|
@ -59,7 +61,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AITileList_IndustryProducing *>(HSQUIRRELVM vm, AITileList_IndustryProducing *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AITileList_IndustryProducing", res, NULL, DefSQDestructorCallback<AITileList_IndustryProducing>); return 1; }
|
template <> int Return<AITileList_IndustryProducing *>(HSQUIRRELVM vm, AITileList_IndustryProducing *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AITileList_IndustryProducing", res, NULL, DefSQDestructorCallback<AITileList_IndustryProducing>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAITileList_IndustryProducing_Register(Squirrel *engine) {
|
void SQAITileList_IndustryProducing_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AITileList_IndustryProducing> SQAITileList_IndustryProducing("AITileList_IndustryProducing");
|
DefSQClass <AITileList_IndustryProducing> SQAITileList_IndustryProducing("AITileList_IndustryProducing");
|
||||||
SQAITileList_IndustryProducing.PreRegister(engine, "AITileList");
|
SQAITileList_IndustryProducing.PreRegister(engine, "AITileList");
|
||||||
SQAITileList_IndustryProducing.AddConstructor<void (AITileList_IndustryProducing::*)(IndustryID industry_id, int radius), 3>(engine, "xii");
|
SQAITileList_IndustryProducing.AddConstructor<void (AITileList_IndustryProducing::*)(IndustryID industry_id, int radius), 3>(engine, "xii");
|
||||||
|
@ -76,7 +79,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AITileList_StationType *>(HSQUIRRELVM vm, AITileList_StationType *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AITileList_StationType", res, NULL, DefSQDestructorCallback<AITileList_StationType>); return 1; }
|
template <> int Return<AITileList_StationType *>(HSQUIRRELVM vm, AITileList_StationType *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AITileList_StationType", res, NULL, DefSQDestructorCallback<AITileList_StationType>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAITileList_StationType_Register(Squirrel *engine) {
|
void SQAITileList_StationType_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AITileList_StationType> SQAITileList_StationType("AITileList_StationType");
|
DefSQClass <AITileList_StationType> SQAITileList_StationType("AITileList_StationType");
|
||||||
SQAITileList_StationType.PreRegister(engine, "AITileList");
|
SQAITileList_StationType.PreRegister(engine, "AITileList");
|
||||||
SQAITileList_StationType.AddConstructor<void (AITileList_StationType::*)(StationID station_id, AIStation::StationType station_type), 3>(engine, "xii");
|
SQAITileList_StationType.AddConstructor<void (AITileList_StationType::*)(StationID station_id, AIStation::StationType station_type), 3>(engine, "xii");
|
||||||
|
|
|
@ -28,7 +28,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AITown *>(HSQUIRRELVM vm, AITown *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AITown", res, NULL, DefSQDestructorCallback<AITown>); return 1; }
|
template <> int Return<AITown *>(HSQUIRRELVM vm, AITown *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AITown", res, NULL, DefSQDestructorCallback<AITown>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAITown_Register(Squirrel *engine) {
|
void SQAITown_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AITown> SQAITown("AITown");
|
DefSQClass <AITown> SQAITown("AITown");
|
||||||
SQAITown.PreRegister(engine);
|
SQAITown.PreRegister(engine);
|
||||||
SQAITown.AddConstructor<void (AITown::*)(), 1>(engine, "x");
|
SQAITown.AddConstructor<void (AITown::*)(), 1>(engine, "x");
|
||||||
|
|
|
@ -20,7 +20,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AITownList *>(HSQUIRRELVM vm, AITownList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AITownList", res, NULL, DefSQDestructorCallback<AITownList>); return 1; }
|
template <> int Return<AITownList *>(HSQUIRRELVM vm, AITownList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AITownList", res, NULL, DefSQDestructorCallback<AITownList>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAITownList_Register(Squirrel *engine) {
|
void SQAITownList_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AITownList> SQAITownList("AITownList");
|
DefSQClass <AITownList> SQAITownList("AITownList");
|
||||||
SQAITownList.PreRegister(engine, "AIAbstractList");
|
SQAITownList.PreRegister(engine, "AIAbstractList");
|
||||||
SQAITownList.AddConstructor<void (AITownList::*)(), 1>(engine, "x");
|
SQAITownList.AddConstructor<void (AITownList::*)(), 1>(engine, "x");
|
||||||
|
|
|
@ -24,7 +24,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AITunnel *>(HSQUIRRELVM vm, AITunnel *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AITunnel", res, NULL, DefSQDestructorCallback<AITunnel>); return 1; }
|
template <> int Return<AITunnel *>(HSQUIRRELVM vm, AITunnel *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AITunnel", res, NULL, DefSQDestructorCallback<AITunnel>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAITunnel_Register(Squirrel *engine) {
|
void SQAITunnel_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AITunnel> SQAITunnel("AITunnel");
|
DefSQClass <AITunnel> SQAITunnel("AITunnel");
|
||||||
SQAITunnel.PreRegister(engine);
|
SQAITunnel.PreRegister(engine);
|
||||||
SQAITunnel.AddConstructor<void (AITunnel::*)(), 1>(engine, "x");
|
SQAITunnel.AddConstructor<void (AITunnel::*)(), 1>(engine, "x");
|
||||||
|
|
|
@ -28,7 +28,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIVehicle *>(HSQUIRRELVM vm, AIVehicle *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIVehicle", res, NULL, DefSQDestructorCallback<AIVehicle>); return 1; }
|
template <> int Return<AIVehicle *>(HSQUIRRELVM vm, AIVehicle *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIVehicle", res, NULL, DefSQDestructorCallback<AIVehicle>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIVehicle_Register(Squirrel *engine) {
|
void SQAIVehicle_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIVehicle> SQAIVehicle("AIVehicle");
|
DefSQClass <AIVehicle> SQAIVehicle("AIVehicle");
|
||||||
SQAIVehicle.PreRegister(engine);
|
SQAIVehicle.PreRegister(engine);
|
||||||
SQAIVehicle.AddConstructor<void (AIVehicle::*)(), 1>(engine, "x");
|
SQAIVehicle.AddConstructor<void (AIVehicle::*)(), 1>(engine, "x");
|
||||||
|
|
|
@ -20,7 +20,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIVehicleList *>(HSQUIRRELVM vm, AIVehicleList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIVehicleList", res, NULL, DefSQDestructorCallback<AIVehicleList>); return 1; }
|
template <> int Return<AIVehicleList *>(HSQUIRRELVM vm, AIVehicleList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIVehicleList", res, NULL, DefSQDestructorCallback<AIVehicleList>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIVehicleList_Register(Squirrel *engine) {
|
void SQAIVehicleList_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIVehicleList> SQAIVehicleList("AIVehicleList");
|
DefSQClass <AIVehicleList> SQAIVehicleList("AIVehicleList");
|
||||||
SQAIVehicleList.PreRegister(engine, "AIAbstractList");
|
SQAIVehicleList.PreRegister(engine, "AIAbstractList");
|
||||||
SQAIVehicleList.AddConstructor<void (AIVehicleList::*)(), 1>(engine, "x");
|
SQAIVehicleList.AddConstructor<void (AIVehicleList::*)(), 1>(engine, "x");
|
||||||
|
@ -37,7 +38,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIVehicleList_Station *>(HSQUIRRELVM vm, AIVehicleList_Station *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIVehicleList_Station", res, NULL, DefSQDestructorCallback<AIVehicleList_Station>); return 1; }
|
template <> int Return<AIVehicleList_Station *>(HSQUIRRELVM vm, AIVehicleList_Station *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIVehicleList_Station", res, NULL, DefSQDestructorCallback<AIVehicleList_Station>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIVehicleList_Station_Register(Squirrel *engine) {
|
void SQAIVehicleList_Station_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIVehicleList_Station> SQAIVehicleList_Station("AIVehicleList_Station");
|
DefSQClass <AIVehicleList_Station> SQAIVehicleList_Station("AIVehicleList_Station");
|
||||||
SQAIVehicleList_Station.PreRegister(engine, "AIAbstractList");
|
SQAIVehicleList_Station.PreRegister(engine, "AIAbstractList");
|
||||||
SQAIVehicleList_Station.AddConstructor<void (AIVehicleList_Station::*)(StationID station_id), 2>(engine, "xi");
|
SQAIVehicleList_Station.AddConstructor<void (AIVehicleList_Station::*)(StationID station_id), 2>(engine, "xi");
|
||||||
|
@ -54,7 +56,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIVehicleList_Depot *>(HSQUIRRELVM vm, AIVehicleList_Depot *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIVehicleList_Depot", res, NULL, DefSQDestructorCallback<AIVehicleList_Depot>); return 1; }
|
template <> int Return<AIVehicleList_Depot *>(HSQUIRRELVM vm, AIVehicleList_Depot *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIVehicleList_Depot", res, NULL, DefSQDestructorCallback<AIVehicleList_Depot>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIVehicleList_Depot_Register(Squirrel *engine) {
|
void SQAIVehicleList_Depot_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIVehicleList_Depot> SQAIVehicleList_Depot("AIVehicleList_Depot");
|
DefSQClass <AIVehicleList_Depot> SQAIVehicleList_Depot("AIVehicleList_Depot");
|
||||||
SQAIVehicleList_Depot.PreRegister(engine, "AIAbstractList");
|
SQAIVehicleList_Depot.PreRegister(engine, "AIAbstractList");
|
||||||
SQAIVehicleList_Depot.AddConstructor<void (AIVehicleList_Depot::*)(TileIndex tile), 2>(engine, "xi");
|
SQAIVehicleList_Depot.AddConstructor<void (AIVehicleList_Depot::*)(TileIndex tile), 2>(engine, "xi");
|
||||||
|
@ -71,7 +74,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIVehicleList_SharedOrders *>(HSQUIRRELVM vm, AIVehicleList_SharedOrders *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIVehicleList_SharedOrders", res, NULL, DefSQDestructorCallback<AIVehicleList_SharedOrders>); return 1; }
|
template <> int Return<AIVehicleList_SharedOrders *>(HSQUIRRELVM vm, AIVehicleList_SharedOrders *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIVehicleList_SharedOrders", res, NULL, DefSQDestructorCallback<AIVehicleList_SharedOrders>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIVehicleList_SharedOrders_Register(Squirrel *engine) {
|
void SQAIVehicleList_SharedOrders_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIVehicleList_SharedOrders> SQAIVehicleList_SharedOrders("AIVehicleList_SharedOrders");
|
DefSQClass <AIVehicleList_SharedOrders> SQAIVehicleList_SharedOrders("AIVehicleList_SharedOrders");
|
||||||
SQAIVehicleList_SharedOrders.PreRegister(engine, "AIAbstractList");
|
SQAIVehicleList_SharedOrders.PreRegister(engine, "AIAbstractList");
|
||||||
SQAIVehicleList_SharedOrders.AddConstructor<void (AIVehicleList_SharedOrders::*)(VehicleID vehicle_id), 2>(engine, "xi");
|
SQAIVehicleList_SharedOrders.AddConstructor<void (AIVehicleList_SharedOrders::*)(VehicleID vehicle_id), 2>(engine, "xi");
|
||||||
|
@ -88,7 +92,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIVehicleList_Group *>(HSQUIRRELVM vm, AIVehicleList_Group *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIVehicleList_Group", res, NULL, DefSQDestructorCallback<AIVehicleList_Group>); return 1; }
|
template <> int Return<AIVehicleList_Group *>(HSQUIRRELVM vm, AIVehicleList_Group *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIVehicleList_Group", res, NULL, DefSQDestructorCallback<AIVehicleList_Group>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIVehicleList_Group_Register(Squirrel *engine) {
|
void SQAIVehicleList_Group_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIVehicleList_Group> SQAIVehicleList_Group("AIVehicleList_Group");
|
DefSQClass <AIVehicleList_Group> SQAIVehicleList_Group("AIVehicleList_Group");
|
||||||
SQAIVehicleList_Group.PreRegister(engine, "AIAbstractList");
|
SQAIVehicleList_Group.PreRegister(engine, "AIAbstractList");
|
||||||
SQAIVehicleList_Group.AddConstructor<void (AIVehicleList_Group::*)(GroupID group_id), 2>(engine, "xi");
|
SQAIVehicleList_Group.AddConstructor<void (AIVehicleList_Group::*)(GroupID group_id), 2>(engine, "xi");
|
||||||
|
@ -105,7 +110,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIVehicleList_DefaultGroup *>(HSQUIRRELVM vm, AIVehicleList_DefaultGroup *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIVehicleList_DefaultGroup", res, NULL, DefSQDestructorCallback<AIVehicleList_DefaultGroup>); return 1; }
|
template <> int Return<AIVehicleList_DefaultGroup *>(HSQUIRRELVM vm, AIVehicleList_DefaultGroup *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIVehicleList_DefaultGroup", res, NULL, DefSQDestructorCallback<AIVehicleList_DefaultGroup>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIVehicleList_DefaultGroup_Register(Squirrel *engine) {
|
void SQAIVehicleList_DefaultGroup_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIVehicleList_DefaultGroup> SQAIVehicleList_DefaultGroup("AIVehicleList_DefaultGroup");
|
DefSQClass <AIVehicleList_DefaultGroup> SQAIVehicleList_DefaultGroup("AIVehicleList_DefaultGroup");
|
||||||
SQAIVehicleList_DefaultGroup.PreRegister(engine, "AIAbstractList");
|
SQAIVehicleList_DefaultGroup.PreRegister(engine, "AIAbstractList");
|
||||||
SQAIVehicleList_DefaultGroup.AddConstructor<void (AIVehicleList_DefaultGroup::*)(AIVehicle::VehicleType vehicle_type), 2>(engine, "xi");
|
SQAIVehicleList_DefaultGroup.AddConstructor<void (AIVehicleList_DefaultGroup::*)(AIVehicle::VehicleType vehicle_type), 2>(engine, "xi");
|
||||||
|
|
|
@ -20,7 +20,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIWaypoint *>(HSQUIRRELVM vm, AIWaypoint *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIWaypoint", res, NULL, DefSQDestructorCallback<AIWaypoint>); return 1; }
|
template <> int Return<AIWaypoint *>(HSQUIRRELVM vm, AIWaypoint *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIWaypoint", res, NULL, DefSQDestructorCallback<AIWaypoint>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIWaypoint_Register(Squirrel *engine) {
|
void SQAIWaypoint_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIWaypoint> SQAIWaypoint("AIWaypoint");
|
DefSQClass <AIWaypoint> SQAIWaypoint("AIWaypoint");
|
||||||
SQAIWaypoint.PreRegister(engine, "AIBaseStation");
|
SQAIWaypoint.PreRegister(engine, "AIBaseStation");
|
||||||
SQAIWaypoint.AddConstructor<void (AIWaypoint::*)(), 1>(engine, "x");
|
SQAIWaypoint.AddConstructor<void (AIWaypoint::*)(), 1>(engine, "x");
|
||||||
|
|
|
@ -20,7 +20,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIWaypointList *>(HSQUIRRELVM vm, AIWaypointList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIWaypointList", res, NULL, DefSQDestructorCallback<AIWaypointList>); return 1; }
|
template <> int Return<AIWaypointList *>(HSQUIRRELVM vm, AIWaypointList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIWaypointList", res, NULL, DefSQDestructorCallback<AIWaypointList>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIWaypointList_Register(Squirrel *engine) {
|
void SQAIWaypointList_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIWaypointList> SQAIWaypointList("AIWaypointList");
|
DefSQClass <AIWaypointList> SQAIWaypointList("AIWaypointList");
|
||||||
SQAIWaypointList.PreRegister(engine, "AIAbstractList");
|
SQAIWaypointList.PreRegister(engine, "AIAbstractList");
|
||||||
SQAIWaypointList.AddConstructor<void (AIWaypointList::*)(), 1>(engine, "x");
|
SQAIWaypointList.AddConstructor<void (AIWaypointList::*)(), 1>(engine, "x");
|
||||||
|
@ -37,7 +38,8 @@ namespace SQConvert {
|
||||||
template <> int Return<AIWaypointList_Vehicle *>(HSQUIRRELVM vm, AIWaypointList_Vehicle *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIWaypointList_Vehicle", res, NULL, DefSQDestructorCallback<AIWaypointList_Vehicle>); return 1; }
|
template <> int Return<AIWaypointList_Vehicle *>(HSQUIRRELVM vm, AIWaypointList_Vehicle *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIWaypointList_Vehicle", res, NULL, DefSQDestructorCallback<AIWaypointList_Vehicle>); return 1; }
|
||||||
}; // namespace SQConvert
|
}; // namespace SQConvert
|
||||||
|
|
||||||
void SQAIWaypointList_Vehicle_Register(Squirrel *engine) {
|
void SQAIWaypointList_Vehicle_Register(Squirrel *engine)
|
||||||
|
{
|
||||||
DefSQClass <AIWaypointList_Vehicle> SQAIWaypointList_Vehicle("AIWaypointList_Vehicle");
|
DefSQClass <AIWaypointList_Vehicle> SQAIWaypointList_Vehicle("AIWaypointList_Vehicle");
|
||||||
SQAIWaypointList_Vehicle.PreRegister(engine, "AIAbstractList");
|
SQAIWaypointList_Vehicle.PreRegister(engine, "AIAbstractList");
|
||||||
SQAIWaypointList_Vehicle.AddConstructor<void (AIWaypointList_Vehicle::*)(VehicleID vehicle_id), 2>(engine, "xi");
|
SQAIWaypointList_Vehicle.AddConstructor<void (AIWaypointList_Vehicle::*)(VehicleID vehicle_id), 2>(engine, "xi");
|
||||||
|
|
|
@ -210,7 +210,8 @@ BEGIN {
|
||||||
|
|
||||||
print "";
|
print "";
|
||||||
# Then do the registration functions of the class. */
|
# 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 "\");"
|
print " DefSQClass <" cls "> SQ" cls "(\"" cls "\");"
|
||||||
if (super_cls == "AIObject" || super_cls == "AIAbstractList::Valuator") {
|
if (super_cls == "AIObject" || super_cls == "AIAbstractList::Valuator") {
|
||||||
print " SQ" cls ".PreRegister(engine);"
|
print " SQ" cls ".PreRegister(engine);"
|
||||||
|
|
|
@ -76,7 +76,7 @@ echo "
|
||||||
/Note: this line a marker in squirrel_export.sh. Do not change!/ {
|
/Note: this line a marker in squirrel_export.sh. Do not change!/ {
|
||||||
print \$0
|
print \$0
|
||||||
gsub(\"^.*/\", \"\")
|
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++) {
|
for (i = 1; files[i] != \"\"; i++) {
|
||||||
print \"#include \\\"api/\" files[i] \"\\\"\" \$0
|
print \"#include \\\"api/\" files[i] \"\\\"\" \$0
|
||||||
|
@ -89,7 +89,7 @@ echo "
|
||||||
print \$0
|
print \$0
|
||||||
gsub(\"^.*/\", \"\")
|
gsub(\"^.*/\", \"\")
|
||||||
print \" squirrel_register_std(this->engine);\" \$0
|
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++) {
|
for (i = 1; regs[i] != \"\"; i++) {
|
||||||
if (regs[i] == \"SQAIController_Register(this->engine);\") continue
|
if (regs[i] == \"SQAIController_Register(this->engine);\") continue
|
||||||
|
|
Loading…
Reference in New Issue