veloren/voxygen/src/ecs/sys.rs
2020-02-01 21:39:39 +01:00

16 lines
447 B
Rust

pub mod floater;
mod interpolation;
use specs::DispatcherBuilder;
// System names
const FLOATER_SYS: &str = "floater_voxygen_sys";
const INTERPOLATION_SYS: &str = "interpolation_voxygen_sys";
pub fn add_local_systems(dispatch_builder: &mut DispatcherBuilder) {
dispatch_builder.add(interpolation::Sys, INTERPOLATION_SYS, &[
common::sys::PHYS_SYS,
]);
dispatch_builder.add(floater::Sys, FLOATER_SYS, &[INTERPOLATION_SYS]);
}