newlon/scripts/components/IEntity.cs

12 lines
227 B
C#

namespace Newlon.Components;
//
// Base interface for entities
//
public interface IEntity
{
public int Hp { get; }
public int MaxHp { get; }
public void TakeDamage(int amount);
public void Heal(int amount);
}