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.sq14
1 files changed, 14 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 d40ab240a..3cc936115 100644
--- a/src/script/api/ai/ai_event_types.hpp.sq
+++ b/src/script/api/ai/ai_event_types.hpp.sq
@@ -377,3 +377,17 @@ void SQAIEventCompanyTown_Register(Squirrel *engine)
SQAIEventCompanyTown.PostRegister(engine);
}
+
+
+template <> const char *GetClassName<ScriptEventExclusiveTransportRights, ST_AI>() { return "AIEventExclusiveTransportRights"; }
+
+void SQAIEventExclusiveTransportRights_Register(Squirrel *engine)
+{
+ DefSQClass<ScriptEventExclusiveTransportRights, ST_AI> SQAIEventExclusiveTransportRights("AIEventExclusiveTransportRights");
+ SQAIEventExclusiveTransportRights.PreRegister(engine, "AIEventCompanyTown");
+ SQAIEventExclusiveTransportRights.AddConstructor<void (ScriptEventExclusiveTransportRights::*)(ScriptCompany::CompanyID company, TownID town), 3>(engine, "xii");
+
+ SQAIEventExclusiveTransportRights.DefSQStaticMethod(engine, &ScriptEventExclusiveTransportRights::Convert, "Convert", 2, ".x");
+
+ SQAIEventExclusiveTransportRights.PostRegister(engine);
+}