Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_SettingsManager.c
Go to the documentation of this file.
1//------------------------------------------------------------------------------------------------
8
9//------------------------------------------------------------------------------------------------
11{
12 protected ref array<ref SCR_SettingsManagerModuleBase> m_aModules = {};
13
14 //------------------------------------------------------------------------------------------------
16 {
17 //todo: rework this to load out of config so we can just have config with all the modules
19 if (videoModule)
20 AddModule(videoModule);
21
23 if (keybindModule)
24 AddModule(keybindModule);
25 }
26
27 //------------------------------------------------------------------------------------------------
29 {
31 {
32 if (module.GetModuleType() == moduleType)
33 return module;
34 }
35 return null;
36 }
37
38 //------------------------------------------------------------------------------------------------
41 {
42 if (!GetModule(module.GetModuleType()))
43 m_aModules.Insert(module);
44 }
45}
46
47//------------------------------------------------------------------------------------------------
49{
51
52 //------------------------------------------------------------------------------------------------
57
58 //------------------------------------------------------------------------------------------------
60 {
61 m_eModuleType = managerType;
62 }
63
64 //------------------------------------------------------------------------------------------------
66 {
67
68 }
69}
class SCR_SettingsManager m_eModuleType
void SetModuleType(ESettingManagerModuleType managerType)
void SCR_SettingsManagerModuleBase()
ESettingManagerModuleType GetModuleType()
ESettingManagerModuleType
@ SETTINGS_MANAGER_KEYBINDING
@ SETTINGS_MANAGER_VIDEO
@ SETTINGS_MANAGER_INVALID
SCR_SettingsManagerModuleBase GetModule(ESettingManagerModuleType moduleType)
void AddModule(notnull SCR_SettingsManagerModuleBase module)
inserts module into the settingsManager in case that module is not already present
ref array< ref SCR_SettingsManagerModuleBase > m_aModules