Skip to main content

SkillAttributeAssets

Hierarchy

Index

Constructors

constructor

Properties

convertToHtmlFormat

convertToHtmlFormat: boolean

readonlydirectory

directory: null | string

readonlydynamicData

dynamicData: DynamicData

readonlyenka

readonlyid

id: number

Methods

copyWithUserInfo


  • Parameters

    Returns DynamicTextAssets

    new instance of DynamicTextAssets with provided userInfo.

get

  • @throws

    Parameters

    Returns string

getAttributeData

getNullable


  • Parameters

    Returns null | string

    null instead of throwing AssetsNotFoundError.

getNullableAttributeData

getNullableReplacedData

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

  • Parameters

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

    null instead of throwing AssetsNotFoundError.

getNullableReplacedText


  • Parameters

    Returns null | string

    null instead of throwing AssetsNotFoundError.

getReplacedData

  • getReplacedData(replaceWith?: (paramList | userInfo | userInfo.travelerGender | userInfo.travelerNickname | userInfo.platform)[], lang?: LanguageCode): { 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: LanguageCode

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

    • text: string
    • usedParamIndices: number[]

getReplacedText

  • @throws

    AssetsNotFoundError


    Parameters

    Returns string

setConvertToHtmlFormat

  • setConvertToHtmlFormat(convertToHtmlFormat: boolean): this
  • Parameters

    • convertToHtmlFormat: boolean

    Returns this

toString

  • toString(): string
  • Returns string