Hierarchy

Constructors

Properties

event: IEventEmitter<default, IDoodadManagerEvents>
island: default
name: "DoodadManager" = "DoodadManager"

Name of this object manager

objects: SaferArray<default>
reregisterObjectsForMemoryLeaks: boolean = false

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

cachedDoodadSpawns: Map<BiomeType, Map<WorldZ, Map<TerrainType, DoodadType[]>>> = ...

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>

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

    Returns void

  • Returns number

  • Parameters

    • id: number

    Returns undefined | default

  • Parameters

    • creature: default
    • isClientside: boolean

    Returns undefined | default

  • Parameters

    Returns undefined | default

  • Checks if a number is a DoodadType or DoodadTypeExtra.

    Returns

    true or false depending on if the number is a DoodadType or DoodadTypeExtra.

    Parameters

    • type: number

      a number (DoodadType/DoodadTypeExtra enum).

    Returns type is DoodadTypeExtra

  • Returns void

  • Note: This can be called multiple times in the same game depending on loading/unloading of islands

    Parameters

    Returns void

  • Removes a doodad from the world.

    Parameters

    • doodad: default

      The doodad to remove

    Returns boolean

  • Returns void

  • Parameters

    • entity: default
    • Optional options: undefined

    Returns void

  • Returns void

  • Parameters

    • id: number
    • value: undefined | default

    Returns void

  • Runs a full gamut of updates on doodads including decaying items inside containers, spreading/growing plants/mushrooms, water distillation/desenation and more.

    Parameters

    Returns void

  • Runs a full gamut of updates on doodads including decaying items inside containers, spreading/growing plants/mushrooms, water distillation/desenation and more.

    Parameters

    • ticks: number
    • playingHumans: default<unknown, number, NPC | Player>[]
    • playerHumanTiles: Set<default>
    • onProgress: ((progess: number) => Promise<void>)
        • (progess: number): Promise<void>
        • Parameters

          • progess: number

          Returns Promise<void>

    Returns Promise<void>

  • Returns void

  • Returns void

  • Returns void

  • Checks if a number is a DoodadType or DoodadTypeExtra.

    Returns

    true or false depending on if the number is a DoodadType or DoodadTypeExtra.

    Parameters

    • type: number

      a number (DoodadType/DoodadTypeExtra enum).

    Returns type is DoodadTypeExtra

Generated using TypeDoc