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

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

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

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

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

◆ ActionUpgradeTorchFromGasPump()

12 {
14 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_CRAFTING;
15 m_FullBody = true;
16 m_StanceMask = DayZPlayerConstants.STANCEMASK_CROUCH;
18 m_Text = "#str_upgrade_torch_fuel";
19 }
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 ActionUpgradeTorchFromGasPump.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
29 {
30 Land_FuelStation_Feed fuelstation = Land_FuelStation_Feed.Cast(target.GetObject());
32
33 if ( flammable && fuelstation && fuelstation.HasFuelToGive() )
34 {
35 return flammable.CanReceiveUpgrade();
36 }
37
38 return false;
39 }
Definition Torch.c:2

◆ CreateConditionComponents()

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

◆ IsLockTargetOnUse()

override bool IsLockTargetOnUse ( )
inlineprivate
53 {
54 return false;
55 }

◆ OnFinishProgressServer()

override void OnFinishProgressServer ( ActionData action_data)
inlineprivate
42 {
43 Torch torch = Torch.Cast(action_data.m_MainItem);
44
45 if (torch)
46 {
47 //torch.ConsumeRag();
48 torch.Upgrade(null);
49 }
50 }

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