(svn r23350) -Add: support different ScriptTypes in the helper functions for GetClassName (Rubidium)
This commit is contained in:
@@ -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");
|
||||
|
||||
|
Reference in New Issue
Block a user