Esempio n. 1
0
        public void LoadDefaultSpecials()
        {
            XDocument xDoc = XDocument.Parse(Resource.special_definitions);
            XElement  root = xDoc.Element("specials");

            SpecialPalette = new PaletteInfo();
            SpecialPalette.LoadFromElement(root.Element("palette"));
            SpecialPalette.IsSpecial = true;
        }
Esempio n. 2
0
 public bool LoadFromElement(XElement e)
 {
     Palettes.Clear();
     paletteLookup.Clear();
     foreach (var p in e.Elements("palette"))
     {
         PaletteInfo pi = new PaletteInfo();
         pi.LoadFromElement(p);
         Palettes.Add(pi);
         paletteLookup.Add(pi.Guid, pi);
     }
     return(true);
 }
Esempio n. 3
0
        public void LoadDefaultSpecials()
        {
            XDocument xDoc = XDocument.Parse(Resource.special_definitions);
            XElement root = xDoc.Element("specials");

            SpecialPalette = new PaletteInfo();
            SpecialPalette.LoadFromElement(root.Element("palette"));
            SpecialPalette.IsSpecial = true;
        }
Esempio n. 4
0
 public bool LoadFromElement(XElement e)
 {
     Palettes.Clear();
     paletteLookup.Clear();
     foreach (var p in e.Elements("palette"))
     {
         PaletteInfo pi = new PaletteInfo();
         pi.LoadFromElement(p);
         Palettes.Add(pi);
         paletteLookup.Add(pi.Guid, pi);
     }
     return true;
 }