90 {
92 {
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 }
static ref map< string, ref ScriptConsoleItem > m_Items
TStringArray GetItemClasses()