/// <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)
        {
            instance  = this;
            Dice      = new MersenneTwister();
            OurConfig = helper.ReadConfig <CartConfig>();

            helper.Events.GameLoop.DayStarted += OnDayStarted;
            helper.Events.Player.Warped       += OnWarped;
        }
Exemple #2
0
 public override void Entry(IModHelper helper)
 {
     OurConfig = helper.ReadConfig <CartConfig>();
     TimeEvents.AfterDayStarted += SetCartSpawn;
 }