12 lines
227 B
C#
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);
|
|
}
|