Arma Reforger Script API
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
SCR_WorkshopAddonManagerPresetStorage Interface Reference
Inheritance diagram for SCR_WorkshopAddonManagerPresetStorage:
[legend]

Public Member Functions

ScriptInvoker GetEventOnUsedPresetChanged ()
 
void SCR_WorkshopAddonManagerPresetStorage ()
 
array< ref SCR_WorkshopAddonPresetGetAllPresets ()
 
void SavePreset (notnull SCR_WorkshopAddonPreset preset, string prevName="")
 
void SetUsedPreset (string name)
 
void ClearUsedPreset ()
 
string GetUsedPreset ()
 
void DeletePreset (string name)
 
bool PresetExists (string name)
 
SCR_WorkshopAddonPreset GetPreset (string name)
 
array< ref SCR_WorkshopAddonPresetGetPresets ()
 

Static Public Attributes

const int VERSION = 1
 
const string FILE_NAME = "$profile:.WorkshopPresets.json"
 

Protected Member Functions

void InvokeEventOnUsedPresetChanged (string arg0)
 
bool CanChangePresetName (int id, string name, string prevName)
 
bool ReadPresetsFromStorage ()
 
void SavePresetsToStorage ()
 Saves all presets to storage.
 
int GetPresetId (string name)
 

Protected Attributes

int m_iVersion
 
ref array< ref SCR_WorkshopAddonPresetm_aPresets
 
string m_sUsedPreset
 
ref ScriptInvoker< string, string > Event_OnUsedPresetChanged
 

Constructor & Destructor Documentation

◆ SCR_WorkshopAddonManagerPresetStorage()

void SCR_WorkshopAddonManagerPresetStorage.SCR_WorkshopAddonManagerPresetStorage ( )

Member Function Documentation

◆ CanChangePresetName()

bool SCR_WorkshopAddonManagerPresetStorage.CanChangePresetName ( int  id,
string  name,
string  prevName 
)
protected

◆ ClearUsedPreset()

void SCR_WorkshopAddonManagerPresetStorage.ClearUsedPreset ( )

◆ DeletePreset()

void SCR_WorkshopAddonManagerPresetStorage.DeletePreset ( string  name)

◆ GetAllPresets()

array< ref SCR_WorkshopAddonPreset > SCR_WorkshopAddonManagerPresetStorage.GetAllPresets ( )

◆ GetEventOnUsedPresetChanged()

ScriptInvoker SCR_WorkshopAddonManagerPresetStorage.GetEventOnUsedPresetChanged ( )

◆ GetPreset()

SCR_WorkshopAddonPreset SCR_WorkshopAddonManagerPresetStorage.GetPreset ( string  name)

◆ GetPresetId()

int SCR_WorkshopAddonManagerPresetStorage.GetPresetId ( string  name)
protected

◆ GetPresets()

array< ref SCR_WorkshopAddonPreset > SCR_WorkshopAddonManagerPresetStorage.GetPresets ( )

◆ GetUsedPreset()

string SCR_WorkshopAddonManagerPresetStorage.GetUsedPreset ( )

◆ InvokeEventOnUsedPresetChanged()

void SCR_WorkshopAddonManagerPresetStorage.InvokeEventOnUsedPresetChanged ( string  arg0)
protected

◆ PresetExists()

bool SCR_WorkshopAddonManagerPresetStorage.PresetExists ( string  name)

◆ ReadPresetsFromStorage()

bool SCR_WorkshopAddonManagerPresetStorage.ReadPresetsFromStorage ( )
protected

◆ SavePreset()

void SCR_WorkshopAddonManagerPresetStorage.SavePreset ( notnull SCR_WorkshopAddonPreset  preset,
string  prevName = "" 
)

◆ SavePresetsToStorage()

void SCR_WorkshopAddonManagerPresetStorage.SavePresetsToStorage ( )
protected

Saves all presets to storage.

◆ SetUsedPreset()

void SCR_WorkshopAddonManagerPresetStorage.SetUsedPreset ( string  name)

Member Data Documentation

◆ Event_OnUsedPresetChanged

ref ScriptInvoker<string, string> SCR_WorkshopAddonManagerPresetStorage.Event_OnUsedPresetChanged
protected

◆ FILE_NAME

const string SCR_WorkshopAddonManagerPresetStorage.FILE_NAME = "$profile:.WorkshopPresets.json"
static

◆ m_aPresets

ref array<ref SCR_WorkshopAddonPreset> SCR_WorkshopAddonManagerPresetStorage.m_aPresets
protected

◆ m_iVersion

int SCR_WorkshopAddonManagerPresetStorage.m_iVersion
protected

◆ m_sUsedPreset

string SCR_WorkshopAddonManagerPresetStorage.m_sUsedPreset
protected

◆ VERSION

const int SCR_WorkshopAddonManagerPresetStorage.VERSION = 1
static

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