DayZ 1.24
Loading...
Searching...
No Matches
HiddenSelectionsData.c
Go to the documentation of this file.
2{
6
8
9 void HiddenSelectionsData(string type)
10 {
11 GetGame().ConfigGetTextArray(string.Format("CfgVehicles %1 hiddenSelections", type), m_HiddenSelections);
12 GetGame().ConfigGetTextArray(string.Format("CfgVehicles %1 hiddenSelectionsTextures", type), m_HiddenSelectionsTextures);
13 GetGame().ConfigGetTextArray(string.Format("CfgVehicles %1 hiddenSelectionsMaterials", type), m_HiddenSelectionsMaterials);
14
15 for (int i = 0; i < m_HiddenSelections.Count(); ++i)
17 }
18
19 int GetHiddenSelectionIndex(string selection)
20 {
21 int index;
22 if (m_HiddenSelectionNameToIndex.Find(selection, index))
23 return index;
24
25 return -1;
26 }
27
32
37
39 {
41 GetGame().ConfigGetTextArray(string.Format("CfgVehicles %1 hiddenSelections", type), hiddenSelections);
42 return hiddenSelections;
43 }
44
46 {
48 GetGame().ConfigGetTextArray(string.Format("CfgVehicles %1 hiddenSelectionsTextures", type), hiddenSelectionsTextures);
50 }
51
53 {
55 GetGame().ConfigGetTextArray(string.Format("CfgVehicles %1 hiddenSelectionsMaterials", type), hiddenSelectionsMaterials);
57 }
58}
TStringArray GetHiddenSelectionsTextures()
ref array< string > m_HiddenSelectionsMaterials
void HiddenSelectionsData(string type)
ref map< string, int > m_HiddenSelectionNameToIndex
TStringArray GetHiddenSelectionsMaterials()
ref array< string > m_HiddenSelections
static array< string > GetHiddenSelectionsTexturesConfig(string type)
static array< string > GetHiddenSelectionsMaterialsConfig(string type)
int GetHiddenSelectionIndex(string selection)
ref array< string > m_HiddenSelectionsTextures
static array< string > GetHiddenSelectionsConfig(string type)
proto native CGame GetGame()