コード例 #1
0
        static Start()
        {
            var pawnSkillTimerCache = new PawnSkillTimerCache(25);
            var levelEventMaker     = new LevelEventMaker(pawnSkillTimerCache);

            SkillRecordLearnPatch.InitializePatch(new Harmony("Krafs.LevelUp"), levelEventMaker);
        }
コード例 #2
0
        static Start()
        {
            var pawnSkillTimerCache = new PawnSkillTimerCache(25);
            var modSettings         = LoadedModManager.GetMod <ModHandler>().GetSettings <Settings>();
            var levelEventMaker     = new LevelEventMaker(pawnSkillTimerCache, modSettings);

            SkillRecordLearnPatch.InitializePatch(new Harmony("Krafs.LevelUp"), levelEventMaker);
        }