Packages
recs
interfaces
Componentwithstream

@latticexyz/recs / ComponentWithStream

Interface: ComponentWithStream

Type of component returned by defineComponent.

Type parameters

NameType
Sextends Schema
Tundefined

Hierarchy

Table of contents

Properties

Properties

entities

entities: () => IterableIterator<EntityIndex>

Type declaration

▸ (): IterableIterator<EntityIndex>

Returns

IterableIterator<EntityIndex>

Inherited from

Component.entities

Defined in

types.ts:82 (opens in a new tab)


id

id: string

Inherited from

Component.id

Defined in

types.ts:78 (opens in a new tab)


metadata

metadata: Metadata

Inherited from

Component.metadata

Defined in

types.ts:81 (opens in a new tab)


schema

schema: S

Inherited from

Component.schema

Defined in

types.ts:80 (opens in a new tab)


stream$

stream$: Subject<{ entity: EntityIndex ; value: undefined | ComponentValue

Defined in

types.ts:100 (opens in a new tab)


update$

update$: Subject<ComponentUpdate & { observers: any }

Inherited from

Component.update$

Defined in

types.ts:85 (opens in a new tab)


values

values: { [key in string | number | symbol]: Map<EntityIndex, ValueType<T>[S[key]]> }

Inherited from

Component.values

Defined in

types.ts:79 (opens in a new tab)


world

world: World

Inherited from

Component.world

Defined in

types.ts:83 (opens in a new tab)