Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ICreatureManagerEvents

Hierarchy

Index

Methods

canSpawn

  • canSpawn(type: CreatureType, x: number, y: number, z: number, aberrant: boolean): boolean | undefined
  • Called when a creature is about to be spawned

    Parameters

    • type: CreatureType

      The type of creature

    • x: number

      The x coordinate where the creature will be spawned

    • y: number

      The y coordinate where the creature will be spawned

    • z: number

      The z coordinate where the creature will be spawned

    • aberrant: boolean

      True if the creature is an aberrant

    Returns boolean | undefined

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

remove

spawn

Generated using TypeDoc