blob: bb3fd15fd3083f57af9d189dbffca010134fa964 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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; } = [];
}
|