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

public partial class ItemAction : Action
{
	protected ConsumableItem item;
	protected Player player;
	public ItemAction(Player player, ConsumableItem item) : base(player)
	{
		this.item = item;
		this.player = player;
	}

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