Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Entity

Hierarchy

  • Entity

Implements

Index

Constructors

constructor

Properties

_components

_components: {} = ...

Type declaration

addComponent

addComponent: Mock<Entity, [Class: RealComponentConstructor<any>, data: any]> = ...

alive

alive: boolean = false

getComponent

getComponent: <C>(Component: RealComponentConstructor<C>, includeRemoved?: boolean) => undefined | Readonly<C> = ...

Type declaration

    • Get an immutable reference to a component on this entity.

      Type parameters

      Parameters

      • Component: RealComponentConstructor<C>

        Type of component to get

      • Optional includeRemoved: boolean

        Whether a component that is staled to be removed should be also considered

      Returns undefined | Readonly<C>

getMutableComponent

getMutableComponent: <C>(Component: RealComponentConstructor<C>, includeRemoved?: boolean) => undefined | Readonly<C> = ...

Type declaration

    • Get an immutable reference to a component on this entity.

      Type parameters

      Parameters

      • Component: RealComponentConstructor<C>

        Type of component to get

      • Optional includeRemoved: boolean

        Whether a component that is staled to be removed should be also considered

      Returns undefined | Readonly<C>

id

id: number

remove

remove: Mock<void, []> = ...

Methods

hasComponent

removeComponent

Generated using TypeDoc