(svn r23210) -Codechange: generate the GetClassName function for the AI classes programmatically

This commit is contained in:
rubidium
2011-11-13 20:52:39 +00:00
parent b7a655bf4c
commit 3f7eb71b17
101 changed files with 183 additions and 256 deletions

View File

@@ -26,6 +26,8 @@ namespace SQConvert {
template <> int Return<AIWaypoint *>(HSQUIRRELVM vm, AIWaypoint *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIWaypoint", res, NULL, DefSQDestructorCallback<AIWaypoint>); return 1; }
} // namespace SQConvert
template <> const char *GetClassName<AIWaypoint>() { return "AIWaypoint"; }
void SQAIWaypoint_Register(Squirrel *engine)
{
DefSQClass <AIWaypoint> SQAIWaypoint("AIWaypoint");