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.sq16
1 files changed, 16 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 727e90bb1..6faacba44 100644
--- a/src/script/api/game/game_event_types.hpp.sq
+++ b/src/script/api/game/game_event_types.hpp.sq
@@ -266,3 +266,19 @@ void SQGSEventGoalQuestionAnswer_Register(Squirrel *engine)
SQGSEventGoalQuestionAnswer.PostRegister(engine);
}
+
+
+template <> const char *GetClassName<ScriptEventCompanyTown, ST_GS>() { return "GSEventCompanyTown"; }
+
+void SQGSEventCompanyTown_Register(Squirrel *engine)
+{
+ DefSQClass<ScriptEventCompanyTown, ST_GS> SQGSEventCompanyTown("GSEventCompanyTown");
+ SQGSEventCompanyTown.PreRegister(engine, "GSEvent");
+
+ SQGSEventCompanyTown.DefSQStaticMethod(engine, &ScriptEventCompanyTown::Convert, "Convert", 2, ".x");
+
+ SQGSEventCompanyTown.DefSQMethod(engine, &ScriptEventCompanyTown::GetCompanyID, "GetCompanyID", 1, "x");
+ SQGSEventCompanyTown.DefSQMethod(engine, &ScriptEventCompanyTown::GetTownID, "GetTownID", 1, "x");
+
+ SQGSEventCompanyTown.PostRegister(engine);
+}