Add event publishing for inventory and combat interactions
This commit is contained in:
11
GameCore/Events/InventoryItemChangedEvent.cs
Normal file
11
GameCore/Events/InventoryItemChangedEvent.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using GameCore.ECS;
|
||||
using GameCore.Events.Interfaces;
|
||||
|
||||
namespace GameCore.Events;
|
||||
|
||||
public readonly struct InventoryItemChangedEvent(Entity owner, string itemId, int newQuantity) : IEvent
|
||||
{
|
||||
public readonly Entity Owner = owner;
|
||||
public readonly string ItemId = itemId;
|
||||
public readonly int NewQuantity = newQuantity;
|
||||
}
|
||||
Reference in New Issue
Block a user