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

12 lines
No EOL
427 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 SpawnPortalEventHandler : IAsyncEventProcessor<SpawnPortalEvent>
{
public async Task HandleAsync(SpawnPortalEvent e, CancellationToken cancellation) => e.Map.AddPortalToMap(e.Portal);
}