damage handler wip

This commit is contained in:
Strieglitz
2025-02-23 22:21:44 +01:00
parent ed2249bdce
commit b90e0369bf
19 changed files with 145 additions and 45 deletions

View File

@@ -0,0 +1,13 @@
extends Resource
class_name EntityResource
@export var entity_stats: entityStats
@export var entity_scene: PackedScene
func instantiate(parent: Node3D)->Entity:
var entity_instance = entity_scene.instantiate() as Entity
entity_instance.init_entity(entity_stats)
parent.add_child(entity_instance)
return entity_instance

View File

@@ -0,0 +1,9 @@
extends Resource
class_name EntityStats
@export var max_health: MaxHealth
@export var health: Health
@export var armor: Armor
@export var shield: Shield
@export var movementSpeed: MovementSpeed