DayZ 1.24
Loading...
Searching...
No Matches
ActionUpgradeTorchFromGasPump Class Reference
Inheritance diagram for ActionUpgradeTorchFromGasPump:
[legend]
Collaboration diagram for ActionUpgradeTorchFromGasPump:
[legend]

Private Member Functions

void ActionUpgradeTorchFromGasPump ()
 
override void CreateConditionComponents ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void OnFinishProgressServer (ActionData action_data)
 
- Private Member Functions inherited from 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)
 

Detailed Description

Definition at line 9 of file ActionUpgradeTorchFromGasPump.c.

Constructor & Destructor Documentation

◆ ActionUpgradeTorchFromGasPump()

void ActionUpgradeTorchFromGasPump::ActionUpgradeTorchFromGasPump ( )
inlineprivate

Member Function Documentation

◆ ActionCondition()

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

Definition at line 28 of file ActionUpgradeTorchFromGasPump.c.

29 {
32
33 if (flammable && fuelstation && fuelstation.HasFuelToGive())
34 return flammable.CanReceiveUpgrade();
35
36 return false;
37 }

◆ CreateConditionComponents()

override void ActionUpgradeTorchFromGasPump::CreateConditionComponents ( )
inlineprivate

Definition at line 21 of file ActionUpgradeTorchFromGasPump.c.

22 {
23
26 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56

References m_ConditionItem, and m_ConditionTarget.

◆ OnFinishProgressServer()

override void ActionUpgradeTorchFromGasPump::OnFinishProgressServer ( ActionData action_data)
inlineprivate

Definition at line 39 of file ActionUpgradeTorchFromGasPump.c.

40 {
41 Torch torch = Torch.Cast(action_data.m_MainItem);
42
43 if (torch)
44 {
45 //torch.ConsumeRag();
46 torch.Upgrade(null);
47 }
48 }

The documentation for this class was generated from the following file: