You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
446 B
31 lines
446 B
using Godot;
|
|
|
|
namespace Babushka.scripts.CSharp.Common.Inventory;
|
|
|
|
[GlobalClass]
|
|
public partial class ItemResource : Resource
|
|
{
|
|
[Export]
|
|
public string name;
|
|
|
|
[Export]
|
|
public Color color;
|
|
|
|
[Export]
|
|
public Texture2D? icon;
|
|
|
|
[Export]
|
|
public int maxStack;
|
|
|
|
[Export]
|
|
public bool isUnique;
|
|
|
|
public ItemResource()
|
|
{
|
|
name = "";
|
|
color = Colors.Red;
|
|
maxStack = 1;
|
|
}
|
|
}
|
|
|