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

◆ PerformRecipe()

void PerformRecipe ( ItemBase item1,
ItemBase item2,
PlayerBase player )
protected

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

522 {
523 if (item1 == NULL || item2 == NULL)
524 {
525 Error("PerformRecipe: recipe invalid, at least one of the ingredients is NULL");
526 Debug.Log("PerformRecipe: at least one of the ingredients is NULL","recipes");
527 }
528
529 if (CheckRecipe(item1,item2,player))
530 {
531 array<ItemBase> spawned_objects = new array<ItemBase>;
532 SpawnItems(m_IngredientsSorted, player,spawned_objects);
533
534 ApplyModificationsResults(m_IngredientsSorted, spawned_objects, NULL, player);
536
537 Do(m_IngredientsSorted, player, spawned_objects, m_Specialty);
538
540 }
541 else
542 {
543 Debug.Log("CheckRecipe failed on server","recipes");
544 }
545 }
void SpawnItems()
Определения ContaminatedArea_Dynamic.c:170
bool CheckRecipe(ItemBase item1, ItemBase item2, PlayerBase player)
Определения RecipeBase.c:479
void DeleleIngredientsPass()
Определения RecipeBase.c:362
float m_Specialty
Определения RecipeBase.c:39
void Do(ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
Определения RecipeBase.c:563
void ApplyModificationsResults(ItemBase sorted[], array< ItemBase > results, ItemBase result, PlayerBase player)
Определения RecipeBase.c:268
void ApplyModificationsIngredients(ItemBase sorted[], PlayerBase player)
Определения RecipeBase.c:373
ItemBase m_IngredientsSorted[MAX_NUMBER_OF_INGREDIENTS]
Определения RecipeBase.c:30
static void Log(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Prints debug message with normal prio.
Определения 3_Game/tools/Debug.c:122
Определения 3_Game/tools/Debug.c:2
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
void Error(string err)
Messagebox with error message.
Определения EnDebug.c:90

Перекрестные ссылки ApplyModificationsIngredients(), ApplyModificationsResults(), CheckRecipe(), DeleleIngredientsPass(), RecipeBase::Do(), Error(), Debug::Log(), m_IngredientsSorted, m_Specialty и SpawnItems().