search API (or start typing anywhere)
Asset
snow.systems.assets.Asset
defined in ``
An asset base class. Get assets from the app.assets
class
Members
id
id : String
The id of this asset, i.e
assets/image.png
loaded
loaded : Bool
True if this asset has completely loaded.
system
system : snow.systems.assets.Assets
The asset system
type
type : Int
A convenience type id when dealing with the base class. This is an Int because it can be any number for custom types, by default uses AssetType for the base types.
Methods
destroy
destroy() : Void
Implemented by subclasses to clean up their data and references. new
new(_system:snow.systems.assets.Assets, _id:String, _type:Int) : Void
Called from subclasses, by
app.assets