item count WIP

This commit is contained in:
cblech
2025-04-17 03:24:31 +02:00
parent e99b574d1f
commit fb362e10ad
8 changed files with 24 additions and 5 deletions
@@ -3,4 +3,5 @@
public class ItemInstance
{
public ItemResource blueprint;
public int amount = 1;
}
@@ -2,17 +2,21 @@
namespace Babushka.scripts.CSharp.Common.Inventory;
[GlobalClass]
public partial class ItemResource: Resource
public partial class ItemResource : Resource
{
[Export]
public string name;
[Export]
public Color color;
[Export]
public int maxStack;
public ItemResource()
{
name = "";
color = Colors.Red;
maxStack = 1;
}
}