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

◆ PerformRecipe()

void RecipeBase::PerformRecipe ( ItemBase item1,
ItemBase item2,
PlayerBase player )
inlineprotected

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

508 {
509 if (item1 == NULL || item2 == NULL)
510 {
511 Error("PerformRecipe: recipe invalid, at least one of the ingredients is NULL");
512 Debug.Log("PerformRecipe: at least one of the ingredients is NULL","recipes");
513 }
514
515 if (CheckRecipe(item1,item2,player))
516 {
517 array<ItemBase> spawned_objects = new array<ItemBase>;
518 SpawnItems(m_IngredientsSorted, player,spawned_objects);
519
520 ApplyModificationsResults(m_IngredientsSorted, spawned_objects, NULL, player);
522
523 Do(m_IngredientsSorted, player, spawned_objects, m_Specialty);
524
526 }
527 else
528 {
529 Debug.Log("CheckRecipe failed on server","recipes");
530 }
531 }
void Debug()
Определения UniversalTemperatureSource.c:349
void SpawnItems(ItemBase ingredients[], PlayerBase player, array< ItemBase > spawned_objects)
Определения RecipeBase.c:191
void DeleleIngredientsPass()
Определения RecipeBase.c:338
void Do(ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
Определения RecipeBase.c:549
ItemBase m_IngredientsSorted[MAX_NUMBER_OF_INGREDIENTS]
Определения RecipeBase.c:14
void ApplyModificationsIngredients(ItemBase sorted[], PlayerBase player)
Определения RecipeBase.c:349
float m_Specialty
Определения RecipeBase.c:23
void ApplyModificationsResults(ItemBase sorted[], array< ItemBase > results, ItemBase result, PlayerBase player)
Определения RecipeBase.c:244
bool CheckRecipe(ItemBase item1, ItemBase item2, PlayerBase player)
Определения RecipeBase.c:455
void Error(string err)
Messagebox with error message.
Определения EnDebug.c:90

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

Используется в PluginRecipesManagerBase::PerformRecipeServer().