예제 #1
0
 internal void Update()
 {
     if (Config_Version < 20200422)  // Keep 0422 which has Optimise_Log_File
     {
         Config_Version = 20200503;
         ZyMod.Api("config_save", this);
     }
 }
예제 #2
0
        internal void Upgrade()
        {
            if (Config_Version >= 20201128)
            {
                return;
            }

            if (Config_Version < 20200630)
            {
                ;                           // Do nothing; Added Auto_Dump field
            }
            if (Config_Version < 20201128)
            {
                if (Dump_Defs?.Length == 23 && Dump_Defs[0] == "VehicleItemDef" && Dump_Defs[22] == "AbilityDef")
                {
                    Dump_Defs = new ModConfig().Dump_Defs; // Add EntitlementDef
                }
            }
            ZyMod.Api("config save", this); // Add Auto_Dump
        }
예제 #3
0
        }                                                 // Replaced by Auto_Unpause_Multiple on ver 20200603

        internal void Upgrade()
        {
            if (Config_Version < 20200603 && No_Auto_Unpause == false)
            {
                Auto_Unpause_Multiple = true;
            }
            if (Config_Version < 20201027)
            {
                Config_Version = 20201027;
                if (Haven_Icons?.Always_Show_Soldier == true)
                {
                    Haven_Icons.Always_Show_Action = true;
                }
                ZyMod.Api("config save", this);
            }
            if (Haven_Icons == null)
            {
                Haven_Icons = new HavenIconConfig();
            }
        }
예제 #4
0
     internal void Upgrade()
     {
         if (Config_Version < 20200604)
         {
             if (Grafts != null)
             {
                 Augments = Grafts;
             }
         }
         if (Config_Version < 20201102)
         {
             Config_Version = 20201102;
             ZyMod.Api("config save", this);
         }
         if (Skills == null)
         {
             Skills = new ListConfig {
                 Enabled = false
             }
         }
         ;
         if (Augments == null)
         {
             Augments = new ListConfig {
                 Enabled = false
             }
         }
         ;
         if (Equipments == null)
         {
             Equipments = new ListConfig {
                 Enabled = false
             }
         }
         ;
     }
 }
예제 #5
0
 public static object Api(string action, object param) => ZyMod.Api(action, param);