示例#1
0
        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);
            }
        }
示例#2
0
 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();
 }
示例#3
0
 static Assets()
 {
     Original = XmlLoader.LoadXml(Program.PathRoot + @"\Original\assets.xml");
 }