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); }
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; } }
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; } }
public override void defineSprite(DefineSprite tag) { tags.Add(tag); }
public override void defineSprite(DefineSprite tag) { collectSpriteActions(tag.tagList); }
public virtual void defineSprite(DefineSprite tag) { }
public DoInitAction(DefineSprite sprite):this() { this.sprite = sprite; sprite.initAction = this; }
public DoInitAction(DefineSprite sprite) : this() { this.sprite = sprite; sprite.initAction = this; }
public override void defineSprite(DefineSprite tag) { // @todo need to support actions in sprites!!! }
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; }