[][src]Trait amethyst_assets::ProcessableAsset

pub trait ProcessableAsset: Asset + Sized {
    fn process(data: Self::Data) -> Result<ProcessingState<Self>, Error>;
}

Defines a way to process asset's data into the asset. This allows using default Processor system to process assets that implement that type.

Required methods

fn process(data: Self::Data) -> Result<ProcessingState<Self>, Error>

Processes asset data into asset during loading.

Loading content...

Implementors

impl<T: Asset<Data = T>> ProcessableAsset for T[src]

Loading content...