Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IDoodadEvents

Hierarchy

  • IDoodadEvents

Index

Methods

canPickup

  • canPickup(human: Human): boolean | undefined
  • Called when an doodad is being picked up

    Parameters

    • human: Human

      The human object

    Returns boolean | undefined

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

create

  • create(creator?: Human): any
  • Emitted when the doodad is created.

    Parameters

    • Optional creator: Human

    Returns any

fireUpdate

  • 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

remove

  • remove(): any
  • Emitted when the doodad is removed.

    Returns any

transformed

  • transformed(newType: DoodadType, oldType: DoodadType): any
  • Emitted when the doodad's type changes.

    Parameters

    • newType: DoodadType
    • oldType: DoodadType

    Returns any

Generated using TypeDoc