summaryrefslogtreecommitdiff
path: root/src/script/api/ai/ai_event_types.hpp.sq
diff options
context:
space:
mode:
Diffstat (limited to 'src/script/api/ai/ai_event_types.hpp.sq')
-rw-r--r--src/script/api/ai/ai_event_types.hpp.sq16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/script/api/ai/ai_event_types.hpp.sq b/src/script/api/ai/ai_event_types.hpp.sq
index bb46ed724..d40ab240a 100644
--- a/src/script/api/ai/ai_event_types.hpp.sq
+++ b/src/script/api/ai/ai_event_types.hpp.sq
@@ -361,3 +361,19 @@ void SQAIEventAircraftDestTooFar_Register(Squirrel *engine)
SQAIEventAircraftDestTooFar.PostRegister(engine);
}
+
+
+template <> const char *GetClassName<ScriptEventCompanyTown, ST_AI>() { return "AIEventCompanyTown"; }
+
+void SQAIEventCompanyTown_Register(Squirrel *engine)
+{
+ DefSQClass<ScriptEventCompanyTown, ST_AI> SQAIEventCompanyTown("AIEventCompanyTown");
+ SQAIEventCompanyTown.PreRegister(engine, "AIEvent");
+
+ SQAIEventCompanyTown.DefSQStaticMethod(engine, &ScriptEventCompanyTown::Convert, "Convert", 2, ".x");
+
+ SQAIEventCompanyTown.DefSQMethod(engine, &ScriptEventCompanyTown::GetCompanyID, "GetCompanyID", 1, "x");
+ SQAIEventCompanyTown.DefSQMethod(engine, &ScriptEventCompanyTown::GetTownID, "GetTownID", 1, "x");
+
+ SQAIEventCompanyTown.PostRegister(engine);
+}