using System; using Godot; namespace Movementtests.interfaces; public record HealthChangedRecord(float CurrentHealth, float PreviousHealth, float MaxHealth); public interface IHealthable { event Action HealthChanged; event Action HealthDepleted; [Export] RHealth RHealth { get; set; } float CurrentHealth { get; set; } HealthChangedRecord ReduceHealth(IDamageable source, DamageRecord damageRecord); }