Skip to main content

mirror_property_store_globals_to_signals

Function mirror_property_store_globals_to_signals 

Source
pub fn mirror_property_store_globals_to_signals(
    store: Option<Res<'_, PropertyStore>>,
    signals: Option<ResMut<'_, Signals>>,
)
Expand description

Per-tick mirror that copies the latest PropertyStore global string cells back into the legacy Signals map. Runs in crate::tick::TickStage::Systems after drain_external_properties so any write that landed on PropertyStore directly (typed setters, ECS-side writes, FFI typed pushes) is visible to readers that still consult Res<Signals>.

Only PropertyValue::Str cells are mirrored - boolean / numeric / colour cells stay typed in PropertyStore; legacy Signals::get would have returned the stringified repr anyway and direct callers should migrate to PropertyStore for the typed value.

No-op when either resource is absent.