Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • World

Index

Constructors

constructor

Methods

addEntity

addSystem

entityAdded$

  • entityAdded$(componentNames: readonly symbol[]): Observable<Entity>
  • Returns the Observable for entities added with the specified components. The Observable is also emitted when a component is added to an entity causing it match the specified component names. Note: make sure to unsubscribe. If needed, use DisposeBag util

    Parameters

    • componentNames: readonly symbol[]

    Returns Observable<Entity>

entityRemoved$

  • entityRemoved$(componentNames: readonly symbol[]): Observable<Entity>
  • Returns the Observable for entities removed with the specified components. The Observable is also emitted when a component is removed from an entity causing it to no longer match the specified component names. Note: make sure to unsubscribe. If needed, use DisposeBag util

    Parameters

    • componentNames: readonly symbol[]

    Returns Observable<Entity>

getEntities

  • getEntities(componentNames: readonly symbol[]): readonly Entity[]
  • Get the entities having all the specified components.

    Parameters

    • componentNames: readonly symbol[]

    Returns readonly Entity[]

removeAllEntities

  • removeAllEntities(): World

removeAllSystems

  • removeAllSystems(): World

removeEntity

removeSystem

update

Legend

  • Constructor
  • Property
  • Method
  • Property

Generated using TypeDoc