summaryrefslogtreecommitdiff
path: root/scripts/entities/actions/ItemAction.cs
blob: 54ff207a518fb22c07c84c840803c388c3a18a90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
using Godot;

public partial class ItemAction : Action
{
	private ConsumableItem item;
	public ItemAction(Actor actor, ConsumableItem item) : base(actor)
	{
		this.item = item;
	}

	public override bool Perform()
	{
		return item.Activate(this);
	}
}