apply_effector_system

Function apply_effector_system 

Source
pub fn apply_effector_system<K, E>(
    effector_defs: &EffectorDefinitions<K, E>,
    effectors: &Components<EffectorSet<E>>,
    time: &Time,
    stats: &mut Components<StatSet<K>>,
) -> Result<(), EcsError>
where K: Hash + Eq, E: Hash + Eq,
Expand description

Modifies the stats of entities depending on the effectors applied through them (using the EffectorSet component.)