DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс ActionDisinfectPlant
+ Граф наследования:ActionDisinfectPlant:

Закрытые члены

void ActionDisinfectPlant ()
 
override void CreateConditionComponents ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
- Закрытые члены унаследованные от ActionContinuousBase
void OnStartAnimationLoopServer (ActionData action_data)
 
void OnStartAnimationLoopClient (ActionData action_data)
 
void OnEndAnimationLoopServer (ActionData action_data)
 
void OnEndAnimationLoopClient (ActionData action_data)
 
void OnFinishProgressServer (ActionData action_data)
 
void OnFinishProgressClient (ActionData action_data)
 

Закрытые данные

PlantBase m_Plant
 

Подробное описание

Конструктор(ы)

◆ ActionDisinfectPlant()

void ActionDisinfectPlant ( )
inlineprivate
14 {
17
18 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_SPRAYPLANT;
19 //m_StanceMask = DayZPlayerConstants.STANCEMASK_CROUCH;
20 m_FullBody = true;
21
22 m_Text = "#apply";
23 }
bool m_FullBody
Definition ActionBase.c:61
string m_Text
Definition ActionBase.c:58
float m_SpecialtyWeight
Definition ActionBase.c:77
Definition ActionDisinfectPlant.c:2
int m_CommandUID
Definition AnimatedActionBase.c:143
m_CallbackClass
Definition AnimatedActionBase.c:145
Definition EntityAI.c:95
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602

Перекрестные ссылки AnimatedActionBase::m_CallbackClass, AnimatedActionBase::m_CommandUID, ActionBase::m_FullBody, ActionBase::m_SpecialtyWeight и ActionBase::m_Text.

Методы

◆ ActionCondition()

override bool ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprivate
32 {
34 if ( Class.CastTo(garden_base, target.GetObject()))
35 {
36 Slot slot;
37
39 garden_base.GetActionComponentNameList(target.GetComponentIndex(), selections);
40 string selection;
41
42 for (int s = 0; s < selections.Count(); s++)
43 {
44 selection = selections[s];
45 slot = garden_base.GetSlotBySelection( selection );
46 if (slot)
47 break;
48 }
49
50 if ( slot && slot.GetPlant() )
51 {
52 m_Plant = PlantBase.Cast(slot.GetPlant());
53 if ( m_Plant.IsGrowing() && m_Plant.NeedsSpraying() )
54 {
55 if ( m_Plant.GetPlantStateIndex() < 1 )
56 return false;
57
58 if ( item.GetQuantity() > 0 )
59 {
60 return true;
61 }
62 }
63 }
64 }
65 return false;
66 }
PlantBase m_Plant
Definition ActionDisinfectPlant.c:11
Super root of all classes in Enforce script.
Definition EnScript.c:11
Definition GardenPlot.c:2
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.

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

◆ CreateConditionComponents()

override void CreateConditionComponents ( )
inlineprivate
26 {
29 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:64
ref CCTBase m_ConditionTarget
Definition ActionBase.c:65
Definition CCINotRuinedAndEmpty.c:2
Definition CCTNonRuined.c:2
Definition ActionConstants.c:106
const float DEFAULT
Definition ActionConstants.c:108

Перекрестные ссылки UAMaxDistances::DEFAULT, ActionBase::m_ConditionItem и ActionBase::m_ConditionTarget.

Поля

◆ m_Plant

PlantBase m_Plant
private

Используется в ActionCondition().


Объявления и описания членов класса находятся в файле: