using System; using System.Collections.Generic; using PhoenixLib.Events; using WingsAPI.Scripting.Event.Common; using WingsEmu.Game; using WingsEmu.Game.Maps.Event; namespace WingsAPI.Scripting.Converter { public class SRemovePortalEventConverter : ScriptedEventConverter { private readonly Dictionary _portals; public SRemovePortalEventConverter(Dictionary portals) => _portals = portals; protected override IAsyncEvent Convert(SRemovePortalEvent e) => new PortalRemoveEvent { Portal = _portals[e.Portal.Id] }; } }