internal EscapeInterdictionEvent InvokeEvent(EscapeInterdictionEvent arg) { if (_api.ValidateEvent(arg)) { EscapeInterdiction?.Invoke(_api, arg); } return(arg); }
private void AssertEvent(EscapeInterdictionEvent @event) { Assert.NotNull(@event); Assert.Equal(DateTime.Parse("2019-09-05T11:51:11Z"), @event.Timestamp); Assert.Equal(EventName, @event.Event); Assert.Equal("Thiery", @event.Interdictor); Assert.True(@event.IsPlayer); }
internal void InvokeEscapeInterdictionEvent(EscapeInterdictionEvent arg) { EscapeInterdictionEvent?.Invoke(this, arg); }
private async void CombatEventsOnEscapeInterdictionAsync(object sender, EscapeInterdictionEvent e) => await AddCommand(new AddCommanderCombatInterdictionEscape(_eliteAPI.Location?.StarSystem?.Name, e.Interdictor, e.IsPlayer)) .SendAsync() .ConfigureAwait(false);
internal void InvokeEscapeInterdictionEvent(EscapeInterdictionEvent arg) => EscapeInterdictionEvent?.Invoke(null, arg);