Attach the lazy getEntity / getEntitiesByType / getProperties /
getQuantities accessors to an assembled store, in place, and return it.
These accessors lazily read entity/property/quantity data from the store's
source buffer (via the on-demand maps + byte index) rather than from
pre-materialised tables, so every store-construction path must attach them.
There are three such paths — the fresh columnar parse, the worker→main
transport reconstruction, and the on-disk cache restore — and this helper is
the single home for the wiring so they can never drift apart. (A cache
restore that skipped this shipped a store missing getEntity, which crashed
the Properties panel via EntityNode.allAttributes.)
Requires source, entityIndex, and the on-demand maps to already be
populated on store.
Attach the lazy
getEntity/getEntitiesByType/getProperties/getQuantitiesaccessors to an assembled store, in place, and return it.These accessors lazily read entity/property/quantity data from the store's
sourcebuffer (via the on-demand maps + byte index) rather than from pre-materialised tables, so every store-construction path must attach them. There are three such paths — the fresh columnar parse, the worker→main transport reconstruction, and the on-disk cache restore — and this helper is the single home for the wiring so they can never drift apart. (A cache restore that skipped this shipped a store missinggetEntity, which crashed the Properties panel viaEntityNode.allAttributes.)Requires
source,entityIndex, and the on-demand maps to already be populated onstore.