diff options
Diffstat (limited to 'scripts/Entities/Items/ItemResource.cs')
| -rw-r--r-- | scripts/Entities/Items/ItemResource.cs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/scripts/Entities/Items/ItemResource.cs b/scripts/Entities/Items/ItemResource.cs new file mode 100644 index 0000000..47ea64d --- /dev/null +++ b/scripts/Entities/Items/ItemResource.cs @@ -0,0 +1,22 @@ +using Godot; + +namespace TheLegendOfGustav.Entities.Items; + +/// <summary> +/// Esta classe só existe para agrupar seus descendentes. +/// </summary> +[GlobalClass] +public partial class ItemResource : Resource +{ + [Export] + public string DisplayName { get; set; } = "Unnamed item"; + [Export] + public Texture2D Icon { get; set; } + [Export] + public int MaxUses { get; set; } = 1; + [Export] + public string Description { get; set; } = ""; + + [Export] + public ItemActivation Activation { get; set; } +}
\ No newline at end of file |
