DynamicTextAssets
Hierarchy
- TextAssets
- DynamicTextAssets
Index
Constructors
constructor
Parameters
id: number
data: Partial<DynamicData>
client: StarRail
Returns DynamicTextAssets
Properties
readonlyclient
readonlydynamicData
readonlyid
Methods
get
Parameters
optionallang: LanguageCode
Returns string
getAsFormattedText
Parameters
optionallang: LanguageCode
Returns FormattedText
getAsNullableFormattedText
Parameters
optionallang: LanguageCode
Returns null | FormattedText
null instead of throwing AssetsNotFoundError.
getNullable
Parameters
optionallang: LanguageCode
Returns null | string
null instead of throwing AssetsNotFoundError.
getNullableReplacedData
Parameters
replaceWith: paramList[] = []
optionallang: LanguageCode
Returns null | { text: string; usedParamIndices: number[] }
null instead of throwing AssetsNotFoundError.
getNullableReplacedText
Parameters
replaceWith: paramList[] = []
optionallang: LanguageCode
Returns null | string
null instead of throwing AssetsNotFoundError.
getReplacedData
Parameters
replaceWith: paramList[] = []
optionallang: LanguageCode
Returns { text: string; usedParamIndices: number[] }
text: string
usedParamIndices: number[]
getReplacedText
Parameters
replaceWith: paramList[] = []
optionallang: LanguageCode
Returns string
isFormatted
Parameters
optionallang: LanguageCode
Returns boolean
whether the text is formatted or not.
toString
Returns string
TextAssets which has placeholders in the text.