Skip to main content

sync_signals_into_host

Function sync_signals_into_host 

Source
pub fn sync_signals_into_host<H: ScriptHost + Resource<Mutability = Mutable>>(
    host: ResMut<'_, H>,
    store: Res<'_, PropertyStore>,
)
Expand description

Mirror the ECS-side global lumen_core::property_store::PropertyStore cells into the host’s rich-typed local mirror at the start of every tick, walking only the keys dirtied this tick. Without this, the script’s signal reads see stale values when another system (a <for> reconciler, a two-way bind push, …) wrote to the property store between the previous tick and this one.

Strings only - boolean / numeric / colour cells stay typed in the store. Per-key overwrite policy (type-preserving parse-back) is pinned by ScriptHost::mirror_sync_str.