DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ Setup()

override void CAContinuousWaterPlant::Setup ( ActionData action_data)
inlineprotected

См. определение в файле CAContinuousWaterPlant.c строка 11

12 {
13 PlantBase target_PB;
14 if (Class.CastTo(target_PB, action_data.m_Target.GetObject()))
15 {
17 if ( !m_SpentUnits )
18 {
19 m_SpentUnits = new Param1<float>(0);
20 }
21 else
22 {
23 m_SpentUnits.param1 = 0;
24 }
25 if ( action_data.m_MainItem )
26 {
27 m_ItemQuantity = action_data.m_MainItem.GetQuantity();
28 }
29 if ( target_PB )
30 {
31 m_PlantThirstyness = target_PB.GetWaterMax() - target_PB.GetWater();
32 }
33
35 }
36 }
void PlantBase()
Определения PlantBase.c:54
float m_ItemQuantity
Определения CAContinuousQuantity.c:3
ref Param1< float > m_SpentUnits
Определения CAContinuousQuantity.c:8
float m_SpentQuantity
Определения CAContinuousQuantity.c:4
float m_QuantityUsedPerSecond
Определения CAContinuousQuantity.c:6
float m_TimeToComplete
Определения CAContinuousWaterPlant.c:4
float m_PlantThirstyness
Определения CAContinuousWaterPlant.c:3

Перекрестные ссылки ActionData, Class::CastTo(), CAContinuousQuantity::m_ItemQuantity, m_PlantThirstyness, CAContinuousQuantity::m_QuantityUsedPerSecond, CAContinuousQuantity::m_SpentQuantity, CAContinuousQuantity::m_SpentUnits, m_TimeToComplete, Math::Min() и PlantBase().