class flixel.util.FlxDestroyUtil
Available on all platforms
Class Fields
static function destroy<T>(object:Null<IFlxDestroyable>):T
Checks if an object is not null before calling destroy(), always returns null. * *
object | An IFlxDestroyable object that will be destroyed if it's not null. * |
returns | null |
static function destroyArray<T>(array:Array<T>):Array<T>
Completely destroys an Array of destroyable objects: * 1) Clears the array structure * 2) Calls FlxDestroyUtil.destroy() on every element * *
array | An Array of IFlxDestroyable objects * |
returns | null |
static function dispose(Bitmap:BitmapData):BitmapData
Checks if a BitmapData object is not null before calling dispose() on it, always returns null. * *
Bitmap | A BitampData to be disposed if not null * |
returns | null |
static function put<T>(object:IFlxPooled):T
Checks if an object is not null before putting it back into the pool, always returns null. * *
object | An IFlxPooled object that will be put back into the pool if it's not null * |
returns | null |