Add healing effects and systems with event handling
This commit is contained in:
11
GameCore/Events/EntityHealedEvent.cs
Normal file
11
GameCore/Events/EntityHealedEvent.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using GameCore.ECS;
|
||||
using GameCore.Events.Interfaces;
|
||||
|
||||
namespace GameCore.Events;
|
||||
|
||||
public readonly struct EntityHealedEvent(Entity target, float newHealth, float amountHealed) : IEvent
|
||||
{
|
||||
public readonly Entity Target = target;
|
||||
public readonly float NewHealth = newHealth;
|
||||
public readonly float AmountHealed = amountHealed;
|
||||
}
|
||||
10
GameCore/Events/HealDealtEvent.cs
Normal file
10
GameCore/Events/HealDealtEvent.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using GameCore.ECS;
|
||||
using GameCore.Events.Interfaces;
|
||||
|
||||
namespace GameCore.Events;
|
||||
|
||||
public readonly struct HealDealtEvent(Entity target, float amount) : IEvent
|
||||
{
|
||||
public readonly Entity Target = target;
|
||||
public readonly float Amount = amount;
|
||||
}
|
||||
Reference in New Issue
Block a user