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

12 lines
No EOL
443 B
C#

using System.Threading;
using System.Threading.Tasks;
using PhoenixLib.Events;
using WingsAPI.Game.Extensions.PacketGeneration;
using WingsEmu.Game.Maps.Event;
namespace WingsEmu.Plugins.BasicImplementations.Event.Maps;
public class RemovePortalEventHandler : IAsyncEventProcessor<PortalRemoveEvent>
{
public async Task HandleAsync(PortalRemoveEvent e, CancellationToken cancellation) => e.Portal.MapInstance.DeletePortal(e.Portal);
}