118 array<Dependency> deps = {};
137 Debug.Error(
"Received data for non active room");
220 return reportedDialog;
278 if (!
m_Room.IsAuthorized())
284 array<Dependency> deps =
new array<Dependency>;
287 array<Dependency> depsItems =
new array<Dependency>;
362 array<ref SCR_WorkshopItem> dependencies = {};
366 dependencies.Insert(item);
445 for (
int i = 0, count = items.Count(); i < count; i++)
447 size += items[i].GetTargetRevisionPatchSize();
474 array<ref SCR_WorkshopItem> items = {};
func ScriptInvoker_RoomModsDependencies
ScriptInvokerBase< ScriptInvokerVoidMethod > ScriptInvokerVoid
Shows a list of addons and some text.
static SCR_AddonListDialog CreateRestrictedAddonsJoinServer(array< ref SCR_WorkshopItem > items)
Dialog when trying to connect to a server with restricted addons.
SCR_WorkshopItem Register(WorkshopItem item)
Returns a SCR_WorkshopItem. If it's not registered, creates a new one and registers it.
static array< ref SCR_WorkshopItem > SelectItemsBasic(array< ref SCR_WorkshopItem > items, EWorkshopItemQuery query)
static SCR_AddonManager GetInstance()
void SCR_BackendCallbackRoomMods(Room room)
ref ScriptInvoker m_OnConfirm
ref ScriptInvoker m_OnClose
static SCR_DownloadManager GetInstance()
ScriptInvokerBase< ScriptInvoker_DownloadSequence > GetOnReady()
ScriptInvokerBase< ScriptInvoker_DownloadSequenceDependencies > GetOnDependenciesLoadingPrevented()
ScriptInvokerBase< ScriptInvoker_DownloadSequenceDependencies > GetOnRestrictedDependency()
static SCR_DownloadSequence Create(array< ref SCR_WorkshopItem > dependencies, SCR_DownloadSequence previous, bool skipDetails=false)
ScriptInvokerBase< ScriptInvoker_DownloadSequence > GetOnError()
Show list of reported mods and provide option to cancel reports.
ScriptInvoker GetOnAllReportsCanceled()
void ReceiveRoomMods(notnull Room room)
void OnDependenciesLoadingPrevented(SCR_DownloadSequence sequence, array< ref SCR_WorkshopItem > dependencies)
void OnRoomCallbackResponse(SCR_BackendCallbackRoomMods callback)
void OnRoomCallbackError(SCR_BackendCallbackRoomMods callback)
void OnDownloadSequenceRestrictedAddons(SCR_DownloadSequence sequence, array< ref SCR_WorkshopItem > items)
void OnCancelDownloadDialogClose(SCR_ConfigurableDialogUi dialog)
void InitDownloadSequence()
void OnCancelDownloadConfirm(SCR_ConfigurableDialogUi dialog)
string GetModListSizeString(array< ref SCR_WorkshopItem > items)
ref ScriptInvokerRoom m_OnGetAllDependencies
void OnAllReportsCanceled(SCR_ReportedAddonsDialog dialog)
Call when all reports from dialog are cancled to clear invoker actions and display download dialog.
ScriptInvokerVoid GetOnModsFail()
ref array< ref SCR_WorkshopItem > m_aItemsToUpdate
ScriptInvokerBase< ScriptInvoker_RoomModsDependencies > GetOnDependenciesLoadingPrevented()
void OnScenarioModLoaded()
Call this when mod containing scenario is loaded.
Dependency m_ScenarioDependency
ScriptInvokerRoom GetOnGetAllDependencies()
ref array< ref SCR_WorkshopItem > m_aItemsUpdated
ref array< ref SCR_WorkshopItem > m_aRoomItemsScripted
array< ref SCR_WorkshopItem > GetCollidingDependencies()
ref ScriptInvokerRoom m_OnGetScenario
ref array< ref SCR_WorkshopItem > m_aCollidingDependencies
float GetModsSize(array< ref SCR_WorkshopItem > items)
ref SCR_DownloadSequence m_DownloadSequence
float GetModListPatchSize(array< ref SCR_WorkshopItem > items)
void OnRoomFullList()
Call this when room receive list of all mod dependencies.
void ReceiveRoomScenario(notnull Room room)
void OnScenarioDetails()
Call this when scenario has got complete info.
void OnDownloadSequenceError(SCR_DownloadSequence sequence)
void OnDownloadSequenceReady(SCR_DownloadSequence sequence)
ref ScriptInvokerBase< ScriptInvoker_RoomModsDependencies > m_OnDependenciesLoadingPrevented
ScriptInvokerRoom GetOnGetScenario()
void OnLoadingModsFail(Room room)
Invoke mods loading error.
array< ref SCR_WorkshopItem > GetRoomItemsToUpdate()
SCR_ReportedAddonsDialog DisplayRestrictedAddonsList()
Show restricted addons and return true if there are restricted addons in room content.
array< ref SCR_WorkshopItem > GetRoomItemsUpdated()
string GetModListPatchSizeString(array< ref SCR_WorkshopItem > items)
Get size with unit based on pach sizes from addons list.
array< ref SCR_WorkshopItem > GetRoomItemsScripted()
void UpdatedDependencies(notnull array< ref SCR_WorkshopItem > items)
ref SCR_BackendCallbackRoomMods m_ModsCallback
void LoadScenario()
Call this when sceario is loaded.
ref ScriptInvokerVoid m_OnModsFail
void SetItemTargetRevision(Revision revision)