17 lines
No EOL
397 B
C#
17 lines
No EOL
397 B
C#
using Godot;
|
|
|
|
namespace Newlon.Components;
|
|
|
|
//
|
|
// Base interface for entities
|
|
//
|
|
public interface IEntity
|
|
{
|
|
public int Hp { get; }
|
|
public int MaxHp { get; }
|
|
public void TakeDamage(int amount, Node origin, Utility.DamageTypes damageType = Utility.DamageTypes.PHYSICAL);
|
|
public void Heal(int amount, Node origin);
|
|
public void DisableBrain();
|
|
public void EnableBrain();
|
|
}
|
|
|