Skip to main content

DynamicTextAssets

TextAssets which has placeholders in the text.

Hierarchy

Index

Constructors

constructor

Properties

readonlyclient

client: StarRail

readonlydynamicData

dynamicData: DynamicData

readonlyid

id: number

Methods

get

  • @throws

    Parameters

    Returns string

getAsFormattedText

  • Parameters

    Returns FormattedText

getAsNullableFormattedText

  • getAsNullableFormattedText(lang?: LanguageCode): null | FormattedText

  • Parameters

    Returns null | FormattedText

    null instead of throwing AssetsNotFoundError.

getNullable


  • Parameters

    Returns null | string

    null instead of throwing AssetsNotFoundError.

getNullableReplacedData

  • getNullableReplacedData(replaceWith?: paramList[], lang?: LanguageCode): null | { text: string; usedParamIndices: number[] }

  • Parameters

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

    null instead of throwing AssetsNotFoundError.

getNullableReplacedText

  • getNullableReplacedText(replaceWith?: paramList[], lang?: LanguageCode): null | string

  • Parameters

    Returns null | string

    null instead of throwing AssetsNotFoundError.

getReplacedData

  • getReplacedData(replaceWith?: paramList[], lang?: LanguageCode): { text: string; usedParamIndices: number[] }
  • @throws

    AssetsNotFoundError


    Parameters

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

    • text: string
    • usedParamIndices: number[]

getReplacedText

  • getReplacedText(replaceWith?: paramList[], lang?: LanguageCode): string
  • @throws

    AssetsNotFoundError


    Parameters

    Returns string

isFormatted


  • Parameters

    Returns boolean

    whether the text is formatted or not.

toString

  • toString(): string
  • Returns string