idk
This commit is contained in:
@@ -8,16 +8,26 @@ namespace GameJamDungeon
|
||||
public interface IInventoryItem : INode3D
|
||||
{
|
||||
public IGameRepo GameRepo { get; }
|
||||
|
||||
public void DropItem();
|
||||
}
|
||||
|
||||
[Meta(typeof(IAutoNode))]
|
||||
public abstract partial class InventoryItem : Node3D, IInventoryItem
|
||||
{
|
||||
public override void _Notification(int what) => this.Notify(what);
|
||||
|
||||
[Dependency] public IGameRepo GameRepo => this.DependOn<IGameRepo>();
|
||||
|
||||
[Node] public Area3D Pickup { get; set; } = default!;
|
||||
|
||||
[Node] public AnimationPlayer AnimationPlayer { get; set; } = default!;
|
||||
|
||||
internal abstract InventoryItemInfo Info { get; set; }
|
||||
|
||||
[Node] public Area3D Pickup { get; set; } = default!;
|
||||
public void DropItem()
|
||||
{
|
||||
AnimationPlayer.Play("drop");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user