(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

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