Пример #1
0
        // helper - contains i/o methods for working dir
        public override void Entry(ModHelper helper)
        {
            ModConfig config = helper.ReadConfig <ModConfig>();

            chance = config.chance;

            TimeEvents.OnNewDay += this.onNewDay;
        }
Пример #2
0
        public override void Entry(ModHelper helper)
        {
            ModConfig = helper.ReadConfig <GeneralConfig>();
            GameEvents.OneSecondTick += new EventHandler(this.on_each_second);
            TimeEvents.OnNewDay      += new EventHandler <EventArgsNewDay>(this.on_new_day);

            Log.Info($"SDV_AdditionalDailyFriendship... loaded!");
        }