truebrain@10212: /* $Id$ */ truebrain@10212: /* THIS FILE IS AUTO-GENERATED; PLEASE DO NOT ALTER MANUALLY */ truebrain@10212: truelight@9649: #include "ai_industrylist.hpp" truelight@9649: truelight@9649: namespace SQConvert { truelight@9649: /* Allow AIIndustryList to be used as Squirrel parameter */ truelight@9649: template <> AIIndustryList *GetParam(ForceType, HSQUIRRELVM vm, int index) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return (AIIndustryList *)instance; } truelight@9649: template <> AIIndustryList &GetParam(ForceType, HSQUIRRELVM vm, int index) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return *(AIIndustryList *)instance; } truelight@9649: template <> const AIIndustryList *GetParam(ForceType, HSQUIRRELVM vm, int index) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return (AIIndustryList *)instance; } truelight@9649: template <> const AIIndustryList &GetParam(ForceType, HSQUIRRELVM vm, int index) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return *(AIIndustryList *)instance; } truelight@9680: template <> int Return(HSQUIRRELVM vm, AIIndustryList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIIndustryList", res, NULL, DefSQDestructorCallback); return 1; } truelight@9649: }; // namespace SQConvert truelight@9649: truebrain@9741: void SQAIIndustryList_Register(Squirrel *engine) { truelight@9649: DefSQClass SQAIIndustryList("AIIndustryList"); truelight@9649: SQAIIndustryList.PreRegister(engine, "AIAbstractList"); truelight@9649: SQAIIndustryList.AddConstructor(engine, "x"); truelight@9649: truelight@9649: SQAIIndustryList.DefSQStaticMethod(engine, &AIIndustryList::GetClassName, "GetClassName", 1, "x"); truelight@9649: truelight@9649: SQAIIndustryList.PostRegister(engine); truelight@9649: } truebrain@9776: truebrain@9776: namespace SQConvert { truebrain@9776: /* Allow AIIndustryList_CargoAccepting to be used as Squirrel parameter */ truebrain@9776: template <> AIIndustryList_CargoAccepting *GetParam(ForceType, HSQUIRRELVM vm, int index) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return (AIIndustryList_CargoAccepting *)instance; } truebrain@9776: template <> AIIndustryList_CargoAccepting &GetParam(ForceType, HSQUIRRELVM vm, int index) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return *(AIIndustryList_CargoAccepting *)instance; } truebrain@9776: template <> const AIIndustryList_CargoAccepting *GetParam(ForceType, HSQUIRRELVM vm, int index) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return (AIIndustryList_CargoAccepting *)instance; } truebrain@9776: template <> const AIIndustryList_CargoAccepting &GetParam(ForceType, HSQUIRRELVM vm, int index) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return *(AIIndustryList_CargoAccepting *)instance; } truebrain@9776: template <> int Return(HSQUIRRELVM vm, AIIndustryList_CargoAccepting *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIIndustryList_CargoAccepting", res, NULL, DefSQDestructorCallback); return 1; } truebrain@9776: }; // namespace SQConvert truebrain@9776: truebrain@9776: void SQAIIndustryList_CargoAccepting_Register(Squirrel *engine) { truebrain@9776: DefSQClass SQAIIndustryList_CargoAccepting("AIIndustryList_CargoAccepting"); truebrain@9776: SQAIIndustryList_CargoAccepting.PreRegister(engine, "AIAbstractList"); truebrain@9776: SQAIIndustryList_CargoAccepting.AddConstructor(engine, "xi"); truebrain@9776: truebrain@9776: SQAIIndustryList_CargoAccepting.DefSQStaticMethod(engine, &AIIndustryList_CargoAccepting::GetClassName, "GetClassName", 1, "x"); truebrain@9776: truebrain@9776: SQAIIndustryList_CargoAccepting.PostRegister(engine); truebrain@9776: } truebrain@9776: truebrain@9776: namespace SQConvert { truebrain@9776: /* Allow AIIndustryList_CargoProducing to be used as Squirrel parameter */ truebrain@9776: template <> AIIndustryList_CargoProducing *GetParam(ForceType, HSQUIRRELVM vm, int index) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return (AIIndustryList_CargoProducing *)instance; } truebrain@9776: template <> AIIndustryList_CargoProducing &GetParam(ForceType, HSQUIRRELVM vm, int index) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return *(AIIndustryList_CargoProducing *)instance; } truebrain@9776: template <> const AIIndustryList_CargoProducing *GetParam(ForceType, HSQUIRRELVM vm, int index) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return (AIIndustryList_CargoProducing *)instance; } truebrain@9776: template <> const AIIndustryList_CargoProducing &GetParam(ForceType, HSQUIRRELVM vm, int index) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return *(AIIndustryList_CargoProducing *)instance; } truebrain@9776: template <> int Return(HSQUIRRELVM vm, AIIndustryList_CargoProducing *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIIndustryList_CargoProducing", res, NULL, DefSQDestructorCallback); return 1; } truebrain@9776: }; // namespace SQConvert truebrain@9776: truebrain@9776: void SQAIIndustryList_CargoProducing_Register(Squirrel *engine) { truebrain@9776: DefSQClass SQAIIndustryList_CargoProducing("AIIndustryList_CargoProducing"); truebrain@9776: SQAIIndustryList_CargoProducing.PreRegister(engine, "AIAbstractList"); truebrain@9776: SQAIIndustryList_CargoProducing.AddConstructor(engine, "xi"); truebrain@9776: truebrain@9776: SQAIIndustryList_CargoProducing.DefSQStaticMethod(engine, &AIIndustryList_CargoProducing::GetClassName, "GetClassName", 1, "x"); truebrain@9776: truebrain@9776: SQAIIndustryList_CargoProducing.PostRegister(engine); truebrain@9776: }