From bff7c33aa909d00428f81e6b5f89b236343fc13b Mon Sep 17 00:00:00 2001 From: truebrain Date: Tue, 29 Nov 2011 22:23:33 +0000 Subject: (svn r23350) -Add: support different ScriptTypes in the helper functions for GetClassName (Rubidium) --- src/ai/api/ai_cargolist.hpp.sq | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/ai/api/ai_cargolist.hpp.sq') diff --git a/src/ai/api/ai_cargolist.hpp.sq b/src/ai/api/ai_cargolist.hpp.sq index 0d8edb626..e757dcdd1 100644 --- a/src/ai/api/ai_cargolist.hpp.sq +++ b/src/ai/api/ai_cargolist.hpp.sq @@ -20,11 +20,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AICargoList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AICargoList", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AICargoList"; } +template <> const char *GetClassName() { return "AICargoList"; } void SQAICargoList_Register(Squirrel *engine) { - DefSQClass SQAICargoList("AICargoList"); + DefSQClass SQAICargoList("AICargoList"); SQAICargoList.PreRegister(engine, "AIList"); SQAICargoList.AddConstructor(engine, "x"); @@ -40,11 +40,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AICargoList_IndustryAccepting *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AICargoList_IndustryAccepting", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AICargoList_IndustryAccepting"; } +template <> const char *GetClassName() { return "AICargoList_IndustryAccepting"; } void SQAICargoList_IndustryAccepting_Register(Squirrel *engine) { - DefSQClass SQAICargoList_IndustryAccepting("AICargoList_IndustryAccepting"); + DefSQClass SQAICargoList_IndustryAccepting("AICargoList_IndustryAccepting"); SQAICargoList_IndustryAccepting.PreRegister(engine, "AIList"); SQAICargoList_IndustryAccepting.AddConstructor(engine, "xi"); @@ -60,11 +60,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AICargoList_IndustryProducing *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AICargoList_IndustryProducing", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AICargoList_IndustryProducing"; } +template <> const char *GetClassName() { return "AICargoList_IndustryProducing"; } void SQAICargoList_IndustryProducing_Register(Squirrel *engine) { - DefSQClass SQAICargoList_IndustryProducing("AICargoList_IndustryProducing"); + DefSQClass SQAICargoList_IndustryProducing("AICargoList_IndustryProducing"); SQAICargoList_IndustryProducing.PreRegister(engine, "AIList"); SQAICargoList_IndustryProducing.AddConstructor(engine, "xi"); @@ -80,11 +80,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AICargoList_StationAccepting *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AICargoList_StationAccepting", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AICargoList_StationAccepting"; } +template <> const char *GetClassName() { return "AICargoList_StationAccepting"; } void SQAICargoList_StationAccepting_Register(Squirrel *engine) { - DefSQClass SQAICargoList_StationAccepting("AICargoList_StationAccepting"); + DefSQClass SQAICargoList_StationAccepting("AICargoList_StationAccepting"); SQAICargoList_StationAccepting.PreRegister(engine, "AIList"); SQAICargoList_StationAccepting.AddConstructor(engine, "xi"); -- cgit v1.2.3-70-g09d2