Class MemMappedComponent<K>

Type Parameters

  • K extends string

Hierarchy (view full)

  • AComponent<K, TypedArray, TypedArray, ArrayLike<number>>
    • MemMappedComponent

Constructors

Properties

cache?: ICache<TypedArray>
default?: ComponentDefaultValue<ArrayLike<number>>
dense: UIntArray
id: K
n: number
owner?: IID<string>
size: number
sparse: UIntArray
stride: number
type: Type
vals: TypedArray

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.

  • Returns Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array

  • 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