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

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

            return(this.Equals(l));
        }
 public override void LoadReference()
 {
     if (Look == null)
     {
         Look = ReferenceHelper.GetReferenceObject(this, _reference) as XmlLook;
     }
     if (string.IsNullOrEmpty(_reference))
     {
         _reference = ReferenceHelper.GetReferenceString(this);
     }
 }
        private static string GetLookReferenceString(XmlLook look)
        {
            var sprite = XmlParserTempProjectHelper.Sprite;

            var count = 0;
            foreach (var tempLook in sprite.Looks.Looks)
            {
                count++;
                if ((tempLook == look) && (count == 1))
                    return "../../../../../lookList/look";
                else if (tempLook == look)
                    return "../../../../../lookList/look[" + count + "]";
            }

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