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

Private Member Functions

override ActionData CreateActionData ()
 
override void OnActionInfoUpdate (PlayerBase player, ActionTarget target, ItemBase item)
 
string GetYieldName (PlayerBase player, ActionTarget target, ItemBase item)
 
- 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)
 

Private Attributes

EHarvestType m_HarvestType = EHarvestType.NORMAL
 

Detailed Description

Definition at line 16 of file ActionMineTree.c.

Member Function Documentation

◆ CreateActionData()

override ActionData ActionMineBase::CreateActionData ( )
inlineprivate

Definition at line 20 of file ActionMineTree.c.

21 {
23 data.m_HarvestType = m_HarvestType;
24 return data;
25 }
EHarvestType m_HarvestType

References m_HarvestType.

◆ GetYieldName()

string ActionMineBase::GetYieldName ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprivate

Definition at line 32 of file ActionMineTree.c.

33 {
34 //given the circumstances, the implementation bellow is the path of least resistance
35 Object targetObject = target.GetObject();
38 string yieldName;
39 if (wood || rock)
40 {
42 if (wood)
43 wood.GetMaterialAndQuantityMapEx(item, output_map, m_HarvestType);
44 else
45 rock.GetMaterialAndQuantityMap(item, output_map);
46 if (output_map.Count() > 0)
47 yieldName = MiscGameplayFunctions.GetItemDisplayName(output_map.GetKey(0));
48 }
49 return yieldName;
50 }
void WoodBase()
Definition WoodBase.c:30

References m_HarvestType, and WoodBase().

Referenced by OnActionInfoUpdate().

◆ OnActionInfoUpdate()

override void ActionMineBase::OnActionInfoUpdate ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprivate

Definition at line 27 of file ActionMineTree.c.

28 {
29 m_Text = "#harvest" + " " + GetYieldName(player, target, item);
30 }
string m_Text
Definition ActionBase.c:49
string GetYieldName(PlayerBase player, ActionTarget target, ItemBase item)

References GetYieldName(), and m_Text.

Member Data Documentation

◆ m_HarvestType

EHarvestType ActionMineBase::m_HarvestType = EHarvestType.NORMAL
private

Definition at line 18 of file ActionMineTree.c.

Referenced by CreateActionData(), and GetYieldName().


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