(svn r23350) -Add: support different ScriptTypes in the helper functions for GetClassName (Rubidium)
This commit is contained in:
@@ -28,11 +28,11 @@ namespace SQConvert {
|
||||
template <> inline 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"; }
|
||||
template <> const char *GetClassName<AICompany, ST_AI>() { return "AICompany"; }
|
||||
|
||||
void SQAICompany_Register(Squirrel *engine)
|
||||
{
|
||||
DefSQClass <AICompany> SQAICompany("AICompany");
|
||||
DefSQClass<AICompany, ST_AI> SQAICompany("AICompany");
|
||||
SQAICompany.PreRegister(engine);
|
||||
SQAICompany.AddConstructor<void (AICompany::*)(), 1>(engine, "x");
|
||||
|
||||
|
Reference in New Issue
Block a user