2024-01-11 21:00:48 -05:00
|
|
|
using Godot;
|
|
|
|
using System;
|
|
|
|
using GodotGridInventory.Code.Items.Enums;
|
|
|
|
|
|
|
|
[GlobalClass, Icon("res://icon.svg")]
|
2024-01-11 23:52:01 -05:00
|
|
|
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; }
|
2024-01-12 00:49:05 -05:00
|
|
|
[Export] public EnumItemFlags Flags { get; set; }
|
2024-01-11 21:00:48 -05:00
|
|
|
[Export] public string[] Slots { get; set; }
|
2024-01-12 00:49:05 -05:00
|
|
|
[Export] public string[] Tags { get; set; }
|
2024-01-11 21:00:48 -05:00
|
|
|
}
|