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

Private Member Functions

void ActionRepairShelter ()
 
override void CreateConditionComponents ()
 
override bool IsUsingProxies ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void OnFinishProgressServer (ActionData action_data)
 

Detailed Description

Definition at line 2 of file ActionRepairShelter.c.

Constructor & Destructor Documentation

◆ ActionRepairShelter()

void ActionRepairShelter::ActionRepairShelter ( )
inlineprivate

Member Function Documentation

◆ ActionCondition()

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

Definition at line 25 of file ActionRepairShelter.c.

26 {
27 ShelterBase shelter = ShelterBase.Cast(target.GetObject());
28 if (!shelter)
29 return false;
30
31 if (player && shelter)
32 {
35 if (module_repairing.CanRepair(item, shelter))
36 return true;
37 }
38
39 return false;
40 }
PluginBase GetPlugin(typename plugin_type)
Super root of all classes in Enforce script.
Definition EnScript.c:11
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.

References Class::CastTo(), and GetPlugin().

◆ CreateConditionComponents()

override void ActionRepairShelter::CreateConditionComponents ( )
inlineprivate

Definition at line 14 of file ActionRepairShelter.c.

15 {
18 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56
const float SMALL

References m_ConditionItem, m_ConditionTarget, and UAMaxDistances::SMALL.

◆ IsUsingProxies()

override bool ActionRepairShelter::IsUsingProxies ( )
inlineprivate

Definition at line 20 of file ActionRepairShelter.c.

21 {
22 return false;
23 }

◆ OnFinishProgressServer()

override void ActionRepairShelter::OnFinishProgressServer ( ActionData action_data)
inlineprivate

Definition at line 42 of file ActionRepairShelter.c.

43 {
44 ShelterBase shelter = ShelterBase.Cast(action_data.m_Target.GetObject());
45
46 if (shelter)
47 {
51 }
52 }

References Class::CastTo(), GetPlugin(), and m_SpecialtyWeight.


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