blob: a2ca1a2bf1d5fc6a6fc3acd93eda470d3c1a0368 (
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 ConsumableItem item;
public ItemAction(Player player, ConsumableItem item) : base(player)
{
this.item = item;
Player = player;
}
public Player Player { get; private set; }
public override bool Perform()
{
return item.Activate(this);
}
}
|