summaryrefslogtreecommitdiff
path: root/scripts/Entities/Actions/ItemAction.cs
blob: d88832993e7a6946bba749b9338ee9edc611f51f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
using TheLegendOfGustav.Entities.Actors;
using TheLegendOfGustav.Entities.Items;

namespace TheLegendOfGustav.Entities.Actions;

public partial class ItemAction : Action
{
	protected Item item;

	public ItemAction(Player player, Item item) : base(player)
	{
		this.item = item;
		Player = player;
	}

	public Player Player { get; private set; }

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