summaryrefslogtreecommitdiff
path: root/scripts/Magic/SpellResource.cs
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/Magic/SpellResource.cs')
-rw-r--r--scripts/Magic/SpellResource.cs36
1 files changed, 36 insertions, 0 deletions
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
+{
+ /// <summary>
+ /// Ícone do feitiço na interface gráfica.
+ /// </summary>
+ [ExportCategory("Visuals")]
+ [Export]
+ public Texture2D Icon { get; set; }
+ /// <summary>
+ /// Nome do feitiço na interface gráfica.
+ /// </summary>
+ [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<SpellEffect> Effects { get; set; } = [];
+} \ No newline at end of file