26 m_TargetUnits = pg.GetCompEM().GetEnergyMax() - pg.GetCompEM().GetEnergy();
37 PowerGenerator pg = PowerGenerator.Cast(action_data.
m_Target.GetObject());
39 if ( pg.GetFuel() >= pg.GetMaxFuel() )
80 PowerGenerator pg = PowerGenerator.Cast(action_data.
m_Target.GetObject());
82 action_data.
m_MainItem.AddQuantity( -consumed_fuel );
protected void CalcAndSetQuantity()
ref ActionTarget m_Target
void SetACData(Param units)
protected ActionBase m_Action
void OnCompletePogress(ActionData action_data)
protected float m_QuantityFilledPerSecond
protected float m_DefaultTimeStep
protected float m_SpentQuantity_total
protected ref Param1< float > m_SpentUnits
protected float m_TimeElpased
protected int m_liquid_type
protected float m_ItemQuantity
protected float m_AdjustedQuantityFilledPerSecond
protected float m_TargetUnits
protected float m_SpentQuantity
override int Execute(ActionData action_data)
void CAContinuousFillPowerGenerator(float quantity_filled_per_second, int liquid_type)
override void CalcAndSetQuantity(ActionData action_data)
override void Setup(ActionData action_data)
override float GetLiquidThroughputCoef()
proto native CGame GetGame()
static proto float Min(float x, float y)
Returns smaller of two given values.