Struct amethyst::ecs::common::Merge [−]
pub struct Merge<F> { /* fields omitted */ }A system which merges Ready futures into the persistent storage.
Please note that your World has to contain a component storage
for F and F::Item.
In case of an error, it will be added to the Errors resource.
Methods
impl<F> Merge<F>
impl<F> Merge<F>Trait Implementations
impl<F> Default for Merge<F>
impl<F> Default for Merge<F>impl<'a, T, F> System<'a> for Merge<F> where
F: Future<Item = T, Error = BoxedErr> + Component + Send + Sync,
T: Component + Send + Sync + 'static,
impl<'a, T, F> System<'a> for Merge<F> where
F: Future<Item = T, Error = BoxedErr> + Component + Send + Sync,
T: Component + Send + Sync + 'static, type SystemData = (Read<'a, EntitiesRes, DefaultProvider>, Read<'a, Errors, DefaultProvider>, Storage<'a, F, FetchMut<'a, MaskedStorage<F>>>, Storage<'a, T, FetchMut<'a, MaskedStorage<T>>>)
The resource bundle required to execute this system. Read more
fn run(&mut self, <Merge<F> as System<'a>>::SystemData)
fn run(&mut self, <Merge<F> as System<'a>>::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.