INNER CODE UNIT · Rust
build
TeamAtomECS/AtomECS · src/atom_sources/mod.rs:38
fn build(&self, builder: &mut crate::simulation::SimulationBuilder) {
add_systems_to_dispatch::<T>(&mut builder.dispatcher_builder, &[]);
register_components::<T>(&mut builder.world);
}
fn deps(&self) -> Vec::<Box<dyn Plugin>> {
Vec::new()
}
}
/// Adds the systems required by `atom_sources` to the dispatcher.
///
/// #Arguments
///
/// `builder`: the dispatch builder to modify
///
/// `deps`: any dependencies that must be completed before the atom_sources systems run.
fn add_systems_to_dispatch<T>(
builder: &mut DispatcherBuilder<'static, 'static>,