summaryrefslogtreecommitdiff
path: root/src/script/api/game/game_event_types.hpp.sq
diff options
context:
space:
mode:
Diffstat (limited to 'src/script/api/game/game_event_types.hpp.sq')
-rw-r--r--src/script/api/game/game_event_types.hpp.sq14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/script/api/game/game_event_types.hpp.sq b/src/script/api/game/game_event_types.hpp.sq
index 3a97a7d7e..56acdd30f 100644
--- a/src/script/api/game/game_event_types.hpp.sq
+++ b/src/script/api/game/game_event_types.hpp.sq
@@ -296,3 +296,17 @@ void SQGSEventExclusiveTransportRights_Register(Squirrel *engine)
SQGSEventExclusiveTransportRights.PostRegister(engine);
}
+
+
+template <> const char *GetClassName<ScriptEventRoadReconstruction, ST_GS>() { return "GSEventRoadReconstruction"; }
+
+void SQGSEventRoadReconstruction_Register(Squirrel *engine)
+{
+ DefSQClass<ScriptEventRoadReconstruction, ST_GS> SQGSEventRoadReconstruction("GSEventRoadReconstruction");
+ SQGSEventRoadReconstruction.PreRegister(engine, "GSEventCompanyTown");
+ SQGSEventRoadReconstruction.AddConstructor<void (ScriptEventRoadReconstruction::*)(ScriptCompany::CompanyID company, TownID town), 3>(engine, "xii");
+
+ SQGSEventRoadReconstruction.DefSQStaticMethod(engine, &ScriptEventRoadReconstruction::Convert, "Convert", 2, ".x");
+
+ SQGSEventRoadReconstruction.PostRegister(engine);
+}