Inheritance: XmlObjectNode
コード例 #1
0
 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);
     }
 }
コード例 #3
0
        public override bool Equals(System.Object obj)
        {
            XmlSound s = obj as XmlSound;

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

            return(this.Equals(s));
        }
コード例 #4
0
        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 "";
        }
コード例 #5
0
 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);
 }