Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_WorkshopItemActionDownload Class Reference
Inheritance diagram for SCR_WorkshopItemActionDownload:
SCR_WorkshopItemAction

Protected Member Functions

ScriptInvokerBase< ScriptInvoker_ActionDownloadProgressGetOnDownloadProgress ()
ScriptInvokerBase< ScriptInvoker_ActionDownloadFullStorageGetOnFullStorageError ()
void SCR_WorkshopItemActionDownload (SCR_WorkshopItem wrapper, bool latestVersion, Revision revision=null)
Revision GetTargetRevision ()
Revision GetStartRevision ()
 Returns the version which was at the moment when the download was started.
bool GetTargetedAtLatestVersion ()
bool GetUpdate ()
 Returns true when this is an update, false when regular download.
float GetProgress ()
 Returns current download progress if active or paused, 1 if complete, otherwise 0.
float GetProcessingProgress ()
float GetSizeBytes ()
 Returns download size. Might return 0 until the actiion is activated.
override bool OnActivate ()
override bool OnReactivate ()
override bool OnCancel ()
bool GetRunningAsync ()
bool IsRunningAsyncSolved ()
bool IsPauseAsyncSolved ()
override bool OnPause ()
void OnPauseResponse (BackendCallback callback)
void OnPauseError (BackendCallback callback)
override bool OnResume ()
override void OnComplete ()
bool StartDownloadOrLoadDetails ()
override void Internal_Update (float timeSlice)
void Callback_OnError (BackendCallback callback)
void FullStorageFail ()
SCR_WorkshopItemActionDownload RetryDownload ()
 Try redownload failed addon.
void ForceFail ()
float GetDownloadSize ()
bool IsProcessing ()

Protected Attributes

ref Revision m_StartVersion
ref Revision m_TargetRevision
bool m_bTargetVersionLatest
ref BackendCallback m_Callback
float m_fSizeBytes
bool m_bWaitingForRevisions
bool m_bDownloadStarted
float m_fProgress
float m_fProcessingProgress
float m_fDownloadedSize
bool m_bAddonEnabledAtStart
ref BackendCallback m_PauseDownloadCallback = new BackendCallback()
bool m_bRunningImmediate
bool m_bRunningAsync
ref ScriptInvokerBase< ScriptInvoker_ActionDownloadProgressm_OnDownloadProgress
ref ScriptInvokerBase< ScriptInvoker_ActionDownloadFullStoragem_OnFullStorageError

Detailed Description

Definition at line 9 of file SCR_WorkshopItemActionDownload.c.

Constructor & Destructor Documentation

◆ SCR_WorkshopItemActionDownload()

void SCR_WorkshopItemActionDownload::SCR_WorkshopItemActionDownload ( SCR_WorkshopItem wrapper,
bool latestVersion,
Revision revision = null )
inlineprotected

Definition at line 60 of file SCR_WorkshopItemActionDownload.c.

Member Function Documentation

◆ Callback_OnError()

void SCR_WorkshopItemActionDownload::Callback_OnError ( BackendCallback callback)
inlineprotected

Definition at line 359 of file SCR_WorkshopItemActionDownload.c.

◆ ForceFail()

void SCR_WorkshopItemActionDownload::ForceFail ( )
inlineprotected

Definition at line 405 of file SCR_WorkshopItemActionDownload.c.

◆ FullStorageFail()

void SCR_WorkshopItemActionDownload::FullStorageFail ( )
inlineprotected

Definition at line 384 of file SCR_WorkshopItemActionDownload.c.

◆ GetDownloadSize()

float SCR_WorkshopItemActionDownload::GetDownloadSize ( )
inlineprotected

Definition at line 411 of file SCR_WorkshopItemActionDownload.c.

◆ GetOnDownloadProgress()

ScriptInvokerBase< ScriptInvoker_ActionDownloadProgress > SCR_WorkshopItemActionDownload::GetOnDownloadProgress ( )
inlineprotected

Definition at line 42 of file SCR_WorkshopItemActionDownload.c.

◆ GetOnFullStorageError()

ScriptInvokerBase< ScriptInvoker_ActionDownloadFullStorage > SCR_WorkshopItemActionDownload::GetOnFullStorageError ( )
inlineprotected

Definition at line 51 of file SCR_WorkshopItemActionDownload.c.

◆ GetProcessingProgress()

float SCR_WorkshopItemActionDownload::GetProcessingProgress ( )
inlineprotected

Definition at line 114 of file SCR_WorkshopItemActionDownload.c.

◆ GetProgress()

float SCR_WorkshopItemActionDownload::GetProgress ( )
inlineprotected

Returns current download progress if active or paused, 1 if complete, otherwise 0.

Definition at line 106 of file SCR_WorkshopItemActionDownload.c.

◆ GetRunningAsync()

bool SCR_WorkshopItemActionDownload::GetRunningAsync ( )
inlineprotected

Definition at line 157 of file SCR_WorkshopItemActionDownload.c.

◆ GetSizeBytes()

float SCR_WorkshopItemActionDownload::GetSizeBytes ( )
inlineprotected

Returns download size. Might return 0 until the actiion is activated.

Definition at line 121 of file SCR_WorkshopItemActionDownload.c.

◆ GetStartRevision()

Revision SCR_WorkshopItemActionDownload::GetStartRevision ( )
inlineprotected

Returns the version which was at the moment when the download was started.

Definition at line 86 of file SCR_WorkshopItemActionDownload.c.

◆ GetTargetedAtLatestVersion()

bool SCR_WorkshopItemActionDownload::GetTargetedAtLatestVersion ( )
inlineprotected

Definition at line 92 of file SCR_WorkshopItemActionDownload.c.

◆ GetTargetRevision()

Revision SCR_WorkshopItemActionDownload::GetTargetRevision ( )
inlineprotected

Returns the target version. !! If you were targeting latest version, but the actual download has not started because it is waiting for more data from backend, then this will return an empty string until the data is fetched from backend.

Definition at line 78 of file SCR_WorkshopItemActionDownload.c.

◆ GetUpdate()

bool SCR_WorkshopItemActionDownload::GetUpdate ( )
inlineprotected

Returns true when this is an update, false when regular download.

Definition at line 99 of file SCR_WorkshopItemActionDownload.c.

◆ Internal_Update()

override void SCR_WorkshopItemActionDownload::Internal_Update ( float timeSlice)
inlineprotected

Definition at line 295 of file SCR_WorkshopItemActionDownload.c.

◆ IsPauseAsyncSolved()

bool SCR_WorkshopItemActionDownload::IsPauseAsyncSolved ( )
inlineprotected

Definition at line 169 of file SCR_WorkshopItemActionDownload.c.

◆ IsProcessing()

bool SCR_WorkshopItemActionDownload::IsProcessing ( )
inlineprotected

Definition at line 417 of file SCR_WorkshopItemActionDownload.c.

◆ IsRunningAsyncSolved()

bool SCR_WorkshopItemActionDownload::IsRunningAsyncSolved ( )
inlineprotected

Definition at line 163 of file SCR_WorkshopItemActionDownload.c.

◆ OnActivate()

override bool SCR_WorkshopItemActionDownload::OnActivate ( )
inlineprotected

Definition at line 127 of file SCR_WorkshopItemActionDownload.c.

◆ OnCancel()

override bool SCR_WorkshopItemActionDownload::OnCancel ( )
inlineprotected

Definition at line 149 of file SCR_WorkshopItemActionDownload.c.

◆ OnComplete()

override void SCR_WorkshopItemActionDownload::OnComplete ( )
inlineprotected

Definition at line 244 of file SCR_WorkshopItemActionDownload.c.

◆ OnPause()

override bool SCR_WorkshopItemActionDownload::OnPause ( )
inlineprotected

Definition at line 175 of file SCR_WorkshopItemActionDownload.c.

◆ OnPauseError()

void SCR_WorkshopItemActionDownload::OnPauseError ( BackendCallback callback)
inlineprotected

Definition at line 205 of file SCR_WorkshopItemActionDownload.c.

◆ OnPauseResponse()

void SCR_WorkshopItemActionDownload::OnPauseResponse ( BackendCallback callback)
inlineprotected

Definition at line 197 of file SCR_WorkshopItemActionDownload.c.

◆ OnReactivate()

override bool SCR_WorkshopItemActionDownload::OnReactivate ( )
inlineprotected

Definition at line 143 of file SCR_WorkshopItemActionDownload.c.

◆ OnResume()

override bool SCR_WorkshopItemActionDownload::OnResume ( )
inlineprotected

Definition at line 212 of file SCR_WorkshopItemActionDownload.c.

◆ RetryDownload()

SCR_WorkshopItemActionDownload SCR_WorkshopItemActionDownload::RetryDownload ( )
inlineprotected

Try redownload failed addon.

Definition at line 398 of file SCR_WorkshopItemActionDownload.c.

◆ StartDownloadOrLoadDetails()

bool SCR_WorkshopItemActionDownload::StartDownloadOrLoadDetails ( )
inlineprotected

We can't start download before details are loaded, because details have the revisions. Starts download immediately or loads details of workshop item.

Definition at line 253 of file SCR_WorkshopItemActionDownload.c.

Member Data Documentation

◆ m_bAddonEnabledAtStart

bool SCR_WorkshopItemActionDownload::m_bAddonEnabledAtStart
protected

Definition at line 31 of file SCR_WorkshopItemActionDownload.c.

◆ m_bDownloadStarted

bool SCR_WorkshopItemActionDownload::m_bDownloadStarted
protected

Definition at line 24 of file SCR_WorkshopItemActionDownload.c.

◆ m_bRunningAsync

bool SCR_WorkshopItemActionDownload::m_bRunningAsync
protected

Definition at line 36 of file SCR_WorkshopItemActionDownload.c.

◆ m_bRunningImmediate

bool SCR_WorkshopItemActionDownload::m_bRunningImmediate
protected

Definition at line 35 of file SCR_WorkshopItemActionDownload.c.

◆ m_bTargetVersionLatest

bool SCR_WorkshopItemActionDownload::m_bTargetVersionLatest
protected

Definition at line 14 of file SCR_WorkshopItemActionDownload.c.

◆ m_bWaitingForRevisions

bool SCR_WorkshopItemActionDownload::m_bWaitingForRevisions
protected

Definition at line 21 of file SCR_WorkshopItemActionDownload.c.

◆ m_Callback

ref BackendCallback SCR_WorkshopItemActionDownload::m_Callback
protected

Definition at line 16 of file SCR_WorkshopItemActionDownload.c.

◆ m_fDownloadedSize

float SCR_WorkshopItemActionDownload::m_fDownloadedSize
protected

Definition at line 28 of file SCR_WorkshopItemActionDownload.c.

◆ m_fProcessingProgress

float SCR_WorkshopItemActionDownload::m_fProcessingProgress
protected

Definition at line 27 of file SCR_WorkshopItemActionDownload.c.

◆ m_fProgress

float SCR_WorkshopItemActionDownload::m_fProgress
protected

Definition at line 26 of file SCR_WorkshopItemActionDownload.c.

◆ m_fSizeBytes

float SCR_WorkshopItemActionDownload::m_fSizeBytes
protected

Definition at line 18 of file SCR_WorkshopItemActionDownload.c.

◆ m_OnDownloadProgress

ref ScriptInvokerBase<ScriptInvoker_ActionDownloadProgress> SCR_WorkshopItemActionDownload::m_OnDownloadProgress
protected

Definition at line 38 of file SCR_WorkshopItemActionDownload.c.

◆ m_OnFullStorageError

ref ScriptInvokerBase<ScriptInvoker_ActionDownloadFullStorage> SCR_WorkshopItemActionDownload::m_OnFullStorageError
protected

Definition at line 39 of file SCR_WorkshopItemActionDownload.c.

◆ m_PauseDownloadCallback

ref BackendCallback SCR_WorkshopItemActionDownload::m_PauseDownloadCallback = new BackendCallback()
protected

Definition at line 34 of file SCR_WorkshopItemActionDownload.c.

◆ m_StartVersion

ref Revision SCR_WorkshopItemActionDownload::m_StartVersion
protected

Definition at line 11 of file SCR_WorkshopItemActionDownload.c.

◆ m_TargetRevision

ref Revision SCR_WorkshopItemActionDownload::m_TargetRevision
protected

Definition at line 12 of file SCR_WorkshopItemActionDownload.c.


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