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