Inheritance: XmlObjectNode
        public override bool Equals(System.Object obj)
        {
            XmlLookList l = obj as XmlLookList;
            if ((object)l == null)
            {
                return false;
            }

            return this.Equals(l);
        }
        public override bool Equals(System.Object obj)
        {
            XmlLookList s = obj as XmlLookList;

            if ((object)s == null)
            {
                return(false);
            }

            return(this.Equals(s));
        }
        internal override void LoadFromXml(XElement xRoot)
        {
            XmlParserTempProjectHelper.Sprite = this;

            if (xRoot.Element(XmlConstants.XmlLookListType) != null)
            {
                Looks = new XmlLookList(xRoot.Element(XmlConstants.XmlLookListType));
            }

            Name = xRoot.Attribute(XmlConstants.Name).Value;

            if (xRoot.Element(XmlConstants.XmlSoundList) != null)
            {
                Sounds = new XmlSoundList(xRoot.Element(XmlConstants.XmlSoundList));
            }
            if (xRoot.Element(XmlConstants.ScriptList) != null)
            {
                Scripts = new XmlScriptList(xRoot.Element(XmlConstants.ScriptList));
            }
        }
 public bool Equals(XmlLookList l)
 {
     return this.Looks.Equals(l.Looks);
 }
 public bool Equals(XmlLookList s)
 {
     return(this.Sounds.Equals(s.Looks));
 }
 public XmlSprite()
 {
     Scripts = new XmlScriptList();
     Looks   = new XmlLookList();
     Sounds  = new XmlSoundList();
 }
 public bool Equals(XmlLookList s)
 {
     return this.Sounds.Equals(s.Looks);
 }
Esempio n. 8
0
        internal override void LoadFromXml(XElement xRoot)
        {
            XmlParserTempProjectHelper.Sprite = this;

            if (xRoot.Element(XmlConstants.XmlLookListType) != null)
            {
                 Looks = new XmlLookList(xRoot.Element(XmlConstants.XmlLookListType));
            }

            Name = xRoot.Attribute(XmlConstants.Name).Value;

            if (xRoot.Element(XmlConstants.XmlSoundList) != null)
            {
                Sounds = new XmlSoundList(xRoot.Element(XmlConstants.XmlSoundList));
            }
            if (xRoot.Element(XmlConstants.ScriptList) != null)
            {
                Scripts = new XmlScriptList(xRoot.Element(XmlConstants.ScriptList));
            }
        }
Esempio n. 9
0
 public XmlSprite()
 {
     Scripts = new XmlScriptList();
     Looks = new XmlLookList();
     Sounds = new XmlSoundList();
 }