Interface

IAircraftState

USI.Core

Simulator-neutral state of the currently loaded user aircraft.

public interface IAircraftState

Methods

TryGetCrashCauseAsync

public Task<USIResult<AircraftCrashCause>> TryGetCrashCauseAsync()

Gets the normalized crash cause, preserving an unspecified cause when a provider exposes only crash activity.

TryGetCrashedAsync

public Task<USIResult<Boolean>> TryGetCrashedAsync()

Gets whether the user aircraft is currently in a crashed state.

TryGetOnGroundAsync

public Task<USIResult<Boolean>> TryGetOnGroundAsync()

Gets whether any part of the user aircraft is in contact with the ground.

TryGetOnRunwayAsync

public Task<USIResult<Boolean>> TryGetOnRunwayAsync()

Gets whether any part of the aircraft is on a runway.

TryGetParkedAsync

public Task<USIResult<Boolean>> TryGetParkedAsync()

Gets whether the aircraft is in the provider's parked state.

TryGetSurfaceConditionAsync

public Task<USIResult<AircraftSurfaceCondition>> TryGetSurfaceConditionAsync()

Gets surface contamination when the provider exposes it.

TryGetSurfaceTypeAsync

public Task<USIResult<AircraftSurfaceType>> TryGetSurfaceTypeAsync()

Gets the physical surface beneath the user aircraft.