Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IDoodadManagerEvents

Hierarchy

  • IDoodadManagerEvents

Index

Methods

canSpawn

  • canSpawn(type: DoodadType, x: number, y: number, z: number, options: IDoodadOptions): boolean | undefined
  • Called when a doodad is about to be spawned

    Parameters

    • type: DoodadType

      The type of doodad

    • x: number

      The x coordinate where the doodad will be spawned

    • y: number

      The y coordinate where the doodad will be spawned

    • z: number

      The z coordinate where the doodad will be spawned

    • options: IDoodadOptions

      The doodad spawn options

    Returns boolean | undefined

    False if the dooodad cannot spawn, or undefined to use the default logic

create

  • Called when a doodad is created.

    Parameters

    Returns any

remove

  • Called when a doodad is removed.

    Parameters

    Returns any

Generated using TypeDoc