Skip to main content

DynamicTextAssets

Hierarchy

Index

Constructors

constructor

Properties

convertToHtmlFormat

convertToHtmlFormat: boolean

readonlydirectory

directory: null | string

readonlydynamicData

dynamicData: DynamicData

readonlyenka

readonlyid

id: number

Methods

copyWithUserInfo

get

  • get(lang?: id | chs | cht | de | en | es | fr | jp | kr | pt | ru | th | vi): string
  • @throws

    Parameters

    • optionallang: id | chs | cht | de | en | es | fr | jp | kr | pt | ru | th | vi

    Returns string

getNullable

  • getNullable(lang?: id | chs | cht | de | en | es | fr | jp | kr | pt | ru | th | vi): null | string

  • Parameters

    • optionallang: id | chs | cht | de | en | es | fr | jp | kr | pt | ru | th | vi

    Returns null | string

    null instead of throwing AssetsNotFoundError.

getNullableReplacedData

  • getNullableReplacedData(replaceWith?: keyof DynamicData[], lang?: id | chs | cht | de | en | es | fr | jp | kr | pt | ru | th | vi): null | { text: string; usedParamIndices: number[] }

  • Parameters

    • replaceWith: keyof DynamicData[] = []
    • optionallang: id | chs | cht | de | en | es | fr | jp | kr | pt | ru | th | vi

    Returns null | { text: string; usedParamIndices: number[] }

    null instead of throwing AssetsNotFoundError.

getNullableReplacedText

  • getNullableReplacedText(replaceWith?: keyof DynamicData[], lang?: id | chs | cht | de | en | es | fr | jp | kr | pt | ru | th | vi): null | string

  • Parameters

    • replaceWith: keyof DynamicData[] = []
    • optionallang: id | chs | cht | de | en | es | fr | jp | kr | pt | ru | th | vi

    Returns null | string

    null instead of throwing AssetsNotFoundError.

getReplacedData

  • getReplacedData(replaceWith?: (paramList | userInfo | userInfo.travelerGender | userInfo.travelerNickname | userInfo.platform)[], lang?: id | chs | cht | de | en | es | fr | jp | kr | pt | ru | th | vi): { text: string; usedParamIndices: number[] }
  • @throws

    AssetsNotFoundError


    Parameters

    • replaceWith: (paramList | userInfo | userInfo.travelerGender | userInfo.travelerNickname | userInfo.platform)[] = []

      an empty array is the same as an array containing all paths

    • optionallang: id | chs | cht | de | en | es | fr | jp | kr | pt | ru | th | vi

    Returns { text: string; usedParamIndices: number[] }

    • text: string
    • usedParamIndices: number[]

getReplacedText

  • getReplacedText(replaceWith?: keyof DynamicData[], lang?: id | chs | cht | de | en | es | fr | jp | kr | pt | ru | th | vi): string
  • @throws

    AssetsNotFoundError


    Parameters

    • replaceWith: keyof DynamicData[] = []
    • optionallang: id | chs | cht | de | en | es | fr | jp | kr | pt | ru | th | vi

    Returns string

setConvertToHtmlFormat

  • setConvertToHtmlFormat(convertToHtmlFormat: boolean): this
  • Parameters

    • convertToHtmlFormat: boolean

    Returns this

toString

  • toString(): string
  • Returns string