예제 #1
0
 private void AssertEvent(SupercruiseEntryEvent @event)
 {
     Assert.NotNull(@event);
     Assert.Equal(DateTime.Parse("2019-09-08T10:17:43Z"), @event.Timestamp);
     Assert.Equal(EventName, @event.Event);
     Assert.Equal("Scylla", @event.StarSystem);
     Assert.Equal(2008064955082, @event.SystemAddress);
 }
예제 #2
0
 internal SupercruiseEntryEvent InvokeEvent(SupercruiseEntryEvent arg)
 {
     if (_api.ValidateEvent(arg))
     {
         SupercruiseEntry?.Invoke(_api, arg);
     }
     return(arg);
 }
예제 #3
0
 internal void InvokeSupercruiseEntryEvent(SupercruiseEntryEvent arg)
 {
     SupercruiseEntryEvent?.Invoke(this, arg);
 }
예제 #4
0
 internal void InvokeSupercruiseEntryEvent(SupercruiseEntryEvent arg) => SupercruiseEntryEvent?.Invoke(null, arg);