Dayz Explorer
1.28.160049
Loading...
Searching...
No Matches
modloader.c
Go to the documentation of this file.
1
class
ModLoader
2
{
3
protected
static
bool
m_Loaded
;
4
protected
static
ref
array<ref ModStructure>
m_Mods
;
5
6
static
array<ref ModStructure>
GetMods
()
7
{
8
//if( !m_Loaded )
9
LoadMods
();
10
return
m_Mods
;
11
}
12
13
static
void
LoadMods
()
14
{
15
m_Mods
=
new
array<ref ModStructure>
;
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
}
26
}
ModLoader
Definition
modloader.c:2
ModLoader::m_Mods
static ref array< ref ModStructure > m_Mods
Definition
modloader.c:4
ModLoader::LoadMods
static void LoadMods()
Definition
modloader.c:13
ModLoader::GetMods
static array< ref ModStructure > GetMods()
Definition
modloader.c:6
ModLoader::m_Loaded
static bool m_Loaded
Definition
modloader.c:3
ModStructure
Definition
modstructure.c:2
array
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
Definition
isboxcollidinggeometryproxyclasses.c:28
GetGame
proto native CGame GetGame()
Daten
3_game
client
mods
modloader.c
Generated by
1.12.0