Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Language

Hierarchy

  • Language

Implements

Index

Constructors

constructor

  • new Language(name: string, alternateFontStyle?: boolean, shouldPluralize?: boolean): Language
  • Parameters

    • name: string
    • Default value alternateFontStyle: boolean = false
    • Default value shouldPluralize: boolean = false

    Returns Language

Methods

addPluralRule

  • addPluralRule(from: string, to: string): void
  • Parameters

    • from: string
    • to: string

    Returns void

getDictionary

getName

  • getName(): string
  • Returns string

onPrefix

  • onPrefix(prefix: string): string
  • Parameters

    • prefix: string

    Returns string

pluralize

  • pluralize(str: string): string
  • Parameters

    • str: string

    Returns string

removeDictionary

setDictionaries

  • setDictionaries(dictionaries: object): void
  • Parameters

    • dictionaries: object
      • [key: number]: object
        • [key: number]: any

    Returns void

setDictionary

setDictionaryRaw

setEntry

  • setEntry(dictionary: Action, entryIndex: ActionType, name: string, description: string): void
  • setEntry(dictionary: Creature, entryIndex: CreatureType, prefix: string, name: string, description: string): void
  • setEntry(dictionary: Corpse, entryIndex: CreatureType, prefix: string, name: string): void
  • setEntry(dictionary: Doodad, entryIndex: DoodadType, prefix: string, name: string, description: string): void
  • setEntry(dictionary: Doodad, entryIndex: DoodadTypeGroup, name: string, description: string): void
  • setEntry(dictionary: Growth, entryIndex: GrowingStage, prefix: string, name: string): void
  • setEntry(dictionary: Hint, entryIndex: HintType, name: string, description: string): void
  • setEntry(dictionary: Item, entryIndex: ItemType, prefix: string, name: string, description: string, plural: string): void
  • setEntry(dictionary: Item, entryIndex: ItemTypeGroup, name: string, description: string): void
  • setEntry(dictionary: Message, entryIndex: Message, prefix: string, name: string, description: string): void
  • setEntry(dictionary: Milestone, entryIndex: MilestoneType, name: string, description: string): void
  • setEntry(dictionary: OnEquip, entryIndex: OnEquipType, name: string): void
  • setEntry(dictionary: Skill, entryIndex: SkillType, name: string, description: string): void
  • setEntry(dictionary: Terrain, entryIndex: TerrainType, prefix: string, name: string): void
  • setEntry(dictionary: TileEvent, entryIndex: TileEventType, name: string, description: string): void
  • setEntry(dictionary: InterruptChoice, entryIndex: UiTranslation, name: string): void
  • setEntry(dictionary: Book, entryIndex: BookType, name: string, description: string): void
  • setEntry(dictionary: BindPress, entryName: string, name: string): void
  • setEntry(dictionary: Dictionary, entryIndex: number, ...entry: string[]): void
  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    • dictionary: Doodad
    • entryIndex: DoodadType
    • prefix: string
    • name: string
    • description: string

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    • dictionary: Hint
    • entryIndex: HintType
    • name: string
    • description: string

    Returns void

  • Parameters

    • dictionary: Item
    • entryIndex: ItemType
    • prefix: string
    • name: string
    • description: string
    • plural: string

    Returns void

  • Parameters

    Returns void

  • Parameters

    • dictionary: Message
    • entryIndex: Message
    • prefix: string
    • name: string
    • description: string

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    • dictionary: Skill
    • entryIndex: SkillType
    • name: string
    • description: string

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    • dictionary: Book
    • entryIndex: BookType
    • name: string
    • description: string

    Returns void

  • Parameters

    • dictionary: BindPress
    • entryName: string
    • name: string

    Returns void

  • Parameters

    • dictionary: Dictionary
    • entryIndex: number
    • Rest ...entry: string[]

    Returns void

shouldPluralize

  • shouldPluralize(): boolean

shouldUseAlternateFontStyle

  • shouldUseAlternateFontStyle(): boolean

Generated using TypeDoc