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

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

void ActionWaterPlant ()
 
override void CreateConditionComponents ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void OnFinishProgressServer (ActionData action_data)
 
override void OnFinishProgressClient (ActionData action_data)
 
- Закрытые члены унаследованные от 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)
 

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

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

◆ ActionWaterPlant()

void ActionWaterPlant ( )
inlineprivate
14 {
16 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_EMPTY_VESSEL;
17 m_FullBody = true;
19 m_Text = "#water_plant";
20 m_LockTargetOnUse = false;
21 }
bool m_FullBody
Definition ActionBase.c:61
string m_Text
Definition ActionBase.c:58
bool m_LockTargetOnUse
Definition ActionBase.c:60
float m_SpecialtyWeight
Definition ActionBase.c:77
Definition ActionWaterPlant.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_LockTargetOnUse, ActionBase::m_SpecialtyWeight и ActionBase::m_Text.

Методы

◆ ActionCondition()

override bool ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprivate
30 {
31 Object targetObject = target.GetObject();
32
33 if ( targetObject != NULL && targetObject.IsInherited(PlantBase) && item != NULL && !item.IsDamageDestroyed() )
34 {
35 PlantBase plant = PlantBase.Cast( targetObject );
36
37 if ( plant.NeedsWater() && item.GetQuantity() > 0 )
38 {
39 return true;
40 }
41 }
42
43 return false;
44 }
Definition ObjectTyped.c:2

◆ CreateConditionComponents()

override void CreateConditionComponents ( )
inlineprivate
24 {
27 }
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.

◆ OnFinishProgressClient()

override void OnFinishProgressClient ( ActionData action_data)
inlineprivate
61 {
62 Object targetObject = action_data.m_Target.GetObject();
63
64 if ( targetObject != NULL && targetObject.IsInherited(PlantBase) )
65 {
66 PlantBase plant = PlantBase.Cast( targetObject );
67 Param1<float> nacdata = Param1<float>.Cast( action_data.m_ActionComponent.GetACData() );
68 float water = nacdata.param1;
69 Slot slot = plant.GetSlot();
70 slot.GiveWater( water );
71 }
72 }

◆ OnFinishProgressServer()

override void OnFinishProgressServer ( ActionData action_data)
inlineprivate
47 {
48 Object targetObject = action_data.m_Target.GetObject();
49
50 if ( targetObject != NULL && targetObject.IsInherited(PlantBase) )
51 {
52 PlantBase plant = PlantBase.Cast( targetObject );
53 Param1<float> nacdata = Param1<float>.Cast( action_data.m_ActionComponent.GetACData() );
54 float water = nacdata.param1;
55 Slot slot = plant.GetSlot();
56 slot.GiveWater( water );
57 }
58 }

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