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

15 lines
No EOL
403 B
C#

using System.Threading;
using System.Threading.Tasks;
using PhoenixLib.Events;
using WingsEmu.Game.Maps.Event;
namespace WingsEmu.Plugins.BasicImplementations.Event.Maps;
public class DisposeMapEventHandler : IAsyncEventProcessor<DisposeMapEvent>
{
public Task HandleAsync(DisposeMapEvent e, CancellationToken cancellation)
{
e.Map.Destroy();
return Task.CompletedTask;
}
}