Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CorpseManager

Hierarchy

Implements

Index

Properties

Readonly event

event: IEventEmitter<this, ICorpseManagerEvents> = new EventEmitter<this, E>(this)

Methods

create

  • create(type: CreatureType, x: number, y: number, z: number, decay?: undefined | number, aberrant?: undefined | false | true, name?: undefined | string, qualityBonus?: undefined | number): Corpse | undefined
  • Parameters

    • type: CreatureType
    • x: number
    • y: number
    • z: number
    • Optional decay: undefined | number
    • Optional aberrant: undefined | false | true
    • Optional name: undefined | string
    • Optional qualityBonus: undefined | number

    Returns Corpse | undefined

getCorpseListTranslation

  • getCorpseListTranslation(corpses: Corpse[], article?: undefined | false | true, context?: TextContext): Translation
  • Parameters

    • corpses: Corpse[]
    • Optional article: undefined | false | true
    • Optional context: TextContext

    Returns Translation

getCorpseTranslations

  • Parameters

    • corpses: Corpse[]
    • Default value article: boolean = true
    • Optional context: TextContext

    Returns Stream<Translation>

getName

  • getName(typeOrCorpse: CreatureType | Corpse, article?: undefined | false | true, count?: undefined | number, showCount?: boolean): Translation
  • Parameters

    • typeOrCorpse: CreatureType | Corpse
    • Optional article: undefined | false | true
    • Optional count: undefined | number
    • Default value showCount: boolean = false

    Returns Translation

remove

  • remove(corpse: Corpse): void
  • Parameters

    • corpse: Corpse

    Returns void

updateAll

  • updateAll(): void
  • Returns void

Generated using TypeDoc