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

texts TextResolver
data AbilityData

Returns

string

Description(TextResolver, SpellAsset)

Localized spell description.

public static string Description(TextResolver texts, SpellAsset asset)

Parameters

texts TextResolver
asset SpellAsset

Returns

string

Description(TextResolver, TowerAsset)

Localized tower description.

public static string Description(TextResolver texts, TowerAsset asset)

Parameters

texts TextResolver
asset TowerAsset

Returns

string

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

category string
id string
field string

Returns

string

Name(TextResolver, AbilityData)

Localized purchased ability or hero skill name.

public static string Name(TextResolver texts, AbilityData data)

Parameters

texts TextResolver
data AbilityData

Returns

string

Name(TextResolver, EntityAssetBase)

Localized unit name, with the authored name as fallback.

public static string Name(TextResolver texts, EntityAssetBase asset)

Parameters

texts TextResolver
asset EntityAssetBase

Returns

string

Name(TextResolver, SpellAsset)

Localized spell name.

public static string Name(TextResolver texts, SpellAsset asset)

Parameters

texts TextResolver
asset SpellAsset

Returns

string

Name(TextResolver, StatusEffectAsset)

Localized status-effect name.

public static string Name(TextResolver texts, StatusEffectAsset asset)

Parameters

texts TextResolver
asset StatusEffectAsset

Returns

string