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

◆ DownloadItem()

void Terraria.Social.Steam.WorkshopBrowserModule.DownloadItem ( ModDownloadItem item,
IDownloadProgress uiProgress )
inline

Implements Terraria.Social.Base.SocialBrowserModule.

Definition at line 102 of file WorkshopBrowserModule.cs.

103 {
104 //IL_0025: Unknown result type (might be due to invalid IL or missing references)
105 //IL_0056: Unknown result type (might be due to invalid IL or missing references)
106 item.UpdateInstallState();
107 PublishedFileId_t publishId = default(PublishedFileId_t);
108 ((PublishedFileId_t)(ref publishId))._002Ector(ulong.Parse(item.PublishId.m_ModPubId));
109 bool forceUpdate = item.NeedUpdate || !SteamedWraps.IsWorkshopItemInstalled(publishId);
110 uiProgress?.DownloadStarted(item.DisplayName);
111 Utils.LogAndConsoleInfoMessage(Language.GetTextValue("tModLoader.BeginDownload", item.DisplayName));
112 SteamedWraps.Download(publishId, uiProgress, forceUpdate);
114 }
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

References Terraria.ModLoader.UI.ModBrowser.ModDownloadItem.DisplayName, Terraria.Social.Steam.SteamedWraps.Download(), Terraria.Social.Steam.WorkshopBrowserModule.EnsureInstallationComplete(), Terraria.Localization.Language.GetTextValue(), Terraria.Social.Steam.SteamedWraps.IsWorkshopItemInstalled(), Terraria.Utils.LogAndConsoleInfoMessage(), Terraria.ModLoader.UI.ModBrowser.ModDownloadItem.PublishId, and Terraria.ModLoader.UI.ModBrowser.ModDownloadItem.UpdateInstallState().

+ Here is the call graph for this function: