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() )
36 m_Plant = PlantBase.Cast(slot.GetPlant());
115 m_Plant.SprayPlant(transfered_spray);
class ActionTargets ActionTarget
protected void CalcAndSetQuantity()
ref ActionTarget m_Target
protected ActionBase m_Action
void OnCompletePogress(ActionData action_data)
protected PlantBase m_Plant
protected float m_TimeToComplete
override int Execute(ActionData action_data)
override float GetProgress()
protected float m_SpentQuantityTotal
protected float m_PlantNeededSpraying
void CAContinuousDisinfectPlant(float quantity_used_per_second)
protected float m_StartQuantity
override void Setup(ActionData action_data)
protected float m_QuantityUsedPerSecond
protected ref Param1< float > m_SpentUnits
protected float m_ItemQuantity
protected float m_SpentQuantity
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.