181 {
182 g_Game.ProfilerStart(
"m_RecipeCache");
183
184
187
189
193
194 string config_path;
195 string child_name;
196 int scope;
199 for (int i = 0; i < all_config_paths.Count(); i++)
200 {
201 config_path = all_config_paths.
Get(i);
202 int children_count =
g_Game.ConfigGetChildrenCount(config_path);
203
204 for (
int x = 0;
x < children_count;
x++)
205 {
206 g_Game.ConfigGetChildName(config_path,
x, child_name);
207 scope =
g_Game.ConfigGetInt( config_path +
" " + child_name +
" scope" );
208
209 if ( scope == 2 )
210 {
211 g_Game.ConfigGetFullPath(config_path +
" "+ child_name, full_path);
213 }
214 }
215 }
216 g_Game.ProfilerStop(
"m_RecipeCache");
217 }
void PluginRecipesManager()
ref array< string > m_CachedItems
void MatchItems(TStringArray full_path)
proto int Insert(T value)
class array< Class T > TStringArray
proto string Get(int index)
Gets n-th character from string.