diff options
author | truebrain <truebrain@openttd.org> | 2011-11-29 22:23:33 +0000 |
---|---|---|
committer | truebrain <truebrain@openttd.org> | 2011-11-29 22:23:33 +0000 |
commit | bff7c33aa909d00428f81e6b5f89b236343fc13b (patch) | |
tree | 8a7617a800d443a19f871b7b7a0eb1382f08dfa5 /src/ai/api/ai_bridgelist.hpp.sq | |
parent | b13fa6924b8bca7ec378d4daf87e18318670a44f (diff) | |
download | openttd-bff7c33aa909d00428f81e6b5f89b236343fc13b.tar.xz |
(svn r23350) -Add: support different ScriptTypes in the helper functions for GetClassName (Rubidium)
Diffstat (limited to 'src/ai/api/ai_bridgelist.hpp.sq')
-rw-r--r-- | src/ai/api/ai_bridgelist.hpp.sq | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ai/api/ai_bridgelist.hpp.sq b/src/ai/api/ai_bridgelist.hpp.sq index 94e1013b5..1b86e832e 100644 --- a/src/ai/api/ai_bridgelist.hpp.sq +++ b/src/ai/api/ai_bridgelist.hpp.sq @@ -20,11 +20,11 @@ namespace SQConvert { template <> inline 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 -template <> const char *GetClassName<AIBridgeList>() { return "AIBridgeList"; } +template <> const char *GetClassName<AIBridgeList, ST_AI>() { return "AIBridgeList"; } void SQAIBridgeList_Register(Squirrel *engine) { - DefSQClass <AIBridgeList> SQAIBridgeList("AIBridgeList"); + DefSQClass<AIBridgeList, ST_AI> SQAIBridgeList("AIBridgeList"); SQAIBridgeList.PreRegister(engine, "AIList"); SQAIBridgeList.AddConstructor<void (AIBridgeList::*)(), 1>(engine, "x"); @@ -40,11 +40,11 @@ namespace SQConvert { template <> inline 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 -template <> const char *GetClassName<AIBridgeList_Length>() { return "AIBridgeList_Length"; } +template <> const char *GetClassName<AIBridgeList_Length, ST_AI>() { return "AIBridgeList_Length"; } void SQAIBridgeList_Length_Register(Squirrel *engine) { - DefSQClass <AIBridgeList_Length> SQAIBridgeList_Length("AIBridgeList_Length"); + DefSQClass<AIBridgeList_Length, ST_AI> SQAIBridgeList_Length("AIBridgeList_Length"); SQAIBridgeList_Length.PreRegister(engine, "AIList"); SQAIBridgeList_Length.AddConstructor<void (AIBridgeList_Length::*)(uint length), 2>(engine, "xi"); |