summaryrefslogtreecommitdiff
path: root/unit/unit.gd
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2025-02-08 14:41:11 +0100
committerDaniel Weipert <git@mail.dweipert.de>2025-02-08 14:41:11 +0100
commitd24180c58e9e1d6149f0ac41d4f4bbaf674bdbd3 (patch)
treeb3316011d7ed6cfa43f6988bd6e05af3b311a495 /unit/unit.gd
parenta210c39b5d2be1e7e5c52568d40ba6a29f34b4bb (diff)
next commit
Diffstat (limited to 'unit/unit.gd')
-rw-r--r--unit/unit.gd18
1 files changed, 18 insertions, 0 deletions
diff --git a/unit/unit.gd b/unit/unit.gd
new file mode 100644
index 0000000..e0f9025
--- /dev/null
+++ b/unit/unit.gd
@@ -0,0 +1,18 @@
+class_name Unit
+extends Node2D
+
+
+@export var max_hp := 0
+@export var current_hp := 0
+
+@export var current_team: String
+
+
+# Called when the node enters the scene tree for the first time.
+func _ready() -> void:
+ pass # Replace with function body.
+
+
+# Called every frame. 'delta' is the elapsed time since the previous frame.
+func _process(_delta: float) -> void:
+ pass