Improvements to Chinthe animation logic Fix broken Godot Tool system and just use a more manual approach to setting map nodes Remove ItemDatabase from individual room scenes
24 lines
473 B
C#
24 lines
473 B
C#
using Chickensoft.Collections;
|
|
|
|
namespace Zennysoft.Ma.Adapter;
|
|
|
|
public interface IHealthComponent
|
|
{
|
|
public IAutoProp<int> CurrentHP { get; }
|
|
|
|
public IAutoProp<int> MaximumHP { get; }
|
|
|
|
public event Action? HealthReachedZero;
|
|
public event Action? DamageTaken;
|
|
|
|
public bool AtFullHealth { get; }
|
|
|
|
public void Heal(int healAmount);
|
|
|
|
public void Damage(int damageAmount);
|
|
|
|
public void SetHealth(int health);
|
|
|
|
public void RaiseMaximumHP(int raiseAmount);
|
|
}
|