public void SetupExternalHooks() { if (MainMenuLoadedFirstTimeRef != -1 && _MainMenuLoadedFirstTime == null) { _MainMenuLoadedFirstTime = (main_menu) => { Info.RunLua(MainMenuLoadedFirstTimeRef, "Events.MainMenuLoadedFirstTime", new object[] { main_menu }); }; EventHooks.MainMenuLoadedFirstTime += _MainMenuLoadedFirstTime; } }
public void SetupExternalHooks() { if (MainMenuLoadedFirstTime != null && _MainMenuLoadedFirstTime == null) { _MainMenuLoadedFirstTime = (main_menu) => { Info.RunLua(MainMenuLoadedFirstTime, "Events.MainMenuLoadedFirstTime", new LuaTransparentClrObject(main_menu, autobind: true)); }; EventHooks.MainMenuLoadedFirstTime += _MainMenuLoadedFirstTime; } }