private static void LoadDefaultValues() { Program.ConsoleWriteHeadline("Load Standart Values"); var xml = XmlLoader.LoadXml(Program.PathRoot + @"\Original\properties.xml"); foreach (var item in xml.Descendants("DefaultValues").SelectMany(dv => dv.Elements())) { DefaultValues.Add(item.Name.LocalName, item); } }
public static void Init(string version = "Release") { Version = version; Console.WriteLine("Load Asset.xml"); Original = XmlLoader.LoadXml(Program.PathRoot + @"\Original\assets.xml"); SolveXmlInheritance(); LoadDescriptions(); LoadCustomDescriptions(); SetTextDictionarys(); SetIcons(); SetTourismStati(); SetBuffs(); }
static Assets() { Original = XmlLoader.LoadXml(Program.PathRoot + @"\Original\assets.xml"); }