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

◆ GenerateRecipeCache()

void PluginRecipesManagerBase::GenerateRecipeCache ( )
inlineprotected

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

181 {
182 g_Game.ProfilerStart("m_RecipeCache");
183
184 //m_CacheBasesMap.Clear();
185 m_CachedItems.Clear();
186 PluginRecipesManager.m_RecipeCache.Clear();
187
188 TStringArray all_config_paths = new TStringArray;
189
190 all_config_paths.Insert(CFG_VEHICLESPATH);
191 all_config_paths.Insert(CFG_WEAPONSPATH);
192 all_config_paths.Insert(CFG_MAGAZINESPATH);
193 //Debug.Log("Got here 0","caching");
194 string config_path;
195 string child_name;
196 int scope;
197 TStringArray full_path = new TStringArray;
198 WalkRecipes();
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,/*out*/ full_path);
212 MatchItems(full_path);
213 }
214 }
215 }
216 g_Game.ProfilerStop("m_RecipeCache");
217 }
DayZGame g_Game
Определения DayZGame.c:4074
Icon x
void PluginRecipesManager()
Определения PluginRecipesManager.c:52
ref array< string > m_CachedItems
Определения PluginRecipesManager.c:40
void MatchItems(TStringArray full_path)
Определения PluginRecipesManager.c:263
proto int Insert(T value)
class array< Class T > TStringArray
const string CFG_VEHICLESPATH
Определения 3_Game/DayZ/constants.c:228
const string CFG_WEAPONSPATH
Определения 3_Game/DayZ/constants.c:229
const string CFG_MAGAZINESPATH
Определения 3_Game/DayZ/constants.c:230
proto string Get(int index)
Gets n-th character from string.

Перекрестные ссылки CFG_MAGAZINESPATH, CFG_VEHICLESPATH, CFG_WEAPONSPATH, g_Game, string::Get(), m_CachedItems, MatchItems(), PluginRecipesManager(), TStringArray, WalkRecipes() и x.

Используется в CallbackGenerateCache() и PluginRecipesManager().