Inheritance: XmlObjectNode
コード例 #1
0
        public override bool Equals(System.Object obj)
        {
            XmlLookList l = obj as XmlLookList;
            if ((object)l == null)
            {
                return false;
            }

            return this.Equals(l);
        }
コード例 #2
0
        public override bool Equals(System.Object obj)
        {
            XmlLookList s = obj as XmlLookList;

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

            return(this.Equals(s));
        }
コード例 #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));
            }
        }
コード例 #4
0
 public bool Equals(XmlLookList l)
 {
     return this.Looks.Equals(l.Looks);
 }
コード例 #5
0
 public bool Equals(XmlLookList s)
 {
     return(this.Sounds.Equals(s.Looks));
 }
コード例 #6
0
 public XmlSprite()
 {
     Scripts = new XmlScriptList();
     Looks   = new XmlLookList();
     Sounds  = new XmlSoundList();
 }
コード例 #7
0
 public bool Equals(XmlLookList s)
 {
     return this.Sounds.Equals(s.Looks);
 }
コード例 #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));
            }
        }
コード例 #9
0
 public XmlSprite()
 {
     Scripts = new XmlScriptList();
     Looks = new XmlLookList();
     Sounds = new XmlSoundList();
 }