Public API Inventory

Documentation for version v0.1.0-beta.3View source on GitHub

This page is generated from the compiled assemblies by tests/OmsiLaunch.DocumentationTests (dotnet run --project tests/OmsiLaunch.DocumentationTests -- --write-inventory); the documentation gate fails when it no longer matches the code. It lists every exported type of OmsiLaunch.Api, OmsiLaunch.Core and OmsiLaunch.Process with its stability and the signature of every public member. Semantics, preconditions, errors and examples are documented on the page named in each heading (default: public API). Stability vocabulary: STABLE_BETA, EXPERIMENTAL, PARTIAL, INTERNAL (public for technical reasons, not an integration surface), UNAVAILABLE (see public API). Compiler-generated record members (Equals, GetHashCode, ToString, Deconstruct, <Clone>$, EqualityContract) are omitted.

OmsiLaunch.Api#

Capability#

Sealed record in OmsiLaunch.Api. Stability: STABLE_BETA. Semantics: public-api.

MemberSignature
constructorCapability(string Name, bool Available, string EvidenceState, string Reason = null)
propertystring Name { get; init; }
propertybool Available { get; init; }
propertystring EvidenceState { get; init; }
propertystring Reason { get; init; }

ContentIdentity#

Sealed record in OmsiLaunch.Api. Stability: STABLE_BETA. Semantics: public-api.

MemberSignature
constructorContentIdentity(string Identity, string Kind, string DisplayName = null)
propertystring Identity { get; init; }
propertystring Kind { get; init; }
propertystring DisplayName { get; init; }

ContentQueryKind#

Enum (byte) in OmsiLaunch.Api. Stability: STABLE_BETA. Semantics: public-api.

MemberSignature
valueMaps = 0
valueSituations = 1
valueVehicles = 2
valueRepaints = 3
valueHofs = 4
valueFleetNumbers = 5
valueRegistrations = 6
valueAddons = 7
valueEntrypoints = 8

D3DDeviceState#

Enum (byte) in OmsiLaunch.Api. Stability: EXPERIMENTAL. Semantics: public-api.

MemberSignature
valueNotReady = 0
valueReady = 1
valueLost = 2
valueResetting = 3
valueStopping = 4
valueStopped = 5

D3DDeviceStatus#

Sealed record in OmsiLaunch.Api. Stability: EXPERIMENTAL. Semantics: public-api.

MemberSignature
constructorD3DDeviceStatus(bool Available, D3DDeviceState State, uint Generation, uint LiveTextureCount, bool ResetHookInstalled, uint ExecutionThreadId, uint LastResetThreadId, int QueryInterfaceHResult, int CooperativeLevelHResult, uint OwnedDeviceReferences)
propertybool Available { get; init; }
propertyD3DDeviceState State { get; init; }
propertyuint Generation { get; init; }
propertyuint LiveTextureCount { get; init; }
propertybool ResetHookInstalled { get; init; }
propertyuint ExecutionThreadId { get; init; }
propertyuint LastResetThreadId { get; init; }
propertyint QueryInterfaceHResult { get; init; }
propertyint CooperativeLevelHResult { get; init; }
propertyuint OwnedDeviceReferences { get; init; }

D3DRuntimeApi#

Static class in OmsiLaunch.Api. Stability: EXPERIMENTAL. Semantics: public-api.

MemberSignature
extension methodTask<D3DTextureDescription> CreateD3DTextureAsync(this IOmsiLaunch launch, SessionHandle session, uint width, uint height, D3DTextureFormat format, uint levels = 1, TimeSpan? timeout = default, CancellationToken cancellationToken = default)
extension methodTask<D3DTextureDescription> DescribeD3DTextureAsync(this IOmsiLaunch launch, SessionHandle session, D3DTextureHandle handle, uint level = 0, TimeSpan? timeout = default, CancellationToken cancellationToken = default)
extension methodTask<D3DDeviceStatus> GetD3DStatusAsync(this IOmsiLaunch launch, SessionHandle session, TimeSpan timeout, CancellationToken cancellationToken = default)
extension methodTask<D3DTextureDescription> ReleaseD3DTextureAsync(this IOmsiLaunch launch, SessionHandle session, D3DTextureHandle handle, TimeSpan? timeout = default, CancellationToken cancellationToken = default)
extension methodTask<D3DTextureDescription> UpdateD3DTextureAsync(this IOmsiLaunch launch, SessionHandle session, D3DTextureHandle handle, D3DTextureUpdate update, TimeSpan? timeout = default, CancellationToken cancellationToken = default)

D3DTextureDescription#

Sealed record in OmsiLaunch.Api. Stability: EXPERIMENTAL. Semantics: public-api.

MemberSignature
constructorD3DTextureDescription(D3DTextureHandle Handle, D3DTextureResourceState State, D3DDeviceState DeviceState, uint Generation, uint Width, uint Height, D3DTextureFormat Format, uint Levels, uint Level, uint LevelWidth, uint LevelHeight, int HResult, uint ExecutionThreadId)
propertyD3DTextureHandle Handle { get; init; }
propertyD3DTextureResourceState State { get; init; }
propertyD3DDeviceState DeviceState { get; init; }
propertyuint Generation { get; init; }
propertyuint Width { get; init; }
propertyuint Height { get; init; }
propertyD3DTextureFormat Format { get; init; }
propertyuint Levels { get; init; }
propertyuint Level { get; init; }
propertyuint LevelWidth { get; init; }
propertyuint LevelHeight { get; init; }
propertyint HResult { get; init; }
propertyuint ExecutionThreadId { get; init; }

D3DTextureFormat#

Enum (byte) in OmsiLaunch.Api. Stability: EXPERIMENTAL. Semantics: public-api.

MemberSignature
valueA8R8G8B8 = 0
valueX8R8G8B8 = 1
valueR5G6B5 = 2
valueX1R5G5B5 = 3
valueA1R5G5B5 = 4
valueA4R4G4B4 = 5
valueA8 = 6
valueL8 = 7
valueA8L8 = 8

D3DTextureHandle#

Sealed record in OmsiLaunch.Api. Stability: EXPERIMENTAL. Semantics: public-api.

MemberSignature
constructorD3DTextureHandle(string Value)
propertystring Value { get; init; }

D3DTextureResourceState#

Enum (byte) in OmsiLaunch.Api. Stability: EXPERIMENTAL. Semantics: public-api.

MemberSignature
valueLive = 0
valueReleased = 1
valueStale = 2

D3DTextureUpdate#

Sealed record in OmsiLaunch.Api. Stability: EXPERIMENTAL. Semantics: public-api.

MemberSignature
constructorD3DTextureUpdate(uint Level, uint X, uint Y, uint Width, uint Height, ReadOnlyMemory<byte> Pixels)
propertyuint Level { get; init; }
propertyuint X { get; init; }
propertyuint Y { get; init; }
propertyuint Width { get; init; }
propertyuint Height { get; init; }
propertyReadOnlyMemory<byte> Pixels { get; init; }

DateSpec#

Sealed record in OmsiLaunch.Api. Stability: PARTIAL. Semantics: launchspec.

MemberSignature
constructorDateSpec(DateTimeMode Mode, OptionalValue<SemanticDate> Value)
propertyDateTimeMode Mode { get; init; }
propertyOptionalValue<SemanticDate> Value { get; init; }

DateTimeMode#

Enum (byte) in OmsiLaunch.Api. Stability: STABLE_BETA. Semantics: launchspec.

MemberSignature
valueUnset = 0
valueExplicit = 1
valueSystem = 2

DiagnosticsSpec#

Sealed record in OmsiLaunch.Api. Stability: PARTIAL. Semantics: launchspec.

MemberSignature
constructorDiagnosticsSpec(bool Log = true, bool Verbose = false, bool OmsiLogAll = false, bool ProcessTrace = false, bool PluginTrace = false, bool NativeTrace = false)
propertybool Log { get; init; }
propertybool Verbose { get; init; }
propertybool OmsiLogAll { get; init; }
propertybool ProcessTrace { get; init; }
propertybool PluginTrace { get; init; }
propertybool NativeTrace { get; init; }

EntrypointMode#

Enum (byte) in OmsiLaunch.Api. Stability: STABLE_BETA. Semantics: launchspec.

MemberSignature
valueUnset = 0
valuePresentedIndex = 1
valueIdentity = 2

EntrypointSpec#

Sealed record in OmsiLaunch.Api. Stability: STABLE_BETA. Semantics: launchspec.

MemberSignature
constructorEntrypointSpec(EntrypointMode Mode, OptionalValue<int> PresentedIndex, OptionalValue<string> Identity)
propertyEntrypointMode Mode { get; init; }
propertyOptionalValue<int> PresentedIndex { get; init; }
propertyOptionalValue<string> Identity { get; init; }
static propertyEntrypointSpec Unset { get; }

EnvironmentSpec#

Sealed record in OmsiLaunch.Api. Stability: STABLE_BETA. Semantics: launchspec.

MemberSignature
constructorEnvironmentSpec(IReadOnlyDictionary<string, OptionalValue<string>> General, IReadOnlyDictionary<string, OptionalValue<string>> Advanced, IReadOnlyDictionary<string, OptionalValue<string>> Graphics, IReadOnlyDictionary<string, OptionalValue<string>> AdvancedGraphics, IReadOnlyDictionary<string, OptionalValue<string>> Sound, IReadOnlyDictionary<string, OptionalValue<string>> AiPassengers, IReadOnlyDictionary<string, OptionalValue<string>> Keyboard, IReadOnlyDictionary<string, OptionalValue<string>> Controllers)
propertyIReadOnlyDictionary<string, OptionalValue<string>> General { get; init; }
propertyIReadOnlyDictionary<string, OptionalValue<string>> Advanced { get; init; }
propertyIReadOnlyDictionary<string, OptionalValue<string>> Graphics { get; init; }
propertyIReadOnlyDictionary<string, OptionalValue<string>> AdvancedGraphics { get; init; }
propertyIReadOnlyDictionary<string, OptionalValue<string>> Sound { get; init; }
propertyIReadOnlyDictionary<string, OptionalValue<string>> AiPassengers { get; init; }
propertyIReadOnlyDictionary<string, OptionalValue<string>> Keyboard { get; init; }
propertyIReadOnlyDictionary<string, OptionalValue<string>> Controllers { get; init; }

IOmsiLaunch#

Interface in OmsiLaunch.Api. Stability: STABLE_BETA. Semantics: public-api.

MemberSignature
methodTask CloseAsync(SessionHandle session, CancellationToken cancellationToken = default)
methodTask<IReadOnlyList<ContentIdentity>> DiscoverAsync(InstallationSpec installation, ContentQueryKind query, OptionalValue<string> scope = default, CancellationToken cancellationToken = default)
methodTask<RuntimeCommandResult> ExecuteRuntimeAsync(SessionHandle session, RuntimeCommand command, TimeSpan timeout, CancellationToken cancellationToken = default)
methodTask<IReadOnlyList<Capability>> GetCapabilitiesAsync(InstallationSpec installation, CancellationToken cancellationToken = default)
methodTask<SessionStatus> GetStatusAsync(SessionHandle session, CancellationToken cancellationToken = default)
methodTask<SessionPlan> PlanSessionAsync(LaunchSpec spec, CancellationToken cancellationToken = default)
methodTask<RecoveryStatus> RecoverPendingAsync(InstallationSpec installation, bool restore, CancellationToken cancellationToken = default)
methodTask<SessionHandle> StartSessionAsync(SessionPlan plan, CancellationToken cancellationToken = default)
methodTask StopAsync(SessionHandle session, CancellationToken cancellationToken = default)
methodTask<SessionStatus> WaitForAsync(SessionHandle session, SessionState state, TimeSpan timeout, CancellationToken cancellationToken = default)

InputSpec#

Sealed record in OmsiLaunch.Api. Stability: PARTIAL. Semantics: launchspec.

MemberSignature
constructorInputSpec(OptionalValue<string> KeyboardDocument, OptionalValue<string> ControllerDocument)
propertyOptionalValue<string> KeyboardDocument { get; init; }
propertyOptionalValue<string> ControllerDocument { get; init; }

InstallationPaths#

Static class in OmsiLaunch.Api. Stability: STABLE_BETA. Semantics: public-api.

MemberSignature
static methodstring IdentityKey(string root)
static methodstring NormalizeRoot(string root)
static methodIReadOnlyList<string> Segments(string relativePath)
static methodbool TryGetContainedRelativePath(string root, string candidate, out string relativePath)

InstallationSpec#

Sealed record in OmsiLaunch.Api. Stability: STABLE_BETA. Semantics: launchspec.

MemberSignature
constructorInstallationSpec(string RootPath, string ExpectedExecutableSha256 = null)
propertystring RootPath { get; init; }
propertystring ExpectedExecutableSha256 { get; init; }

InternetTexturesMode#

Enum (byte) in OmsiLaunch.Api. Stability: STABLE_BETA. Semantics: launchspec.

MemberSignature
valueNative = 0
valueDisabled = 1
valueOverride = 2

InternetTexturesSpec#

Sealed record in OmsiLaunch.Api. Stability: STABLE_BETA. Semantics: launchspec.

MemberSignature
constructorInternetTexturesSpec(InternetTexturesMode Mode = Native, OptionalValue<string> OverrideProfilePath = default)
propertyInternetTexturesMode Mode { get; init; }
propertyOptionalValue<string> OverrideProfilePath { get; init; }

LaunchBehaviorSpec#

Sealed record in OmsiLaunch.Api. Stability: STABLE_BETA. Semantics: launchspec.

MemberSignature
constructorLaunchBehaviorSpec(bool RestoreConfiguration = true, bool SuppressStaleClosecheckWarning = true, int StartupTimeoutSeconds = 180, int ShutdownTimeoutSeconds = 30)
propertybool RestoreConfiguration { get; init; }
propertybool SuppressStaleClosecheckWarning { get; init; }
propertyint StartupTimeoutSeconds { get; init; }
propertyint ShutdownTimeoutSeconds { get; init; }

LaunchDiagnostic#

Sealed record in OmsiLaunch.Api. Stability: STABLE_BETA. Semantics: public-api.

MemberSignature
constructorLaunchDiagnostic(string Code, string Message, IReadOnlyDictionary<string, string> Data = null)
propertystring Code { get; init; }
propertystring Message { get; init; }
propertyIReadOnlyDictionary<string, string> Data { get; init; }

LaunchSpec#

Sealed record in OmsiLaunch.Api. Stability: STABLE_BETA. Semantics: launchspec.

MemberSignature
constructorLaunchSpec(InstallationSpec Installation, WorldSpec World, DateSpec Date, TimeSpec Time, OptionalValue<PlayerVehicleSpec> PlayerVehicle, EnvironmentSpec Environment, LaunchBehaviorSpec Behavior, YearSpec Year = null, WeatherSpec Weather = null, InputSpec Input = null, DiagnosticsSpec Diagnostics = null, SessionPresentationSpec Presentation = null, InternetTexturesSpec InternetTextures = null, SessionProfileMetadata SessionProfile = null)
propertyInstallationSpec Installation { get; init; }
propertyWorldSpec World { get; init; }
propertyDateSpec Date { get; init; }
propertyTimeSpec Time { get; init; }
propertyOptionalValue<PlayerVehicleSpec> PlayerVehicle { get; init; }
propertyEnvironmentSpec Environment { get; init; }
propertyLaunchBehaviorSpec Behavior { get; init; }
propertyYearSpec Year { get; init; }
propertyWeatherSpec Weather { get; init; }
propertyInputSpec Input { get; init; }
propertyDiagnosticsSpec Diagnostics { get; init; }
propertySessionPresentationSpec Presentation { get; init; }
propertyInternetTexturesSpec InternetTextures { get; init; }
propertySessionProfileMetadata SessionProfile { get; init; }
propertyYearSpec EffectiveYear { get; }
propertyWeatherSpec EffectiveWeather { get; }
propertyInputSpec EffectiveInput { get; }
propertyDiagnosticsSpec EffectiveDiagnostics { get; }
propertySessionPresentationSpec EffectivePresentation { get; }
propertyInternetTexturesSpec EffectiveInternetTextures { get; }

OmsiRuntimeException#

Sealed class in OmsiLaunch.Api. Stability: EXPERIMENTAL. Semantics: public-api.

MemberSignature
constructorOmsiRuntimeException(string code, string detail = null)
propertystring Code { get; }

OptionalValue#

Record struct in OmsiLaunch.Api. Stability: STABLE_BETA. Semantics: launchspec.

MemberSignature
constructorOptionalValue(Presence Presence, T Value)
propertyPresence Presence { get; init; }
propertyT Value { get; init; }
propertybool IsSet { get; }
static propertyOptionalValue<T> Unset { get; }
static methodOptionalValue<T> Set(T value)

PlannedMutation#

Sealed record in OmsiLaunch.Api. Stability: STABLE_BETA. Semantics: public-api.

MemberSignature
constructorPlannedMutation(string RelativePath, string SemanticKey, string RequestedValue, string Operation)
propertystring RelativePath { get; init; }
propertystring SemanticKey { get; init; }
propertystring RequestedValue { get; init; }
propertystring Operation { get; init; }

PlayerVehicleSpec#

Sealed record in OmsiLaunch.Api. Stability: PARTIAL. Semantics: launchspec.

MemberSignature
constructorPlayerVehicleSpec(OptionalValue<string> Model, OptionalValue<string> Repaint, OptionalValue<string> Hof, OptionalValue<string> FleetNumber, OptionalValue<string> Registration)
propertyOptionalValue<string> Model { get; init; }
propertyOptionalValue<string> Repaint { get; init; }
propertyOptionalValue<string> Hof { get; init; }
propertyOptionalValue<string> FleetNumber { get; init; }
propertyOptionalValue<string> Registration { get; init; }
propertybool Enabled { get; }

Presence#

Enum (byte) in OmsiLaunch.Api. Stability: STABLE_BETA. Semantics: launchspec.

MemberSignature
valueUnset = 0
valueSet = 1

PublicCapabilityClassification#

Enum (byte) in OmsiLaunch.Api. Stability: STABLE_BETA. Semantics: capabilities.

MemberSignature
valuePublicStableBeta = 0
valuePublicExperimental = 1
valueInternalOnly = 2
valueUnsupported = 3

PublicCapabilityDescriptor#

Sealed record in OmsiLaunch.Api. Stability: STABLE_BETA. Semantics: capabilities.

MemberSignature
constructorPublicCapabilityDescriptor(string Id, string Family, PublicCapabilityClassification Classification, PublicCapabilityKind Kind, bool RequiresSession, bool RequiresExactProfile, string ApiRoute, string CliRoute, string RuntimeValidation, string Description, IReadOnlyList<string> HandleTypes = null)
propertystring Id { get; init; }
propertystring Family { get; init; }
propertyPublicCapabilityClassification Classification { get; init; }
propertyPublicCapabilityKind Kind { get; init; }
propertybool RequiresSession { get; init; }
propertybool RequiresExactProfile { get; init; }
propertystring ApiRoute { get; init; }
propertystring CliRoute { get; init; }
propertystring RuntimeValidation { get; init; }
propertystring Description { get; init; }
propertyIReadOnlyList<string> HandleTypes { get; init; }

PublicCapabilityKind#

Enum (byte) in OmsiLaunch.Api. Stability: STABLE_BETA. Semantics: capabilities.

MemberSignature
valueRead = 0
valueWrite = 1
valueAction = 2
valueEvent = 3

PublicCapabilityRegistry#

Static class in OmsiLaunch.Api. Stability: STABLE_BETA. Semantics: capabilities.

MemberSignature
constantstring ProtocolVersion = "0.1"
static fieldIReadOnlyList<PublicCapabilityDescriptor> All
static propertyIReadOnlyCollection<string> PublicRuntimeOperationIds { get; }
static methodIReadOnlyList<PublicRuntimeArgumentDescriptor> GetRuntimeArguments(string operation)
static methodbool IsInternalResultKey(string key)
static methodbool IsPublicRuntimeOperation(string operation)
static methodPublicRuntimeArgumentValidation ValidateRuntimeArguments(string operation, IReadOnlyDictionary<string, string> arguments)

PublicErrorCategory#

Static class in OmsiLaunch.Api. Stability: STABLE_BETA. Semantics: errors.

MemberSignature
constantstring InvalidArgument = "invalid_argument"
constantstring UnsupportedProfile = "unsupported_profile"
constantstring Session = "session"
constantstring Runtime = "runtime"
constantstring NotFound = "not_found"
constantstring Transaction = "transaction"
constantstring Internal = "internal"

PublicErrorCodes#

Static class in OmsiLaunch.Api. Stability: STABLE_BETA. Semantics: errors.

MemberSignature
constantstring CANCELLED = "OL_E_CANCELLED"
constantstring INTERNAL = "OL_E_INTERNAL"
constantstring TIMEOUT = "OL_E_TIMEOUT"
constantstring WINDOWS_HOST_MISSING = "OL_E_WINDOWS_HOST_MISSING"
constantstring WINDOWS_HOST_START_FAILED = "OL_E_WINDOWS_HOST_START_FAILED"
constantstring BUILD_VALIDATION_FAILED = "OL_E_BUILD_VALIDATION_FAILED"
constantstring UNSUPPORTED_BUILD = "OL_E_UNSUPPORTED_BUILD"
constantstring UNSUPPORTED_OPERATING_SYSTEM = "OL_E_UNSUPPORTED_OPERATING_SYSTEM"
constantstring UNSUPPORTED_OS_ARCHITECTURE = "OL_E_UNSUPPORTED_OS_ARCHITECTURE"
constantstring ENTRYPOINT_NOT_FOUND = "OL_E_ENTRYPOINT_NOT_FOUND"
constantstring ENTRYPOINT_REQUIRED = "OL_E_ENTRYPOINT_REQUIRED"
constantstring HOF_NOT_FOUND = "OL_E_HOF_NOT_FOUND"
constantstring MAP_NOT_FOUND = "OL_E_MAP_NOT_FOUND"
constantstring NOT_FOUND = "OL_E_NOT_FOUND"
constantstring REPAINT_NOT_FOUND = "OL_E_REPAINT_NOT_FOUND"
constantstring SITUATION_MAP_NOT_FOUND = "OL_E_SITUATION_MAP_NOT_FOUND"
constantstring SITUATION_NOT_FOUND = "OL_E_SITUATION_NOT_FOUND"
constantstring VEHICLE_NOT_FOUND = "OL_E_VEHICLE_NOT_FOUND"
constantstring INSTALLATION_BUSY = "OL_E_INSTALLATION_BUSY"
constantstring INSTALLATION_NOT_FOUND = "OL_E_INSTALLATION_NOT_FOUND"
constantstring INSTALLATION_NOT_WRITABLE = "OL_E_INSTALLATION_NOT_WRITABLE"
constantstring PERMANENT_PLUGIN_HASH_MISMATCH = "OL_E_PERMANENT_PLUGIN_HASH_MISMATCH"
constantstring PERMANENT_PLUGIN_MANIFEST_INCOMPLETE = "OL_E_PERMANENT_PLUGIN_MANIFEST_INCOMPLETE"
constantstring PERMANENT_PLUGIN_MISSING = "OL_E_PERMANENT_PLUGIN_MISSING"
constantstring PLATFORM_CAPABILITY_MISSING = "OL_E_PLATFORM_CAPABILITY_MISSING"
constantstring RELEASE_MANIFEST_INVALID = "OL_E_RELEASE_MANIFEST_INVALID"
constantstring INVALID_ARGUMENT = "OL_E_INVALID_ARGUMENT"
constantstring INVALID_SETTING_VALUE = "OL_E_INVALID_SETTING_VALUE"
constantstring SETTING_NOT_WRITABLE = "OL_E_SETTING_NOT_WRITABLE"
constantstring UNKNOWN_SETTING = "OL_E_UNKNOWN_SETTING"
constantstring SPEC_INVALID = "OL_E_SPEC_INVALID"
constantstring SPEC_NOT_FOUND = "OL_E_SPEC_NOT_FOUND"
constantstring SPEC_TOO_LARGE = "OL_E_SPEC_TOO_LARGE"
constantstring SPEC_UNKNOWN_PROPERTY = "OL_E_SPEC_UNKNOWN_PROPERTY"
constantstring CONTROL_COMMAND_UNKNOWN = "OL_E_CONTROL_COMMAND_UNKNOWN"
constantstring CONTROL_FAILED = "OL_E_CONTROL_FAILED"
constantstring CONTROL_HANDLER_FAILED = "OL_E_CONTROL_HANDLER_FAILED"
constantstring CONTROL_MESSAGE_INVALID = "OL_E_CONTROL_MESSAGE_INVALID"
constantstring CONTROL_MESSAGE_TOO_LARGE = "OL_E_CONTROL_MESSAGE_TOO_LARGE"
constantstring CONTROL_PROTOCOL = "OL_E_CONTROL_PROTOCOL"
constantstring CONTROL_RESPONSE_TOO_LARGE = "OL_E_CONTROL_RESPONSE_TOO_LARGE"
constantstring CONTROL_SESSION_MISMATCH = "OL_E_CONTROL_SESSION_MISMATCH"
constantstring PLAN_NOT_RUNNABLE = "OL_E_PLAN_NOT_RUNNABLE"
constantstring ITX_PROFILE_INVALID = "OL_E_ITX_PROFILE_INVALID"
constantstring ITX_PROFILE_MISSING = "OL_E_ITX_PROFILE_MISSING"
constantstring ITX_PROFILE_REQUIRED = "OL_E_ITX_PROFILE_REQUIRED"
constantstring ITX_TARGET_OUTSIDE_TEXTURE_PATH = "OL_E_ITX_TARGET_OUTSIDE_TEXTURE_PATH"
constantstring SPLASH_ASSET_DIRECTORY_MISSING = "OL_E_SPLASH_ASSET_DIRECTORY_MISSING"
constantstring SPLASH_ASSET_MISSING = "OL_E_SPLASH_ASSET_MISSING"
constantstring SPLASH_FORMAT_UNSUPPORTED = "OL_E_SPLASH_FORMAT_UNSUPPORTED"
constantstring PROCESS_CLEANUP_FAILED = "OL_E_PROCESS_CLEANUP_FAILED"
constantstring PROCESS_CREATION_TIME_FAILED = "OL_E_PROCESS_CREATION_TIME_FAILED"
constantstring PROCESS_EXITED_EARLY = "OL_E_PROCESS_EXITED_EARLY"
constantstring PROCESS_START_FAILED = "OL_E_PROCESS_START_FAILED"
constantstring PROCESS_SUPERVISION = "OL_E_PROCESS_SUPERVISION"
constantstring PROCESS_TERMINATE_FAILED = "OL_E_PROCESS_TERMINATE_FAILED"
constantstring PROCESS_WAIT_FAILED = "OL_E_PROCESS_WAIT_FAILED"
constantstring CAMERA_PRESET_FAMILY_UNSUPPORTED = "OL_E_CAMERA_PRESET_FAMILY_UNSUPPORTED"
constantstring DATE_TIME_APPLY_FAILED = "OL_E_DATE_TIME_APPLY_FAILED"
constantstring MAKEVEHICLE_BUS_NOT_FOUND = "OL_E_MAKEVEHICLE_BUS_NOT_FOUND"
constantstring MAKEVEHICLE_DELTA_MULTIPLE = "OL_E_MAKEVEHICLE_DELTA_MULTIPLE"
constantstring MAKEVEHICLE_DELTA_ZERO = "OL_E_MAKEVEHICLE_DELTA_ZERO"
constantstring MAKEVEHICLE_NATIVE_FAILED = "OL_E_MAKEVEHICLE_NATIVE_FAILED"
constantstring PLACE_RANDOM_BUS_FAILED = "OL_E_PLACE_RANDOM_BUS_FAILED"
constantstring RUNTIME_ARGUMENT_REQUIRED = "OL_E_RUNTIME_ARGUMENT_REQUIRED"
constantstring RUNTIME_ARTIFACT_MISSING = "OL_E_RUNTIME_ARTIFACT_MISSING"
constantstring RUNTIME_BASELINE_UNAVAILABLE = "OL_E_RUNTIME_BASELINE_UNAVAILABLE"
constantstring RUNTIME_BUS_IDENTITY_INVALID = "OL_E_RUNTIME_BUS_IDENTITY_INVALID"
constantstring RUNTIME_CHANNEL_BUSY = "OL_E_RUNTIME_CHANNEL_BUSY"
constantstring RUNTIME_CHANNEL_CLOSED = "OL_E_RUNTIME_CHANNEL_CLOSED"
constantstring RUNTIME_CHANNEL_STATE_INVALID = "OL_E_RUNTIME_CHANNEL_STATE_INVALID"
constantstring RUNTIME_CONSTANTS_UNAVAILABLE = "OL_E_RUNTIME_CONSTANTS_UNAVAILABLE"
constantstring RUNTIME_CONSTANT_NOT_FOUND = "OL_E_RUNTIME_CONSTANT_NOT_FOUND"
constantstring RUNTIME_CREATED_OBJECT_INVALID = "OL_E_RUNTIME_CREATED_OBJECT_INVALID"
constantstring RUNTIME_CREATED_OBJECT_NOT_IN_COLLECTION = "OL_E_RUNTIME_CREATED_OBJECT_NOT_IN_COLLECTION"
constantstring RUNTIME_CURVE_DEGENERATE = "OL_E_RUNTIME_CURVE_DEGENERATE"
constantstring RUNTIME_CURVE_EMPTY = "OL_E_RUNTIME_CURVE_EMPTY"
constantstring RUNTIME_CURVE_INVALID = "OL_E_RUNTIME_CURVE_INVALID"
constantstring RUNTIME_CURVE_NOT_FOUND = "OL_E_RUNTIME_CURVE_NOT_FOUND"
constantstring RUNTIME_HOF_UNAVAILABLE = "OL_E_RUNTIME_HOF_UNAVAILABLE"
constantstring RUNTIME_INSTALLATION_INCOMPLETE = "OL_E_RUNTIME_INSTALLATION_INCOMPLETE"
constantstring RUNTIME_OBJECT_HANDLE_REQUIRED = "OL_E_RUNTIME_OBJECT_HANDLE_REQUIRED"
constantstring RUNTIME_OBJECT_HANDLE_STALE = "OL_E_RUNTIME_OBJECT_HANDLE_STALE"
constantstring RUNTIME_OPERATION_FAILED = "OL_E_RUNTIME_OPERATION_FAILED"
constantstring RUNTIME_OPERATION_UNAVAILABLE = "OL_E_RUNTIME_OPERATION_UNAVAILABLE"
constantstring RUNTIME_OPERATION_UNKNOWN = "OL_E_RUNTIME_OPERATION_UNKNOWN"
constantstring RUNTIME_PLAYER_VEHICLE_UNAVAILABLE = "OL_E_RUNTIME_PLAYER_VEHICLE_UNAVAILABLE"
constantstring RUNTIME_PROTOCOL_MISMATCH = "OL_E_RUNTIME_PROTOCOL_MISMATCH"
constantstring RUNTIME_REQUEST_ID_REUSED = "OL_E_RUNTIME_REQUEST_ID_REUSED"
constantstring RUNTIME_REQUEST_TIMEOUT = "OL_E_RUNTIME_REQUEST_TIMEOUT"
constantstring RUNTIME_RESPONSE_INVALID = "OL_E_RUNTIME_RESPONSE_INVALID"
constantstring RUNTIME_RESPONSE_TOO_LARGE = "OL_E_RUNTIME_RESPONSE_TOO_LARGE"
constantstring RUNTIME_SCRIPT_OBJECT_UNAVAILABLE = "OL_E_RUNTIME_SCRIPT_OBJECT_UNAVAILABLE"
constantstring RUNTIME_SESSION_MISMATCH = "OL_E_RUNTIME_SESSION_MISMATCH"
constantstring RUNTIME_SETTING_NOT_PERSISTENT = "OL_E_RUNTIME_SETTING_NOT_PERSISTENT"
constantstring RUNTIME_SETTING_UNAVAILABLE = "OL_E_RUNTIME_SETTING_UNAVAILABLE"
constantstring RUNTIME_STRING_VARIABLE_NOT_FOUND = "OL_E_RUNTIME_STRING_VARIABLE_NOT_FOUND"
constantstring RUNTIME_VALUE_INVALID = "OL_E_RUNTIME_VALUE_INVALID"
constantstring RUNTIME_VALUE_OUT_OF_RANGE = "OL_E_RUNTIME_VALUE_OUT_OF_RANGE"
constantstring RUNTIME_VARIABLE_NOT_FOUND = "OL_E_RUNTIME_VARIABLE_NOT_FOUND"
constantstring RUNTIME_VARIABLE_UNAVAILABLE = "OL_E_RUNTIME_VARIABLE_UNAVAILABLE"
constantstring TIME_APPLY_FAILED = "OL_E_TIME_APPLY_FAILED"
constantstring D3D_DEVICE_LOST = "OL_E_D3D_DEVICE_LOST"
constantstring D3D_INVALID_ARGUMENT = "OL_E_D3D_INVALID_ARGUMENT"
constantstring D3D_INVALID_PIXEL_BUFFER = "OL_E_D3D_INVALID_PIXEL_BUFFER"
constantstring D3D_INVALID_TEXTURE_FORMAT = "OL_E_D3D_INVALID_TEXTURE_FORMAT"
constantstring D3D_NATIVE_CALL_FAILED = "OL_E_D3D_NATIVE_CALL_FAILED"
constantstring D3D_NOT_READY = "OL_E_D3D_NOT_READY"
constantstring D3D_RESET_IN_PROGRESS = "OL_E_D3D_RESET_IN_PROGRESS"
constantstring D3D_RESOURCE_RELEASED = "OL_E_D3D_RESOURCE_RELEASED"
constantstring D3D_STALE_RESOURCE_HANDLE = "OL_E_D3D_STALE_RESOURCE_HANDLE"
constantstring CAPABILITY_UNAVAILABLE = "OL_E_CAPABILITY_UNAVAILABLE"
constantstring HEADLESS_ARM_FAILED = "OL_E_HEADLESS_ARM_FAILED"
constantstring NO_ACTIVE_SESSION = "OL_E_NO_ACTIVE_SESSION"
constantstring PLUGIN_NOT_LOADED = "OL_E_PLUGIN_NOT_LOADED"
constantstring PLUGIN_PROTOCOL_MISMATCH = "OL_E_PLUGIN_PROTOCOL_MISMATCH"
constantstring SESSION_ALREADY_ACTIVE = "OL_E_SESSION_ALREADY_ACTIVE"
constantstring SESSION_NOT_RUNNING = "OL_E_SESSION_NOT_RUNNING"
constantstring SESSION_PRESENTATION_INVALID = "OL_E_SESSION_PRESENTATION_INVALID"
constantstring SESSION_START_FAILED = "OL_E_SESSION_START_FAILED"
constantstring SITUATION_LOAD_FAILED = "OL_E_SITUATION_LOAD_FAILED"
constantstring STARTUP_TIMEOUT = "OL_E_STARTUP_TIMEOUT"
constantstring START_SESSION = "OL_E_START_SESSION"
constantstring WORLD_START_FAILED = "OL_E_WORLD_START_FAILED"
constantstring SESSION_PROFILE_ASSET_MISSING = "OL_E_SESSION_PROFILE_ASSET_MISSING"
constantstring SESSION_PROFILE_INVALID = "OL_E_SESSION_PROFILE_INVALID"
constantstring SESSION_PROFILE_MAP_MISMATCH = "OL_E_SESSION_PROFILE_MAP_MISMATCH"
constantstring SESSION_PROFILE_NOT_FOUND = "OL_E_SESSION_PROFILE_NOT_FOUND"
constantstring SESSION_PROFILE_OVERRIDE_CONFLICT = "OL_E_SESSION_PROFILE_OVERRIDE_CONFLICT"
constantstring SESSION_PROFILE_PATH_ESCAPE = "OL_E_SESSION_PROFILE_PATH_ESCAPE"
constantstring SESSION_PROFILE_PRESET_NOT_FOUND = "OL_E_SESSION_PROFILE_PRESET_NOT_FOUND"
constantstring SESSION_PROFILE_SCHEMA_UNSUPPORTED = "OL_E_SESSION_PROFILE_SCHEMA_UNSUPPORTED"
constantstring SESSION_PROFILE_SETTING_NOT_WRITABLE = "OL_E_SESSION_PROFILE_SETTING_NOT_WRITABLE"
constantstring SESSION_PROFILE_SETTING_UNKNOWN = "OL_E_SESSION_PROFILE_SETTING_UNKNOWN"
constantstring CLOSECHECK_REMOVE_FAILED = "OL_E_CLOSECHECK_REMOVE_FAILED"
constantstring RECOVERY_ABSENT_OWNERSHIP_MISMATCH = "OL_E_RECOVERY_ABSENT_OWNERSHIP_MISMATCH"
constantstring RECOVERY_ABSENT_OWNERSHIP_UNVERIFIED = "OL_E_RECOVERY_ABSENT_OWNERSHIP_UNVERIFIED"
constantstring RECOVERY_BACKUP_CORRUPT = "OL_E_RECOVERY_BACKUP_CORRUPT"
constantstring RECOVERY_JOURNAL_MISSING = "OL_E_RECOVERY_JOURNAL_MISSING"
constantstring RECOVERY_JOURNAL_REMOVE_FAILED = "OL_E_RECOVERY_JOURNAL_REMOVE_FAILED"
constantstring RESTORE_DEFERRED = "OL_E_RESTORE_DEFERRED"
constantstring RESTORE_FAILED = "OL_E_RESTORE_FAILED"
constantstring RESTORE_FOREIGN_FILE_RETAINED = "OL_W_RESTORE_FOREIGN_FILE_RETAINED"
static fieldIReadOnlyList<PublicErrorDescriptor> All

PublicErrorDescriptor#

Sealed record in OmsiLaunch.Api. Stability: STABLE_BETA. Semantics: errors.

MemberSignature
constructorPublicErrorDescriptor(string Code, string Category)
propertystring Code { get; init; }
propertystring Category { get; init; }

PublicExitCode#

Enum (int) in OmsiLaunch.Api. Stability: STABLE_BETA. Semantics: exit-codes.

MemberSignature
valueSuccess = 0
valueSessionFailed = 1
valueInvalidArguments = 2
valueUnsupportedProfile = 3
valueNoActiveSession = 4
valueRuntimeUnavailable = 5
valueNotFound = 6
valueOperationRejected = 7
valueTransactionRecoveryFailed = 8
valueInternalError = 10

PublicRuntimeArgumentDescriptor#

Sealed record in OmsiLaunch.Api. Stability: STABLE_BETA. Semantics: public-api.

MemberSignature
constructorPublicRuntimeArgumentDescriptor(string Name, bool Required, string Description)
propertystring Name { get; init; }
propertybool Required { get; init; }
propertystring Description { get; init; }

PublicRuntimeArgumentValidation#

Sealed record in OmsiLaunch.Api. Stability: STABLE_BETA. Semantics: public-api.

MemberSignature
constructorPublicRuntimeArgumentValidation(bool Accepted, string ErrorCode = null, string Message = null)
propertybool Accepted { get; init; }
propertystring ErrorCode { get; init; }
propertystring Message { get; init; }

RecoveryStatus#

Sealed record in OmsiLaunch.Api. Stability: STABLE_BETA. Semantics: public-api.

MemberSignature
constructorRecoveryStatus(bool Pending, bool Recovered, IReadOnlyList<LaunchDiagnostic> Diagnostics)
propertybool Pending { get; init; }
propertybool Recovered { get; init; }
propertyIReadOnlyList<LaunchDiagnostic> Diagnostics { get; init; }

RuntimeCommand#

Sealed record in OmsiLaunch.Api. Stability: STABLE_BETA. Semantics: runtime-control.

MemberSignature
constructorRuntimeCommand(Guid SessionId, ulong RequestId, string Operation, IReadOnlyDictionary<string, string> Arguments = null)
propertyGuid SessionId { get; init; }
propertyulong RequestId { get; init; }
propertystring Operation { get; init; }
propertyIReadOnlyDictionary<string, string> Arguments { get; init; }

RuntimeCommandResult#

Sealed record in OmsiLaunch.Api. Stability: STABLE_BETA. Semantics: runtime-control.

MemberSignature
constructorRuntimeCommandResult(Guid SessionId, ulong RequestId, bool Succeeded, string ErrorCode = null, IReadOnlyDictionary<string, string> Values = null)
propertyGuid SessionId { get; init; }
propertyulong RequestId { get; init; }
propertybool Succeeded { get; init; }
propertystring ErrorCode { get; init; }
propertyIReadOnlyDictionary<string, string> Values { get; init; }

RuntimeCommandWire#

Static class in OmsiLaunch.Api. Stability: INTERNAL. Semantics: public-api.

MemberSignature
constantuint Magic = 1330401859
constantushort Version = 1
constantint HeaderSize = 72
static methodbyte[] SerializeRequest(RuntimeCommand command)
static methodbyte[] SerializeResponse(RuntimeCommandResult result)
static methodbool TryDeserializeRequest(ReadOnlySpan<byte> bytes, out RuntimeCommand command)
static methodbool TryDeserializeResponse(ReadOnlySpan<byte> bytes, out RuntimeCommandResult result)
static methodbool TryReadRequestId(ReadOnlySpan<byte> bytes, out ulong requestId)

RuntimeEvent#

Sealed record in OmsiLaunch.Api. Stability: STABLE_BETA. Semantics: public-api.

MemberSignature
constructorRuntimeEvent(string Type, DateTimeOffset TimestampUtc, long Sequence, IReadOnlyDictionary<string, string> Data)
propertystring Type { get; init; }
propertyDateTimeOffset TimestampUtc { get; init; }
propertylong Sequence { get; init; }
propertyIReadOnlyDictionary<string, string> Data { get; init; }

RuntimePlatformInfo#

Sealed record in OmsiLaunch.Api. Stability: STABLE_BETA. Semantics: public-api.

MemberSignature
constructorRuntimePlatformInfo(string OsFamily, string OsVersion, string OsArchitecture, string HostArchitecture, string OmsiArchitecture, string PluginArchitecture, bool CurrentPlatformSupported, bool LegacyPlatform, bool Wow64Available, bool InstallationWritable, bool ProcessLaunchSupported, bool PluginRuntimeSupported, bool NativeInteropSupported, bool SharedMemorySupported, bool ExactRestoreSupported)
propertystring OsFamily { get; init; }
propertystring OsVersion { get; init; }
propertystring OsArchitecture { get; init; }
propertystring HostArchitecture { get; init; }
propertystring OmsiArchitecture { get; init; }
propertystring PluginArchitecture { get; init; }
propertybool CurrentPlatformSupported { get; init; }
propertybool LegacyPlatform { get; init; }
propertybool Wow64Available { get; init; }
propertybool InstallationWritable { get; init; }
propertybool ProcessLaunchSupported { get; init; }
propertybool PluginRuntimeSupported { get; init; }
propertybool NativeInteropSupported { get; init; }
propertybool SharedMemorySupported { get; init; }
propertybool ExactRestoreSupported { get; init; }

SemanticDate#

Sealed record in OmsiLaunch.Api. Stability: STABLE_BETA. Semantics: launchspec.

MemberSignature
constructorSemanticDate(int Year, int Month, int Day)
propertyint Year { get; init; }
propertyint Month { get; init; }
propertyint Day { get; init; }

SemanticTime#

Sealed record in OmsiLaunch.Api. Stability: STABLE_BETA. Semantics: launchspec.

MemberSignature
constructorSemanticTime(int Hour, int Minute, int Second)
propertyint Hour { get; init; }
propertyint Minute { get; init; }
propertyint Second { get; init; }

SessionHandle#

Sealed record in OmsiLaunch.Api. Stability: STABLE_BETA. Semantics: public-api.

MemberSignature
constructorSessionHandle(Guid SessionId)
propertyGuid SessionId { get; init; }

SessionPlan#

Sealed record in OmsiLaunch.Api. Stability: STABLE_BETA. Semantics: public-api.

MemberSignature
constructorSessionPlan(Guid SessionId, string BuildProfileId, LaunchSpec Spec, RuntimePlatformInfo Platform, IReadOnlyList<ContentIdentity> ResolvedContent, IReadOnlyList<string> TouchedFiles, IReadOnlyList<string> RuntimeArtifacts, IReadOnlyList<Capability> RequiredCapabilities, IReadOnlyList<Capability> UnsupportedRequestedFeatures, IReadOnlyList<PlannedMutation> PlannedMutations, IReadOnlyList<LaunchDiagnostic> Diagnostics, bool IsRunnable)
propertyGuid SessionId { get; init; }
propertystring BuildProfileId { get; init; }
propertyLaunchSpec Spec { get; init; }
propertyRuntimePlatformInfo Platform { get; init; }
propertyIReadOnlyList<ContentIdentity> ResolvedContent { get; init; }
propertyIReadOnlyList<string> TouchedFiles { get; init; }
propertyIReadOnlyList<string> RuntimeArtifacts { get; init; }
propertyIReadOnlyList<Capability> RequiredCapabilities { get; init; }
propertyIReadOnlyList<Capability> UnsupportedRequestedFeatures { get; init; }
propertyIReadOnlyList<PlannedMutation> PlannedMutations { get; init; }
propertyIReadOnlyList<LaunchDiagnostic> Diagnostics { get; init; }
propertybool IsRunnable { get; init; }

SessionPresentationSpec#

Sealed record in OmsiLaunch.Api. Stability: STABLE_BETA. Semantics: launchspec.

MemberSignature
constructorSessionPresentationSpec(SplashMode Splash = Managed, OptionalValue<string> Language = default, OptionalValue<string> CustomAssetDirectory = default, bool SuppressTrayIcon = false)
propertySplashMode Splash { get; init; }
propertyOptionalValue<string> Language { get; init; }
propertyOptionalValue<string> CustomAssetDirectory { get; init; }
propertybool SuppressTrayIcon { get; init; }

SessionProfileMetadata#

Sealed record in OmsiLaunch.Api. Stability: STABLE_BETA. Semantics: launchspec.

MemberSignature
constructorSessionProfileMetadata(string Id, string Name, string Version, string Author, string PresetId, int PresetIndex, string PresetName, string PackagePath)
propertystring Id { get; init; }
propertystring Name { get; init; }
propertystring Version { get; init; }
propertystring Author { get; init; }
propertystring PresetId { get; init; }
propertyint PresetIndex { get; init; }
propertystring PresetName { get; init; }
propertystring PackagePath { get; init; }

SessionState#

Enum (byte) in OmsiLaunch.Api. Stability: STABLE_BETA. Semantics: public-api.

MemberSignature
valueCreated = 0
valueValidatingPlatform = 1
valuePlanning = 2
valueAcquiringInstallationLock = 3
valueRecoveringPreviousTransaction = 4
valueSnapshotting = 5
valueApplyingConfiguration = 6
valueDeployingRuntime = 7
valueCreatingStartupHandoff = 8
valueStartingProcess = 9
valueWaitingForPlugin = 10
valuePluginBootstrap = 11
valueStartingWorld = 12
valueEnteringGameplay = 13
valueRunning = 14
valueProcessExited = 15
valueRestoring = 16
valueCleaningRuntime = 17
valueCompleted = 18
valueFailed = 19

SessionStatus#

Sealed record in OmsiLaunch.Api. Stability: STABLE_BETA. Semantics: public-api.

MemberSignature
constructorSessionStatus(Guid SessionId, SessionState State, IReadOnlyList<LaunchDiagnostic> Diagnostics, IReadOnlyList<RuntimeEvent> RuntimeEvents = null)
propertyGuid SessionId { get; init; }
propertySessionState State { get; init; }
propertyIReadOnlyList<LaunchDiagnostic> Diagnostics { get; init; }
propertyIReadOnlyList<RuntimeEvent> RuntimeEvents { get; init; }

SplashMode#

Enum (byte) in OmsiLaunch.Api. Stability: STABLE_BETA. Semantics: launchspec.

MemberSignature
valueUnset = 0
valueNative = 0
valueManaged = 1

StartupHandoff#

Sealed record in OmsiLaunch.Api. Stability: INTERNAL. Semantics: public-api.

MemberSignature
constructorStartupHandoff(Guid SessionId, string BuildProfileId, WorldMode WorldMode, string MapIdentity, int PresentedEntrypointIndex, bool HeadlessStart, bool PlayerVehicleEnabled, DateTimeMode DateMode, DateTimeMode TimeMode, string EntrypointIdentity = "", string SituationIdentity = "")
propertyGuid SessionId { get; init; }
propertystring BuildProfileId { get; init; }
propertyWorldMode WorldMode { get; init; }
propertystring MapIdentity { get; init; }
propertyint PresentedEntrypointIndex { get; init; }
propertybool HeadlessStart { get; init; }
propertybool PlayerVehicleEnabled { get; init; }
propertyDateTimeMode DateMode { get; init; }
propertyDateTimeMode TimeMode { get; init; }
propertystring EntrypointIdentity { get; init; }
propertystring SituationIdentity { get; init; }

StartupHandoffWire#

Static class in OmsiLaunch.Api. Stability: INTERNAL. Semantics: public-api.

MemberSignature
constantuint Magic = 1330402120
constantushort Version = 4
static methodbyte[] Serialize(StartupHandoff value)
static methodbool TryDeserialize(ReadOnlySpan<byte> bytes, out StartupHandoff value)

TimeSpec#

Sealed record in OmsiLaunch.Api. Stability: PARTIAL. Semantics: launchspec.

MemberSignature
constructorTimeSpec(DateTimeMode Mode, OptionalValue<SemanticTime> Value)
propertyDateTimeMode Mode { get; init; }
propertyOptionalValue<SemanticTime> Value { get; init; }

WeatherMode#

Enum (byte) in OmsiLaunch.Api. Stability: STABLE_BETA. Semantics: launchspec.

MemberSignature
valueUnset = 0
valuePreset = 1
valueIcao = 2
valueRealCurrent = 3

WeatherSpec#

Sealed record in OmsiLaunch.Api. Stability: PARTIAL. Semantics: launchspec.

MemberSignature
constructorWeatherSpec(WeatherMode Mode, OptionalValue<string> Preset, OptionalValue<string> Icao)
propertyWeatherMode Mode { get; init; }
propertyOptionalValue<string> Preset { get; init; }
propertyOptionalValue<string> Icao { get; init; }

WorldMode#

Enum (int) in OmsiLaunch.Api. Stability: STABLE_BETA. Semantics: launchspec.

MemberSignature
valueNewMap = 0
valueSavedSituation = 1
valueLastMapState = 2
valueLastSituation = 2

WorldSpec#

Sealed record in OmsiLaunch.Api. Stability: STABLE_BETA. Semantics: launchspec.

MemberSignature
constructorWorldSpec(WorldMode Mode, OptionalValue<string> MapIdentity, OptionalValue<string> SituationIdentity, OptionalValue<int> PresentedEntrypointIndex, OptionalValue<string> EntrypointIdentity = default)
propertyWorldMode Mode { get; init; }
propertyOptionalValue<string> MapIdentity { get; init; }
propertyOptionalValue<string> SituationIdentity { get; init; }
propertyOptionalValue<int> PresentedEntrypointIndex { get; init; }
propertyOptionalValue<string> EntrypointIdentity { get; init; }
propertyEntrypointSpec Entrypoint { get; }

YearSpec#

Sealed record in OmsiLaunch.Api. Stability: PARTIAL. Semantics: launchspec.

MemberSignature
constructorYearSpec(DateTimeMode Mode, OptionalValue<int> Value)
propertyDateTimeMode Mode { get; init; }
propertyOptionalValue<int> Value { get; init; }

OmsiLaunch.Core#

LaunchValidation#

Static class in OmsiLaunch.Core. Stability: INTERNAL. Semantics: public-api.

MemberSignature
static methodbool IsMapIdentity(string value)
static methodIReadOnlyList<LaunchDiagnostic> Validate(LaunchSpec spec)

OmsiLaunchRuntimePaths#

Sealed record in OmsiLaunch.Core. Stability: STABLE_BETA. Semantics: public-api.

MemberSignature
constructorOmsiLaunchRuntimePaths(string PluginBuildDirectory, string NativeBridgePath, string ReleaseManifestPath = null)
propertystring PluginBuildDirectory { get; init; }
propertystring NativeBridgePath { get; init; }
propertystring ReleaseManifestPath { get; init; }

OmsiLaunchService#

Sealed class in OmsiLaunch.Core. Stability: STABLE_BETA. Semantics: public-api.

MemberSignature
constructorOmsiLaunchService(IRuntimePlatform platform, OmsiLaunchRuntimePaths runtimePaths)
methodTask CloseAsync(SessionHandle session, CancellationToken cancellationToken = default)
methodTask<IReadOnlyList<ContentIdentity>> DiscoverAsync(InstallationSpec installation, ContentQueryKind query, OptionalValue<string> scope = default, CancellationToken cancellationToken = default)
methodTask<RuntimeCommandResult> ExecuteRuntimeAsync(SessionHandle session, RuntimeCommand command, TimeSpan timeout, CancellationToken cancellationToken = default)
methodTask<IReadOnlyList<Capability>> GetCapabilitiesAsync(InstallationSpec installation, CancellationToken cancellationToken = default)
methodTask<SessionStatus> GetStatusAsync(SessionHandle session, CancellationToken cancellationToken = default)
methodTask<SessionPlan> PlanSessionAsync(LaunchSpec spec, CancellationToken cancellationToken = default)
methodTask<RecoveryStatus> RecoverPendingAsync(InstallationSpec installation, bool restore, CancellationToken cancellationToken = default)
methodTask<SessionHandle> StartSessionAsync(SessionPlan plan, CancellationToken cancellationToken = default)
methodTask StopAsync(SessionHandle session, CancellationToken cancellationToken = default)
methodTask<SessionStatus> WaitForAsync(SessionHandle session, SessionState state, TimeSpan timeout, CancellationToken cancellationToken = default)

ProfileNew#

Sealed record in OmsiLaunch.Core. Stability: EXPERIMENTAL. Semantics: session-profiles.

MemberSignature
constructorProfileNew(string Map = null, int? EntrypointIndex = default, string EntrypointIdentity = null, SemanticDate Date = null, SemanticTime Time = null, int? Year = default, WeatherSpec Weather = null)
propertystring Map { get; init; }
propertyint? EntrypointIndex { get; init; }
propertystring EntrypointIdentity { get; init; }
propertySemanticDate Date { get; init; }
propertySemanticTime Time { get; init; }
propertyint? Year { get; init; }
propertyWeatherSpec Weather { get; init; }

ProfilePreset#

Sealed record in OmsiLaunch.Core. Stability: EXPERIMENTAL. Semantics: session-profiles.

MemberSignature
constructorProfilePreset(int Index, string Id, string Name, IReadOnlyDictionary<string, string> Settings, SessionPresentationSpec Presentation, InternetTexturesSpec InternetTextures, LaunchBehaviorSpec Behavior)
propertyint Index { get; init; }
propertystring Id { get; init; }
propertystring Name { get; init; }
propertyIReadOnlyDictionary<string, string> Settings { get; init; }
propertySessionPresentationSpec Presentation { get; init; }
propertyInternetTexturesSpec InternetTextures { get; init; }
propertyLaunchBehaviorSpec Behavior { get; init; }

SessionPlanner#

Sealed class in OmsiLaunch.Core. Stability: INTERNAL. Semantics: public-api.

MemberSignature
constructorSessionPlanner(IRuntimePlatform platform)
methodTask<SessionPlan> PlanAsync(LaunchSpec spec, CancellationToken cancellationToken = default)

SessionProfileCompiler#

Static class in OmsiLaunch.Core. Stability: EXPERIMENTAL. Semantics: session-profiles.

MemberSignature
constantstring Schema = "omsilaunch.session-profile/v1"
constantlong MaxBytes = 262144
static fieldIReadOnlyDictionary<string, IReadOnlyList<string>> SchemaKeys
static methodLaunchSpec Apply(SessionProfilePackage profile, LaunchSpec baseline, WorldMode selectedWorldMode)
static methodSessionProfilePackage Load(string installationRoot, string id, int presetIndex)
static methodvoid ValidateCompatibility(SessionProfilePackage profile, string installationRoot, WorldSpec world, WorldMode mode)

SessionProfileException#

Sealed class in OmsiLaunch.Core. Stability: EXPERIMENTAL. Semantics: session-profiles.

MemberSignature
constructorSessionProfileException(string code, string message)
propertystring Code { get; }

SessionProfilePackage#

Sealed record in OmsiLaunch.Core. Stability: EXPERIMENTAL. Semantics: session-profiles.

MemberSignature
constructorSessionProfilePackage(string RootPath, SessionProfileMetadata Metadata, IReadOnlyList<string> CompatibleMaps, ProfileNew New, ProfilePreset Preset)
propertystring RootPath { get; init; }
propertySessionProfileMetadata Metadata { get; init; }
propertyIReadOnlyList<string> CompatibleMaps { get; init; }
propertyProfileNew New { get; init; }
propertyProfilePreset Preset { get; init; }

OmsiLaunch.Process#

CurrentRuntimeCommandStore#

Sealed class in OmsiLaunch.Process. Stability: INTERNAL. Semantics: public-api.

MemberSignature
propertystring Name { get; }
propertyGuid SessionId { get; }
static methodCurrentRuntimeCommandStore Create(Guid sessionId)
methodvoid Dispose()
methodTask<RuntimeCommandResult> RequestAsync(RuntimeCommand command, TimeSpan timeout, CancellationToken cancellationToken = default)

CurrentStartupHandoffStore#

Sealed class in OmsiLaunch.Process. Stability: INTERNAL. Semantics: public-api.

MemberSignature
propertystring Name { get; }
propertyGuid SessionId { get; }
static methodCurrentStartupHandoffStore Create(StartupHandoff handoff)
methodvoid Dispose()

CurrentTelemetryStore#

Sealed class in OmsiLaunch.Process. Stability: INTERNAL. Semantics: public-api.

MemberSignature
propertystring Name { get; }
static methodCurrentTelemetryStore Create(Guid sessionId)
methodvoid Dispose()
methodValueTuple<int, string>? ReadLatest()

CurrentWindowsX64Platform#

Sealed class in OmsiLaunch.Process. Stability: STABLE_BETA. Semantics: public-api.

MemberSignature
constructorCurrentWindowsX64Platform()
methodRuntimePlatformInfo Detect(string root)
methodbool HasExited(LaunchedProcess p)
methodbool IsInstallationWritable(string root)
methodTask<LaunchedProcess> StartAsync(StartupProcessRequest request, string executableSha256, CancellationToken cancellationToken)
methodvoid Terminate(LaunchedProcess p)
methodvoid ValidateCurrent(RuntimePlatformInfo p)
methodTask WaitForExitAsync(LaunchedProcess process, CancellationToken token)

IOmsiProcessController#

Interface in OmsiLaunch.Process. Stability: INTERNAL. Semantics: public-api.

MemberSignature
methodOmsiProcessState Observe()
methodTask<int> StartAsync(string installation, CancellationToken cancellationToken = default)
methodTask StopAsync(CancellationToken cancellationToken = default)

IRuntimePlatform#

Interface in OmsiLaunch.Process. Stability: STABLE_BETA. Semantics: public-api.

MemberSignature
methodRuntimePlatformInfo Detect(string installationRoot)
methodbool HasExited(LaunchedProcess process)
methodbool IsInstallationWritable(string installationRoot)
methodTask<LaunchedProcess> StartAsync(StartupProcessRequest request, string executableSha256, CancellationToken cancellationToken)
methodvoid Terminate(LaunchedProcess process)
methodvoid ValidateCurrent(RuntimePlatformInfo platform)
methodTask WaitForExitAsync(LaunchedProcess process, CancellationToken cancellationToken)

InstallationLease#

Sealed class in OmsiLaunch.Process. Stability: INTERNAL. Semantics: public-api.

MemberSignature
static methodInstallationLease Acquire(string installationRoot)
methodvoid Dispose()
static methodstring NormalizeRoot(string installationRoot)

LaunchedProcess#

Sealed class in OmsiLaunch.Process. Stability: INTERNAL. Semantics: public-api.

MemberSignature
propertyint ProcessId { get; }
propertyint ThreadId { get; }
propertyProcessIdentity Identity { get; }
methodvoid Dispose()

OmsiProcessState#

Sealed record in OmsiLaunch.Process. Stability: INTERNAL. Semantics: public-api.

MemberSignature
constructorOmsiProcessState(string State, int? ProcessId, bool Responding)
propertystring State { get; init; }
propertyint? ProcessId { get; init; }
propertybool Responding { get; init; }

ProcessIdentity#

Sealed record in OmsiLaunch.Process. Stability: INTERNAL. Semantics: public-api.

MemberSignature
constructorProcessIdentity(int ProcessId, DateTimeOffset CreationTimeUtc, string ExecutablePath, string ExecutableSha256)
propertyint ProcessId { get; init; }
propertyDateTimeOffset CreationTimeUtc { get; init; }
propertystring ExecutablePath { get; init; }
propertystring ExecutableSha256 { get; init; }

ReleaseManifest#

Static class in OmsiLaunch.Process. Stability: INTERNAL. Semantics: public-api.

MemberSignature
constantstring FileName = "release-manifest.json"
static methodIReadOnlyDictionary<string, string> ParsePluginHashes(byte[] bytes)
static methodIReadOnlyDictionary<string, string> TryReadPluginHashes(string manifestPath)

RuntimeArtifact#

Sealed record in OmsiLaunch.Process. Stability: INTERNAL. Semantics: public-api.

MemberSignature
constructorRuntimeArtifact(string SourcePath, string DestinationRelativePath, string Sha256, long Size)
propertystring SourcePath { get; init; }
propertystring DestinationRelativePath { get; init; }
propertystring Sha256 { get; init; }
propertylong Size { get; init; }

RuntimeArtifactSet#

Sealed class in OmsiLaunch.Process. Stability: INTERNAL. Semantics: public-api.

MemberSignature
propertyIReadOnlyList<RuntimeArtifact> Artifacts { get; }
propertyIReadOnlyDictionary<string, string> ExpectedHashes { get; }
propertystring IntegrityReference { get; }
static methodRuntimeArtifactSet Load(string pluginBuildDirectory, string nativeBuildPath, IReadOnlyDictionary<string, string> expectedHashes = null)
methodvoid ValidateInstalled(string installationRoot)

StartupProcessRequest#

Sealed record in OmsiLaunch.Process. Stability: INTERNAL. Semantics: public-api.

MemberSignature
constructorStartupProcessRequest(string ExecutablePath, string WorkingDirectory, IReadOnlyDictionary<string, string> Environment)
propertystring ExecutablePath { get; init; }
propertystring WorkingDirectory { get; init; }
propertyIReadOnlyDictionary<string, string> Environment { get; init; }