17 lines
543 B
C#
Raw Normal View History

2024-01-11 21:00:48 -05:00
using Godot;
using System;
using GodotGridInventory.Code.Items.Enums;
[GlobalClass, Icon("res://icon.svg")]
public partial class Item : Resource
2024-01-11 21:00:48 -05:00
{
[Export] public string Id { get; set; }
[Export] public string Name { get; set; }
[Export] public string Description { get; set; }
[Export] public Vector2 Size { get; set; }
[Export] public Texture2D Texture { get; set; }
[Export] public EnumItemFlags Flags { get; set; }
2024-01-11 21:00:48 -05:00
[Export] public string[] Slots { get; set; }
[Export] public string[] Tags { get; set; }
2024-01-11 21:00:48 -05:00
}