◆ CAContinuousFertilizeGardenSlot()
void CAContinuousFertilizeGardenSlot::CAContinuousFertilizeGardenSlot |
( |
float | quantity_used_per_second | ) |
|
|
inlineprotected |
◆ Execute()
Definition at line 63 of file CAContinuousFertilizeGardenSlot.c.
64 {
67
70 else
71 {
73 {
78
79
81
84
86
88 }
89 else
90 {
94 }
95 }
96 }
void CalcAndSetQuantity()
void OnCompletePogress(ActionData action_data)
float m_SpentQuantityTotal
Super root of all classes in Enforce script.
proto native CGame GetGame()
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
References CalcAndSetQuantity(), Class::CastTo(), GetGame(), CABase::m_Action, CAContinuousQuantity::m_ItemQuantity, CAContinuousQuantity::m_QuantityUsedPerSecond, m_Selection, CAContinuousQuantity::m_SpentQuantity, m_SpentQuantityTotal, CAContinuousBase::OnCompletePogress(), UA_ERROR, UA_FINISHED, and UA_PROCESSING.
◆ GetProgress()
◆ Setup()
Definition at line 16 of file CAContinuousFertilizeGardenSlot.c.
17 {
20 {
23
26 else
28
31
33 {
34
35
36
37
40
42 {
43
47 break;
48 }
49
50
53
54 float max =
m_Slot.GetFertilizerQuantityMax();
55
57 }
59 }
60 }
float m_SlotFertilizerNeed
ref Param1< float > m_SpentUnits
static proto float Min(float x, float y)
Returns smaller of two given values.
References Class::CastTo(), GetGame(), CAContinuousQuantity::m_ItemQuantity, CAContinuousQuantity::m_QuantityUsedPerSecond, m_Selection, m_Slot, m_SlotFertilizerNeed, CAContinuousQuantity::m_SpentQuantity, CAContinuousQuantity::m_SpentUnits, m_StartQuantity, m_TimeToComplete, and Math::Min().
◆ m_Selection
string CAContinuousFertilizeGardenSlot::m_Selection |
|
protected |
◆ m_Slot
Slot CAContinuousFertilizeGardenSlot::m_Slot |
|
protected |
◆ m_SlotFertilizerNeed
float CAContinuousFertilizeGardenSlot::m_SlotFertilizerNeed |
|
protected |
◆ m_SpentQuantityTotal
float CAContinuousFertilizeGardenSlot::m_SpentQuantityTotal |
|
protected |
◆ m_StartQuantity
float CAContinuousFertilizeGardenSlot::m_StartQuantity |
|
protected |
◆ m_TimeToComplete
float CAContinuousFertilizeGardenSlot::m_TimeToComplete |
|
protected |
The documentation for this class was generated from the following file: