Inventaris van de publieke API

Documentatie voor versie v0.1.0-beta.3Bron bekijken op GitHub

Vertaling van de oorspronkelijke Engelse pagina voor OmsiLaunch 0.1.0-beta3. De Engelse pagina is normatief: bij verschillen gelden de Engelse pagina en de code.

Deze pagina wordt door tests/OmsiLaunch.DocumentationTests gegenereerd uit de gecompileerde assemblies (dotnet run --project tests/OmsiLaunch.DocumentationTests -- --write-inventory); de documentatiecontrole faalt zodra ze niet meer overeenkomt met de code. Ze vermeldt elk geëxporteerd type van OmsiLaunch.Api, OmsiLaunch.Core en OmsiLaunch.Process met de stabiliteit en de signatuur van elk publiek lid. Semantiek, voorwaarden, fouten en voorbeelden staan op de pagina die in elke kop wordt genoemd (standaard: publieke API). Stabiliteitsniveaus: STABLE_BETA, EXPERIMENTAL, PARTIAL, INTERNAL (om technische redenen publiek, geen integratie-oppervlak), UNAVAILABLE (zie publieke API). Door de compiler gegenereerde recordleden (Equals, GetHashCode, ToString, Deconstruct, <Clone>$, EqualityContract) zijn weggelaten.

OmsiLaunch.Api#

Capability#

Sealed record in OmsiLaunch.Api. Stabiliteit: STABLE_BETA. Semantiek: public-api.

LidSignatuur
constructorCapability(string Name, bool Available, string EvidenceState, string Reason = null)
eigenschapstring Name { get; init; }
eigenschapbool Available { get; init; }
eigenschapstring EvidenceState { get; init; }
eigenschapstring Reason { get; init; }

ContentIdentity#

Sealed record in OmsiLaunch.Api. Stabiliteit: STABLE_BETA. Semantiek: public-api.

LidSignatuur
constructorContentIdentity(string Identity, string Kind, string DisplayName = null)
eigenschapstring Identity { get; init; }
eigenschapstring Kind { get; init; }
eigenschapstring DisplayName { get; init; }

ContentQueryKind#

Enumeratie (byte) in OmsiLaunch.Api. Stabiliteit: STABLE_BETA. Semantiek: public-api.

LidSignatuur
waardeMaps = 0
waardeSituations = 1
waardeVehicles = 2
waardeRepaints = 3
waardeHofs = 4
waardeFleetNumbers = 5
waardeRegistrations = 6
waardeAddons = 7
waardeEntrypoints = 8

D3DDeviceState#

Enumeratie (byte) in OmsiLaunch.Api. Stabiliteit: EXPERIMENTAL. Semantiek: public-api.

LidSignatuur
waardeNotReady = 0
waardeReady = 1
waardeLost = 2
waardeResetting = 3
waardeStopping = 4
waardeStopped = 5

D3DDeviceStatus#

Sealed record in OmsiLaunch.Api. Stabiliteit: EXPERIMENTAL. Semantiek: public-api.

LidSignatuur
constructorD3DDeviceStatus(bool Available, D3DDeviceState State, uint Generation, uint LiveTextureCount, bool ResetHookInstalled, uint ExecutionThreadId, uint LastResetThreadId, int QueryInterfaceHResult, int CooperativeLevelHResult, uint OwnedDeviceReferences)
eigenschapbool Available { get; init; }
eigenschapD3DDeviceState State { get; init; }
eigenschapuint Generation { get; init; }
eigenschapuint LiveTextureCount { get; init; }
eigenschapbool ResetHookInstalled { get; init; }
eigenschapuint ExecutionThreadId { get; init; }
eigenschapuint LastResetThreadId { get; init; }
eigenschapint QueryInterfaceHResult { get; init; }
eigenschapint CooperativeLevelHResult { get; init; }
eigenschapuint OwnedDeviceReferences { get; init; }

D3DRuntimeApi#

Statische klasse in OmsiLaunch.Api. Stabiliteit: EXPERIMENTAL. Semantiek: public-api.

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

D3DTextureDescription#

Sealed record in OmsiLaunch.Api. Stabiliteit: EXPERIMENTAL. Semantiek: public-api.

LidSignatuur
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)
eigenschapD3DTextureHandle Handle { get; init; }
eigenschapD3DTextureResourceState State { get; init; }
eigenschapD3DDeviceState DeviceState { get; init; }
eigenschapuint Generation { get; init; }
eigenschapuint Width { get; init; }
eigenschapuint Height { get; init; }
eigenschapD3DTextureFormat Format { get; init; }
eigenschapuint Levels { get; init; }
eigenschapuint Level { get; init; }
eigenschapuint LevelWidth { get; init; }
eigenschapuint LevelHeight { get; init; }
eigenschapint HResult { get; init; }
eigenschapuint ExecutionThreadId { get; init; }

D3DTextureFormat#

Enumeratie (byte) in OmsiLaunch.Api. Stabiliteit: EXPERIMENTAL. Semantiek: public-api.

LidSignatuur
waardeA8R8G8B8 = 0
waardeX8R8G8B8 = 1
waardeR5G6B5 = 2
waardeX1R5G5B5 = 3
waardeA1R5G5B5 = 4
waardeA4R4G4B4 = 5
waardeA8 = 6
waardeL8 = 7
waardeA8L8 = 8

D3DTextureHandle#

Sealed record in OmsiLaunch.Api. Stabiliteit: EXPERIMENTAL. Semantiek: public-api.

LidSignatuur
constructorD3DTextureHandle(string Value)
eigenschapstring Value { get; init; }

D3DTextureResourceState#

Enumeratie (byte) in OmsiLaunch.Api. Stabiliteit: EXPERIMENTAL. Semantiek: public-api.

LidSignatuur
waardeLive = 0
waardeReleased = 1
waardeStale = 2

D3DTextureUpdate#

Sealed record in OmsiLaunch.Api. Stabiliteit: EXPERIMENTAL. Semantiek: public-api.

LidSignatuur
constructorD3DTextureUpdate(uint Level, uint X, uint Y, uint Width, uint Height, ReadOnlyMemory<byte> Pixels)
eigenschapuint Level { get; init; }
eigenschapuint X { get; init; }
eigenschapuint Y { get; init; }
eigenschapuint Width { get; init; }
eigenschapuint Height { get; init; }
eigenschapReadOnlyMemory<byte> Pixels { get; init; }

DateSpec#

Sealed record in OmsiLaunch.Api. Stabiliteit: PARTIAL. Semantiek: launchspec.

LidSignatuur
constructorDateSpec(DateTimeMode Mode, OptionalValue<SemanticDate> Value)
eigenschapDateTimeMode Mode { get; init; }
eigenschapOptionalValue<SemanticDate> Value { get; init; }

DateTimeMode#

Enumeratie (byte) in OmsiLaunch.Api. Stabiliteit: STABLE_BETA. Semantiek: launchspec.

LidSignatuur
waardeUnset = 0
waardeExplicit = 1
waardeSystem = 2

DiagnosticsSpec#

Sealed record in OmsiLaunch.Api. Stabiliteit: PARTIAL. Semantiek: launchspec.

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

EntrypointMode#

Enumeratie (byte) in OmsiLaunch.Api. Stabiliteit: STABLE_BETA. Semantiek: launchspec.

LidSignatuur
waardeUnset = 0
waardePresentedIndex = 1
waardeIdentity = 2

EntrypointSpec#

Sealed record in OmsiLaunch.Api. Stabiliteit: STABLE_BETA. Semantiek: launchspec.

LidSignatuur
constructorEntrypointSpec(EntrypointMode Mode, OptionalValue<int> PresentedIndex, OptionalValue<string> Identity)
eigenschapEntrypointMode Mode { get; init; }
eigenschapOptionalValue<int> PresentedIndex { get; init; }
eigenschapOptionalValue<string> Identity { get; init; }
statische eigenschapEntrypointSpec Unset { get; }

EnvironmentSpec#

Sealed record in OmsiLaunch.Api. Stabiliteit: STABLE_BETA. Semantiek: launchspec.

LidSignatuur
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)
eigenschapIReadOnlyDictionary<string, OptionalValue<string>> General { get; init; }
eigenschapIReadOnlyDictionary<string, OptionalValue<string>> Advanced { get; init; }
eigenschapIReadOnlyDictionary<string, OptionalValue<string>> Graphics { get; init; }
eigenschapIReadOnlyDictionary<string, OptionalValue<string>> AdvancedGraphics { get; init; }
eigenschapIReadOnlyDictionary<string, OptionalValue<string>> Sound { get; init; }
eigenschapIReadOnlyDictionary<string, OptionalValue<string>> AiPassengers { get; init; }
eigenschapIReadOnlyDictionary<string, OptionalValue<string>> Keyboard { get; init; }
eigenschapIReadOnlyDictionary<string, OptionalValue<string>> Controllers { get; init; }

IOmsiLaunch#

Interface in OmsiLaunch.Api. Stabiliteit: STABLE_BETA. Semantiek: public-api.

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

InputSpec#

Sealed record in OmsiLaunch.Api. Stabiliteit: PARTIAL. Semantiek: launchspec.

LidSignatuur
constructorInputSpec(OptionalValue<string> KeyboardDocument, OptionalValue<string> ControllerDocument)
eigenschapOptionalValue<string> KeyboardDocument { get; init; }
eigenschapOptionalValue<string> ControllerDocument { get; init; }

InstallationPaths#

Statische klasse in OmsiLaunch.Api. Stabiliteit: STABLE_BETA. Semantiek: public-api.

LidSignatuur
statische methodestring IdentityKey(string root)
statische methodestring NormalizeRoot(string root)
statische methodeIReadOnlyList<string> Segments(string relativePath)
statische methodebool TryGetContainedRelativePath(string root, string candidate, out string relativePath)

InstallationSpec#

Sealed record in OmsiLaunch.Api. Stabiliteit: STABLE_BETA. Semantiek: launchspec.

LidSignatuur
constructorInstallationSpec(string RootPath, string ExpectedExecutableSha256 = null)
eigenschapstring RootPath { get; init; }
eigenschapstring ExpectedExecutableSha256 { get; init; }

InternetTexturesMode#

Enumeratie (byte) in OmsiLaunch.Api. Stabiliteit: STABLE_BETA. Semantiek: launchspec.

LidSignatuur
waardeNative = 0
waardeDisabled = 1
waardeOverride = 2

InternetTexturesSpec#

Sealed record in OmsiLaunch.Api. Stabiliteit: STABLE_BETA. Semantiek: launchspec.

LidSignatuur
constructorInternetTexturesSpec(InternetTexturesMode Mode = Native, OptionalValue<string> OverrideProfilePath = default)
eigenschapInternetTexturesMode Mode { get; init; }
eigenschapOptionalValue<string> OverrideProfilePath { get; init; }

LaunchBehaviorSpec#

Sealed record in OmsiLaunch.Api. Stabiliteit: STABLE_BETA. Semantiek: launchspec.

LidSignatuur
constructorLaunchBehaviorSpec(bool RestoreConfiguration = true, bool SuppressStaleClosecheckWarning = true, int StartupTimeoutSeconds = 180, int ShutdownTimeoutSeconds = 30)
eigenschapbool RestoreConfiguration { get; init; }
eigenschapbool SuppressStaleClosecheckWarning { get; init; }
eigenschapint StartupTimeoutSeconds { get; init; }
eigenschapint ShutdownTimeoutSeconds { get; init; }

LaunchDiagnostic#

Sealed record in OmsiLaunch.Api. Stabiliteit: STABLE_BETA. Semantiek: public-api.

LidSignatuur
constructorLaunchDiagnostic(string Code, string Message, IReadOnlyDictionary<string, string> Data = null)
eigenschapstring Code { get; init; }
eigenschapstring Message { get; init; }
eigenschapIReadOnlyDictionary<string, string> Data { get; init; }

LaunchSpec#

Sealed record in OmsiLaunch.Api. Stabiliteit: STABLE_BETA. Semantiek: launchspec.

LidSignatuur
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)
eigenschapInstallationSpec Installation { get; init; }
eigenschapWorldSpec World { get; init; }
eigenschapDateSpec Date { get; init; }
eigenschapTimeSpec Time { get; init; }
eigenschapOptionalValue<PlayerVehicleSpec> PlayerVehicle { get; init; }
eigenschapEnvironmentSpec Environment { get; init; }
eigenschapLaunchBehaviorSpec Behavior { get; init; }
eigenschapYearSpec Year { get; init; }
eigenschapWeatherSpec Weather { get; init; }
eigenschapInputSpec Input { get; init; }
eigenschapDiagnosticsSpec Diagnostics { get; init; }
eigenschapSessionPresentationSpec Presentation { get; init; }
eigenschapInternetTexturesSpec InternetTextures { get; init; }
eigenschapSessionProfileMetadata SessionProfile { get; init; }
eigenschapYearSpec EffectiveYear { get; }
eigenschapWeatherSpec EffectiveWeather { get; }
eigenschapInputSpec EffectiveInput { get; }
eigenschapDiagnosticsSpec EffectiveDiagnostics { get; }
eigenschapSessionPresentationSpec EffectivePresentation { get; }
eigenschapInternetTexturesSpec EffectiveInternetTextures { get; }

OmsiRuntimeException#

Sealed klasse in OmsiLaunch.Api. Stabiliteit: EXPERIMENTAL. Semantiek: public-api.

LidSignatuur
constructorOmsiRuntimeException(string code, string detail = null)
eigenschapstring Code { get; }

OptionalValue#

Record struct in OmsiLaunch.Api. Stabiliteit: STABLE_BETA. Semantiek: launchspec.

LidSignatuur
constructorOptionalValue(Presence Presence, T Value)
eigenschapPresence Presence { get; init; }
eigenschapT Value { get; init; }
eigenschapbool IsSet { get; }
statische eigenschapOptionalValue<T> Unset { get; }
statische methodeOptionalValue<T> Set(T value)

PlannedMutation#

Sealed record in OmsiLaunch.Api. Stabiliteit: STABLE_BETA. Semantiek: public-api.

LidSignatuur
constructorPlannedMutation(string RelativePath, string SemanticKey, string RequestedValue, string Operation)
eigenschapstring RelativePath { get; init; }
eigenschapstring SemanticKey { get; init; }
eigenschapstring RequestedValue { get; init; }
eigenschapstring Operation { get; init; }

PlayerVehicleSpec#

Sealed record in OmsiLaunch.Api. Stabiliteit: PARTIAL. Semantiek: launchspec.

LidSignatuur
constructorPlayerVehicleSpec(OptionalValue<string> Model, OptionalValue<string> Repaint, OptionalValue<string> Hof, OptionalValue<string> FleetNumber, OptionalValue<string> Registration)
eigenschapOptionalValue<string> Model { get; init; }
eigenschapOptionalValue<string> Repaint { get; init; }
eigenschapOptionalValue<string> Hof { get; init; }
eigenschapOptionalValue<string> FleetNumber { get; init; }
eigenschapOptionalValue<string> Registration { get; init; }
eigenschapbool Enabled { get; }

Presence#

Enumeratie (byte) in OmsiLaunch.Api. Stabiliteit: STABLE_BETA. Semantiek: launchspec.

LidSignatuur
waardeUnset = 0
waardeSet = 1

PublicCapabilityClassification#

Enumeratie (byte) in OmsiLaunch.Api. Stabiliteit: STABLE_BETA. Semantiek: capabilities.

LidSignatuur
waardePublicStableBeta = 0
waardePublicExperimental = 1
waardeInternalOnly = 2
waardeUnsupported = 3

PublicCapabilityDescriptor#

Sealed record in OmsiLaunch.Api. Stabiliteit: STABLE_BETA. Semantiek: capabilities.

LidSignatuur
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)
eigenschapstring Id { get; init; }
eigenschapstring Family { get; init; }
eigenschapPublicCapabilityClassification Classification { get; init; }
eigenschapPublicCapabilityKind Kind { get; init; }
eigenschapbool RequiresSession { get; init; }
eigenschapbool RequiresExactProfile { get; init; }
eigenschapstring ApiRoute { get; init; }
eigenschapstring CliRoute { get; init; }
eigenschapstring RuntimeValidation { get; init; }
eigenschapstring Description { get; init; }
eigenschapIReadOnlyList<string> HandleTypes { get; init; }

PublicCapabilityKind#

Enumeratie (byte) in OmsiLaunch.Api. Stabiliteit: STABLE_BETA. Semantiek: capabilities.

LidSignatuur
waardeRead = 0
waardeWrite = 1
waardeAction = 2
waardeEvent = 3

PublicCapabilityRegistry#

Statische klasse in OmsiLaunch.Api. Stabiliteit: STABLE_BETA. Semantiek: capabilities.

LidSignatuur
constantestring ProtocolVersion = "0.1"
statisch veldIReadOnlyList<PublicCapabilityDescriptor> All
statische eigenschapIReadOnlyCollection<string> PublicRuntimeOperationIds { get; }
statische methodeIReadOnlyList<PublicRuntimeArgumentDescriptor> GetRuntimeArguments(string operation)
statische methodebool IsInternalResultKey(string key)
statische methodebool IsPublicRuntimeOperation(string operation)
statische methodePublicRuntimeArgumentValidation ValidateRuntimeArguments(string operation, IReadOnlyDictionary<string, string> arguments)

PublicErrorCategory#

Statische klasse in OmsiLaunch.Api. Stabiliteit: STABLE_BETA. Semantiek: errors.

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

PublicErrorCodes#

Statische klasse in OmsiLaunch.Api. Stabiliteit: STABLE_BETA. Semantiek: errors.

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

PublicErrorDescriptor#

Sealed record in OmsiLaunch.Api. Stabiliteit: STABLE_BETA. Semantiek: errors.

LidSignatuur
constructorPublicErrorDescriptor(string Code, string Category)
eigenschapstring Code { get; init; }
eigenschapstring Category { get; init; }

PublicExitCode#

Enumeratie (int) in OmsiLaunch.Api. Stabiliteit: STABLE_BETA. Semantiek: exit-codes.

LidSignatuur
waardeSuccess = 0
waardeSessionFailed = 1
waardeInvalidArguments = 2
waardeUnsupportedProfile = 3
waardeNoActiveSession = 4
waardeRuntimeUnavailable = 5
waardeNotFound = 6
waardeOperationRejected = 7
waardeTransactionRecoveryFailed = 8
waardeInternalError = 10

PublicRuntimeArgumentDescriptor#

Sealed record in OmsiLaunch.Api. Stabiliteit: STABLE_BETA. Semantiek: public-api.

LidSignatuur
constructorPublicRuntimeArgumentDescriptor(string Name, bool Required, string Description)
eigenschapstring Name { get; init; }
eigenschapbool Required { get; init; }
eigenschapstring Description { get; init; }

PublicRuntimeArgumentValidation#

Sealed record in OmsiLaunch.Api. Stabiliteit: STABLE_BETA. Semantiek: public-api.

LidSignatuur
constructorPublicRuntimeArgumentValidation(bool Accepted, string ErrorCode = null, string Message = null)
eigenschapbool Accepted { get; init; }
eigenschapstring ErrorCode { get; init; }
eigenschapstring Message { get; init; }

RecoveryStatus#

Sealed record in OmsiLaunch.Api. Stabiliteit: STABLE_BETA. Semantiek: public-api.

LidSignatuur
constructorRecoveryStatus(bool Pending, bool Recovered, IReadOnlyList<LaunchDiagnostic> Diagnostics)
eigenschapbool Pending { get; init; }
eigenschapbool Recovered { get; init; }
eigenschapIReadOnlyList<LaunchDiagnostic> Diagnostics { get; init; }

RuntimeCommand#

Sealed record in OmsiLaunch.Api. Stabiliteit: STABLE_BETA. Semantiek: runtime-control.

LidSignatuur
constructorRuntimeCommand(Guid SessionId, ulong RequestId, string Operation, IReadOnlyDictionary<string, string> Arguments = null)
eigenschapGuid SessionId { get; init; }
eigenschapulong RequestId { get; init; }
eigenschapstring Operation { get; init; }
eigenschapIReadOnlyDictionary<string, string> Arguments { get; init; }

RuntimeCommandResult#

Sealed record in OmsiLaunch.Api. Stabiliteit: STABLE_BETA. Semantiek: runtime-control.

LidSignatuur
constructorRuntimeCommandResult(Guid SessionId, ulong RequestId, bool Succeeded, string ErrorCode = null, IReadOnlyDictionary<string, string> Values = null)
eigenschapGuid SessionId { get; init; }
eigenschapulong RequestId { get; init; }
eigenschapbool Succeeded { get; init; }
eigenschapstring ErrorCode { get; init; }
eigenschapIReadOnlyDictionary<string, string> Values { get; init; }

RuntimeCommandWire#

Statische klasse in OmsiLaunch.Api. Stabiliteit: INTERNAL. Semantiek: public-api.

LidSignatuur
constanteuint Magic = 1330401859
constanteushort Version = 1
constanteint HeaderSize = 72
statische methodebyte[] SerializeRequest(RuntimeCommand command)
statische methodebyte[] SerializeResponse(RuntimeCommandResult result)
statische methodebool TryDeserializeRequest(ReadOnlySpan<byte> bytes, out RuntimeCommand command)
statische methodebool TryDeserializeResponse(ReadOnlySpan<byte> bytes, out RuntimeCommandResult result)
statische methodebool TryReadRequestId(ReadOnlySpan<byte> bytes, out ulong requestId)

RuntimeEvent#

Sealed record in OmsiLaunch.Api. Stabiliteit: STABLE_BETA. Semantiek: public-api.

LidSignatuur
constructorRuntimeEvent(string Type, DateTimeOffset TimestampUtc, long Sequence, IReadOnlyDictionary<string, string> Data)
eigenschapstring Type { get; init; }
eigenschapDateTimeOffset TimestampUtc { get; init; }
eigenschaplong Sequence { get; init; }
eigenschapIReadOnlyDictionary<string, string> Data { get; init; }

RuntimePlatformInfo#

Sealed record in OmsiLaunch.Api. Stabiliteit: STABLE_BETA. Semantiek: public-api.

LidSignatuur
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)
eigenschapstring OsFamily { get; init; }
eigenschapstring OsVersion { get; init; }
eigenschapstring OsArchitecture { get; init; }
eigenschapstring HostArchitecture { get; init; }
eigenschapstring OmsiArchitecture { get; init; }
eigenschapstring PluginArchitecture { get; init; }
eigenschapbool CurrentPlatformSupported { get; init; }
eigenschapbool LegacyPlatform { get; init; }
eigenschapbool Wow64Available { get; init; }
eigenschapbool InstallationWritable { get; init; }
eigenschapbool ProcessLaunchSupported { get; init; }
eigenschapbool PluginRuntimeSupported { get; init; }
eigenschapbool NativeInteropSupported { get; init; }
eigenschapbool SharedMemorySupported { get; init; }
eigenschapbool ExactRestoreSupported { get; init; }

SemanticDate#

Sealed record in OmsiLaunch.Api. Stabiliteit: STABLE_BETA. Semantiek: launchspec.

LidSignatuur
constructorSemanticDate(int Year, int Month, int Day)
eigenschapint Year { get; init; }
eigenschapint Month { get; init; }
eigenschapint Day { get; init; }

SemanticTime#

Sealed record in OmsiLaunch.Api. Stabiliteit: STABLE_BETA. Semantiek: launchspec.

LidSignatuur
constructorSemanticTime(int Hour, int Minute, int Second)
eigenschapint Hour { get; init; }
eigenschapint Minute { get; init; }
eigenschapint Second { get; init; }

SessionHandle#

Sealed record in OmsiLaunch.Api. Stabiliteit: STABLE_BETA. Semantiek: public-api.

LidSignatuur
constructorSessionHandle(Guid SessionId)
eigenschapGuid SessionId { get; init; }

SessionPlan#

Sealed record in OmsiLaunch.Api. Stabiliteit: STABLE_BETA. Semantiek: public-api.

LidSignatuur
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)
eigenschapGuid SessionId { get; init; }
eigenschapstring BuildProfileId { get; init; }
eigenschapLaunchSpec Spec { get; init; }
eigenschapRuntimePlatformInfo Platform { get; init; }
eigenschapIReadOnlyList<ContentIdentity> ResolvedContent { get; init; }
eigenschapIReadOnlyList<string> TouchedFiles { get; init; }
eigenschapIReadOnlyList<string> RuntimeArtifacts { get; init; }
eigenschapIReadOnlyList<Capability> RequiredCapabilities { get; init; }
eigenschapIReadOnlyList<Capability> UnsupportedRequestedFeatures { get; init; }
eigenschapIReadOnlyList<PlannedMutation> PlannedMutations { get; init; }
eigenschapIReadOnlyList<LaunchDiagnostic> Diagnostics { get; init; }
eigenschapbool IsRunnable { get; init; }

SessionPresentationSpec#

Sealed record in OmsiLaunch.Api. Stabiliteit: STABLE_BETA. Semantiek: launchspec.

LidSignatuur
constructorSessionPresentationSpec(SplashMode Splash = Managed, OptionalValue<string> Language = default, OptionalValue<string> CustomAssetDirectory = default, bool SuppressTrayIcon = false)
eigenschapSplashMode Splash { get; init; }
eigenschapOptionalValue<string> Language { get; init; }
eigenschapOptionalValue<string> CustomAssetDirectory { get; init; }
eigenschapbool SuppressTrayIcon { get; init; }

SessionProfileMetadata#

Sealed record in OmsiLaunch.Api. Stabiliteit: STABLE_BETA. Semantiek: launchspec.

LidSignatuur
constructorSessionProfileMetadata(string Id, string Name, string Version, string Author, string PresetId, int PresetIndex, string PresetName, string PackagePath)
eigenschapstring Id { get; init; }
eigenschapstring Name { get; init; }
eigenschapstring Version { get; init; }
eigenschapstring Author { get; init; }
eigenschapstring PresetId { get; init; }
eigenschapint PresetIndex { get; init; }
eigenschapstring PresetName { get; init; }
eigenschapstring PackagePath { get; init; }

SessionState#

Enumeratie (byte) in OmsiLaunch.Api. Stabiliteit: STABLE_BETA. Semantiek: public-api.

LidSignatuur
waardeCreated = 0
waardeValidatingPlatform = 1
waardePlanning = 2
waardeAcquiringInstallationLock = 3
waardeRecoveringPreviousTransaction = 4
waardeSnapshotting = 5
waardeApplyingConfiguration = 6
waardeDeployingRuntime = 7
waardeCreatingStartupHandoff = 8
waardeStartingProcess = 9
waardeWaitingForPlugin = 10
waardePluginBootstrap = 11
waardeStartingWorld = 12
waardeEnteringGameplay = 13
waardeRunning = 14
waardeProcessExited = 15
waardeRestoring = 16
waardeCleaningRuntime = 17
waardeCompleted = 18
waardeFailed = 19

SessionStatus#

Sealed record in OmsiLaunch.Api. Stabiliteit: STABLE_BETA. Semantiek: public-api.

LidSignatuur
constructorSessionStatus(Guid SessionId, SessionState State, IReadOnlyList<LaunchDiagnostic> Diagnostics, IReadOnlyList<RuntimeEvent> RuntimeEvents = null)
eigenschapGuid SessionId { get; init; }
eigenschapSessionState State { get; init; }
eigenschapIReadOnlyList<LaunchDiagnostic> Diagnostics { get; init; }
eigenschapIReadOnlyList<RuntimeEvent> RuntimeEvents { get; init; }

SplashMode#

Enumeratie (byte) in OmsiLaunch.Api. Stabiliteit: STABLE_BETA. Semantiek: launchspec.

LidSignatuur
waardeUnset = 0
waardeNative = 0
waardeManaged = 1

StartupHandoff#

Sealed record in OmsiLaunch.Api. Stabiliteit: INTERNAL. Semantiek: public-api.

LidSignatuur
constructorStartupHandoff(Guid SessionId, string BuildProfileId, WorldMode WorldMode, string MapIdentity, int PresentedEntrypointIndex, bool HeadlessStart, bool PlayerVehicleEnabled, DateTimeMode DateMode, DateTimeMode TimeMode, string EntrypointIdentity = "", string SituationIdentity = "")
eigenschapGuid SessionId { get; init; }
eigenschapstring BuildProfileId { get; init; }
eigenschapWorldMode WorldMode { get; init; }
eigenschapstring MapIdentity { get; init; }
eigenschapint PresentedEntrypointIndex { get; init; }
eigenschapbool HeadlessStart { get; init; }
eigenschapbool PlayerVehicleEnabled { get; init; }
eigenschapDateTimeMode DateMode { get; init; }
eigenschapDateTimeMode TimeMode { get; init; }
eigenschapstring EntrypointIdentity { get; init; }
eigenschapstring SituationIdentity { get; init; }

StartupHandoffWire#

Statische klasse in OmsiLaunch.Api. Stabiliteit: INTERNAL. Semantiek: public-api.

LidSignatuur
constanteuint Magic = 1330402120
constanteushort Version = 4
statische methodebyte[] Serialize(StartupHandoff value)
statische methodebool TryDeserialize(ReadOnlySpan<byte> bytes, out StartupHandoff value)

TimeSpec#

Sealed record in OmsiLaunch.Api. Stabiliteit: PARTIAL. Semantiek: launchspec.

LidSignatuur
constructorTimeSpec(DateTimeMode Mode, OptionalValue<SemanticTime> Value)
eigenschapDateTimeMode Mode { get; init; }
eigenschapOptionalValue<SemanticTime> Value { get; init; }

WeatherMode#

Enumeratie (byte) in OmsiLaunch.Api. Stabiliteit: STABLE_BETA. Semantiek: launchspec.

LidSignatuur
waardeUnset = 0
waardePreset = 1
waardeIcao = 2
waardeRealCurrent = 3

WeatherSpec#

Sealed record in OmsiLaunch.Api. Stabiliteit: PARTIAL. Semantiek: launchspec.

LidSignatuur
constructorWeatherSpec(WeatherMode Mode, OptionalValue<string> Preset, OptionalValue<string> Icao)
eigenschapWeatherMode Mode { get; init; }
eigenschapOptionalValue<string> Preset { get; init; }
eigenschapOptionalValue<string> Icao { get; init; }

WorldMode#

Enumeratie (int) in OmsiLaunch.Api. Stabiliteit: STABLE_BETA. Semantiek: launchspec.

LidSignatuur
waardeNewMap = 0
waardeSavedSituation = 1
waardeLastMapState = 2
waardeLastSituation = 2

WorldSpec#

Sealed record in OmsiLaunch.Api. Stabiliteit: STABLE_BETA. Semantiek: launchspec.

LidSignatuur
constructorWorldSpec(WorldMode Mode, OptionalValue<string> MapIdentity, OptionalValue<string> SituationIdentity, OptionalValue<int> PresentedEntrypointIndex, OptionalValue<string> EntrypointIdentity = default)
eigenschapWorldMode Mode { get; init; }
eigenschapOptionalValue<string> MapIdentity { get; init; }
eigenschapOptionalValue<string> SituationIdentity { get; init; }
eigenschapOptionalValue<int> PresentedEntrypointIndex { get; init; }
eigenschapOptionalValue<string> EntrypointIdentity { get; init; }
eigenschapEntrypointSpec Entrypoint { get; }

YearSpec#

Sealed record in OmsiLaunch.Api. Stabiliteit: PARTIAL. Semantiek: launchspec.

LidSignatuur
constructorYearSpec(DateTimeMode Mode, OptionalValue<int> Value)
eigenschapDateTimeMode Mode { get; init; }
eigenschapOptionalValue<int> Value { get; init; }

OmsiLaunch.Core#

LaunchValidation#

Statische klasse in OmsiLaunch.Core. Stabiliteit: INTERNAL. Semantiek: public-api.

LidSignatuur
statische methodebool IsMapIdentity(string value)
statische methodeIReadOnlyList<LaunchDiagnostic> Validate(LaunchSpec spec)

OmsiLaunchRuntimePaths#

Sealed record in OmsiLaunch.Core. Stabiliteit: STABLE_BETA. Semantiek: public-api.

LidSignatuur
constructorOmsiLaunchRuntimePaths(string PluginBuildDirectory, string NativeBridgePath, string ReleaseManifestPath = null)
eigenschapstring PluginBuildDirectory { get; init; }
eigenschapstring NativeBridgePath { get; init; }
eigenschapstring ReleaseManifestPath { get; init; }

OmsiLaunchService#

Sealed klasse in OmsiLaunch.Core. Stabiliteit: STABLE_BETA. Semantiek: public-api.

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

ProfileNew#

Sealed record in OmsiLaunch.Core. Stabiliteit: EXPERIMENTAL. Semantiek: session-profiles.

LidSignatuur
constructorProfileNew(string Map = null, int? EntrypointIndex = default, string EntrypointIdentity = null, SemanticDate Date = null, SemanticTime Time = null, int? Year = default, WeatherSpec Weather = null)
eigenschapstring Map { get; init; }
eigenschapint? EntrypointIndex { get; init; }
eigenschapstring EntrypointIdentity { get; init; }
eigenschapSemanticDate Date { get; init; }
eigenschapSemanticTime Time { get; init; }
eigenschapint? Year { get; init; }
eigenschapWeatherSpec Weather { get; init; }

ProfilePreset#

Sealed record in OmsiLaunch.Core. Stabiliteit: EXPERIMENTAL. Semantiek: session-profiles.

LidSignatuur
constructorProfilePreset(int Index, string Id, string Name, IReadOnlyDictionary<string, string> Settings, SessionPresentationSpec Presentation, InternetTexturesSpec InternetTextures, LaunchBehaviorSpec Behavior)
eigenschapint Index { get; init; }
eigenschapstring Id { get; init; }
eigenschapstring Name { get; init; }
eigenschapIReadOnlyDictionary<string, string> Settings { get; init; }
eigenschapSessionPresentationSpec Presentation { get; init; }
eigenschapInternetTexturesSpec InternetTextures { get; init; }
eigenschapLaunchBehaviorSpec Behavior { get; init; }

SessionPlanner#

Sealed klasse in OmsiLaunch.Core. Stabiliteit: INTERNAL. Semantiek: public-api.

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

SessionProfileCompiler#

Statische klasse in OmsiLaunch.Core. Stabiliteit: EXPERIMENTAL. Semantiek: session-profiles.

LidSignatuur
constantestring Schema = "omsilaunch.session-profile/v1"
constantelong MaxBytes = 262144
statisch veldIReadOnlyDictionary<string, IReadOnlyList<string>> SchemaKeys
statische methodeLaunchSpec Apply(SessionProfilePackage profile, LaunchSpec baseline, WorldMode selectedWorldMode)
statische methodeSessionProfilePackage Load(string installationRoot, string id, int presetIndex)
statische methodevoid ValidateCompatibility(SessionProfilePackage profile, string installationRoot, WorldSpec world, WorldMode mode)

SessionProfileException#

Sealed klasse in OmsiLaunch.Core. Stabiliteit: EXPERIMENTAL. Semantiek: session-profiles.

LidSignatuur
constructorSessionProfileException(string code, string message)
eigenschapstring Code { get; }

SessionProfilePackage#

Sealed record in OmsiLaunch.Core. Stabiliteit: EXPERIMENTAL. Semantiek: session-profiles.

LidSignatuur
constructorSessionProfilePackage(string RootPath, SessionProfileMetadata Metadata, IReadOnlyList<string> CompatibleMaps, ProfileNew New, ProfilePreset Preset)
eigenschapstring RootPath { get; init; }
eigenschapSessionProfileMetadata Metadata { get; init; }
eigenschapIReadOnlyList<string> CompatibleMaps { get; init; }
eigenschapProfileNew New { get; init; }
eigenschapProfilePreset Preset { get; init; }

OmsiLaunch.Process#

CurrentRuntimeCommandStore#

Sealed klasse in OmsiLaunch.Process. Stabiliteit: INTERNAL. Semantiek: public-api.

LidSignatuur
eigenschapstring Name { get; }
eigenschapGuid SessionId { get; }
statische methodeCurrentRuntimeCommandStore Create(Guid sessionId)
methodevoid Dispose()
methodeTask<RuntimeCommandResult> RequestAsync(RuntimeCommand command, TimeSpan timeout, CancellationToken cancellationToken = default)

CurrentStartupHandoffStore#

Sealed klasse in OmsiLaunch.Process. Stabiliteit: INTERNAL. Semantiek: public-api.

LidSignatuur
eigenschapstring Name { get; }
eigenschapGuid SessionId { get; }
statische methodeCurrentStartupHandoffStore Create(StartupHandoff handoff)
methodevoid Dispose()

CurrentTelemetryStore#

Sealed klasse in OmsiLaunch.Process. Stabiliteit: INTERNAL. Semantiek: public-api.

LidSignatuur
eigenschapstring Name { get; }
statische methodeCurrentTelemetryStore Create(Guid sessionId)
methodevoid Dispose()
methodeValueTuple<int, string>? ReadLatest()

CurrentWindowsX64Platform#

Sealed klasse in OmsiLaunch.Process. Stabiliteit: STABLE_BETA. Semantiek: public-api.

LidSignatuur
constructorCurrentWindowsX64Platform()
methodeRuntimePlatformInfo Detect(string root)
methodebool HasExited(LaunchedProcess p)
methodebool IsInstallationWritable(string root)
methodeTask<LaunchedProcess> StartAsync(StartupProcessRequest request, string executableSha256, CancellationToken cancellationToken)
methodevoid Terminate(LaunchedProcess p)
methodevoid ValidateCurrent(RuntimePlatformInfo p)
methodeTask WaitForExitAsync(LaunchedProcess process, CancellationToken token)

IOmsiProcessController#

Interface in OmsiLaunch.Process. Stabiliteit: INTERNAL. Semantiek: public-api.

LidSignatuur
methodeOmsiProcessState Observe()
methodeTask<int> StartAsync(string installation, CancellationToken cancellationToken = default)
methodeTask StopAsync(CancellationToken cancellationToken = default)

IRuntimePlatform#

Interface in OmsiLaunch.Process. Stabiliteit: STABLE_BETA. Semantiek: public-api.

LidSignatuur
methodeRuntimePlatformInfo Detect(string installationRoot)
methodebool HasExited(LaunchedProcess process)
methodebool IsInstallationWritable(string installationRoot)
methodeTask<LaunchedProcess> StartAsync(StartupProcessRequest request, string executableSha256, CancellationToken cancellationToken)
methodevoid Terminate(LaunchedProcess process)
methodevoid ValidateCurrent(RuntimePlatformInfo platform)
methodeTask WaitForExitAsync(LaunchedProcess process, CancellationToken cancellationToken)

InstallationLease#

Sealed klasse in OmsiLaunch.Process. Stabiliteit: INTERNAL. Semantiek: public-api.

LidSignatuur
statische methodeInstallationLease Acquire(string installationRoot)
methodevoid Dispose()
statische methodestring NormalizeRoot(string installationRoot)

LaunchedProcess#

Sealed klasse in OmsiLaunch.Process. Stabiliteit: INTERNAL. Semantiek: public-api.

LidSignatuur
eigenschapint ProcessId { get; }
eigenschapint ThreadId { get; }
eigenschapProcessIdentity Identity { get; }
methodevoid Dispose()

OmsiProcessState#

Sealed record in OmsiLaunch.Process. Stabiliteit: INTERNAL. Semantiek: public-api.

LidSignatuur
constructorOmsiProcessState(string State, int? ProcessId, bool Responding)
eigenschapstring State { get; init; }
eigenschapint? ProcessId { get; init; }
eigenschapbool Responding { get; init; }

ProcessIdentity#

Sealed record in OmsiLaunch.Process. Stabiliteit: INTERNAL. Semantiek: public-api.

LidSignatuur
constructorProcessIdentity(int ProcessId, DateTimeOffset CreationTimeUtc, string ExecutablePath, string ExecutableSha256)
eigenschapint ProcessId { get; init; }
eigenschapDateTimeOffset CreationTimeUtc { get; init; }
eigenschapstring ExecutablePath { get; init; }
eigenschapstring ExecutableSha256 { get; init; }

ReleaseManifest#

Statische klasse in OmsiLaunch.Process. Stabiliteit: INTERNAL. Semantiek: public-api.

LidSignatuur
constantestring FileName = "release-manifest.json"
statische methodeIReadOnlyDictionary<string, string> ParsePluginHashes(byte[] bytes)
statische methodeIReadOnlyDictionary<string, string> TryReadPluginHashes(string manifestPath)

RuntimeArtifact#

Sealed record in OmsiLaunch.Process. Stabiliteit: INTERNAL. Semantiek: public-api.

LidSignatuur
constructorRuntimeArtifact(string SourcePath, string DestinationRelativePath, string Sha256, long Size)
eigenschapstring SourcePath { get; init; }
eigenschapstring DestinationRelativePath { get; init; }
eigenschapstring Sha256 { get; init; }
eigenschaplong Size { get; init; }

RuntimeArtifactSet#

Sealed klasse in OmsiLaunch.Process. Stabiliteit: INTERNAL. Semantiek: public-api.

LidSignatuur
eigenschapIReadOnlyList<RuntimeArtifact> Artifacts { get; }
eigenschapIReadOnlyDictionary<string, string> ExpectedHashes { get; }
eigenschapstring IntegrityReference { get; }
statische methodeRuntimeArtifactSet Load(string pluginBuildDirectory, string nativeBuildPath, IReadOnlyDictionary<string, string> expectedHashes = null)
methodevoid ValidateInstalled(string installationRoot)

StartupProcessRequest#

Sealed record in OmsiLaunch.Process. Stabiliteit: INTERNAL. Semantiek: public-api.

LidSignatuur
constructorStartupProcessRequest(string ExecutablePath, string WorkingDirectory, IReadOnlyDictionary<string, string> Environment)
eigenschapstring ExecutablePath { get; init; }
eigenschapstring WorkingDirectory { get; init; }
eigenschapIReadOnlyDictionary<string, string> Environment { get; init; }