Class

SimulatorLifecycle

USI.Core

Default implementation of the unified simulator lifecycle service.

public sealed class SimulatorLifecycle : ISimulatorLifecycle

Events

AircraftRelocated

public event EventHandler<AircraftRelocatedEventArgs> AircraftRelocated

FlightActivityChanged

public event EventHandler<FlightActivityChangedEventArgs> FlightActivityChanged

FlightLoaded

public event EventHandler<FlightLoadedEventArgs> FlightLoaded

FlightSaved

public event EventHandler FlightSaved

LoadedAircraftAvailabilityChanged

public event EventHandler<LoadedAircraftAvailabilityChangedEventArgs> LoadedAircraftAvailabilityChanged

SceneryChanged

public event EventHandler SceneryChanged

Methods

TryGetFlightActivityAsync

public Task<USIResult<SimulatorFlightActivityState>> TryGetFlightActivityAsync()

TryGetFlightsStartWithEnginesRunningAsync

public Task<USIResult<Boolean>> TryGetFlightsStartWithEnginesRunningAsync()

TryGetLoadedAircraftAvailableAsync

public Task<USIResult<Boolean>> TryGetLoadedAircraftAvailableAsync()

TryGetSceneryLoadingAsync

public Task<USIResult<Boolean>> TryGetSceneryLoadingAsync()

TryReloadLoadedAircraftAsync

public Task<USIResult> TryReloadLoadedAircraftAsync(SimulatorLoadedAircraftReloadScope scope = Complete)

TryReloadSceneryAsync

public Task<USIResult> TryReloadSceneryAsync()

TryRequestSimulatorExitAsync

public Task<USIResult> TryRequestSimulatorExitAsync()

TryResetCurrentFlightAsync

public Task<USIResult> TryResetCurrentFlightAsync()

TrySetFlightsStartWithEnginesRunningAsync

public Task<USIResult> TrySetFlightsStartWithEnginesRunningAsync(bool enabled)