29 garden_base.GetActionComponentNameList(target.GetComponentIndex(), selections);
32 for (
int s = 0; s < selections.Count(); s++)
34 selection = selections[s];
35 slot = garden_base.GetSlotBySelection( selection );
40 if ( slot && slot.GetPlant() )
42 m_Plant = PlantBase.Cast(slot.GetPlant());
ref CCIBase m_ConditionItem
ref CCTBase m_ConditionTarget
class ActionTargets ActionTarget
override void OnExecuteServer(ActionData action_data)
override void CreateConditionComponents()
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
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.