Exemplo n.º 1
0
 internal AfmuRepairsEvent InvokeEvent(AfmuRepairsEvent arg)
 {
     if (_api.ValidateEvent(arg))
     {
         AfmuRepairs?.Invoke(_api, arg);
     }
     return(arg);
 }
 private void AssertEvent(AfmuRepairsEvent @event)
 {
     Assert.NotNull(@event);
     Assert.Equal(DateTime.Parse("2017-08-14T15:41:50Z"), @event.Timestamp);
     Assert.Equal(EventName, @event.Event);
     Assert.Equal("$modularcargobaydoor_name;", @event.Module);
     Assert.Equal("Cargo Hatch", @event.ModuleLocalised);
     Assert.True(@event.FullyRepaired);
     Assert.Equal(1.000000, @event.Health, 6);
 }
Exemplo n.º 3
0
 internal void InvokeAfmuRepairsEvent(AfmuRepairsEvent arg)
 {
     AfmuRepairsEvent?.Invoke(this, arg);
 }
Exemplo n.º 4
0
 internal void InvokeAfmuRepairsEvent(AfmuRepairsEvent arg) => AfmuRepairsEvent?.Invoke(null, arg);