Rework enemy behavior (still in progress but shouldn't crash)
This commit is contained in:
5
Zennysoft.Game.Abstractions/Entity/IBehavior.cs
Normal file
5
Zennysoft.Game.Abstractions/Entity/IBehavior.cs
Normal file
@@ -0,0 +1,5 @@
|
||||
namespace Zennysoft.Game.Abstractions.Entity;
|
||||
|
||||
public interface IBehavior
|
||||
{
|
||||
}
|
||||
11
Zennysoft.Game.Abstractions/Entity/IEntity.cs
Normal file
11
Zennysoft.Game.Abstractions/Entity/IEntity.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace Zennysoft.Game.Abstractions.Entity
|
||||
{
|
||||
public interface IAction
|
||||
{
|
||||
public Task PerformAction();
|
||||
}
|
||||
public interface IAction<T>
|
||||
{
|
||||
public Task PerformAction(T arg);
|
||||
}
|
||||
}
|
||||
8
Zennysoft.Game.Abstractions/Entity/IHealthComponent.cs
Normal file
8
Zennysoft.Game.Abstractions/Entity/IHealthComponent.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace Zennysoft.Game.Abstractions;
|
||||
|
||||
public interface IHealthComponent
|
||||
{
|
||||
int MaximumHP { get; }
|
||||
|
||||
int CurrentHP { get; set; }
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
namespace Zennysoft.Game.Abstractions;
|
||||
|
||||
public interface ICanPatrol
|
||||
{
|
||||
public void Patrol();
|
||||
}
|
||||
Reference in New Issue
Block a user