(svn r23210) -Codechange: generate the GetClassName function for the AI classes programmatically
This commit is contained in:
@@ -28,6 +28,8 @@ namespace SQConvert {
|
||||
template <> int Return<AICompany *>(HSQUIRRELVM vm, AICompany *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AICompany", res, NULL, DefSQDestructorCallback<AICompany>); return 1; }
|
||||
} // namespace SQConvert
|
||||
|
||||
template <> const char *GetClassName<AICompany>() { return "AICompany"; }
|
||||
|
||||
void SQAICompany_Register(Squirrel *engine)
|
||||
{
|
||||
DefSQClass <AICompany> SQAICompany("AICompany");
|
||||
|
Reference in New Issue
Block a user