10 override typename GetInputType()
15 override void CreateConditionComponents()
24 if (
Class.CastTo(garden_base, target.GetObject()))
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());
43 if ( m_Plant.IsGrowing() || m_Plant.IsDry() || !m_Plant.HasCrops() || m_Plant.IsSpoiled())
64 override void OnExecuteServer(
ActionData action_data )
71 m_Plant.RemovePlantEx( action_data.m_Player.GetPosition() );