pub enum SsEvent {
UserData(UserDataEvent),
Signal(SignalEvent),
Audio(AudioEvent),
}Expand description
Something that happened on a frame the last update crossed.
Variants§
Implementations§
Source§impl SsEvent
impl SsEvent
Sourcepub fn part_index(&self) -> u32
pub fn part_index(&self) -> u32
Which part raised it.
Sourcepub fn frame_no(&self) -> u32
pub fn frame_no(&self) -> u32
The frame the key is authored on — not necessarily the frame it was noticed on, since one update can step across several.
Sourcepub fn part_name(&self) -> &str
pub fn part_name(&self) -> &str
The raising part’s name as authored, or empty when the pack has none.
Sourcepub fn source(&self) -> u32
pub fn source(&self) -> u32
The source on the character’s track stack that fired it, as the handle
SSPlayer::track_main_source and SSPlayer::add_track_source use.
By default only track 0’s main source fires, so this is that one; it
tells events apart once another source has opted in with
SSPlayer::set_source_event_threshold.
Trait Implementations§
impl StructuralPartialEq for SsEvent
Auto Trait Implementations§
impl Freeze for SsEvent
impl RefUnwindSafe for SsEvent
impl Send for SsEvent
impl Sync for SsEvent
impl Unpin for SsEvent
impl UnsafeUnpin for SsEvent
impl UnwindSafe for SsEvent
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