INNER CODE UNIT · Rust

add_systems_to_dispatch

TeamAtomECS/AtomECS · src/dipole/mod.rs:110

fn add_systems_to_dispatch<const N: usize>(
    builder: &mut DispatcherBuilder<'static, 'static>,
    deps: &[&str],
) {
    builder.add(
        force::ApplyDipoleForceSystem::<N>,
        "apply_dipole_force",
        &["sample_intensity_gradient"],
    );
    builder.add(
        crate::dipole::AttachIndexToDipoleLightSystem,
        "attach_dipole_index",
        deps,
    );
}

fn register_components(world: &mut World) {
    world.register::<DipoleLight>();

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…