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

◆ ActionCondition()

override bool ActionEatFruit::ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprivate

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

19 {
20 if (!super.ActionCondition(player, target, item))
21 return false;
22 Edible_Base food_item;
23
24 if ( Class.CastTo(food_item, item) )
25 {
26 if ( food_item.IsFruit() )
27 return true;
28 }
29
30 return false;
31 }
void Edible_Base()
Определения Edible_Base.c:1132
override bool IsFruit()
Определения Edible_Base.c:377

Перекрестные ссылки ActionTarget, Class::CastTo() и Edible_Base::IsFruit().