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

Static Protected Member Functions

static array< ref ModStructureGetMods ()
 
static void LoadMods ()
 

Static Protected Attributes

static bool m_Loaded
 
static ref array< ref ModStructurem_Mods
 

Detailed Description

Definition at line 1 of file ModLoader.c.

Member Function Documentation

◆ GetMods()

static array< ref ModStructure > ModLoader::GetMods ( )
inlinestaticprotected

Definition at line 6 of file ModLoader.c.

7 {
8 //if( !m_Loaded )
9 LoadMods();
10 return m_Mods;
11 }
static ref array< ref ModStructure > m_Mods
Definition ModLoader.c:4
static void LoadMods()
Definition ModLoader.c:13

References LoadMods(), and m_Mods.

◆ LoadMods()

static void ModLoader::LoadMods ( )
inlinestaticprotected

Definition at line 13 of file ModLoader.c.

14 {
16
17 int mod_count = GetGame().ConfigGetChildrenCount("CfgMods");
18
19 for (int i = 2; i < mod_count; i++)
20 {
21 string mod_name;
22 GetGame().ConfigGetChildName("CfgMods", i, mod_name);
23 m_Mods.Insert(new ModStructure(i, "CfgMods " + mod_name));
24 }
25 }
proto native CGame GetGame()

References GetGame(), and m_Mods.

Referenced by GetMods().

Member Data Documentation

◆ m_Loaded

bool ModLoader::m_Loaded
staticprotected

Definition at line 3 of file ModLoader.c.

◆ m_Mods

ref array<ref ModStructure> ModLoader::m_Mods
staticprotected

Definition at line 4 of file ModLoader.c.

Referenced by GetMods(), and LoadMods().


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