summaryrefslogtreecommitdiff
path: root/scripts/actors/ActorDefinition.cs
blob: 7f67787ec93f6aba8241a7b00777668aae31ce2a (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
37
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;

	// 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;
}