Interface to convert basic type T to field type U and vice versa.

Methods

basicToField(instance:Entity, field:String, assets:Assets, basic:T, done:U ‑> Void):Void

Get field value from basic type. As this may require loading assets, A usable Assets instance must be provided and the result will only be provided asynchronously by calling done callback.

fieldToBasic(instance:Entity, field:String, value:U):T

Get a basic type from the field value.