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