diff --git a/module/Core/Funcs.inc b/module/Core/Funcs.inc index 244d25f8..9f758df3 100644 --- a/module/Core/Funcs.inc +++ b/module/Core/Funcs.inc @@ -50,6 +50,12 @@ static SQInteger SqGetEvents(HSQUIRRELVM vm) return 1; } +// ------------------------------------------------------------------------------------------------ +static void SqEmitCustomEvent(Int32 group, Int32 header, LightObj & payload) +{ + Core::Get().EmitCustomEvent(group, header, payload); +} + // ------------------------------------------------------------------------------------------------ static SQInteger SqForceEnableNullEntities(HSQUIRRELVM vm) { @@ -335,6 +341,7 @@ void Register_Core(HSQUIRRELVM vm) .Func(_SC("SetReloadInfo"), &SqSetReloadInfo) .Func(_SC("GetReloadHeader"), &SqGetReloadHeader) .Func(_SC("GetReloadPayload"), &SqGetReloadPayload) + .Func(_SC("EmitCustomEvent"), &SqEmitCustomEvent) .Func(_SC("GetState"), &SqGetState) .Func(_SC("SetState"), &SqSetState) .Func(_SC("AreasEnabled"), &SqGetAreasEnabled)