◆ CAContinuousDisinfectPlant()
◆ Execute()
90 {
92
94 {
96 }
97
99 {
101 }
102 else
103 {
105 {
108
110 {
111
112
114
115 }
116
118
120 }
121 else
122 {
126 }
127 }
128 }
void CalcAndSetQuantity()
Definition FireplaceBase.c:2601
ActionBase m_Action
Definition CABase.c:3
void OnCompletePogress(ActionData action_data)
Definition CAContinuousBase.c:8
PlantBase m_Plant
Definition CAContinuousDisinfectPlant.c:7
float m_SpentQuantityTotal
Definition CAContinuousDisinfectPlant.c:5
float m_PlantNeededSpraying
Definition CAContinuousDisinfectPlant.c:3
float m_SpentQuantity
Definition CAContinuousQuantity.c:4
float m_ItemQuantity
Definition CAContinuousQuantity.c:3
Definition ObjectTyped.c:2
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(), CABase::m_Action, CAContinuousQuantity::m_ItemQuantity, m_Plant, m_PlantNeededSpraying, CAContinuousQuantity::m_QuantityUsedPerSecond, CAContinuousQuantity::m_SpentQuantity, m_SpentQuantityTotal, CAContinuousBase::OnCompletePogress(), UA_ERROR, UA_FINISHED и UA_PROCESSING.
◆ GetProgress()
◆ Setup()
15 {
19 {
21
24 string selection;
25
27 {
30 if (slot)
31 break;
32 }
33
34 if ( slot && slot.GetPlant() )
35 {
36 m_Plant = PlantBase.Cast(slot.GetPlant());
38 {
42 {
44 }
45 else
46 {
48 }
50 {
52 }
54 {
56 }
57
59 }
60 }
61 }
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87 }
float m_TimeToComplete
Definition CAContinuousDisinfectPlant.c:4
ref Param1< float > m_SpentUnits
Definition CAContinuousQuantity.c:8
Super root of all classes in Enforce script.
Definition EnScript.c:11
Definition GardenPlot.c:2
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
static proto float Min(float x, float y)
Returns smaller of two given values.
Перекрестные ссылки Class::CastTo(), CAContinuousQuantity::m_ItemQuantity, m_Plant, m_PlantNeededSpraying, CAContinuousQuantity::m_QuantityUsedPerSecond, CAContinuousQuantity::m_SpentQuantity, CAContinuousQuantity::m_SpentUnits, m_StartQuantity, m_TimeToComplete и Math::Min().
◆ m_Plant
◆ m_PlantNeededSpraying
float m_PlantNeededSpraying |
|
protected |
◆ m_SpentQuantityTotal
float m_SpentQuantityTotal |
|
protected |
◆ m_StartQuantity
◆ m_TimeToComplete
Объявления и описания членов класса находятся в файле: