PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
CAContinuousMineWood Class Reference

Private Member Functions

void CAContinuousMineWood (float time_between_drops)
 
override void Setup (ActionData action_data)
 
override int Execute (ActionData action_data)
 
override float GetProgress ()
 
bool GetMiningData (ActionData action_data)
 
void CreatePrimaryItems (ActionData action_data)
 
void CreateSecondaryItems (ActionData action_data, string material_secondary="", int quantity_secondary=-1)
 
void DamagePlayersHands (PlayerBase player)
 

Private Attributes

protected float m_TimeElpased
 
protected float m_AdjustedTimeBetweenMaterialDrops
 
protected float m_CycleTimeOverride
 
protected float m_TimeBetweenMaterialDrops
 
protected float m_DamageToMiningItemEachDrop
 
protected float m_AdjustedDamageToMiningItemEachDrop
 
protected int m_AmountOfDrops
 
protected int m_CurrentAssumedDrops
 
protected ref map< string, intm_MaterialAndQuantityMap
 
protected float m_TimeToComplete
 
protected ref Param1< floatm_SpentUnits
 
protected bool m_DataLoaded = false
 
protected const int MINEDITEM_MAX = 5
 
protected ItemBase m_MinedItem [MINEDITEM_MAX]
 
protected ItemBase m_SecondaryItem
 

Constructor & Destructor Documentation

◆ CAContinuousMineWood()

void CAContinuousMineWood ( float  time_between_drops)
inlineprivate

Member Function Documentation

◆ CreatePrimaryItems()

void CreatePrimaryItems ( ActionData  action_data)
inlineprivate

◆ CreateSecondaryItems()

void CreateSecondaryItems ( ActionData  action_data,
string  material_secondary = "",
int  quantity_secondary = -1 
)
inlineprivate

◆ DamagePlayersHands()

void DamagePlayersHands ( PlayerBase  player)
inlineprivate

◆ Execute()

◆ GetMiningData()

◆ GetProgress()

override float GetProgress ( )
inlineprivate

◆ Setup()

Field Documentation

◆ m_AdjustedDamageToMiningItemEachDrop

protected float m_AdjustedDamageToMiningItemEachDrop
private

◆ m_AdjustedTimeBetweenMaterialDrops

protected float m_AdjustedTimeBetweenMaterialDrops
private

Referenced by Execute(), GetProgress(), and Setup().

◆ m_AmountOfDrops

protected int m_AmountOfDrops
private

◆ m_CurrentAssumedDrops

protected int m_CurrentAssumedDrops
private

Referenced by Execute(), and GetMiningData().

◆ m_CycleTimeOverride

protected float m_CycleTimeOverride
private

◆ m_DamageToMiningItemEachDrop

protected float m_DamageToMiningItemEachDrop
private

◆ m_DataLoaded

protected bool m_DataLoaded = false
private

Referenced by Execute(), and Setup().

◆ m_MaterialAndQuantityMap

protected ref map<string,int> m_MaterialAndQuantityMap
private

◆ m_MinedItem

protected ItemBase m_MinedItem[MINEDITEM_MAX]
private

Referenced by CreatePrimaryItems().

◆ m_SecondaryItem

protected ItemBase m_SecondaryItem
private

Referenced by CreateSecondaryItems().

◆ m_SpentUnits

protected ref Param1<float> m_SpentUnits
private

Referenced by Execute(), and Setup().

◆ m_TimeBetweenMaterialDrops

protected float m_TimeBetweenMaterialDrops
private

◆ m_TimeElpased

protected float m_TimeElpased
private

Referenced by Execute(), GetProgress(), and Setup().

◆ m_TimeToComplete

protected float m_TimeToComplete
private

Referenced by Setup().

◆ MINEDITEM_MAX

protected const int MINEDITEM_MAX = 5
private

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