Add door interaction system with state management and event publishing
This commit is contained in:
11
GameCore/Events/DoorStateChangedEvent.cs
Normal file
11
GameCore/Events/DoorStateChangedEvent.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using GameCore.ECS;
|
||||
using GameCore.Events.Interfaces;
|
||||
using GameCore.Interaction;
|
||||
|
||||
namespace GameCore.Events;
|
||||
|
||||
public readonly struct DoorStateChangedEvent(Entity doorEntity, DoorComponent.DoorState newState) : IEvent
|
||||
{
|
||||
public readonly Entity DoorEntity = doorEntity;
|
||||
public readonly DoorComponent.DoorState NewState = newState;
|
||||
}
|
||||
Reference in New Issue
Block a user