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

◆ ActionCondition()

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

Other conditions are handled in CCTLiquid

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

193 {
195 CCTLiquid cctLiquid = CCTLiquid.Cast(m_ConditionTarget);
196 int waterSourceType = cctLiquid.GetWaterSourceType();
197 int liquidSourceType = cctLiquid.GetLiquidSourceType();
198 if (waterSourceType != EWaterSourceObjectType.NONE || liquidSourceType != ELiquidSourceObjectType.NONE)
199 return false;
200
201 ItemBase hook = ItemBase.Cast(item.FindAttachmentBySlotName("Hook"));
202 return hook && !hook.IsRuined() && !hook.IsPendingDeletion();
203 }
ref CCTBase m_ConditionTarget
Определения ActionBase.c:64
ELiquidSourceObjectType
Определения ELiquidSourceObjectType.c:2
EWaterSourceObjectType
Определения EWaterSourceObjectType.c:2
class GP5GasMask extends MaskBase ItemBase
int GetWaterSourceType()
Определения CCTLiquid.c:1014
int GetLiquidSourceType()
Определения CCTLiquid.c:1019

Перекрестные ссылки ActionTarget(), CCTLiquid::GetLiquidSourceType(), CCTLiquid::GetWaterSourceType() и m_ConditionTarget.