◆ CAContinuousFertilizeGardenSlot()
◆ Execute()
68 {
70 {
72 }
73
75 {
77 }
78 else
79 {
81 {
85
86
88
90 {
92 }
93
95
97 }
98 else
99 {
103 }
104 }
105 }
void CalcAndSetQuantity()
Definition FireplaceBase.c:2601
void OnCompletePogress(ActionData action_data)
Definition CAContinuousBase.c:8
string m_Selection
Definition CAContinuousFertilizeGardenSlot.c:8
float m_SpentQuantityTotal
Definition CAContinuousFertilizeGardenSlot.c:5
float m_SpentQuantity
Definition CAContinuousQuantity.c:4
float m_ItemQuantity
Definition CAContinuousQuantity.c:3
Super root of all classes in Enforce script.
Definition EnScript.c:11
Definition GardenPlot.c:2
proto native CGame GetGame()
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
const int UA_FINISHED
Definition constants.c:443
const int UA_ERROR
Definition constants.c:462
const int UA_PROCESSING
Definition constants.c:441
Перекрестные ссылки CalcAndSetQuantity(), Class::CastTo(), GetGame(), CAContinuousQuantity::m_ItemQuantity, CAContinuousQuantity::m_QuantityUsedPerSecond, m_Selection, CAContinuousQuantity::m_SpentQuantity, m_SpentQuantityTotal, CAContinuousBase::OnCompletePogress(), UA_ERROR, UA_FINISHED и UA_PROCESSING.
◆ GetProgress()
◆ Setup()
17 {
20 {
23
25 {
27 }
28 else
29 {
31 }
32
35
37 {
38
39
40
41
44
46 {
47
51 break;
52 }
53
54
57
58 float max =
m_Slot.GetFertilizerQuantityMax();
59
61 }
63 }
64 }
Slot m_Slot
Definition CAContinuousFertilizeGardenSlot.c:7
float m_SlotFertilizerNeed
Definition CAContinuousFertilizeGardenSlot.c:3
ref Param1< float > m_SpentUnits
Definition CAContinuousQuantity.c:8
static proto float Min(float x, float y)
Returns smaller of two given values.
Перекрестные ссылки 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 и Math::Min().
◆ m_Selection
◆ m_Slot
◆ m_SlotFertilizerNeed
float m_SlotFertilizerNeed |
|
protected |
◆ m_SpentQuantityTotal
float m_SpentQuantityTotal |
|
protected |
◆ m_StartQuantity
◆ m_TimeToComplete
Объявления и описания членов класса находятся в файле: