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); } } }
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; }
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); } } }