示例#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);
 }
 internal void InvokeSupercruiseEntryEvent(SupercruiseEntryEvent arg)
 {
     SupercruiseEntryEvent?.Invoke(this, arg);
 }
示例#4
0
 internal void InvokeSupercruiseEntryEvent(SupercruiseEntryEvent arg) => SupercruiseEntryEvent?.Invoke(null, arg);