Logo


search API (or start typing anywhere)


AssetText

snow.types.AssetText defined in snow.types.Types


typedef alias of snow.systems.assets.AssetText


 

Properties


text
text : String

Methods


destroy
destroy() : Void

loadstatic

load(_system:snow.systems.assets.Assets, _id:String) : snow.api.Promise
Create a new AssetText from an id, which returns a promise for the asset.

new

new(_system:snow.systems.assets.Assets, _id:String, _text:String) : Void

processorstatic

processor(_app:snow.Snow, _id:String, _data:snow.api.buffers.Uint8Array) : snow.api.Promise
A default text processor for the data processor API

reload

reload() : snow.api.Promise
Reloads the text from it’s stored id, returning a promise for the asset.