TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ Update()

static void Terraria.ModLoader.LocalizationLoader.Update ( )
inlinestaticpackage

Definition at line 890 of file LocalizationLoader.cs.

891 {
892 if (watcherCooldown <= 0)
893 {
894 return;
895 }
897 if (watcherCooldown != 0)
898 {
899 return;
900 }
902 {
903 Utils.LogAndChatAndConsoleInfoMessage(Language.GetTextValue("tModLoader.WatchLocalizationFileMessage", string.Join(", ", pendingFiles.Select(((string Mod, string fileName) x) => Path.Join(x.Mod, x.fileName)))));
904 }
906 {
907 changedMods.UnionWith(pendingFiles.Select(((string Mod, string fileName) x) => x.Mod));
908 changedFiles.UnionWith(pendingFiles);
909 pendingFiles.Clear();
910 }
911 LanguageManager.Instance.ReloadLanguage();
912 }
static string GetTextValue(string key)
Retrieves the text value for a specified localization key. The text returned will be for the currentl...
Definition Language.cs:35
Contains methods to access or retrieve localization values. The Localization Guideteaches more about ...
Definition Language.cs:12
static readonly HashSet< string > changedMods
static readonly HashSet<(string Mod, string fileName)> changedFiles
static readonly HashSet<(string Mod, string fileName)> pendingFiles

References Terraria.ModLoader.LocalizationLoader.changedFiles, Terraria.ModLoader.LocalizationLoader.changedMods, Terraria.Localization.Language.GetTextValue(), Terraria.Localization.LanguageManager.Instance, Terraria.Utils.LogAndChatAndConsoleInfoMessage(), Terraria.ModLoader.LocalizationLoader.pendingFiles, and Terraria.ModLoader.LocalizationLoader.watcherCooldown.

Referenced by Terraria.Main.DoUpdate().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: