Big fix of inventory system, add accessory item type
This commit is contained in:
@@ -2,14 +2,11 @@
|
||||
using Chickensoft.GodotNodeInterfaces;
|
||||
using Chickensoft.Introspection;
|
||||
using Godot;
|
||||
using System.Linq;
|
||||
|
||||
namespace GameJamDungeon
|
||||
{
|
||||
public interface IInventoryItem : INode3D
|
||||
{
|
||||
public abstract InventoryItemInfo InventoryInfo { get; set; }
|
||||
|
||||
public IGameRepo GameRepo { get; }
|
||||
}
|
||||
|
||||
@@ -17,10 +14,9 @@ namespace GameJamDungeon
|
||||
public abstract partial class InventoryItem : Node3D, IInventoryItem
|
||||
{
|
||||
public override void _Notification(int what) => this.Notify(what);
|
||||
|
||||
[Dependency] public IGameRepo GameRepo => this.DependOn<IGameRepo>();
|
||||
|
||||
public abstract InventoryItemInfo InventoryInfo { get; set; }
|
||||
internal abstract InventoryItemInfo Info { get; set; }
|
||||
|
||||
[Node] public Area3D Pickup { get; set; } = default!;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user