/***************** * Public methods *****************/ /// <summary> /// Entry for this mod. /// </summary> /// <param name="helper">Helper.</param> public override void Entry(IModHelper helper) { Util.Init(Helper, Monitor); Config = Helper.ReadConfig <QualityProductsConfig>(); if (Config.IsAnythingEnabled()) { if (Config.IsCookingEnabled()) { Helper.Events.Display.MenuChanged += OnCrafting; } Helper.Events.GameLoop.Saved += OnSaved; Helper.Events.GameLoop.Saving += OnSaving; Helper.Events.GameLoop.SaveLoaded += OnSaveLoaded; Helper.Events.World.LocationListChanged += OnLoadLocation; Helper.Events.World.ObjectListChanged += OnPlacingProcessor; if (Config.EnableMeadTextures && SpriteLoader.Init(Helper, Monitor, Config)) { PatchManager.ApplyAll( typeof(SObjectDrawPatch), typeof(SObjectDraw2Patch), typeof(SObjectDrawInMenuPatch), typeof(SObjectDrawWhenHeld), typeof(FurnitureDrawPatch) ); } } }