public SPRITE_FRAME[] BuildUVAnim(SpriteRoot s) { if (this.totalCells < 1) { return(null); } return(base.BuildUVAnim(s.PixelCoordToUVCoord(this.start), s.PixelSpaceToUVSpace(this.pixelsToNextColumnAndRow), this.cols, this.rows, this.totalCells)); }
/// <summary> /// Uses the information stored in this class to build /// a UV animation for the specified sprite. /// </summary> /// <param name="s">The sprite for which the animation will be built.</param> /// <returns>An array of ANIM_FRAMEs that define the animation.</returns> public SPRITE_FRAME[] BuildUVAnim(SpriteRoot s) { if (totalCells < 1) return null; return this.BuildUVAnim(s.PixelCoordToUVCoord(start), s.PixelSpaceToUVSpace(pixelsToNextColumnAndRow), cols, rows, totalCells); }