Inheritance: XmlObjectNode
        public override bool Equals(System.Object obj)
        {
            XmlScriptList s = obj as XmlScriptList;

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

            return(this.Equals(s));
        }
 public bool Equals(XmlScriptList s)
 {
     return(this.Scripts.Equals(s.Scripts));
 }
Example #3
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));
            }
        }
 public bool Equals(XmlScriptList s)
 {
     return this.Scripts.Equals(s.Scripts);
 }
Example #5
0
 public XmlSprite()
 {
     Scripts = new XmlScriptList();
     Looks = new XmlLookList();
     Sounds = new XmlSoundList();
 }