16 lines
348 B
C#
16 lines
348 B
C#
using System;
|
|
using Godot;
|
|
|
|
namespace Movementtests.interfaces;
|
|
|
|
public interface IHealthable
|
|
{
|
|
event Action<IHealthable, float> HealthChanged;
|
|
event Action<IHealthable> HealthDepleted;
|
|
|
|
[Export] RHealth RHealth { get; set; }
|
|
|
|
float CurrentHealth { get; set; }
|
|
|
|
void ReduceHealth(IDamageable source, float amount);
|
|
} |