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

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

void ActionWaterGardenSlot ()
 
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)
 

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

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

◆ ActionWaterGardenSlot()

void ActionWaterGardenSlot ( )
inlineprivate
14 {
16 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_EMPTY_VESSEL;
17 m_FullBody = true;
19 m_Text = "#water_slot";
20 }
bool m_FullBody
Definition ActionBase.c:61
string m_Text
Definition ActionBase.c:58
float m_SpecialtyWeight
Definition ActionBase.c:77
Definition ActionWaterGardenSlot.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
29 {
30 Object targetObject = target.GetObject();
31
32 if (item.GetQuantity() == 0)
33 return false;
34
35 // Get the liquid
36 int liquid_type = item.GetLiquidType();
37
39 {
40 return false; // Forbid watering of plants with gasoline and other fluids
41 }
42
43 if (item.GetIsFrozen())
44 {
45 return false;
46 }
47
48 if ( targetObject.IsInherited(GardenBase) )
49 {
51
52 Slot slot;
53
55 targetObject.GetActionComponentNameList(target.GetComponentIndex(), selections);
56
57 for (int s = 0; s < selections.Count(); s++)
58 {
59 string selection = selections[s];
60 slot = garden_base.GetSlotBySelection( selection );
61 if (slot)
62 break;
63 }
64
65 if ( slot && !slot.GetPlant() && slot.GetWateredState() == 0 )
66 {
67 return true;
68 }
69 else
70 {
71 return false;
72 }
73 }
74
75 return false;
76 }
Definition GardenPlot.c:2
Definition ObjectTyped.c:2
const int LIQUID_WATER
Definition constants.c:518

Перекрестные ссылки LIQUID_WATER.

◆ CreateConditionComponents()

override void CreateConditionComponents ( )
inlineprivate
23 {
26 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:64
ref CCTBase m_ConditionTarget
Definition ActionBase.c:65
Definition CCINonRuined.c:2
Definition CCTDummy.c:2

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


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