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

◆ CalcAndSetQuantity()

void CAContinuousQuantityLiquidTransfer::CalcAndSetQuantity ( ActionData action_data)
inlineprotected

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

132 {
133 ItemBase target_item = ItemBase.Cast(action_data.m_Target.GetObject());
135
136 if (GetGame().IsServer())
137 {
138 if (m_SpentUnits)
139 {
142 }
143
144 //could move following stuff to action itself, if needed
145 if (m_TendencyDrain)
146 {
147 Liquid.Transfer(target_item, action_data.m_MainItem, m_SpentQuantity);
148 }
149 else
150 {
151 Liquid.Transfer(action_data.m_MainItem, target_item, m_SpentQuantity);
152 }
153 }
154 m_SpentQuantity = 0;
155 }
class GP5GasMask extends MaskBase ItemBase
void SetACData(Param units)
Определения CABase.c:40
proto native CGame GetGame()

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