示例#1
0
 internal LiftoffEvent InvokeEvent(LiftoffEvent arg)
 {
     if (_api.ValidateEvent(arg))
     {
         Liftoff?.Invoke(_api, arg);
     }
     return(arg);
 }
 private void AssertEvent(LiftoffEvent @event)
 {
     Assert.NotNull(@event);
     Assert.Equal(DateTime.Parse("2016-07-22T10:53:19Z"), @event.Timestamp);
     Assert.Equal(EventName, @event.Event);
     Assert.Equal(63.468872, @event.Latitude, 6);
     Assert.Equal(157.599380, @event.Longitude);
     Assert.True(@event.PlayerControlled);
 }
示例#3
0
 internal void InvokeLiftoffEvent(LiftoffEvent arg)
 {
     LiftoffEvent?.Invoke(this, arg);
 }
示例#4
0
 internal void InvokeLiftoffEvent(LiftoffEvent arg) => LiftoffEvent?.Invoke(null, arg);