Interface IDoodadManagerEvents
Methods
canSpawn
- canSpawn(type: DoodadType, tile: default, options: IDoodadOptions): undefined | boolean
-
Returns undefined | boolean
create
- create(doodad: default, creator?: default<number>): any
-
Returns any
remove
- remove(doodad: default): any
-
Returns any
Called when a doodad is about to be spawned
Returns
False if the dooodad cannot spawn, or undefined to use the default logic