INNER CODE UNIT · Rust

build

TeamAtomECS/AtomECS · src/laser/mod.rs:63

    fn build(&self, builder: &mut crate::simulation::SimulationBuilder) {
        register_components(&mut builder.world);
        add_systems_to_dispatch::<N>(&mut builder.dispatcher_builder, &[]);
    }

    fn deps(&self) -> Vec::<Box<dyn Plugin>> {
        Vec::new()
    }
}

/// 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>(

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…