mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
40 lines
1.3 KiB
Rust
40 lines
1.3 KiB
Rust
#![feature(label_break_value, bool_to_option, option_unwrap_none, array_map)]
|
|
#![allow(clippy::option_map_unit_fn)]
|
|
|
|
mod aura;
|
|
mod beam;
|
|
mod buff;
|
|
pub mod character_behavior;
|
|
pub mod controller;
|
|
mod interpolation;
|
|
pub mod melee;
|
|
mod mount;
|
|
pub mod phys;
|
|
#[cfg(feature = "plugins")] pub mod plugin;
|
|
mod projectile;
|
|
mod shockwave;
|
|
pub mod state;
|
|
mod stats;
|
|
|
|
// External
|
|
use common_ecs::{dispatch, System};
|
|
use specs::DispatcherBuilder;
|
|
|
|
pub fn add_local_systems(dispatch_builder: &mut DispatcherBuilder) {
|
|
dispatch::<mount::Sys>(dispatch_builder, &[]);
|
|
dispatch::<controller::Sys>(dispatch_builder, &[&mount::Sys::sys_name()]);
|
|
dispatch::<character_behavior::Sys>(dispatch_builder, &[&controller::Sys::sys_name()]);
|
|
dispatch::<stats::Sys>(dispatch_builder, &[]);
|
|
dispatch::<buff::Sys>(dispatch_builder, &[]);
|
|
dispatch::<phys::Sys>(dispatch_builder, &[
|
|
&controller::Sys::sys_name(),
|
|
&mount::Sys::sys_name(),
|
|
&stats::Sys::sys_name(),
|
|
]);
|
|
dispatch::<projectile::Sys>(dispatch_builder, &[&phys::Sys::sys_name()]);
|
|
dispatch::<shockwave::Sys>(dispatch_builder, &[&phys::Sys::sys_name()]);
|
|
dispatch::<beam::Sys>(dispatch_builder, &[&phys::Sys::sys_name()]);
|
|
dispatch::<melee::Sys>(dispatch_builder, &[&projectile::Sys::sys_name()]);
|
|
dispatch::<aura::Sys>(dispatch_builder, &[]);
|
|
}
|