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

setDictionaries

  • setDictionaries(dictionaries: object): void
  • Parameters

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

    Returns void

setDictionary

setDictionaryRaw

setEntry

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

    • dictionary: Dictionary.Action
    • entryIndex: ActionType
    • name: string
    • description: string

    Returns void

  • Parameters

    • dictionary: Dictionary.Creature
    • entryIndex: CreatureType
    • prefix: string
    • name: string
    • description: string

    Returns void

  • Parameters

    • dictionary: Dictionary.Corpse
    • entryIndex: CreatureType
    • prefix: string
    • name: string

    Returns void

  • Parameters

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

    Returns void

  • Parameters

    • dictionary: Dictionary.Doodad
    • entryIndex: DoodadTypeGroup
    • name: string
    • description: string

    Returns void

  • Parameters

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

    Returns void

  • Parameters

    • dictionary: Dictionary.Item
    • entryIndex: ItemType
    • prefix: string
    • name: string
    • description: string

    Returns void

  • Parameters

    • dictionary: Dictionary.Item
    • entryIndex: ItemTypeGroup
    • name: string
    • description: string

    Returns void

  • Parameters

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

    Returns void

  • Parameters

    • dictionary: Dictionary.Milestone
    • entryIndex: MilestoneType
    • name: string
    • description: string

    Returns void

  • Parameters

    • dictionary: Dictionary.OnEquip
    • entryIndex: OnEquipType
    • name: string

    Returns void

  • Parameters

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

    Returns void

  • Parameters

    • dictionary: Dictionary.Terrain
    • entryIndex: TerrainType
    • prefix: string
    • name: string

    Returns void

  • Parameters

    • dictionary: Dictionary.TileEvent
    • entryIndex: TileEventType
    • name: string
    • description: string

    Returns void

  • Parameters

    Returns void

  • Parameters

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

    Returns void

shouldPluralize

  • shouldPluralize(): boolean

shouldUseAlternateFontStyle

  • shouldUseAlternateFontStyle(): boolean

Generated using TypeDoc