2025-03-25 19:39:00 +01:00
|
|
|
using Godot;
|
2025-08-20 00:26:58 +02:00
|
|
|
|
2025-03-25 19:39:00 +01:00
|
|
|
namespace Babushka.scripts.CSharp.Common.Inventory;
|
|
|
|
|
|
|
|
|
|
[GlobalClass]
|
2025-04-17 03:24:31 +02:00
|
|
|
public partial class ItemResource : Resource
|
2025-03-25 19:39:00 +01:00
|
|
|
{
|
|
|
|
|
[Export]
|
|
|
|
|
public string name;
|
|
|
|
|
|
|
|
|
|
[Export]
|
|
|
|
|
public Color color;
|
2025-04-17 03:24:31 +02:00
|
|
|
|
2025-05-20 19:48:49 +02:00
|
|
|
[Export]
|
|
|
|
|
public Texture2D? icon;
|
|
|
|
|
|
2025-04-17 03:24:31 +02:00
|
|
|
[Export]
|
|
|
|
|
public int maxStack;
|
2025-08-17 21:57:57 +02:00
|
|
|
|
2025-03-25 19:39:00 +01:00
|
|
|
public ItemResource()
|
|
|
|
|
{
|
|
|
|
|
name = "";
|
|
|
|
|
color = Colors.Red;
|
2025-04-17 03:24:31 +02:00
|
|
|
maxStack = 1;
|
2025-03-25 19:39:00 +01:00
|
|
|
}
|
|
|
|
|
}
|
2025-08-20 00:26:58 +02:00
|
|
|
|