/********* ** Public methods *********/ /// <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) { // read config this.Config = helper.ReadConfig <LoveLabelConfig>(); // read texture this.Hearts = helper.Content.Load <Texture2D>("hearts.png"); // hook up events GameEvents.UpdateTick += this.Event_UpdateTick; GraphicsEvents.OnPostRenderHudEvent += this.Event_PostRenderHUDEvent; }
/********* ** Public methods *********/ /// <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) { // read config _config = helper.ReadConfig <LoveLabelConfig>(); // read texture _hearts = helper.Content.Load <Texture2D>("assets/hearts.png"); // hook up events Helper.Events.GameLoop.UpdateTicked += OnUpdateTicked; Helper.Events.Display.Rendered += OnRendered; }