Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Terraria.Localization.LanguageManager Class Reference

Public Member Functions

int GetCategorySize (string name)
 
void SetLanguage (int legacyId)
 
void SetLanguage (string cultureName)
 
int EstimateWordCount ()
 
void SetLanguage (GameCulture culture)
 
void UseSources (List< IContentSource > sourcesFromLowestToHighest)
 
void LoadLanguageFromFileTextCsv (string fileText)
 
void LoadLanguageFromFileTextJson (string fileText, bool canCreateCategories)
 
LocalizedText[] FindAll (Regex regex)
 
LocalizedText[] FindAll (LanguageSearchFilter filter)
 
LocalizedText SelectRandom (LanguageSearchFilter filter, UnifiedRandom random=null)
 
LocalizedText RandomFromCategory (string categoryName, UnifiedRandom random=null)
 
LocalizedText IndexedFromCategory (string categoryName, int index)
 
bool Exists (string key)
 
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 SetFallbackCulture (GameCulture culture)
 

Static Public Attributes

static LanguageManager Instance = new LanguageManager()
 

Properties

GameCulture ActiveCulture [get, private set]
 

Events

LanguageChangeCallback OnLanguageChanging
 
LanguageChangeCallback OnLanguageChanged
 

Private Member Functions

 LanguageManager ()
 
void SetAllTextValuesToKeys ()
 
string[] GetLanguageFilesForCulture (GameCulture culture)
 
void LoadLanguage (GameCulture culture, bool processCopyCommands=true)
 
void LoadFilesForCulture (GameCulture culture)
 
void ProcessCopyCommandsInTexts ()
 
void ValidateAllCharactersContainedInFont (DynamicSpriteFont font)
 

Private Attributes

readonly Dictionary< string, LocalizedText_localizedTexts = new Dictionary<string, LocalizedText>()
 
readonly Dictionary< string, List< string > > _categoryGroupedKeys = new Dictionary<string, List<string>>()
 
GameCulture _fallbackCulture = GameCulture.DefaultCulture
 

Detailed Description

Definition at line 19 of file LanguageManager.cs.


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