23 garden_base.GetActionComponentNameList(target.GetComponentIndex(), selections);
26 for (
int s = 0; s < selections.Count(); s++)
28 selection = selections[s];
29 slot = garden_base.GetSlotBySelection( selection );
34 if ( slot && slot.GetPlant() )
49 if ( action_data.m_MainItem )
91 Object targetObject = action_data.m_Target.GetObject();
93 if ( !action_data.m_Player )
class ActionTargets ActionTarget
void CalcAndSetQuantity()
void OnCompletePogress(ActionData action_data)
override int Execute(ActionData action_data)
float m_PlantNeededSpraying
float m_SpentQuantityTotal
void CAContinuousDisinfectPlant(float quantity_used_per_second)
override void Setup(ActionData action_data)
override float GetProgress()
ref Param1< float > m_SpentUnits
float m_QuantityUsedPerSecond
void CAContinuousQuantity(float quantity_used_per_second)
Super root of all classes in Enforce script.
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
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.