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

◆ CalcAndSetQuantity()

void CAContinuousFillFuel::CalcAndSetQuantity ( ActionData action_data)
inlineprotected

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

107 {
109
110 if (m_SpentUnits)
111 {
114 }
115
116
117 if ( g_Game.IsServer() )
118 {
119 Transport transport = Transport.Cast(action_data.m_Target.GetObject());
120 action_data.m_MainItem.AddQuantity(-m_SpentQuantity);
121 transport.FillScript(ETransportFluid.FUEL, (m_SpentQuantity * 0.001));
122 }
123
124 m_SpentQuantity = 0;
125 }
DayZGame g_Game
Определения DayZGame.c:4074
ref ActionTarget m_Target
Определения ActionBase.c:39
ItemBase m_MainItem
Определения ActionBase.c:35
void SetACData(Param units)
Определения CABase.c:40
float m_SpentQuantity
Определения CAContinuousFillFuel.c:4
float m_SpentQuantity_total
Определения CAContinuousFillFuel.c:5
ref Param1< float > m_SpentUnits
Определения CAContinuousFillFuel.c:11

Перекрестные ссылки g_Game, ActionData::m_MainItem, m_SpentQuantity, m_SpentQuantity_total, m_SpentUnits, ActionData::m_Target и CABase::SetACData().