Hierarchy

Constructors

Properties

island: default
objects: SaferArray<default>
cachedDoodadSpawns: Map<BiomeType, Map<WorldZ, Map<TerrainType, DoodadType[]>>> = ...

Accessors

  • get game(): Game
  • Returns Game

  • get length(): number
  • Returns number

Methods

  • 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

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

    Returns void

  • Removes a doodad from the world.

    Parameters

    • doodad: default

      The doodad to remove

    • removeItems: boolean = false

      Whether to remove items.

      Note: This method will remove any items in them whether the removeItems parameter is provided or not. If the parameter is not provided, the assumption is that it will only be called on empty doodads. Therefore, if there are items, it will log a warning.

    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

    • ticks: number
    • playingHumans: default<number>[]
    • playerHumanTiles: Set<default>
    • updatesPerTick: number = 1

    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<number>[]
    • playerHumanTiles: Set<default>
    • updatesPerTick: number = 1
    • 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