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: chs | cht | de | en | es | fr | id | jp | kr | pt | ru | th | vi
Returns string
getAsFormattedText
Parameters
optionallang: chs | cht | de | en | es | fr | id | jp | kr | pt | ru | th | vi
Returns FormattedText
getAsNullableFormattedText
Parameters
optionallang: chs | cht | de | en | es | fr | id | jp | kr | pt | ru | th | vi
Returns null | FormattedText
null instead of throwing AssetsNotFoundError.
getNullable
Parameters
optionallang: chs | cht | de | en | es | fr | id | jp | kr | pt | ru | th | vi
Returns null | string
null instead of throwing AssetsNotFoundError.
getNullableReplacedData
Parameters
replaceWith: paramList[] = []
optionallang: chs | cht | de | en | es | fr | id | jp | kr | pt | ru | th | vi
Returns null | { text: string; usedParamIndices: number[] }
null instead of throwing AssetsNotFoundError.
getNullableReplacedText
Parameters
replaceWith: paramList[] = []
optionallang: chs | cht | de | en | es | fr | id | jp | kr | pt | ru | th | vi
Returns null | string
null instead of throwing AssetsNotFoundError.
getReplacedData
Parameters
replaceWith: paramList[] = []
optionallang: chs | cht | de | en | es | fr | id | jp | kr | pt | ru | th | vi
Returns { text: string; usedParamIndices: number[] }
text: string
usedParamIndices: number[]
getReplacedText
Parameters
replaceWith: paramList[] = []
optionallang: chs | cht | de | en | es | fr | id | jp | kr | pt | ru | th | vi
Returns string
isFormatted
Parameters
optionallang: chs | cht | de | en | es | fr | id | jp | kr | pt | ru | th | vi
Returns boolean
whether the text is formatted or not.
toString
Returns string
TextAssets which has placeholders in the text.