#[repr(C)]pub struct ss_effect_event_info {
pub event_frame: i32,
pub start_time: i32,
pub speed: f32,
pub independent: bool,
pub is_synthetic_default: bool,
}Expand description
Resolved per-slot Effect event state, returned by
ss_runtime_get_active_effect_event.
The runtime forward-scans the parent’s EventsPerFrame and reports the
most recent EventEffect whose frame_index <= current parent frame
for slot_index. When no event is active, the runtime falls back to the
part’s InitialEvents.effect (if present); if neither exists, returns
SS6 default semantics: is_synthetic_default = true, start_time = 0,
speed = 1.0, independent = false.
Fields§
§event_frame: i32Parent frame_index this EventEffect was emitted at; 0 for synthetic default
or InitialEvents.effect fallback.
start_time: i32§speed: f32§independent: bool§is_synthetic_default: booltrue = no real EventEffect matched (either InitialEvents.effect fallback
or full SS6 default), false = real EventEffect matched.
Implementations§
Source§impl ss_effect_event_info
impl ss_effect_event_info
pub const fn synthetic_default() -> Self
Trait Implementations§
Source§impl Clone for ss_effect_event_info
impl Clone for ss_effect_event_info
impl Copy for ss_effect_event_info
Source§impl Debug for ss_effect_event_info
impl Debug for ss_effect_event_info
Source§impl Default for ss_effect_event_info
impl Default for ss_effect_event_info
Source§impl From<WebEffectEventInfo> for ss_effect_event_info
impl From<WebEffectEventInfo> for ss_effect_event_info
Source§fn from(v: WebEffectEventInfo) -> Self
fn from(v: WebEffectEventInfo) -> Self
Converts to this type from the input type.
Source§impl From<ss_effect_event_info> for WebEffectEventInfo
impl From<ss_effect_event_info> for WebEffectEventInfo
Source§fn from(v: ss_effect_event_info) -> Self
fn from(v: ss_effect_event_info) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ss_effect_event_info
impl RefUnwindSafe for ss_effect_event_info
impl Send for ss_effect_event_info
impl Sync for ss_effect_event_info
impl Unpin for ss_effect_event_info
impl UnsafeUnpin for ss_effect_event_info
impl UnwindSafe for ss_effect_event_info
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