23 if (!super.ActionCondition(player, target, item))
32 garden_base.GetActionComponentNameList(target.GetComponentIndex(), selections);
35 for (
int s = 0; s < selections.Count(); s++)
37 selection = selections[s];
38 slot = garden_base.GetSlotBySelection( selection );
43 if ( slot && slot.GetPlant() )
55 super.OnExecuteServer(action_data);
58 m_Plant.RemovePlantEx(action_data.m_Player.GetPosition());
void ActionTarget(Object object, Object parent, int componentIndex, vector cursorHitPos, float utility, string surfaceName="")
ref CCIBase m_ConditionItem
ref CCTBase m_ConditionTarget
void ActionInteractBase()
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
override void OnExecuteServer(ActionData action_data)
override void CreateConditionComponents()
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.