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