/// <summary>The mod entry point, called after the mod is first loaded.</summary> /// <param name="helper">Provides simplified APIs for writing mods.</param> public override void Entry(IModHelper helper) { Config = helper.ReadConfig <SNConfiguration>(); harvestableNotification = new HarvestNotification(Helper.Translation); generalNotification = new GeneralNotification(); productionNotification = new ProductionNotification(); helper.Events.GameLoop.DayStarted += OnDayStarted; helper.Events.Player.Warped += OnWarped; helper.Events.GameLoop.TimeChanged += OnTimeChanged; }
public override void Entry(IModHelper helper) { Util.Config = helper.ReadConfig <Configuration>(); Util.Monitor = Monitor; harvestableNotification = new HarvestNotification(); generalNotification = new GeneralNotification(); productionNotification = new ProductionNotification(); #pragma warning disable 0618 PlayerEvents.LoadedGame += ReceiveLoadedGame; MenuEvents.MenuClosed += ReceiveMenuClosed; TimeEvents.TimeOfDayChanged += ReceiveTimeOfDayChanged; LocationEvents.CurrentLocationChanged += ReceiveCurrentLocationChanged; }
public override void Entry(IModHelper helper) { Util.Config = helper.ReadConfig <Configuration>(); Util.Monitor = Monitor; harvestableNotification = new HarvestNotification(); generalNotification = new GeneralNotification(); productionNotification = new ProductionNotification(); SaveEvents.AfterLoad += ReceiveLoadedGame; //MenuEvents.MenuClosed += ReceiveMenuClosed; TimeEvents.AfterDayStarted += DailyNotifications; TimeEvents.TimeOfDayChanged += ReceiveTimeOfDayChanged; LocationEvents.CurrentLocationChanged += ReceiveCurrentLocationChanged; }