BiomePainter.Settings.Read C# (CSharp) Méthode

Read() private static méthode

private static Read ( ) : void
Résultat void
        private static void Read()
        {
            if (File.Exists(path))
            {
                XmlDocument doc = new XmlDocument();
                doc.Load(path);

                XmlNodeList worlds = doc.GetElementsByTagName("world");
                for (int i = 0; i < MAXWORLDS && i < worlds.Count; i++)
                {
                    recentWorlds.Add(new RecentWorld { Path = worlds[i].Attributes["path"].Value, Name = worlds[i].Attributes["name"].Value });
                }

                redrawTerrainMap = bool.Parse(doc.SelectSingleNode("/settings/redraw/@value").InnerText);
                transparency = bool.Parse(doc.SelectSingleNode("/settings/transparency/@value").InnerText);
                biomeFoliage = bool.Parse(doc.SelectSingleNode("/settings/biomeFoliage/@value").InnerText);
            }
            read = true;
        }