diff options
| author | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-09-13 11:06:46 -0300 |
|---|---|---|
| committer | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-09-13 11:06:46 -0300 |
| commit | 539fd4820f37aa54df8878091db9680d89ee027a (patch) | |
| tree | 41f9f5d6aa123058e3549c1baba4155fa5a85279 /scripts/Magic/SpellResource.cs | |
| parent | b8962990ddb75b874a49c83d8eeaba7b7e45c196 (diff) | |
pergaminho
Diffstat (limited to 'scripts/Magic/SpellResource.cs')
| -rw-r--r-- | scripts/Magic/SpellResource.cs | 36 |
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 |
