(svn r23350) -Add: support different ScriptTypes in the helper functions for GetClassName (Rubidium)

This commit is contained in:
truebrain
2011-11-29 22:23:33 +00:00
parent b13fa6924b
commit bff7c33aa9
54 changed files with 190 additions and 185 deletions

View File

@@ -9,11 +9,11 @@
#include "ai_controller.hpp"
template <> const char *GetClassName<AIController>() { return "AIController"; }
template <> const char *GetClassName<AIController, ST_AI>() { return "AIController"; }
void SQAIController_Register(Squirrel *engine)
{
DefSQClass <AIController> SQAIController("AIController");
DefSQClass<AIController, ST_AI> SQAIController("AIController");
SQAIController.PreRegister(engine);
SQAIController.DefSQStaticMethod(engine, &AIController::GetTick, "GetTick", 1, ".");