Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Group<SPEC, K>

Type parameters

Hierarchy

  • Group

Implements

  • IID<string>

Index

Constructors

constructor

Properties

cache

cache: ICache<GroupTuple<SPEC, K>>

components

components: IComponent<K, any, any, any>[]

Readonly id

id: string

ids

ids: Set<number>

info

info: GroupInfo<SPEC, K>

n

n: number

owned

owned: IComponent<K, any, any, any>[]

Methods

Protected addExisting

  • addExisting(): void

Protected addID

  • addID(id: number, validate?: boolean): void

Protected addRemoveListeners

  • addRemoveListeners(add: boolean): void

Protected ensureFullyOwning

  • ensureFullyOwning(): void

forEach

  • forEach(fn: FnO2<GroupTuple<SPEC, K>, number, void>, ...xs: any[]): void

forEachRaw

  • forEachRaw(fn: FnO3<GroupInfo<SPEC, K>, number, number, void>, ...xs: any[]): void

getEntity

  • getEntity(id: number): undefined | GroupTuple<SPEC, K>

getEntityUnsafe

getIndex

  • getIndex(i: number): undefined | GroupTuple<SPEC, K>

has

  • has(id: number): boolean

isFullyOwning

  • isFullyOwning(): boolean

isValidID

  • isValidID(id: number): boolean

Protected nonOwnedValues

  • nonOwnedValues(): Generator<GroupTuple<SPEC, K>, void, unknown>

Protected onAddListener

  • onAddListener(e: Event): void

Protected onChangeListener

  • onChangeListener(e: Event): void

Protected onDeleteListener

  • onDeleteListener(e: Event): void

Protected ownedValues

  • ownedValues(): Generator<GroupTuple<SPEC, K>, void, unknown>

release

  • release(): void

Protected removeID

  • removeID(id: number, validate?: boolean): void

Protected reorderOwned

  • reorderOwned(id: number, n: number): void

run

  • run(fn: FnO2<GroupInfo<SPEC, K>, number, void>, ...xs: any[]): void

values

  • values(): Generator<GroupTuple<SPEC, K>, void, unknown>

Generated using TypeDoc