diff options
Diffstat (limited to 'src/ai/api/ai_event.hpp.sq')
-rw-r--r-- | src/ai/api/ai_event.hpp.sq | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ai/api/ai_event.hpp.sq b/src/ai/api/ai_event.hpp.sq index 4f54ca63e..3554e4d06 100644 --- a/src/ai/api/ai_event.hpp.sq +++ b/src/ai/api/ai_event.hpp.sq @@ -24,11 +24,11 @@ namespace SQConvert { template <> inline int Return<AIEvent *>(HSQUIRRELVM vm, AIEvent *res) { if (res == NULL) { sq_pushnull(vm); return 1; } Squirrel::CreateClassInstanceVM(vm, "AIEvent", res, NULL, DefSQDestructorCallback<AIEvent>); return 1; } } // namespace SQConvert -template <> const char *GetClassName<AIEvent>() { return "AIEvent"; } +template <> const char *GetClassName<AIEvent, ST_AI>() { return "AIEvent"; } void SQAIEvent_Register(Squirrel *engine) { - DefSQClass <AIEvent> SQAIEvent("AIEvent"); + DefSQClass<AIEvent, ST_AI> SQAIEvent("AIEvent"); SQAIEvent.PreRegister(engine); SQAIEvent.AddConstructor<void (AIEvent::*)(AIEvent::AIEventType type), 2>(engine, "xi"); @@ -70,11 +70,11 @@ namespace SQConvert { template <> inline int Return<AIEventController *>(HSQUIRRELVM vm, AIEventController *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEventController", res, NULL, DefSQDestructorCallback<AIEventController>); return 1; } } // namespace SQConvert -template <> const char *GetClassName<AIEventController>() { return "AIEventController"; } +template <> const char *GetClassName<AIEventController, ST_AI>() { return "AIEventController"; } void SQAIEventController_Register(Squirrel *engine) { - DefSQClass <AIEventController> SQAIEventController("AIEventController"); + DefSQClass<AIEventController, ST_AI> SQAIEventController("AIEventController"); SQAIEventController.PreRegister(engine); SQAIEventController.AddConstructor<void (AIEventController::*)(), 1>(engine, "x"); |