示例#1
0
 internal EscapeInterdictionEvent InvokeEvent(EscapeInterdictionEvent arg)
 {
     if (_api.ValidateEvent(arg))
     {
         EscapeInterdiction?.Invoke(_api, arg);
     }
     return(arg);
 }
示例#2
0
 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);
示例#5
0
 internal void InvokeEscapeInterdictionEvent(EscapeInterdictionEvent arg) => EscapeInterdictionEvent?.Invoke(null, arg);