class flixel.system.layer.TileSheetData implements IFlxDestroyable

Available on all platforms

Object of this class holds information about single Tilesheet

Instance Fields

function new(Bitmap:BitmapData):Void

function addSpriteSheetFrame(rect:Rectangle, point:Point):FlxFrame

Adds new FlxFrame to this TileSheetData object

function containsFrame(key:String):Bool

function containsSpriteSheetFrames(width:Int, height:Int, startX:Int, startY:Int, endX:Int, endY:Int, xSpacing:Int, ySpacing:Int, pointX:Float, pointY:Float):Bool

function destroy():Void

function getFrame(name:String):FlxFrame

function getKeyForSpriteSheetFrames(width:Int, height:Int, startX:Int, startY:Int, endX:Int, endY:Int, xSpacing:Int, ySpacing:Int, pointX:Float, pointY:Float):String

function getSpriteSheetFrameKey(rect:Rectangle, point:Point):String

Hashing Functionality - TODO: use numbers as keys! * * http://stackoverflow.com/questions/892618/create-a-hashcode-of-two-numbers * http://stackoverflow.com/questions/299304/why-does-javas-hashcode-in-string-use-31-as-a-multiplier

function getSpriteSheetFrames(region:Region, ?origin:Point = null):FlxSpriteFrames

function getTexturePackerFrames(data:TexturePackerData, ?startX:Int = 0, ?startY:Int = 0):FlxSpriteFrames

Parses provided TexturePackerData object and returns generated FlxSpriteFrames object