DayZ 1.24
Loading...
Searching...
No Matches
HiddenSelectionsData Class Reference
Collaboration diagram for HiddenSelectionsData:
[legend]

Private Member Functions

void HiddenSelectionsData (string type)
 
int GetHiddenSelectionIndex (string selection)
 
TStringArray GetHiddenSelectionsTextures ()
 
TStringArray GetHiddenSelectionsMaterials ()
 

Static Private Member Functions

static array< stringGetHiddenSelectionsConfig (string type)
 
static array< stringGetHiddenSelectionsTexturesConfig (string type)
 
static array< stringGetHiddenSelectionsMaterialsConfig (string type)
 

Private Attributes

ref array< stringm_HiddenSelections = new array<string>
 
ref array< stringm_HiddenSelectionsTextures = new array<string>
 
ref array< stringm_HiddenSelectionsMaterials = new array<string>
 
ref map< string, intm_HiddenSelectionNameToIndex = new map<string, int>
 

Detailed Description

Definition at line 1 of file HiddenSelectionsData.c.

Constructor & Destructor Documentation

◆ HiddenSelectionsData()

void HiddenSelectionsData::HiddenSelectionsData ( string type)
inlineprivate

Definition at line 9 of file HiddenSelectionsData.c.

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 }
ref array< string > m_HiddenSelectionsMaterials
ref map< string, int > m_HiddenSelectionNameToIndex
ref array< string > m_HiddenSelections
ref array< string > m_HiddenSelectionsTextures
proto native CGame GetGame()

References GetGame(), m_HiddenSelectionNameToIndex, m_HiddenSelections, m_HiddenSelectionsMaterials, and m_HiddenSelectionsTextures.

Member Function Documentation

◆ GetHiddenSelectionIndex()

int HiddenSelectionsData::GetHiddenSelectionIndex ( string selection)
inlineprivate

Definition at line 19 of file HiddenSelectionsData.c.

20 {
21 int index;
22 if (m_HiddenSelectionNameToIndex.Find(selection, index))
23 return index;
24
25 return -1;
26 }

References m_HiddenSelectionNameToIndex.

◆ GetHiddenSelectionsConfig()

static array< string > HiddenSelectionsData::GetHiddenSelectionsConfig ( string type)
inlinestaticprivate

Definition at line 38 of file HiddenSelectionsData.c.

39 {
41 GetGame().ConfigGetTextArray(string.Format("CfgVehicles %1 hiddenSelections", type), hiddenSelections);
42 return hiddenSelections;
43 }

References GetGame().

Referenced by IEntity::GetHiddenSelections().

◆ GetHiddenSelectionsMaterials()

TStringArray HiddenSelectionsData::GetHiddenSelectionsMaterials ( )
inlineprivate

Definition at line 33 of file HiddenSelectionsData.c.

34 {
36 }

References m_HiddenSelectionsMaterials.

◆ GetHiddenSelectionsMaterialsConfig()

static array< string > HiddenSelectionsData::GetHiddenSelectionsMaterialsConfig ( string type)
inlinestaticprivate

Definition at line 52 of file HiddenSelectionsData.c.

53 {
55 GetGame().ConfigGetTextArray(string.Format("CfgVehicles %1 hiddenSelectionsMaterials", type), hiddenSelectionsMaterials);
57 }

References GetGame().

Referenced by IEntity::GetHiddenSelectionsMaterials().

◆ GetHiddenSelectionsTextures()

TStringArray HiddenSelectionsData::GetHiddenSelectionsTextures ( )
inlineprivate

Definition at line 28 of file HiddenSelectionsData.c.

29 {
31 }

References m_HiddenSelectionsTextures.

◆ GetHiddenSelectionsTexturesConfig()

static array< string > HiddenSelectionsData::GetHiddenSelectionsTexturesConfig ( string type)
inlinestaticprivate

Definition at line 45 of file HiddenSelectionsData.c.

46 {
48 GetGame().ConfigGetTextArray(string.Format("CfgVehicles %1 hiddenSelectionsTextures", type), hiddenSelectionsTextures);
50 }

References GetGame().

Referenced by IEntity::GetHiddenSelectionsTextures().

Member Data Documentation

◆ m_HiddenSelectionNameToIndex

ref map<string, int> HiddenSelectionsData::m_HiddenSelectionNameToIndex = new map<string, int>
private

Definition at line 7 of file HiddenSelectionsData.c.

Referenced by GetHiddenSelectionIndex(), and HiddenSelectionsData().

◆ m_HiddenSelections

ref array<string> HiddenSelectionsData::m_HiddenSelections = new array<string>
private

Definition at line 3 of file HiddenSelectionsData.c.

Referenced by HiddenSelectionsData().

◆ m_HiddenSelectionsMaterials

ref array<string> HiddenSelectionsData::m_HiddenSelectionsMaterials = new array<string>
private

Definition at line 5 of file HiddenSelectionsData.c.

Referenced by GetHiddenSelectionsMaterials(), and HiddenSelectionsData().

◆ m_HiddenSelectionsTextures

ref array<string> HiddenSelectionsData::m_HiddenSelectionsTextures = new array<string>
private

Definition at line 4 of file HiddenSelectionsData.c.

Referenced by GetHiddenSelectionsTextures(), and HiddenSelectionsData().


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