public override void Entry(IModHelper helper)
        {
            Logger.Init(this.Monitor);
            EffectHelper.Init(helper, helper.ReadConfig <SkillfulClothesConfig>());

            if (EffectHelper.Config.LoadCustomEffectDefinitions)
            {
                CustomEffectDefinitions.LoadCustomEffectDefinitions();
            }

            HarmonyPatches.Apply(this.ModManifest.UniqueID);
            ShopPatches.Apply(helper);
            TailoringPatches.Apply(helper);

            clothingObserver = EffectHelper.ClothingObserver;

            helper.Events.GameLoop.GameLaunched += GameLoop_GameLaunched;

            helper.Events.GameLoop.UpdateTicked += GameLoop_UpdateTicked;

            helper.Events.GameLoop.DayStarted += GameLoop_DayStarted;
            helper.Events.GameLoop.DayEnding  += GameLoop_DayEnding;

            helper.Events.GameLoop.ReturnedToTitle += GameLoop_ReturnedToTitle;
        }
Пример #2
0
        public static void Init(IModHelper modHelper, SkillfulClothesConfig config)
        {
            ModHelper = modHelper;
            Config    = config;
            Textures.Init();
            ClothingObserver = new ClothingObserver();
            Overlays         = new CustomOverlays(modHelper);

            Events.Watch(modHelper);
        }