Example #1
0
        public static void LoadListFromINI(FileFormats.Text.INI iniFile)
        {
            All.Clear();

            if (iniFile.SectionExists("Tiberiums")) {
                foreach (var entry in iniFile.Sections["Tiberiums"].Entries) {
                    var ident = entry.Value.Value;
                    All.FindOrAllocate(ident);
                }
            }
        }
Example #2
0
 public virtual bool ReadFromINI(FileFormats.Text.INI iniFile)
 {
     if (iniFile.SectionExists(ID)) {
         iniFile.GetString(ID, "Name", ref Name);
         if (iniFile.GetString(ID, "UIName", ref UINameLabel)) {
             UIName = FileFormats.Binary.CSF.StringTable.GetValue(UINameLabel);
         }
         return true;
     }
     return false;
 }
Example #3
0
        public static void LoadListFromINI(FileFormats.Text.INI iniFile)
        {
            var All = CCFactory<OverlayTypeClass, OverlayClass>.Get();
            All.FactoryItems.Clear();

            if (iniFile.SectionExists("OverlayTypes")) {
                foreach (var entry in iniFile.Sections["OverlayTypes"].Entries) {
                    var ident = entry.Value.Value;
                    All.FindOrAllocate(ident);
                }
            }
        }