Skip to content

InterestProviderPrepareView

Defined in: net/replication/interest.ts:49

What a provider is given to build one snapshot from.

entities is an iterable, not an array: a provider that scans the population may, but installing one must not itself cost an O(population) materialization.

readonly optional entered?: readonly number[]

Defined in: net/replication/interest.ts:61

Which entities entered replication since the last prepare, and which left. A provider that keeps state between samples maintains it from these rather than walking entities; absent (an older host, or a first prepare it was not given), it has to seed from entities instead.


readonly entities: Iterable<number>

Defined in: net/replication/interest.ts:51


readonly entityCount: number

Defined in: net/replication/interest.ts:52


readonly optional left?: readonly number[]

Defined in: net/replication/interest.ts:62


readonly optional rechecked?: readonly number[]

Defined in: net/replication/interest.ts:70

Entities whose replicated components changed SHAPE this sample. A provider caching a per-entity fact re-reads these: an entity that lost the component the fact came from is not something that component’s value feed reports.


readonly world: World

Defined in: net/replication/interest.ts:50