From 539fd4820f37aa54df8878091db9680d89ee027a Mon Sep 17 00:00:00 2001 From: Matheus Date: Sat, 13 Sep 2025 11:06:46 -0300 Subject: pergaminho --- scripts/Magic/SpellResource.cs | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 scripts/Magic/SpellResource.cs (limited to 'scripts/Magic/SpellResource.cs') diff --git a/scripts/Magic/SpellResource.cs b/scripts/Magic/SpellResource.cs new file mode 100644 index 0000000..bb3fd15 --- /dev/null +++ b/scripts/Magic/SpellResource.cs @@ -0,0 +1,36 @@ +using Godot; +using TheLegendOfGustav.Entities.Actions; +using TheLegendOfGustav.Entities.Actors; + +namespace TheLegendOfGustav.Magic; + +public enum SpellType +{ + Ranged, + Self +} +[GlobalClass] +public partial class SpellResource : Resource +{ + /// + /// Ícone do feitiço na interface gráfica. + /// + [ExportCategory("Visuals")] + [Export] + public Texture2D Icon { get; set; } + /// + /// Nome do feitiço na interface gráfica. + /// + [Export] + public string SpellName { get; set; } = "unnamed spell"; + + [ExportCategory("Mechanics")] + [Export] + public int Cost { get; set; } + [Export] + public SpellType Type { get; set; } + [Export] + public int Range { get; set; } + [Export] + public Godot.Collections.Array Effects { get; set; } = []; +} \ No newline at end of file -- cgit v1.2.3