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

◆ RegisterRecipe()

void PluginRecipesManagerBase::RegisterRecipe ( RecipeBase recipe)
inlineprotected

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

437 {
438
440 {
441 Error("Exceeded max. number of recipes, max set to: "+MAX_NUMBER_OF_RECIPES.ToString());
442 }
443
444 m_RegRecipeIndex = m_RecipeList.Insert(recipe);
445 recipe.SetID(m_RegRecipeIndex);
446 m_RecipeNamesList.Insert(recipe.ClassName(), m_RegRecipeIndex);
447 //Print("RegisterRecipe: " +recipe.ClassName() + ", "+ m_RegRecipeIndex.ToString());
448 }
const int MAX_NUMBER_OF_RECIPES
Определения PluginRecipesManager.c:19
ref array< ref RecipeBase > m_RecipeList
Определения PluginRecipesManager.c:42
static ref map< string, int > m_RecipeNamesList
Определения PluginRecipesManager.c:43
void SetID(int id)
Определения RecipeBase.c:560
void Error(string err)
Messagebox with error message.
Определения EnDebug.c:90

Перекрестные ссылки Error(), m_RecipeList, m_RecipeNamesList, m_RegRecipeIndex, MAX_NUMBER_OF_RECIPES и RecipeBase::SetID().

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