43 target_GB.GetActionComponentNameList(action_data.
m_Target.GetComponentIndex(), selections);
45 for (
int s = 0; s < selections.Count(); s++)
55 string item_type = action_data.
m_MainItem.GetType();
56 float consumed_quantity =
GetGame().
ConfigGetFloat(
"cfgVehicles " + item_type +
" Horticulture ConsumedQuantity" );
58 float max =
m_Slot.GetFertilizerQuantityMax();
protected void CalcAndSetQuantity()
ref ActionTarget m_Target
protected ActionBase m_Action
void OnCompletePogress(ActionData action_data)
protected float m_TimeToComplete
override int Execute(ActionData action_data)
protected float m_SlotFertilizerNeed
override float GetProgress()
protected float m_SpentQuantityTotal
void CAContinuousFertilizeGardenSlot(float quantity_used_per_second)
protected float m_StartQuantity
protected string m_Selection
override void Setup(ActionData action_data)
protected float m_QuantityUsedPerSecond
protected ref Param1< float > m_SpentUnits
protected float m_ItemQuantity
protected float m_SpentQuantity
proto native float ConfigGetFloat(string path)
Get float value from config on path.
Super root of all classes in Enforce script.
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
proto native CGame GetGame()
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
static proto float Min(float x, float y)
Returns smaller of two given values.