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

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

void ActionWringClothes ()
 
override void CreateConditionComponents ()
 
override bool HasTarget ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void OnFinishProgressServer (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)
 

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

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

◆ ActionWringClothes()

void ActionWringClothes ( )
inlineprivate
15 {
17 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_WRING;
18 m_FullBody = true;
19 m_StanceMask = DayZPlayerConstants.STANCEMASK_CROUCH;
21 m_Text = "#wring_clothes";
22 }
bool m_FullBody
Definition ActionBase.c:61
string m_Text
Definition ActionBase.c:58
float m_SpecialtyWeight
Definition ActionBase.c:77
int m_StanceMask
Definition ActionBase.c:62
Definition ActionWringClothes.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_StanceMask и ActionBase::m_Text.

Методы

◆ ActionCondition()

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

wet+ items (so they will stay damp after wringing)

36 {
37 if (player.IsInWater()) return false;
38
40 if ( item && item.GetWet() >= GameConstants.STATE_WET )
41 {
42 return true;
43 }
44 else
45 {
46 return false;
47 }
48 }
Definition constants.c:638
const float STATE_WET
Definition constants.c:833

Перекрестные ссылки GameConstants::STATE_WET.

◆ CreateConditionComponents()

override void CreateConditionComponents ( )
inlineprivate
25 {
28 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:64
ref CCTBase m_ConditionTarget
Definition ActionBase.c:65
Definition CCINonRuined.c:2
Definition CCTSelf.c:2

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

◆ HasTarget()

override bool HasTarget ( )
inlineprivate
31 {
32 return false;
33 }

◆ OnFinishProgressServer()

override void OnFinishProgressServer ( ActionData action_data)
inlineprivate
58 {
59 /*Param1<float> nacdata = Param1<float>.Cast( action_data.m_ActionComponent.GetACData() );
60 float delta = nacdata.param1;
61 action_data.m_MainItem.AddWet( -delta );*/
62 float wetness = action_data.m_MainItem.GetWet();
63 float wet_change;
64
66 {
68 }
70 {
72 }
74 {
76 }
77
78 //Print(wet_change);
79 action_data.m_MainItem.SetWet(wet_change);
80 }
Definition EnMath.c:7
const float STATE_SOAKING_WET
Definition constants.c:832
const float STATE_DRENCHED
Definition constants.c:831
const float STATE_DAMP
Definition constants.c:834
static proto float RandomFloat(float min, float max)
Returns a random float number between and min[inclusive] and max[exclusive].

Перекрестные ссылки Math::RandomFloat(), GameConstants::STATE_DAMP, GameConstants::STATE_DRENCHED, GameConstants::STATE_SOAKING_WET и GameConstants::STATE_WET.


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