Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_RoomModsManager Class Reference

Protected Member Functions

ScriptInvokerRoom GetOnGetAllDependencies ()
ScriptInvokerRoom GetOnGetScenario ()
ScriptInvokerVoid GetOnModsFail ()
ScriptInvokerBase< ScriptInvoker_RoomModsDependenciesGetOnDependenciesLoadingPrevented ()
void Clear ()
void ReceiveRoomMods (notnull Room room)
void ReceiveRoomScenario (notnull Room room)
void OnLoadingModsFail (Room room)
 Invoke mods loading error.
void UpdatedDependencies (notnull array< ref SCR_WorkshopItem > items)
void AllItemsLoaded ()
void LoadScenario ()
 Call this when sceario is loaded.
SCR_ReportedAddonsDialog DisplayRestrictedAddonsList ()
 Show restricted addons and return true if there are restricted addons in room content.
void OnAllReportsCanceled (SCR_ReportedAddonsDialog dialog)
 Call when all reports from dialog are cancled to clear invoker actions and display download dialog.
void OnScenarioModLoaded ()
 Call this when mod containing scenario is loaded.
void OnScenarioDetails ()
 Call this when scenario has got complete info.
void OnRoomCallbackResponse (SCR_BackendCallbackRoomMods callback)
void OnRoomCallbackError (SCR_BackendCallbackRoomMods callback)
void OnRoomFullList ()
 Call this when room receive list of all mod dependencies.
void InitDownloadSequence ()
void OnDownloadSequenceReady (SCR_DownloadSequence sequence)
void OnDependenciesLoadingPrevented (SCR_DownloadSequence sequence, array< ref SCR_WorkshopItem > dependencies)
array< ref SCR_WorkshopItemGetCollidingDependencies ()
void OnCancelDownloadConfirm (SCR_ConfigurableDialogUi dialog)
void OnCancelDownloadDialogClose (SCR_ConfigurableDialogUi dialog)
void OnDownloadSequenceError (SCR_DownloadSequence sequence)
void OnDownloadSequenceRestrictedAddons (SCR_DownloadSequence sequence, array< ref SCR_WorkshopItem > items)
string GetModListSizeString (array< ref SCR_WorkshopItem > items)
float GetModsSize (array< ref SCR_WorkshopItem > items)
string GetModListPatchSizeString (array< ref SCR_WorkshopItem > items)
 Get size with unit based on pach sizes from addons list.
float GetModListPatchSize (array< ref SCR_WorkshopItem > items)
bool HasBlockedMods ()
array< ref SCR_WorkshopItemGetRoomItemsScripted ()
array< ref SCR_WorkshopItemGetRoomItemsUpdated ()
array< ref SCR_WorkshopItemGetRoomItemsToUpdate ()
bool GetModsMatching ()

Protected Attributes

Room m_Room
Dependency m_ScenarioDependency
ref SCR_DownloadSequence m_DownloadSequence
bool m_bModsMatching = false
bool m_bBlockedMods
ref array< ref SCR_WorkshopItemm_aCollidingDependencies = {}
ref array< ref SCR_WorkshopItemm_aRoomItemsScripted = {}
ref array< ref SCR_WorkshopItemm_aItemsUpdated = {}
ref array< ref SCR_WorkshopItemm_aItemsToUpdate = {}
ref SCR_BackendCallbackRoomMods m_ModsCallback
ref ScriptInvokerRoom m_OnGetAllDependencies = new ScriptInvokerRoom()
ref ScriptInvokerRoom m_OnGetScenario = new ScriptInvokerRoom()
ref ScriptInvokerVoid m_OnModsFail
ref ScriptInvokerBase< ScriptInvoker_RoomModsDependenciesm_OnDependenciesLoadingPrevented

Detailed Description

This class will take care of handling all room mods & dependencies Receiveing, sorting, downloading

Definition at line 27 of file SCR_RoomModsManager.c.

Member Function Documentation

◆ AllItemsLoaded()

void SCR_RoomModsManager::AllItemsLoaded ( )
inlineprotected

Definition at line 174 of file SCR_RoomModsManager.c.

◆ Clear()

void SCR_RoomModsManager::Clear ( )
inlineprotected

Definition at line 94 of file SCR_RoomModsManager.c.

◆ DisplayRestrictedAddonsList()

SCR_ReportedAddonsDialog SCR_RoomModsManager::DisplayRestrictedAddonsList ( )
inlineprotected

Show restricted addons and return true if there are restricted addons in room content.

Definition at line 205 of file SCR_RoomModsManager.c.

◆ GetCollidingDependencies()

array< ref SCR_WorkshopItem > SCR_RoomModsManager::GetCollidingDependencies ( )
inlineprotected

Definition at line 360 of file SCR_RoomModsManager.c.

◆ GetModListPatchSize()

float SCR_RoomModsManager::GetModListPatchSize ( array< ref SCR_WorkshopItem > items)
inlineprotected

Definition at line 442 of file SCR_RoomModsManager.c.

◆ GetModListPatchSizeString()

string SCR_RoomModsManager::GetModListPatchSizeString ( array< ref SCR_WorkshopItem > items)
inlineprotected

Get size with unit based on pach sizes from addons list.

Definition at line 430 of file SCR_RoomModsManager.c.

◆ GetModListSizeString()

string SCR_RoomModsManager::GetModListSizeString ( array< ref SCR_WorkshopItem > items)
inlineprotected

Definition at line 409 of file SCR_RoomModsManager.c.

◆ GetModsMatching()

bool SCR_RoomModsManager::GetModsMatching ( )
inlineprotected

Definition at line 485 of file SCR_RoomModsManager.c.

◆ GetModsSize()

float SCR_RoomModsManager::GetModsSize ( array< ref SCR_WorkshopItem > items)
inlineprotected

Definition at line 423 of file SCR_RoomModsManager.c.

◆ GetOnDependenciesLoadingPrevented()

ScriptInvokerBase< ScriptInvoker_RoomModsDependencies > SCR_RoomModsManager::GetOnDependenciesLoadingPrevented ( )
inlineprotected

Definition at line 81 of file SCR_RoomModsManager.c.

◆ GetOnGetAllDependencies()

ScriptInvokerRoom SCR_RoomModsManager::GetOnGetAllDependencies ( )
inlineprotected

Definition at line 60 of file SCR_RoomModsManager.c.

◆ GetOnGetScenario()

ScriptInvokerRoom SCR_RoomModsManager::GetOnGetScenario ( )
inlineprotected

Definition at line 66 of file SCR_RoomModsManager.c.

◆ GetOnModsFail()

ScriptInvokerVoid SCR_RoomModsManager::GetOnModsFail ( )
inlineprotected

Definition at line 72 of file SCR_RoomModsManager.c.

◆ GetRoomItemsScripted()

array< ref SCR_WorkshopItem > SCR_RoomModsManager::GetRoomItemsScripted ( )
inlineprotected

Definition at line 460 of file SCR_RoomModsManager.c.

◆ GetRoomItemsToUpdate()

array< ref SCR_WorkshopItem > SCR_RoomModsManager::GetRoomItemsToUpdate ( )
inlineprotected

Definition at line 472 of file SCR_RoomModsManager.c.

◆ GetRoomItemsUpdated()

array< ref SCR_WorkshopItem > SCR_RoomModsManager::GetRoomItemsUpdated ( )
inlineprotected

Definition at line 466 of file SCR_RoomModsManager.c.

◆ HasBlockedMods()

bool SCR_RoomModsManager::HasBlockedMods ( )
inlineprotected

Definition at line 454 of file SCR_RoomModsManager.c.

◆ InitDownloadSequence()

void SCR_RoomModsManager::InitDownloadSequence ( )
inlineprotected

Definition at line 322 of file SCR_RoomModsManager.c.

◆ LoadScenario()

void SCR_RoomModsManager::LoadScenario ( )
inlineprotected

Call this when sceario is loaded.

Definition at line 194 of file SCR_RoomModsManager.c.

◆ OnAllReportsCanceled()

void SCR_RoomModsManager::OnAllReportsCanceled ( SCR_ReportedAddonsDialog dialog)
inlineprotected

Call when all reports from dialog are cancled to clear invoker actions and display download dialog.

Definition at line 228 of file SCR_RoomModsManager.c.

◆ OnCancelDownloadConfirm()

void SCR_RoomModsManager::OnCancelDownloadConfirm ( SCR_ConfigurableDialogUi dialog)
inlineprotected

Definition at line 373 of file SCR_RoomModsManager.c.

◆ OnCancelDownloadDialogClose()

void SCR_RoomModsManager::OnCancelDownloadDialogClose ( SCR_ConfigurableDialogUi dialog)
inlineprotected

Definition at line 379 of file SCR_RoomModsManager.c.

◆ OnDependenciesLoadingPrevented()

void SCR_RoomModsManager::OnDependenciesLoadingPrevented ( SCR_DownloadSequence sequence,
array< ref SCR_WorkshopItem > dependencies )
inlineprotected

Callback when any of depeendencies are preventing loading or donwloading Show dialog to cancel downloads blocking loading details

Definition at line 348 of file SCR_RoomModsManager.c.

◆ OnDownloadSequenceError()

void SCR_RoomModsManager::OnDownloadSequenceError ( SCR_DownloadSequence sequence)
inlineprotected

Definition at line 388 of file SCR_RoomModsManager.c.

◆ OnDownloadSequenceReady()

void SCR_RoomModsManager::OnDownloadSequenceReady ( SCR_DownloadSequence sequence)
inlineprotected

Definition at line 334 of file SCR_RoomModsManager.c.

◆ OnDownloadSequenceRestrictedAddons()

void SCR_RoomModsManager::OnDownloadSequenceRestrictedAddons ( SCR_DownloadSequence sequence,
array< ref SCR_WorkshopItem > items )
inlineprotected

Definition at line 400 of file SCR_RoomModsManager.c.

◆ OnLoadingModsFail()

void SCR_RoomModsManager::OnLoadingModsFail ( Room room)
inlineprotected

Invoke mods loading error.

Definition at line 146 of file SCR_RoomModsManager.c.

◆ OnRoomCallbackError()

void SCR_RoomModsManager::OnRoomCallbackError ( SCR_BackendCallbackRoomMods callback)
inlineprotected

Definition at line 262 of file SCR_RoomModsManager.c.

◆ OnRoomCallbackResponse()

void SCR_RoomModsManager::OnRoomCallbackResponse ( SCR_BackendCallbackRoomMods callback)
inlineprotected

Definition at line 255 of file SCR_RoomModsManager.c.

◆ OnRoomFullList()

void SCR_RoomModsManager::OnRoomFullList ( )
inlineprotected

Call this when room receive list of all mod dependencies.

Definition at line 270 of file SCR_RoomModsManager.c.

◆ OnScenarioDetails()

void SCR_RoomModsManager::OnScenarioDetails ( )
inlineprotected

Call this when scenario has got complete info.

Definition at line 249 of file SCR_RoomModsManager.c.

◆ OnScenarioModLoaded()

void SCR_RoomModsManager::OnScenarioModLoaded ( )
inlineprotected

Call this when mod containing scenario is loaded.

Definition at line 241 of file SCR_RoomModsManager.c.

◆ ReceiveRoomMods()

void SCR_RoomModsManager::ReceiveRoomMods ( notnull Room room)
inlineprotected

Getting all mods for selected room Checkign dependencies and loading workshop items of mods

Definition at line 113 of file SCR_RoomModsManager.c.

◆ ReceiveRoomScenario()

void SCR_RoomModsManager::ReceiveRoomScenario ( notnull Room room)
inlineprotected

Definition at line 133 of file SCR_RoomModsManager.c.

◆ UpdatedDependencies()

void SCR_RoomModsManager::UpdatedDependencies ( notnull array< ref SCR_WorkshopItem > items)
inlineprotected

Return only all updated dependecies from dependencies param Save all up to date to give out reference array Save all up missing or outdate to out reference array

Definition at line 164 of file SCR_RoomModsManager.c.

Member Data Documentation

◆ m_aCollidingDependencies

ref array<ref SCR_WorkshopItem> SCR_RoomModsManager::m_aCollidingDependencies = {}
protected

Definition at line 36 of file SCR_RoomModsManager.c.

◆ m_aItemsToUpdate

ref array<ref SCR_WorkshopItem> SCR_RoomModsManager::m_aItemsToUpdate = {}
protected

Definition at line 42 of file SCR_RoomModsManager.c.

◆ m_aItemsUpdated

ref array<ref SCR_WorkshopItem> SCR_RoomModsManager::m_aItemsUpdated = {}
protected

Definition at line 41 of file SCR_RoomModsManager.c.

◆ m_aRoomItemsScripted

ref array<ref SCR_WorkshopItem> SCR_RoomModsManager::m_aRoomItemsScripted = {}
protected

Definition at line 39 of file SCR_RoomModsManager.c.

◆ m_bBlockedMods

bool SCR_RoomModsManager::m_bBlockedMods
protected

Definition at line 35 of file SCR_RoomModsManager.c.

◆ m_bModsMatching

bool SCR_RoomModsManager::m_bModsMatching = false
protected

Definition at line 34 of file SCR_RoomModsManager.c.

◆ m_DownloadSequence

ref SCR_DownloadSequence SCR_RoomModsManager::m_DownloadSequence
protected

Definition at line 32 of file SCR_RoomModsManager.c.

◆ m_ModsCallback

ref SCR_BackendCallbackRoomMods SCR_RoomModsManager::m_ModsCallback
protected

Definition at line 45 of file SCR_RoomModsManager.c.

◆ m_OnDependenciesLoadingPrevented

ref ScriptInvokerBase<ScriptInvoker_RoomModsDependencies> SCR_RoomModsManager::m_OnDependenciesLoadingPrevented
protected

Definition at line 57 of file SCR_RoomModsManager.c.

◆ m_OnGetAllDependencies

ref ScriptInvokerRoom SCR_RoomModsManager::m_OnGetAllDependencies = new ScriptInvokerRoom()
protected

Definition at line 52 of file SCR_RoomModsManager.c.

◆ m_OnGetScenario

ref ScriptInvokerRoom SCR_RoomModsManager::m_OnGetScenario = new ScriptInvokerRoom()
protected

Definition at line 54 of file SCR_RoomModsManager.c.

◆ m_OnModsFail

ref ScriptInvokerVoid SCR_RoomModsManager::m_OnModsFail
protected

Definition at line 56 of file SCR_RoomModsManager.c.

◆ m_Room

Room SCR_RoomModsManager::m_Room
protected

Definition at line 29 of file SCR_RoomModsManager.c.

◆ m_ScenarioDependency

Dependency SCR_RoomModsManager::m_ScenarioDependency
protected

Definition at line 30 of file SCR_RoomModsManager.c.


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