diff options
Diffstat (limited to 'scripts/entities/actors/ActorDefinition.cs')
| -rw-r--r-- | scripts/entities/actors/ActorDefinition.cs | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/scripts/entities/actors/ActorDefinition.cs b/scripts/entities/actors/ActorDefinition.cs new file mode 100644 index 0000000..ab0160b --- /dev/null +++ b/scripts/entities/actors/ActorDefinition.cs @@ -0,0 +1,39 @@ +using Godot; + +/// <summary> +/// Define de forma genérica as características de um ator. +/// </summary> +[GlobalClass] +public partial class ActorDefinition : Resource +{ + [ExportCategory("Visuals")] + // Nome do ator. + [Export] + public string name = "unnamed"; + // Seu sprite. + [Export] + public Texture2D texture; + // Sprite de morto + [Export] + public Texture2D deathTexture; + + [ExportCategory("Mechanics")] + // Se o ator bloqueia movimento. + [Export] + public bool blocksMovement = true; + [Export] + public int Speed { get; set;} = 10; + + // Estatísticas padrão do ator. + [ExportCategory("Stats")] + [Export] + public int Hp; + [Export] + public int Mp; + [Export] + public int Atk; + [Export] + public int Def; + [Export] + public int Men; +} |
