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

◆ ActionCondition()

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

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

74 {
75 GardenBase garden_base;
76 if ( Class.CastTo(garden_base, target.GetObject()))
77 {
78 Slot slot = GetPlantSlot(target);
79
80 if (slot)
81 {
82 m_Plant = PlantBase.Cast(slot.GetPlant());
83 if ( m_Plant && m_Plant.IsHarvestable())
84 return true;
85 }
86 }
87 return false;
88
89 }
void PlantBase()
Определения PlantBase.c:54
PlantBase m_Plant
Определения ActionHarvestCrops.c:11
Slot GetPlantSlot(ActionTarget target)
Определения ActionHarvestCrops.c:26

Перекрестные ссылки ActionTarget, Class::CastTo(), GetPlantSlot(), m_Plant и PlantBase().