From 3f7eb71b17da7840678c68953729aff156cc500b Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 13 Nov 2011 20:52:39 +0000 Subject: (svn r23210) -Codechange: generate the GetClassName function for the AI classes programmatically --- src/ai/api/ai_controller.hpp.sq | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ai/api/ai_controller.hpp.sq') diff --git a/src/ai/api/ai_controller.hpp.sq b/src/ai/api/ai_controller.hpp.sq index fdfb47788..8a0e70ccd 100644 --- a/src/ai/api/ai_controller.hpp.sq +++ b/src/ai/api/ai_controller.hpp.sq @@ -9,6 +9,8 @@ #include "ai_controller.hpp" +template <> const char *GetClassName() { return "AIController"; } + void SQAIController_Register(Squirrel *engine) { DefSQClass SQAIController("AIController"); -- cgit v1.2.3-54-g00ecf