Class AComponent<K, VALUES, GET, SET>Abstract

Type Parameters

  • K extends string
  • VALUES
  • GET
  • SET

Hierarchy (view full)

Implements

Constructors

Properties

dense: UIntArray
id: K
n: number
owner?: IID<string>
size: number
sparse: UIntArray
stride: number
vals: VALUES

Methods

  • Broadcasts all registered listeners for given event type (in order registration) and returns true if any of them have been successfully notified.

    Parameters

    Returns boolean

    Remarks

    If a listener canceled the event (by setting Event.canceled), the function will stop notifying other listeners and return false. If no listeners are registered for the event, the function will also return false.

  • Swaps slots of src & dest indices. The given args are NOT entity IDs, but indices in the dense array. The corresponding sparse & value slots are swapped too. Returns true if swap happened (false, if src and dest are equal)

    Parameters

    • src: number
    • dest: number

    Returns boolean

Generated using TypeDoc