pub struct Event { /* private fields */ }Expand description
EVNT — Animation event (v0–v2, 104–108 bytes)
Named event triggered at a specific bone with an optional type code and parameter string. Used for sound cues, spawn effects, etc.
Implementations§
Source§impl Event
impl Event
pub fn set_name(&mut self, value: &str)
pub fn set_unknown(&mut self, value: u32)
Sourcepub fn bone_index(&self) -> u16
pub fn bone_index(&self) -> u16
Index into BONE array
pub fn set_bone_index(&mut self, value: u16)
pub fn set_padding(&mut self, value: u16)
Sourcepub fn event_type(&self) -> u32
pub fn event_type(&self) -> u32
Engine-specific event type code
pub fn set_event_type(&mut self, value: u32)
Sourcepub fn option_string(&self) -> String
pub fn option_string(&self) -> String
Optional parameter string (Ref<CHAR>)
pub fn set_option_string(&mut self, value: &str)
Sourcepub fn rtt_channel_index(&self) -> u32
pub fn rtt_channel_index(&self) -> u32
RTT channel index
pub fn set_rtt_channel_index(&mut self, value: u32)
Sourcepub fn extra_parameter(&self) -> u32
pub fn extra_parameter(&self) -> u32
Extra parameter (v2+)
pub fn set_extra_parameter(&mut self, value: u32)
Trait Implementations§
impl Send for Event
Auto Trait Implementations§
impl !Sync for Event
impl Freeze for Event
impl RefUnwindSafe for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more