tModLoader  0.12 Alpha
A mod to make and play Terraria mods
Terraria.Localization.LanguageManager Class Reference

Public Member Functions

bool Exists (string key)
 
LocalizedText[] FindAll (LanguageSearchFilter filter)
 
LocalizedText[] FindAll (Regex regex)
 
int GetCategorySize (string name)
 
LocalizedText GetText (string key)
 
string GetTextValue (string key)
 
string GetTextValue (string key, object arg0)
 
string GetTextValue (string key, object arg0, object arg1)
 
string GetTextValue (string key, object arg0, object arg1, object arg2)
 
string GetTextValue (string key, params object[] args)
 
void LoadLanguageFromFileTextCsv (string fileText)
 
void LoadLanguageFromFileTextJson (string fileText, bool canCreateCategories)
 
LocalizedText RandomFromCategory (string categoryName, UnifiedRandom random=null)
 
LocalizedText SelectRandom (LanguageSearchFilter filter, UnifiedRandom random=null)
 
void SetFallbackCulture (GameCulture culture)
 
void SetLanguage (GameCulture culture)
 
void SetLanguage (int legacyId)
 
void SetLanguage (string cultureName)
 
void UseSources (List< IContentSource > sourcesFromLowestToHighest)
 

Static Public Attributes

static LanguageManager Instance = new LanguageManager()
 

Properties

GameCulture ActiveCulture [get]
 

Events

LanguageChangeCallback OnLanguageChanged
 
LanguageChangeCallback OnLanguageChanging