item count WIP
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user