summaryrefslogtreecommitdiff
path: root/scripts/Entities/EntityDefinition.cs
diff options
context:
space:
mode:
authorMatheus <matheus.guedes.mg.m@gmail.com>2025-09-09 19:09:34 -0300
committerMatheus <matheus.guedes.mg.m@gmail.com>2025-09-09 19:09:34 -0300
commitc6bbb834f7758027c0df338f1520f34fad3befea (patch)
tree1818cd23c24be16fbe19b16dd0a510874d440d83 /scripts/Entities/EntityDefinition.cs
parentf1b51bed52ffbd90b5b7cc8dcfc6f0484bbbeb3c (diff)
Organização
Diffstat (limited to 'scripts/Entities/EntityDefinition.cs')
-rw-r--r--scripts/Entities/EntityDefinition.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/scripts/Entities/EntityDefinition.cs b/scripts/Entities/EntityDefinition.cs
new file mode 100644
index 0000000..a6080bd
--- /dev/null
+++ b/scripts/Entities/EntityDefinition.cs
@@ -0,0 +1,23 @@
+using Godot;
+
+namespace TheLegendOfGustav.Entities;
+
+[GlobalClass]
+public partial class EntityDefinition : Resource
+{
+ [ExportCategory("Entity Visuals")]
+ // Nome da entidade.
+ [Export]
+ public string name = "unnamed";
+ // Seu sprite.
+ [Export]
+ public Texture2D texture;
+ // A camada da entidade.
+ [Export]
+ public EntityType Type;
+
+ [ExportCategory("Entity Mechanics")]
+ // Se a entidade bloqueia movimento.
+ [Export]
+ public bool blocksMovement = true;
+} \ No newline at end of file