Skip to main content

tick_script

Function tick_script 

Source
pub fn tick_script<H: ScriptHost + Resource<Mutability = Mutable>>(
    host: ResMut<'_, H>,
    events: MessageWriter<'_, ScriptCommandEvent>,
)
Expand description

Per-tick driver that drains the host’s command sink and forwards every ScriptCommand onto the ScriptCommandEvent message bus. On the first tick this also flushes the commands re-stashed by on_start (see ScriptPlugin::build).

pub so the embedder (lumenc) can order its command applier .after(tick_script::<H>) - required post dirty-gating so a signal write produced here lands in PropertyStore and is observed by the pull-binding readers within the same tick, before clear_property_store_dirty empties the dirty queue in A11ySync.