12 lines
No EOL
443 B
C#
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);
|
|
} |