Interface

ISimulatorLifecycle

USI.Core

Simulator-neutral flight and loaded-content lifecycle. Provider event names, callback structures, and plugin messages remain below this contract.

public interface ISimulatorLifecycle

Events

AircraftRelocated

public event EventHandler<AircraftRelocatedEventArgs> AircraftRelocated

Raised when the provider reports an explicit user-aircraft relocation.

FlightActivityChanged

public event EventHandler<FlightActivityChangedEventArgs> FlightActivityChanged

Raised when the provider reports that flight activity started or stopped. Consult capability discovery because not every provider exposes this state.

FlightLoaded

public event EventHandler<FlightLoadedEventArgs> FlightLoaded

Raised after a provider-reported flight load and the corresponding aircraft component graph are ready.

FlightSaved

public event EventHandler FlightSaved

Raised after the provider confirms that a flight was saved.

LoadedAircraftAvailabilityChanged

public event EventHandler<LoadedAircraftAvailabilityChangedEventArgs> LoadedAircraftAvailabilityChanged

Raised when the stable Aircraft root gains or loses a usable component graph. Existing child components become stale before an unavailable notification.

SceneryChanged

public event EventHandler SceneryChanged

Raised after the provider reports that the active scenery changed.

Methods

TryGetFlightActivityAsync

public Task<USIResult<SimulatorFlightActivityState>> TryGetFlightActivityAsync()

Gets whether the provider reports the active flight as running.

TryGetFlightsStartWithEnginesRunningAsync

public Task<USIResult<Boolean>> TryGetFlightsStartWithEnginesRunningAsync()

Gets whether newly started flights are configured to initialize with the aircraft engines running.

TryGetLoadedAircraftAvailableAsync

public Task<USIResult<Boolean>> TryGetLoadedAircraftAvailableAsync()

Gets whether the stable Aircraft root currently has a usable graph.

TryGetSceneryLoadingAsync

public Task<USIResult<Boolean>> TryGetSceneryLoadingAsync()

Gets whether the simulator is currently loading or unloading scenery in the background.

TryReloadLoadedAircraftAsync

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

Requests a reload of the currently selected aircraft using the selected visual-asset scope.

TryReloadSceneryAsync

public Task<USIResult> TryReloadSceneryAsync()

Requests that the simulator reload its currently active scenery. Observe to learn when the provider reports completion.

TryRequestSimulatorExitAsync

public Task<USIResult> TryRequestSimulatorExitAsync()

Requests an orderly exit of the simulator application.

TryResetCurrentFlightAsync

public Task<USIResult> TryResetCurrentFlightAsync()

Resets the active flight to its most recent start.

TrySetFlightsStartWithEnginesRunningAsync

public Task<USIResult> TrySetFlightsStartWithEnginesRunningAsync(bool enabled)

Configures whether newly started flights initialize with the aircraft engines running.