wowlab_engine_domain/dbc/semantics/spell_interrupt_flags.rs
1bitflags::bitflags! {
2 /// DBC `SpellInterrupts.InterruptFlags` controlling cast interruption and pushback.
3 #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)]
4 pub struct SpellInterruptFlags: u32 {
5 const MOVEMENT = 1 << 0;
6 const DAMAGE_PUSHBACK_PLAYER_ONLY = 1 << 1;
7 const DAMAGE_PUSHBACK = 1 << 9;
8 }
9}
10
11impl SpellInterruptFlags {
12 #[must_use]
13 pub const fn from_dbc(raw: u32) -> Self {
14 Self::from_bits_retain(raw)
15 }
16}