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

◆ CalcAndSetQuantity()

void CAContinuousQuantity::CalcAndSetQuantity ( ActionData action_data)
inlineprotected

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

80 {
81 if ( GetGame().IsServer() )
82 {
83 if ( m_SpentUnits )
84 {
87 }
88
89 if (action_data.m_MainItem)
90 {
91 action_data.m_MainItem.AddQuantity(- m_SpentQuantity,false,false);
92 }
93 }
94 }
void SetACData(Param units)
Определения CABase.c:40
ref Param1< float > m_SpentUnits
Определения CAContinuousQuantity.c:8
float m_SpentQuantity
Определения CAContinuousQuantity.c:4
proto native CGame GetGame()

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