Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_WorkshopSettings.c
Go to the documentation of this file.
1 /*
2 Container of workshop settings. Also has static functions to manager storage of the settings.
3 */
4 
5 class SCR_WorkshopSettings : ModuleGameSettings
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  //------------------------------------------------------------------------------------------
15  static SCR_WorkshopSettings Get()
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 };
GetGame
ArmaReforgerScripted GetGame()
Definition: game.c:1424
SCR_WorkshopSettings
Definition: SCR_WorkshopSettings.c:5
Attribute
typedef Attribute
Post-process effect of scripted camera.