(svn r23210) -Codechange: generate the GetClassName function for the AI classes programmatically
This commit is contained in:
@@ -20,6 +20,8 @@ namespace SQConvert {
|
||||
template <> 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"; }
|
||||
|
||||
void SQAIBridgeList_Register(Squirrel *engine)
|
||||
{
|
||||
DefSQClass <AIBridgeList> SQAIBridgeList("AIBridgeList");
|
||||
@@ -38,6 +40,8 @@ namespace SQConvert {
|
||||
template <> 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"; }
|
||||
|
||||
void SQAIBridgeList_Length_Register(Squirrel *engine)
|
||||
{
|
||||
DefSQClass <AIBridgeList_Length> SQAIBridgeList_Length("AIBridgeList_Length");
|
||||
|
Reference in New Issue
Block a user