Class default<T, IRemoveOptions>Abstract

Type Parameters

  • T extends default

  • IRemoveOptions = undefined

Hierarchy

Implements

Constructors

Properties

event: IEventEmitter<default<T, IRemoveOptions>, IEntityManagerEvents<T>>
island: default
name: string

Name of this object manager

objects: SaferArray<T>
reregisterObjectsForMemoryLeaks: boolean = false

Indicates if objects should be re-registered to the memory leak detector after loading

Accessors

  • get game(): Game
  • Returns Game

  • get length(): number
  • Returns number

  • set length(val: number): void
  • This is likely only used during save upgrades

    Parameters

    • val: number

    Returns void

Methods

  • Returns IteratorObject<undefined | T>

  • Called when this object manager is not used anymore (after it was saved!)

    Returns void

  • Returns number

  • Parameters

    • id: number

    Returns undefined | T

  • Returns SaferArray<T>

  • Returns void

  • Parameters

    • entity: T

    Returns void

  • Called when an entity is being removed

    Returns

    Return true if this method handled tile updates

    Parameters

    • entity: T

      Entity to remove

    • Optional options: IRemoveOptions

    Returns boolean

  • Parameters

    • entity: T
    • Optional options: IRemoveOptions

    Returns void

  • Returns void

  • Parameters

    • id: number
    • value: undefined | T

    Returns void

Generated using TypeDoc