mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
b3e4ca0a5d
Change animation history to animation Add attack input event Implement killing with ecs systems for damage and death Sync attack properly Sync deaths Former-commit-id: 72b5be7d65d9d3fcbef50d4836a6f06ec218d69e
28 lines
870 B
Rust
28 lines
870 B
Rust
pub mod action;
|
|
pub mod agent;
|
|
pub mod control;
|
|
pub mod phys;
|
|
mod stats;
|
|
|
|
// External
|
|
use specs::DispatcherBuilder;
|
|
|
|
// System names
|
|
const AGENT_SYS: &str = "agent_sys";
|
|
const CONTROL_SYS: &str = "control_sys";
|
|
const PHYS_SYS: &str = "phys_sys";
|
|
const ANIM_SYS: &str = "anim_sys";
|
|
const MOVEMENT_SYS: &str = "movement_sys";
|
|
const ACTION_SYS: &str = "action_sys";
|
|
const STATS_SYS: &str = "stats_sys";
|
|
|
|
pub fn add_local_systems(dispatch_builder: &mut DispatcherBuilder) {
|
|
dispatch_builder.add(agent::Sys, AGENT_SYS, &[]);
|
|
dispatch_builder.add(phys::Sys, PHYS_SYS, &[]);
|
|
dispatch_builder.add(control::Sys, CONTROL_SYS, &[PHYS_SYS]);
|
|
dispatch_builder.add(anim::Sys, ANIM_SYS, &[]);
|
|
dispatch_builder.add(agent::Sys, AGENT_SYS, &[]);
|
|
dispatch_builder.add(action::Sys, ACTION_SYS, &[]);
|
|
dispatch_builder.add(stats::Sys, STATS_SYS, &[ACTION_SYS]);
|
|
}
|