Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_WorkshopSettings.c
Go to the documentation of this file.
1/*
2Container of workshop settings. Also has static functions to manager storage of the settings.
3*/
4
6{
7 [Attribute("true")]
8 bool m_bAutoEnableDownloadedAddons;
9
10 // Add more options here
11
12 protected static const string USER_SETTINGS_MODULE = "SCR_WorkshopSettings";
13
14 //------------------------------------------------------------------------------------------
16 {
18 BaseContainer container = GetGame().GetGameUserSettings().GetModule("SCR_WorkshopSettings");
19 BaseContainerTools.WriteToInstance(settings, container);
20 return settings;
21 }
22
23 //------------------------------------------------------------------------------------------
24 static void Save(SCR_WorkshopSettings settings)
25 {
26 BaseContainer container = GetGame().GetGameUserSettings().GetModule("SCR_WorkshopSettings");
27 BaseContainerTools.ReadFromInstance(settings, container);
28 GetGame().UserSettingsChanged();
29 }
30};
ArmaReforgerScripted GetGame()
Definition game.c:1398
By inheriting of this class you define a settings module.
static void Save(SCR_WorkshopSettings settings)
static const string USER_SETTINGS_MODULE
static SCR_WorkshopSettings Get()
SCR_FieldOfViewSettings Attribute