[−][src]Function sulis_state::animation::melee_attack_animation::new
pub fn new(
attacker: &Rc<RefCell<EntityState>>,
defender: &Rc<RefCell<EntityState>>,
duration_millis: u32,
callbacks: Vec<Box<dyn ScriptCallback>>,
attack_func: Box<dyn Fn(&Rc<RefCell<EntityState>>, &Rc<RefCell<EntityState>>) -> Vec<(HitKind, HitFlags, Vec<(DamageKind, u32)>)>>
) -> Anim