Class ContentTexts
- Namespace
- TDMaker.Unity.Localization
- Assembly
- TDMaker.Unity.dll
Presentation-only translations keyed by stable content IDs. Missing translations use the authored text; template IDs, baked definitions, saves and replay hashes are independent of the selected language.
public static class ContentTexts
- Inheritance
-
ContentTexts
- Inherited Members
Methods
Description(TextResolver, AbilityData)
Localized purchased ability or hero skill description.
public static string Description(TextResolver texts, AbilityData data)
Parameters
textsTextResolverdataAbilityData
Returns
Description(TextResolver, SpellAsset)
Localized spell description.
public static string Description(TextResolver texts, SpellAsset asset)
Parameters
textsTextResolverassetSpellAsset
Returns
Description(TextResolver, TowerAsset)
Localized tower description.
public static string Description(TextResolver texts, TowerAsset asset)
Parameters
textsTextResolverassetTowerAsset
Returns
Key(string, string, string)
String-table key: content.category.id.field (unit, spell, effect or ability; name or description).
public static string Key(string category, string id, string field)
Parameters
Returns
Name(TextResolver, AbilityData)
Localized purchased ability or hero skill name.
public static string Name(TextResolver texts, AbilityData data)
Parameters
textsTextResolverdataAbilityData
Returns
Name(TextResolver, EntityAssetBase)
Localized unit name, with the authored name as fallback.
public static string Name(TextResolver texts, EntityAssetBase asset)
Parameters
textsTextResolverassetEntityAssetBase
Returns
Name(TextResolver, SpellAsset)
Localized spell name.
public static string Name(TextResolver texts, SpellAsset asset)
Parameters
textsTextResolverassetSpellAsset
Returns
Name(TextResolver, StatusEffectAsset)
Localized status-effect name.
public static string Name(TextResolver texts, StatusEffectAsset asset)
Parameters
textsTextResolverassetStatusEffectAsset