예제 #1
0
        public override bool Equals(System.Object object_Renamed)
        {
            bool isEqual = false;

            if (base.Equals(object_Renamed) && (object_Renamed is DefineSprite))
            {
                DefineSprite defineSprite = (DefineSprite)object_Renamed;

                if ((defineSprite.framecount == this.framecount) && equals(defineSprite.tagList, this.tagList) && equals(defineSprite.scalingGrid, this.scalingGrid) && equals(defineSprite.initAction, this.initAction))
                {
                    isEqual = true;
                }
            }

            return(isEqual);
        }
예제 #2
0
		public DefineSprite(DefineSprite source):this()
		{
			this.name = source.name;
			SupportClass.ICollectionSupport.AddAll(this.tagList.tags, source.tagList.tags);
			this.initAction = source.initAction;
			this.framecount = source.framecount;
			this.header = source.header;
			if (source.scalingGrid != null)
			{
				scalingGrid = new DefineScalingGrid();
				scalingGrid.scalingTarget = this;
				scalingGrid.rect.xMin = source.scalingGrid.rect.xMin;
				scalingGrid.rect.xMax = source.scalingGrid.rect.xMax;
				scalingGrid.rect.yMin = source.scalingGrid.rect.yMin;
				scalingGrid.rect.yMax = source.scalingGrid.rect.yMax;
			}
		}
예제 #3
0
 public DefineSprite(DefineSprite source) : this()
 {
     this.name = source.name;
     SupportClass.ICollectionSupport.AddAll(this.tagList.tags, source.tagList.tags);
     this.initAction = source.initAction;
     this.framecount = source.framecount;
     this.header     = source.header;
     if (source.scalingGrid != null)
     {
         scalingGrid = new DefineScalingGrid();
         scalingGrid.scalingTarget = this;
         scalingGrid.rect.xMin     = source.scalingGrid.rect.xMin;
         scalingGrid.rect.xMax     = source.scalingGrid.rect.xMax;
         scalingGrid.rect.yMin     = source.scalingGrid.rect.yMin;
         scalingGrid.rect.yMax     = source.scalingGrid.rect.yMax;
     }
 }
예제 #4
0
		public override void  defineSprite(DefineSprite tag)
		{
			tags.Add(tag);
		}
		public override void  defineSprite(DefineSprite tag)
		{
			collectSpriteActions(tag.tagList);
		}
예제 #6
0
		public virtual void  defineSprite(DefineSprite tag)
		{
		}
		public DoInitAction(DefineSprite sprite):this()
		{
			this.sprite = sprite;
			sprite.initAction = this;
		}
예제 #8
0
 public DoInitAction(DefineSprite sprite) : this()
 {
     this.sprite       = sprite;
     sprite.initAction = this;
 }
예제 #9
0
        public override void defineSprite(DefineSprite tag)
		{
			// @todo need to support actions in sprites!!! 
		}
예제 #10
0
		private Tag decodeDefineSprite(int endpos)
		{
			DefineSprite t = new DefineSprite();
			t.header = header;
			int id = r.readUI16();
			t.framecount = r.readUI16();
			decodeTags(t.tagList);
			while (r.Offset < endpos)
			{
				// extra data at end of sprite.  must be zero
				int b = r.readUI8();
				if (b != 0)
				{
					throw new SwfFormatException("nonzero data past end of sprite");
				}
			}
			dict.add(id, t);
			return t;
		}