blob: a3197d41633f2334a5ef17de88492a827f6971ae (
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);
}
}
|