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

◆ InitItems()

void PluginBase::InitItems ( )
inlineprotected

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

90 {
91 for (int i = 0; i < GetItemClasses().Count(); i++)
92 {
93 string configPath = GetItemClasses().Get(i);
94
95 int objectsCount = g_Game.ConfigGetChildrenCount(configPath);
96 for (int j = 0; j < objectsCount; j++)
97 {
98 string childName;
99 g_Game.ConfigGetChildName(configPath, j, childName);
100 int scope = g_Game.ConfigGetInt(configPath + " " + childName + " scope");
101 int categoryMask = g_Game.ConfigGetInt(configPath + " " + childName + " debug_ItemCategory") - 1;
102 string displayName;
103 g_Game.ConfigGetText(configPath + " " + childName + " displayName", displayName);
104
105 m_Items.Insert(childName, new ScriptConsoleItem(childName, displayName, scope, categoryMask));
106 }
107 }
108 }
DayZGame g_Game
Определения DayZGame.c:4074
static ref map< string, ref ScriptConsoleItem > m_Items
Определения PluginDeveloper.c:24
TStringArray GetItemClasses()
Определения PluginDeveloper.c:84

Перекрестные ссылки g_Game, GetItemClasses() и m_Items.

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