diff options
author | rubidium <rubidium@openttd.org> | 2009-10-04 18:16:44 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-10-04 18:16:44 +0000 |
commit | e7fb5f00e7b97c235aaad45844ad816f0df5e31e (patch) | |
tree | 34410fc9fe4e9fa838a7ceaa85537743f30ee14c /src/ai/api/ai_industrylist.hpp.sq | |
parent | 54806e7437efdc3e9cd71a8a778671ea5a4b10b0 (diff) | |
download | openttd-e7fb5f00e7b97c235aaad45844ad816f0df5e31e.tar.xz |
(svn r17697) -Codechange: coding style in the automatically generated squirrel wrapper code
Diffstat (limited to 'src/ai/api/ai_industrylist.hpp.sq')
-rw-r--r-- | src/ai/api/ai_industrylist.hpp.sq | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/ai/api/ai_industrylist.hpp.sq b/src/ai/api/ai_industrylist.hpp.sq index 9dfea038d..768c00b41 100644 --- a/src/ai/api/ai_industrylist.hpp.sq +++ b/src/ai/api/ai_industrylist.hpp.sq @@ -20,7 +20,8 @@ namespace SQConvert { template <> int Return<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 -void SQAIIndustryList_Register(Squirrel *engine) { +void SQAIIndustryList_Register(Squirrel *engine) +{ DefSQClass <AIIndustryList> SQAIIndustryList("AIIndustryList"); SQAIIndustryList.PreRegister(engine, "AIAbstractList"); 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; } }; // namespace SQConvert -void SQAIIndustryList_CargoAccepting_Register(Squirrel *engine) { +void SQAIIndustryList_CargoAccepting_Register(Squirrel *engine) +{ DefSQClass <AIIndustryList_CargoAccepting> SQAIIndustryList_CargoAccepting("AIIndustryList_CargoAccepting"); SQAIIndustryList_CargoAccepting.PreRegister(engine, "AIAbstractList"); 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; } }; // namespace SQConvert -void SQAIIndustryList_CargoProducing_Register(Squirrel *engine) { +void SQAIIndustryList_CargoProducing_Register(Squirrel *engine) +{ DefSQClass <AIIndustryList_CargoProducing> SQAIIndustryList_CargoProducing("AIIndustryList_CargoProducing"); SQAIIndustryList_CargoProducing.PreRegister(engine, "AIAbstractList"); SQAIIndustryList_CargoProducing.AddConstructor<void (AIIndustryList_CargoProducing::*)(CargoID cargo_id), 2>(engine, "xi"); |