azalea::attack

Function handle_attack_event

Source
pub fn handle_attack_event(
    events: EventReader<'_, '_, AttackEvent>,
    query: Query<'_, '_, (&LocalGameMode, &mut TicksSinceLastAttack, &mut Physics, &mut Sprinting, &mut ShiftKeyDown)>,
    send_packet_events: EventWriter<'_, SendPacketEvent>,
    swing_arm_event: EventWriter<'_, SwingArmEvent>,
)