(svn r23210) -Codechange: generate the GetClassName function for the AI classes programmatically
This commit is contained in:
@@ -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");
|
||||
|
Reference in New Issue
Block a user