53 protected ref ScriptInvokerBase<ScriptInvoker_DownloadSequence>
m_OnInit;
58 protected ref ScriptInvokerBase<ScriptInvoker_DownloadSequence>
m_OnError;
59 protected ref ScriptInvokerBase<ScriptInvoker_DownloadSequence>
m_OnReady;
61 protected ref ScriptInvokerBase<ScriptInvoker_DownloadSequence>
m_OnCancel;
62 protected ref ScriptInvokerBase<ScriptInvoker_DownloadSequence>
m_OnDestroyed;
83 ScriptInvokerBase<ScriptInvoker_DownloadSequence>
GetOnError()
86 m_OnError =
new ScriptInvokerBase<ScriptInvoker_DownloadSequence>();
92 ScriptInvokerBase<ScriptInvoker_DownloadSequence>
GetOnReady()
95 m_OnReady =
new ScriptInvokerBase<ScriptInvoker_DownloadSequence>();
104 m_OnCancel =
new ScriptInvokerBase<ScriptInvoker_DownloadSequence>();
120 sequence.
Setup(dependencies, skipDetails);
161 return reportedDialog;
183 protected void Setup(notnull array<ref SCR_WorkshopItem> dependencies,
bool skipDetails)
224 if (dep.GetDetailsLoaded() || dep.GetOffline())
251 if (!restricted.IsEmpty())
275 if (dependency.GetBlocked())
284 if (dependency.GetDependency())
285 revision = dependency.GetDependency().GetRevision();
288 revision = dependency.GetLatestRevision();
292 revision = dependency.GetWorkshopItem().GetPendingDownload();
309 if (!dependency.GetOffline())
321 revision.ComputePatchSize(callback);
328 array<ref SCR_WorkshopItem> missingItems = {};
332 if (!dependency.GetWorkshopItem())
333 missingItems.Insert(dependency);
380 callback.GetItem().GetDependency().GetRevision().GetPatchSize(
size);
381 callback.GetItem().SetTargetRevisionPatchSize(
size);
void SCR_BackendCallbackWorkshopItem(SCR_WorkshopItem item)
func ScriptInvoker_DownloadSequence
func ScriptInvoker_DownloadSequenceDependencies
Shows a list of addons and some text.
static SCR_AddonListDialog CreateRestrictedAddonsDownload(array< ref SCR_WorkshopItem > items)
Dialog when downloading restricted addons.
static array< ref SCR_WorkshopItem > SelectItemsBasic(array< ref SCR_WorkshopItem > items, EWorkshopItemQuery query)
SCR_WorkshopItemActionDownload DownloadingActionAddonById(string id, bool runningOnly=true)
Return true if there is addon with given id in download queue.
static SCR_DownloadManager GetInstance()
ScriptInvokerBase< ScriptInvoker_DownloadSequence > GetOnReady()
ScriptInvokerBase< ScriptInvoker_DownloadSequenceDependencies > GetOnDependenciesLoadingPrevented()
void OnDependencyDetailsLoaded(notnull SCR_WorkshopItem item)
Call when dependency details are successfully loaded.
void SetDependencySize(SCR_WorkshopItem item, float size)
void OnDependencyPatchSizeLoadError(SCR_BackendCallbackWorkshopItem callback)
Call on error response to dependency patch size.
void CheckAllPatchSizeLoaded()
ref ScriptInvokerBase< ScriptInvoker_DownloadSequence > m_OnDependenciesLoaded
bool m_bAllDependencyDetailsLoaded
int m_iDependencyDetailsLoadedCount
ref array< ref SCR_WorkshopItem > m_aDependencies
void Setup(notnull array< ref SCR_WorkshopItem > dependencies, bool skipDetails)
Setup new created download sequence.
ref ScriptInvokerBase< ScriptInvoker_DownloadSequence > m_OnInit
void OnItemTimeout(SCR_WorkshopItem item)
ref array< ref SCR_BackendCallbackWorkshopItem > m_aPatchSizeCallbacks
ref array< ref SCR_WorkshopItem > m_aDependenciesIssues
array< ref SCR_WorkshopItem > MissingWorkshopItems()
ref ScriptInvokerBase< ScriptInvoker_DownloadSequence > m_OnDestroyed
ScriptInvokerBase< ScriptInvoker_DownloadSequence > GetOnCancel()
void AllPatchSizeLoaded()
ScriptInvokerBase< ScriptInvoker_DownloadSequenceDependencies > GetOnRestrictedDependency()
ref ScriptInvokerBase< ScriptInvoker_DownloadSequence > m_OnDetailsLoaded
ref ScriptInvokerBase< ScriptInvoker_DownloadSequenceDependencies > m_OnDependenciesLoadingPrevented
static SCR_DownloadSequence Create(array< ref SCR_WorkshopItem > dependencies, SCR_DownloadSequence previous, bool skipDetails=false)
ref ScriptInvokerBase< ScriptInvoker_DownloadSequence > m_OnReady
bool m_bSubscribeToAddons
void LoadDependenciesDetails()
bool GetRestrictedAddons()
ref ScriptInvokerBase< ScriptInvoker_DownloadSequence > m_OnError
void OnAllReportsCanceled(SCR_ReportedAddonsDialog dialog)
Call when all reports from dialog are cancled to clear invoker actions and display download dialog.
void OnItemError(SCR_WorkshopItem item)
void ~SCR_DownloadSequence()
void Cancel()
Cancels this download request.
ScriptInvokerBase< ScriptInvoker_DownloadSequence > GetOnError()
void OnAllDependenciesDetailsLoaded()
Called when finally all the details of all dependencies are loaded.
void OnDependencyPatchSizeLoadResponse(SCR_BackendCallbackWorkshopItem callback)
Call on any response to dependency patch size.
bool HasAllDetails()
Returns true if all details were loaded successfully.
ref ScriptInvokerBase< ScriptInvoker_DownloadSequenceDependencies > m_OnRestrictedDependencies
ref ScriptInvokerBase< ScriptInvoker_DownloadSequence > m_OnCancel
SCR_ReportedAddonsDialog ShowRestrictedDependenciesDialog()
Show list of reported mods and provide option to cancel reports.
ScriptInvoker GetOnAllReportsCanceled()
void SetTargetRevisionPatchSize(float size)