server-master/srcs/_plugins/WingsEmu.Plugins.BasicImplementation/Event/Npcs/NpcDialogEventHandler.cs
2026-02-10 18:21:30 +01:00

19 lines
No EOL
634 B
C#

using System.Threading;
using System.Threading.Tasks;
using PhoenixLib.Events;
using WingsEmu.Game._NpcDialog;
using WingsEmu.Game._NpcDialog.Event;
namespace WingsEmu.Plugins.BasicImplementations.Event.Npcs;
public class NpcDialogEventHandler : IAsyncEventProcessor<NpcDialogEvent>
{
private readonly INpcDialogHandlerContainer _npcDialogHandler;
public NpcDialogEventHandler(INpcDialogHandlerContainer npcDialogHandler) => _npcDialogHandler = npcDialogHandler;
public async Task HandleAsync(NpcDialogEvent e, CancellationToken cancellation)
{
await _npcDialogHandler.ExecuteAsync(e.Sender, e);
}
}