Struct amethyst_assets::Processor [−][src]
pub struct Processor<A> { /* fields omitted */ }A default implementation for an asset processing system
which converts data to assets and maintains the asset storage
for A.
This system can only be used if the asset data implements
Into<Result<A, BoxedErr>>.
Methods
impl<A> Processor<A>[src]
impl<A> Processor<A>Trait Implementations
impl<'a, A> System<'a> for Processor<A> where
A: Asset,
A::Data: Into<Result<A>>, [src]
impl<'a, A> System<'a> for Processor<A> where
A: Asset,
A::Data: Into<Result<A>>, type SystemData = (Write<'a, AssetStorage<A>>, ReadExpect<'a, Arc<ThreadPool>>, Read<'a, Time>, Option<Read<'a, HotReloadStrategy>>)
The resource bundle required to execute this system. Read more
fn run(&mut self, (storage, pool, time, strategy): Self::SystemData)[src]
fn run(&mut self, (storage, pool, time, strategy): Self::SystemData)Executes the system with the required system data. Read more
fn running_time(&self) -> RunningTime
fn running_time(&self) -> RunningTimeReturns a hint how long the system needs for running. This is used to optimize the way they're executed (might allow more parallelization). Read more
fn accessor(&'b self) -> AccessorCow<'a, 'b, Self>
fn accessor(&'b self) -> AccessorCow<'a, 'b, Self>Return the accessor from the [SystemData].
fn setup(&mut self, res: &mut Resources)
fn setup(&mut self, res: &mut Resources)Sets up the Resources using Self::SystemData::setup.