DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ LoadMods()

static void ModLoader::LoadMods ( )
inlinestaticprotected

См. определение в файле ModLoader.c строка 13

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 }
proto bool ConfigGetChildName(string path, int index, out string name)
Get name of subclass in config class on path.
proto native int ConfigGetChildrenCount(string path)
Get count of subclasses in config class on path.
static ref array< ref ModStructure > m_Mods
Определения ModLoader.c:4
proto native CGame GetGame()

Перекрестные ссылки CGame::ConfigGetChildName(), CGame::ConfigGetChildrenCount(), GetGame() и m_Mods.

Используется в GetMods().