TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches
Terraria.ModLoader.ILocalizedModTypeExtensions Class Reference
+ Collaboration diagram for Terraria.ModLoader.ILocalizedModTypeExtensions:

Static Public Member Functions

static string GetLocalizationKey (this ILocalizedModType self, string suffix)
 Gets a suitable localization key belonging to this piece of content.

Localization keys follow the pattern of "Mods.{ModName}.{Category}.{ContentName}.{DataName}", in this case the suffix corresponds to the DataName.
 
static LocalizedText GetLocalization (this ILocalizedModType self, string suffix, Func< string > makeDefaultValue=null)
 Returns a T:Terraria.Localization.LocalizedText for this piece of content with the provided suffix .
If no existing localization exists for the key, it will be defined so it can be exported to a matching mod localization file.
 
static string GetLocalizedValue (this ILocalizedModType self, string suffix)
 Retrieves the text value for a localization key belonging to this piece of content with the given suffix . The text returned will be for the currently selected language.
 

Detailed Description

Definition at line 6 of file ILocalizedModTypeExtensions.cs.


The documentation for this class was generated from the following file: