상속: XmlObjectNode
 public override void LoadReference()
 {
     if(Sound == null)
         Sound = ReferenceHelper.GetReferenceObject(this, _reference) as XmlSound;
     if (string.IsNullOrEmpty(_reference))
         _reference = ReferenceHelper.GetReferenceString(this);
 }
예제 #2
0
 public override void LoadReference()
 {
     if (Sound == null)
     {
         Sound = ReferenceHelper.GetReferenceObject(this, _reference) as XmlSound;
     }
     if (string.IsNullOrEmpty(_reference))
     {
         _reference = ReferenceHelper.GetReferenceString(this);
     }
 }
        public override bool Equals(System.Object obj)
        {
            XmlSound s = obj as XmlSound;

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

            return(this.Equals(s));
        }
        private static string GetSoundReferenceString(XmlSound sound)
        {
            var sprite = XmlParserTempProjectHelper.Sprite;

            var count = 0;
            foreach (var tempSound in sprite.Sounds.Sounds)
            {
                count++;
                if ((tempSound == sound) && (count == 1))
                    return "../../../../../soundList/sound";
                else if (tempSound == sound)
                    return "../../../../../soundList/sound[" + count + "]";
            }

            return "";
        }
 public bool Equals(XmlSound s)
 {
     return(this.FileName.Equals(s.FileName) && this.Name.Equals(s.Name));
 }
예제 #6
0
 public bool Equals(XmlSound s)
 {
     return this.FileName.Equals(s.FileName) && this.Name.Equals(s.Name);
 }