DynamicTextAssets
Hierarchy
- TextAssets
- DynamicTextAssets
Index
Constructors
constructor
Parameters
id: number
data: Partial<DynamicData>
enka: EnkaClient
convertToHtmlFormat: boolean = false
optionaldirectory: string
Returns DynamicTextAssets
Properties
convertToHtmlFormat
readonlydirectory
readonlydynamicData
readonlyenka
readonlyid
Methods
copyWithUserInfo
Parameters
userInfo: UserInfo
Returns DynamicTextAssets
new instance of DynamicTextAssets with provided
userInfo
.
get
Parameters
optionallang: LanguageCode
Returns string
getNullable
Parameters
optionallang: LanguageCode
Returns null | string
null instead of throwing AssetsNotFoundError.
getNullableReplacedData
Parameters
replaceWith: keyof DynamicData[] = []
optionallang: LanguageCode
Returns null | { text: string; usedParamIndices: number[] }
null instead of throwing AssetsNotFoundError.
getNullableReplacedText
Parameters
replaceWith: keyof DynamicData[] = []
optionallang: LanguageCode
Returns null | string
null instead of throwing AssetsNotFoundError.
getReplacedData
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
Parameters
replaceWith: keyof DynamicData[] = []
optionallang: LanguageCode
Returns string
setConvertToHtmlFormat
Parameters
convertToHtmlFormat: boolean
Returns DynamicTextAssets
toString
Returns string