Skip to content

IHealthNews

namespace Griff.Scenes;
public interface IHealthNews : IGameService

What an entity’s scripts hear of its Health (their OnDamage and OnDeath), told at once, whatever dealt the damage: Health reaches it through the services of the game playing its scene (Services).

public abstract void Damaged(Health health, float amount, Entity? source)

The health’s entity took amount of damage from source.

public abstract void Died(Health health)

The health’s entity died.