Skip to main content

ss_instance_slot_step

Function ss_instance_slot_step 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn ss_instance_slot_step( slot: *mut c_void, ev: ss_event_instance_info, child_ctx: *mut c_void, parent_frame: f32, delta_seconds: f32, parent_looped: bool, ) -> ss_instance_step_result
Expand description

Drive the instance slot for one tick. The caller resolves the active EventInstance (via ss_runtime_get_active_event_instance against the parent runtime context) and passes the child runtime context here so that label resolution and frame stepping happen against the right Context. Returns transitioned == true on EventInstance edges, having configured the child for the new key without starting it: the caller then calls ss_runtime_play on the child (an independent child never advances otherwise). Draw the child at child_frame_no on that tick too: the slot already put it where play snaps it, and a synced child’s value follows the parent, which reading the frame back after play would lose.