Hierarchy

Methods

  • Parameters

    Returns any

  • Parameters

    Returns any

  • Called when an doodad is being picked up

    Returns

    False if the doodad cannot be picked up, or undefined to use the default logic

    Parameters

    Returns undefined | boolean

  • Emitted when the doodad is created.

    Parameters

    Returns any

  • Called when the entity is created in the game Also called for players that "rejoin" the game

    Returns void

  • Parameters

    • durability: number
    • oldDurability: number

    Returns any

  • Parameters

    • durability: number
    • oldDurability: number

    Returns any

  • Emitted when the fire stage of this doodad changes.
    Note: The fire stage of doodads is not saved, so when the doodad's fire stage is first checked on load, this event will be emitted.

    Parameters

    Returns any

  • Parameters

    Returns any

  • Called before moving. Can be called twice for humans

    Parameters

    • fromTile: default
    • toTile: default
    • isMoving: boolean

      True the second time it's called, right as the entity is about to actually move

    Returns undefined | boolean | void

  • Emitted when the doodad is removed.

    Returns any

  • Parameters

    Returns any

  • Called when the entity is removed from the game

    Returns void

  • Called when the entity is renamed

    Returns void

  • Parameters

    Returns any

  • Emitted when the doodad's type changes.

    Parameters

    Returns any

Generated using TypeDoc