(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<AIAccounting *>(HSQUIRRELVM vm, AIAccounting *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIAccounting", res, NULL, DefSQDestructorCallback<AIAccounting>); return 1; }
|
||||
} // namespace SQConvert
|
||||
|
||||
template <> const char *GetClassName<AIAccounting>() { return "AIAccounting"; }
|
||||
|
||||
void SQAIAccounting_Register(Squirrel *engine)
|
||||
{
|
||||
DefSQClass <AIAccounting> SQAIAccounting("AIAccounting");
|
||||
|
Reference in New Issue
Block a user