Пример #1
0
        public override void PostLoad()
        {
            if (modID == null || !ModUtil.IsActive(ModID))
            {
                Log.Error($"modID '{modID.ToStringSafe()}' isn't valid, {defName} won't be registered!");
                return;
            }

            ScribeCompatUtility.RegisterBackCompatibilityDef(this);
        }
Пример #2
0
        public override void PostLoadSavegame(string loadingVersion)
        {
            if (compatibilityDefs != null)
            {
                Log.Message($"Back compatibility conversion finished!");

                compatibilityDefs.ForEach(d => ScribeCompatUtility.InstalledCompatability(d));

                compatibilityDefs = null;
                alreadyPostprocessed.Clear();
                pawnBackstoryToRefresh.Clear();
            }
        }
Пример #3
0
        public override void PreLoadSavegame(string loadingVersion)
        {
            compatibilityDefs = ScribeCompatUtility.GetCompatibilityDefsToExecute();

            if (compatibilityDefs.Count != 0)
            {
                Log.Message("Running back compatibility converter with listed compatibility defs:");
                compatibilityDefs.ForEach(t => Log.Message(t.defName));
            }
            else
            {
                compatibilityDefs = null;
            }
        }