Add event publishing for inventory and combat interactions
This commit is contained in:
11
GameCore/Events/EntityDamagedEvent.cs
Normal file
11
GameCore/Events/EntityDamagedEvent.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using GameCore.ECS;
|
||||
using GameCore.Events.Interfaces;
|
||||
|
||||
namespace GameCore.Events;
|
||||
|
||||
public readonly struct EntityDamagedEvent(Entity target, float newHealth, float damageTaken) : IEvent
|
||||
{
|
||||
public readonly Entity Target = target;
|
||||
public readonly float NewHealth = newHealth;
|
||||
public readonly float DamageTaken = damageTaken;
|
||||
}
|
||||
Reference in New Issue
Block a user