Hierarchy

Constructors

Properties

event: IEventEmitter<default, INPCManagerEvents>
island: default
name: "NPCManager" = "NPCManager"

Name of this object manager

objects: SaferArray<default>
playerLikeNpcs: default[] = []
reregisterObjectsForMemoryLeaks: true = true

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 | default>

  • Parameters

    • npc: default
    • addToIsland: boolean = true

    Returns void

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

    Returns void

  • Returns number

  • Parameters

    • id: number

    Returns undefined | default

  • Get an array of shippers that are in the process of shipping things to another island

    Returns default[]

  • Returns void

  • Called when an entity is being removed

    Returns

    Return true if this method handled tile updates

    Parameters

    Returns boolean

  • Returns void

  • Parameters

    • entity: default
    • Optional options: undefined

    Returns void

  • Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Returns void

  • Parameters

    • id: number
    • value: undefined | default

    Returns void

  • Returns void

Generated using TypeDoc