公開 API インベントリ

ドキュメントのバージョン v0.1.0-beta.3GitHub でソースを見る

このページは OmsiLaunch 0.1.0-beta3 の英語版の原文ページの翻訳です。規範となるのは英語版です。内容が異なる場合は、英語版のページとコードが優先されます。

このページは、コンパイル済みアセンブリから tests/OmsiLaunch.DocumentationTests によって生成されます(dotnet run --project tests/OmsiLaunch.DocumentationTests -- --write-inventory)。コードと一致しなくなると、ドキュメントのチェックが失敗します。OmsiLaunch.Api、OmsiLaunch.Core、OmsiLaunch.Process がエクスポートするすべての型について、その安定性とすべての public メンバーのシグネチャを記載しています。セマンティクス、前提条件、エラー、使用例は、各見出しに示したページに記載されています(既定: 公開 API)。安定性の区分: STABLE_BETA、EXPERIMENTAL、PARTIAL、INTERNAL(技術的な理由で public になっているもので、統合用のインターフェイスではありません)、UNAVAILABLE(公開 API を参照)。コンパイラが生成する record のメンバー(Equals、GetHashCode、ToString、Deconstruct、<Clone>$、EqualityContract)は省略しています。

OmsiLaunch.Api#

Capability#

sealed record(OmsiLaunch.Api)。安定性: STABLE_BETA。セマンティクス: public-api.

メンバーシグネチャ
コンストラクターCapability(string Name, bool Available, string EvidenceState, string Reason = null)
プロパティstring Name { get; init; }
プロパティbool Available { get; init; }
プロパティstring EvidenceState { get; init; }
プロパティstring Reason { get; init; }

ContentIdentity#

sealed record(OmsiLaunch.Api)。安定性: STABLE_BETA。セマンティクス: public-api.

メンバーシグネチャ
コンストラクターContentIdentity(string Identity, string Kind, string DisplayName = null)
プロパティstring Identity { get; init; }
プロパティstring Kind { get; init; }
プロパティstring DisplayName { get; init; }

ContentQueryKind#

列挙型 (byte)(OmsiLaunch.Api)。安定性: STABLE_BETA。セマンティクス: public-api.

メンバーシグネチャ
値Maps = 0
値Situations = 1
値Vehicles = 2
値Repaints = 3
値Hofs = 4
値FleetNumbers = 5
値Registrations = 6
値Addons = 7
値Entrypoints = 8

D3DDeviceState#

列挙型 (byte)(OmsiLaunch.Api)。安定性: EXPERIMENTAL。セマンティクス: public-api.

メンバーシグネチャ
値NotReady = 0
値Ready = 1
値Lost = 2
値Resetting = 3
値Stopping = 4
値Stopped = 5

D3DDeviceStatus#

sealed record(OmsiLaunch.Api)。安定性: EXPERIMENTAL。セマンティクス: public-api.

メンバーシグネチャ
コンストラクターD3DDeviceStatus(bool Available, D3DDeviceState State, uint Generation, uint LiveTextureCount, bool ResetHookInstalled, uint ExecutionThreadId, uint LastResetThreadId, int QueryInterfaceHResult, int CooperativeLevelHResult, uint OwnedDeviceReferences)
プロパティbool Available { get; init; }
プロパティD3DDeviceState State { get; init; }
プロパティuint Generation { get; init; }
プロパティuint LiveTextureCount { get; init; }
プロパティbool ResetHookInstalled { get; init; }
プロパティuint ExecutionThreadId { get; init; }
プロパティuint LastResetThreadId { get; init; }
プロパティint QueryInterfaceHResult { get; init; }
プロパティint CooperativeLevelHResult { get; init; }
プロパティuint OwnedDeviceReferences { get; init; }

D3DRuntimeApi#

static クラス(OmsiLaunch.Api)。安定性: EXPERIMENTAL。セマンティクス: public-api.

メンバーシグネチャ
拡張メソッドTask<D3DTextureDescription> CreateD3DTextureAsync(this IOmsiLaunch launch, SessionHandle session, uint width, uint height, D3DTextureFormat format, uint levels = 1, TimeSpan? timeout = default, CancellationToken cancellationToken = default)
拡張メソッドTask<D3DTextureDescription> DescribeD3DTextureAsync(this IOmsiLaunch launch, SessionHandle session, D3DTextureHandle handle, uint level = 0, TimeSpan? timeout = default, CancellationToken cancellationToken = default)
拡張メソッドTask<D3DDeviceStatus> GetD3DStatusAsync(this IOmsiLaunch launch, SessionHandle session, TimeSpan timeout, CancellationToken cancellationToken = default)
拡張メソッドTask<D3DTextureDescription> ReleaseD3DTextureAsync(this IOmsiLaunch launch, SessionHandle session, D3DTextureHandle handle, TimeSpan? timeout = default, CancellationToken cancellationToken = default)
拡張メソッドTask<D3DTextureDescription> UpdateD3DTextureAsync(this IOmsiLaunch launch, SessionHandle session, D3DTextureHandle handle, D3DTextureUpdate update, TimeSpan? timeout = default, CancellationToken cancellationToken = default)

D3DTextureDescription#

sealed record(OmsiLaunch.Api)。安定性: EXPERIMENTAL。セマンティクス: public-api.

メンバーシグネチャ
コンストラクターD3DTextureDescription(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)
プロパティD3DTextureHandle Handle { get; init; }
プロパティD3DTextureResourceState State { get; init; }
プロパティD3DDeviceState DeviceState { get; init; }
プロパティuint Generation { get; init; }
プロパティuint Width { get; init; }
プロパティuint Height { get; init; }
プロパティD3DTextureFormat Format { get; init; }
プロパティuint Levels { get; init; }
プロパティuint Level { get; init; }
プロパティuint LevelWidth { get; init; }
プロパティuint LevelHeight { get; init; }
プロパティint HResult { get; init; }
プロパティuint ExecutionThreadId { get; init; }

D3DTextureFormat#

列挙型 (byte)(OmsiLaunch.Api)。安定性: EXPERIMENTAL。セマンティクス: public-api.

メンバーシグネチャ
値A8R8G8B8 = 0
値X8R8G8B8 = 1
値R5G6B5 = 2
値X1R5G5B5 = 3
値A1R5G5B5 = 4
値A4R4G4B4 = 5
値A8 = 6
値L8 = 7
値A8L8 = 8

D3DTextureHandle#

sealed record(OmsiLaunch.Api)。安定性: EXPERIMENTAL。セマンティクス: public-api.

メンバーシグネチャ
コンストラクターD3DTextureHandle(string Value)
プロパティstring Value { get; init; }

D3DTextureResourceState#

列挙型 (byte)(OmsiLaunch.Api)。安定性: EXPERIMENTAL。セマンティクス: public-api.

メンバーシグネチャ
値Live = 0
値Released = 1
値Stale = 2

D3DTextureUpdate#

sealed record(OmsiLaunch.Api)。安定性: EXPERIMENTAL。セマンティクス: public-api.

メンバーシグネチャ
コンストラクターD3DTextureUpdate(uint Level, uint X, uint Y, uint Width, uint Height, ReadOnlyMemory<byte> Pixels)
プロパティuint Level { get; init; }
プロパティuint X { get; init; }
プロパティuint Y { get; init; }
プロパティuint Width { get; init; }
プロパティuint Height { get; init; }
プロパティReadOnlyMemory<byte> Pixels { get; init; }

DateSpec#

sealed record(OmsiLaunch.Api)。安定性: PARTIAL。セマンティクス: launchspec.

メンバーシグネチャ
コンストラクターDateSpec(DateTimeMode Mode, OptionalValue<SemanticDate> Value)
プロパティDateTimeMode Mode { get; init; }
プロパティOptionalValue<SemanticDate> Value { get; init; }

DateTimeMode#

列挙型 (byte)(OmsiLaunch.Api)。安定性: STABLE_BETA。セマンティクス: launchspec.

メンバーシグネチャ
値Unset = 0
値Explicit = 1
値System = 2

DiagnosticsSpec#

sealed record(OmsiLaunch.Api)。安定性: PARTIAL。セマンティクス: launchspec.

メンバーシグネチャ
コンストラクターDiagnosticsSpec(bool Log = true, bool Verbose = false, bool OmsiLogAll = false, bool ProcessTrace = false, bool PluginTrace = false, bool NativeTrace = false)
プロパティbool Log { get; init; }
プロパティbool Verbose { get; init; }
プロパティbool OmsiLogAll { get; init; }
プロパティbool ProcessTrace { get; init; }
プロパティbool PluginTrace { get; init; }
プロパティbool NativeTrace { get; init; }

EntrypointMode#

列挙型 (byte)(OmsiLaunch.Api)。安定性: STABLE_BETA。セマンティクス: launchspec.

メンバーシグネチャ
値Unset = 0
値PresentedIndex = 1
値Identity = 2

EntrypointSpec#

sealed record(OmsiLaunch.Api)。安定性: STABLE_BETA。セマンティクス: launchspec.

メンバーシグネチャ
コンストラクターEntrypointSpec(EntrypointMode Mode, OptionalValue<int> PresentedIndex, OptionalValue<string> Identity)
プロパティEntrypointMode Mode { get; init; }
プロパティOptionalValue<int> PresentedIndex { get; init; }
プロパティOptionalValue<string> Identity { get; init; }
static プロパティEntrypointSpec Unset { get; }

EnvironmentSpec#

sealed record(OmsiLaunch.Api)。安定性: STABLE_BETA。セマンティクス: launchspec.

メンバーシグネチャ
コンストラクターEnvironmentSpec(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)
プロパティIReadOnlyDictionary<string, OptionalValue<string>> General { get; init; }
プロパティIReadOnlyDictionary<string, OptionalValue<string>> Advanced { get; init; }
プロパティIReadOnlyDictionary<string, OptionalValue<string>> Graphics { get; init; }
プロパティIReadOnlyDictionary<string, OptionalValue<string>> AdvancedGraphics { get; init; }
プロパティIReadOnlyDictionary<string, OptionalValue<string>> Sound { get; init; }
プロパティIReadOnlyDictionary<string, OptionalValue<string>> AiPassengers { get; init; }
プロパティIReadOnlyDictionary<string, OptionalValue<string>> Keyboard { get; init; }
プロパティIReadOnlyDictionary<string, OptionalValue<string>> Controllers { get; init; }

IOmsiLaunch#

インターフェイス(OmsiLaunch.Api)。安定性: STABLE_BETA。セマンティクス: public-api.

メンバーシグネチャ
メソッドTask CloseAsync(SessionHandle session, CancellationToken cancellationToken = default)
メソッドTask<IReadOnlyList<ContentIdentity>> DiscoverAsync(InstallationSpec installation, ContentQueryKind query, OptionalValue<string> scope = default, CancellationToken cancellationToken = default)
メソッドTask<RuntimeCommandResult> ExecuteRuntimeAsync(SessionHandle session, RuntimeCommand command, TimeSpan timeout, CancellationToken cancellationToken = default)
メソッドTask<IReadOnlyList<Capability>> GetCapabilitiesAsync(InstallationSpec installation, CancellationToken cancellationToken = default)
メソッドTask<SessionStatus> GetStatusAsync(SessionHandle session, CancellationToken cancellationToken = default)
メソッドTask<SessionPlan> PlanSessionAsync(LaunchSpec spec, CancellationToken cancellationToken = default)
メソッドTask<RecoveryStatus> RecoverPendingAsync(InstallationSpec installation, bool restore, CancellationToken cancellationToken = default)
メソッドTask<SessionHandle> StartSessionAsync(SessionPlan plan, CancellationToken cancellationToken = default)
メソッドTask StopAsync(SessionHandle session, CancellationToken cancellationToken = default)
メソッドTask<SessionStatus> WaitForAsync(SessionHandle session, SessionState state, TimeSpan timeout, CancellationToken cancellationToken = default)

InputSpec#

sealed record(OmsiLaunch.Api)。安定性: PARTIAL。セマンティクス: launchspec.

メンバーシグネチャ
コンストラクターInputSpec(OptionalValue<string> KeyboardDocument, OptionalValue<string> ControllerDocument)
プロパティOptionalValue<string> KeyboardDocument { get; init; }
プロパティOptionalValue<string> ControllerDocument { get; init; }

InstallationPaths#

static クラス(OmsiLaunch.Api)。安定性: STABLE_BETA。セマンティクス: public-api.

メンバーシグネチャ
static メソッドstring IdentityKey(string root)
static メソッドstring NormalizeRoot(string root)
static メソッドIReadOnlyList<string> Segments(string relativePath)
static メソッドbool TryGetContainedRelativePath(string root, string candidate, out string relativePath)

InstallationSpec#

sealed record(OmsiLaunch.Api)。安定性: STABLE_BETA。セマンティクス: launchspec.

メンバーシグネチャ
コンストラクターInstallationSpec(string RootPath, string ExpectedExecutableSha256 = null)
プロパティstring RootPath { get; init; }
プロパティstring ExpectedExecutableSha256 { get; init; }

InternetTexturesMode#

列挙型 (byte)(OmsiLaunch.Api)。安定性: STABLE_BETA。セマンティクス: launchspec.

メンバーシグネチャ
値Native = 0
値Disabled = 1
値Override = 2

InternetTexturesSpec#

sealed record(OmsiLaunch.Api)。安定性: STABLE_BETA。セマンティクス: launchspec.

メンバーシグネチャ
コンストラクターInternetTexturesSpec(InternetTexturesMode Mode = Native, OptionalValue<string> OverrideProfilePath = default)
プロパティInternetTexturesMode Mode { get; init; }
プロパティOptionalValue<string> OverrideProfilePath { get; init; }

LaunchBehaviorSpec#

sealed record(OmsiLaunch.Api)。安定性: STABLE_BETA。セマンティクス: launchspec.

メンバーシグネチャ
コンストラクターLaunchBehaviorSpec(bool RestoreConfiguration = true, bool SuppressStaleClosecheckWarning = true, int StartupTimeoutSeconds = 180, int ShutdownTimeoutSeconds = 30)
プロパティbool RestoreConfiguration { get; init; }
プロパティbool SuppressStaleClosecheckWarning { get; init; }
プロパティint StartupTimeoutSeconds { get; init; }
プロパティint ShutdownTimeoutSeconds { get; init; }

LaunchDiagnostic#

sealed record(OmsiLaunch.Api)。安定性: STABLE_BETA。セマンティクス: public-api.

メンバーシグネチャ
コンストラクターLaunchDiagnostic(string Code, string Message, IReadOnlyDictionary<string, string> Data = null)
プロパティstring Code { get; init; }
プロパティstring Message { get; init; }
プロパティIReadOnlyDictionary<string, string> Data { get; init; }

LaunchSpec#

sealed record(OmsiLaunch.Api)。安定性: STABLE_BETA。セマンティクス: launchspec.

メンバーシグネチャ
コンストラクターLaunchSpec(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)
プロパティInstallationSpec Installation { get; init; }
プロパティWorldSpec World { get; init; }
プロパティDateSpec Date { get; init; }
プロパティTimeSpec Time { get; init; }
プロパティOptionalValue<PlayerVehicleSpec> PlayerVehicle { get; init; }
プロパティEnvironmentSpec Environment { get; init; }
プロパティLaunchBehaviorSpec Behavior { get; init; }
プロパティYearSpec Year { get; init; }
プロパティWeatherSpec Weather { get; init; }
プロパティInputSpec Input { get; init; }
プロパティDiagnosticsSpec Diagnostics { get; init; }
プロパティSessionPresentationSpec Presentation { get; init; }
プロパティInternetTexturesSpec InternetTextures { get; init; }
プロパティSessionProfileMetadata SessionProfile { get; init; }
プロパティYearSpec EffectiveYear { get; }
プロパティWeatherSpec EffectiveWeather { get; }
プロパティInputSpec EffectiveInput { get; }
プロパティDiagnosticsSpec EffectiveDiagnostics { get; }
プロパティSessionPresentationSpec EffectivePresentation { get; }
プロパティInternetTexturesSpec EffectiveInternetTextures { get; }

OmsiRuntimeException#

sealed クラス(OmsiLaunch.Api)。安定性: EXPERIMENTAL。セマンティクス: public-api.

メンバーシグネチャ
コンストラクターOmsiRuntimeException(string code, string detail = null)
プロパティstring Code { get; }

OptionalValue#

record struct(OmsiLaunch.Api)。安定性: STABLE_BETA。セマンティクス: launchspec.

メンバーシグネチャ
コンストラクターOptionalValue(Presence Presence, T Value)
プロパティPresence Presence { get; init; }
プロパティT Value { get; init; }
プロパティbool IsSet { get; }
static プロパティOptionalValue<T> Unset { get; }
static メソッドOptionalValue<T> Set(T value)

PlannedMutation#

sealed record(OmsiLaunch.Api)。安定性: STABLE_BETA。セマンティクス: public-api.

メンバーシグネチャ
コンストラクターPlannedMutation(string RelativePath, string SemanticKey, string RequestedValue, string Operation)
プロパティstring RelativePath { get; init; }
プロパティstring SemanticKey { get; init; }
プロパティstring RequestedValue { get; init; }
プロパティstring Operation { get; init; }

PlayerVehicleSpec#

sealed record(OmsiLaunch.Api)。安定性: PARTIAL。セマンティクス: launchspec.

メンバーシグネチャ
コンストラクターPlayerVehicleSpec(OptionalValue<string> Model, OptionalValue<string> Repaint, OptionalValue<string> Hof, OptionalValue<string> FleetNumber, OptionalValue<string> Registration)
プロパティOptionalValue<string> Model { get; init; }
プロパティOptionalValue<string> Repaint { get; init; }
プロパティOptionalValue<string> Hof { get; init; }
プロパティOptionalValue<string> FleetNumber { get; init; }
プロパティOptionalValue<string> Registration { get; init; }
プロパティbool Enabled { get; }

Presence#

列挙型 (byte)(OmsiLaunch.Api)。安定性: STABLE_BETA。セマンティクス: launchspec.

メンバーシグネチャ
値Unset = 0
値Set = 1

PublicCapabilityClassification#

列挙型 (byte)(OmsiLaunch.Api)。安定性: STABLE_BETA。セマンティクス: capabilities.

メンバーシグネチャ
値PublicStableBeta = 0
値PublicExperimental = 1
値InternalOnly = 2
値Unsupported = 3

PublicCapabilityDescriptor#

sealed record(OmsiLaunch.Api)。安定性: STABLE_BETA。セマンティクス: capabilities.

メンバーシグネチャ
コンストラクターPublicCapabilityDescriptor(string Id, string Family, PublicCapabilityClassification Classification, PublicCapabilityKind Kind, bool RequiresSession, bool RequiresExactProfile, string ApiRoute, string CliRoute, string RuntimeValidation, string Description, IReadOnlyList<string> HandleTypes = null)
プロパティstring Id { get; init; }
プロパティstring Family { get; init; }
プロパティPublicCapabilityClassification Classification { get; init; }
プロパティPublicCapabilityKind Kind { get; init; }
プロパティbool RequiresSession { get; init; }
プロパティbool RequiresExactProfile { get; init; }
プロパティstring ApiRoute { get; init; }
プロパティstring CliRoute { get; init; }
プロパティstring RuntimeValidation { get; init; }
プロパティstring Description { get; init; }
プロパティIReadOnlyList<string> HandleTypes { get; init; }

PublicCapabilityKind#

列挙型 (byte)(OmsiLaunch.Api)。安定性: STABLE_BETA。セマンティクス: capabilities.

メンバーシグネチャ
値Read = 0
値Write = 1
値Action = 2
値Event = 3

PublicCapabilityRegistry#

static クラス(OmsiLaunch.Api)。安定性: STABLE_BETA。セマンティクス: capabilities.

メンバーシグネチャ
定数string ProtocolVersion = "0.1"
static フィールドIReadOnlyList<PublicCapabilityDescriptor> All
static プロパティIReadOnlyCollection<string> PublicRuntimeOperationIds { get; }
static メソッドIReadOnlyList<PublicRuntimeArgumentDescriptor> GetRuntimeArguments(string operation)
static メソッドbool IsInternalResultKey(string key)
static メソッドbool IsPublicRuntimeOperation(string operation)
static メソッドPublicRuntimeArgumentValidation ValidateRuntimeArguments(string operation, IReadOnlyDictionary<string, string> arguments)

PublicErrorCategory#

static クラス(OmsiLaunch.Api)。安定性: STABLE_BETA。セマンティクス: errors.

メンバーシグネチャ
定数string InvalidArgument = "invalid_argument"
定数string UnsupportedProfile = "unsupported_profile"
定数string Session = "session"
定数string Runtime = "runtime"
定数string NotFound = "not_found"
定数string Transaction = "transaction"
定数string Internal = "internal"

PublicErrorCodes#

static クラス(OmsiLaunch.Api)。安定性: STABLE_BETA。セマンティクス: errors.

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

PublicErrorDescriptor#

sealed record(OmsiLaunch.Api)。安定性: STABLE_BETA。セマンティクス: errors.

メンバーシグネチャ
コンストラクターPublicErrorDescriptor(string Code, string Category)
プロパティstring Code { get; init; }
プロパティstring Category { get; init; }

PublicExitCode#

列挙型 (int)(OmsiLaunch.Api)。安定性: STABLE_BETA。セマンティクス: exit-codes.

メンバーシグネチャ
値Success = 0
値SessionFailed = 1
値InvalidArguments = 2
値UnsupportedProfile = 3
値NoActiveSession = 4
値RuntimeUnavailable = 5
値NotFound = 6
値OperationRejected = 7
値TransactionRecoveryFailed = 8
値InternalError = 10

PublicRuntimeArgumentDescriptor#

sealed record(OmsiLaunch.Api)。安定性: STABLE_BETA。セマンティクス: public-api.

メンバーシグネチャ
コンストラクターPublicRuntimeArgumentDescriptor(string Name, bool Required, string Description)
プロパティstring Name { get; init; }
プロパティbool Required { get; init; }
プロパティstring Description { get; init; }

PublicRuntimeArgumentValidation#

sealed record(OmsiLaunch.Api)。安定性: STABLE_BETA。セマンティクス: public-api.

メンバーシグネチャ
コンストラクターPublicRuntimeArgumentValidation(bool Accepted, string ErrorCode = null, string Message = null)
プロパティbool Accepted { get; init; }
プロパティstring ErrorCode { get; init; }
プロパティstring Message { get; init; }

RecoveryStatus#

sealed record(OmsiLaunch.Api)。安定性: STABLE_BETA。セマンティクス: public-api.

メンバーシグネチャ
コンストラクターRecoveryStatus(bool Pending, bool Recovered, IReadOnlyList<LaunchDiagnostic> Diagnostics)
プロパティbool Pending { get; init; }
プロパティbool Recovered { get; init; }
プロパティIReadOnlyList<LaunchDiagnostic> Diagnostics { get; init; }

RuntimeCommand#

sealed record(OmsiLaunch.Api)。安定性: STABLE_BETA。セマンティクス: runtime-control.

メンバーシグネチャ
コンストラクターRuntimeCommand(Guid SessionId, ulong RequestId, string Operation, IReadOnlyDictionary<string, string> Arguments = null)
プロパティGuid SessionId { get; init; }
プロパティulong RequestId { get; init; }
プロパティstring Operation { get; init; }
プロパティIReadOnlyDictionary<string, string> Arguments { get; init; }

RuntimeCommandResult#

sealed record(OmsiLaunch.Api)。安定性: STABLE_BETA。セマンティクス: runtime-control.

メンバーシグネチャ
コンストラクターRuntimeCommandResult(Guid SessionId, ulong RequestId, bool Succeeded, string ErrorCode = null, IReadOnlyDictionary<string, string> Values = null)
プロパティGuid SessionId { get; init; }
プロパティulong RequestId { get; init; }
プロパティbool Succeeded { get; init; }
プロパティstring ErrorCode { get; init; }
プロパティIReadOnlyDictionary<string, string> Values { get; init; }

RuntimeCommandWire#

static クラス(OmsiLaunch.Api)。安定性: INTERNAL。セマンティクス: public-api.

メンバーシグネチャ
定数uint Magic = 1330401859
定数ushort Version = 1
定数int HeaderSize = 72
static メソッドbyte[] SerializeRequest(RuntimeCommand command)
static メソッドbyte[] SerializeResponse(RuntimeCommandResult result)
static メソッドbool TryDeserializeRequest(ReadOnlySpan<byte> bytes, out RuntimeCommand command)
static メソッドbool TryDeserializeResponse(ReadOnlySpan<byte> bytes, out RuntimeCommandResult result)
static メソッドbool TryReadRequestId(ReadOnlySpan<byte> bytes, out ulong requestId)

RuntimeEvent#

sealed record(OmsiLaunch.Api)。安定性: STABLE_BETA。セマンティクス: public-api.

メンバーシグネチャ
コンストラクターRuntimeEvent(string Type, DateTimeOffset TimestampUtc, long Sequence, IReadOnlyDictionary<string, string> Data)
プロパティstring Type { get; init; }
プロパティDateTimeOffset TimestampUtc { get; init; }
プロパティlong Sequence { get; init; }
プロパティIReadOnlyDictionary<string, string> Data { get; init; }

RuntimePlatformInfo#

sealed record(OmsiLaunch.Api)。安定性: STABLE_BETA。セマンティクス: public-api.

メンバーシグネチャ
コンストラクターRuntimePlatformInfo(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)
プロパティstring OsFamily { get; init; }
プロパティstring OsVersion { get; init; }
プロパティstring OsArchitecture { get; init; }
プロパティstring HostArchitecture { get; init; }
プロパティstring OmsiArchitecture { get; init; }
プロパティstring PluginArchitecture { get; init; }
プロパティbool CurrentPlatformSupported { get; init; }
プロパティbool LegacyPlatform { get; init; }
プロパティbool Wow64Available { get; init; }
プロパティbool InstallationWritable { get; init; }
プロパティbool ProcessLaunchSupported { get; init; }
プロパティbool PluginRuntimeSupported { get; init; }
プロパティbool NativeInteropSupported { get; init; }
プロパティbool SharedMemorySupported { get; init; }
プロパティbool ExactRestoreSupported { get; init; }

SemanticDate#

sealed record(OmsiLaunch.Api)。安定性: STABLE_BETA。セマンティクス: launchspec.

メンバーシグネチャ
コンストラクターSemanticDate(int Year, int Month, int Day)
プロパティint Year { get; init; }
プロパティint Month { get; init; }
プロパティint Day { get; init; }

SemanticTime#

sealed record(OmsiLaunch.Api)。安定性: STABLE_BETA。セマンティクス: launchspec.

メンバーシグネチャ
コンストラクターSemanticTime(int Hour, int Minute, int Second)
プロパティint Hour { get; init; }
プロパティint Minute { get; init; }
プロパティint Second { get; init; }

SessionHandle#

sealed record(OmsiLaunch.Api)。安定性: STABLE_BETA。セマンティクス: public-api.

メンバーシグネチャ
コンストラクターSessionHandle(Guid SessionId)
プロパティGuid SessionId { get; init; }

SessionPlan#

sealed record(OmsiLaunch.Api)。安定性: STABLE_BETA。セマンティクス: public-api.

メンバーシグネチャ
コンストラクターSessionPlan(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)
プロパティGuid SessionId { get; init; }
プロパティstring BuildProfileId { get; init; }
プロパティLaunchSpec Spec { get; init; }
プロパティRuntimePlatformInfo Platform { get; init; }
プロパティIReadOnlyList<ContentIdentity> ResolvedContent { get; init; }
プロパティIReadOnlyList<string> TouchedFiles { get; init; }
プロパティIReadOnlyList<string> RuntimeArtifacts { get; init; }
プロパティIReadOnlyList<Capability> RequiredCapabilities { get; init; }
プロパティIReadOnlyList<Capability> UnsupportedRequestedFeatures { get; init; }
プロパティIReadOnlyList<PlannedMutation> PlannedMutations { get; init; }
プロパティIReadOnlyList<LaunchDiagnostic> Diagnostics { get; init; }
プロパティbool IsRunnable { get; init; }

SessionPresentationSpec#

sealed record(OmsiLaunch.Api)。安定性: STABLE_BETA。セマンティクス: launchspec.

メンバーシグネチャ
コンストラクターSessionPresentationSpec(SplashMode Splash = Managed, OptionalValue<string> Language = default, OptionalValue<string> CustomAssetDirectory = default, bool SuppressTrayIcon = false)
プロパティSplashMode Splash { get; init; }
プロパティOptionalValue<string> Language { get; init; }
プロパティOptionalValue<string> CustomAssetDirectory { get; init; }
プロパティbool SuppressTrayIcon { get; init; }

SessionProfileMetadata#

sealed record(OmsiLaunch.Api)。安定性: STABLE_BETA。セマンティクス: launchspec.

メンバーシグネチャ
コンストラクターSessionProfileMetadata(string Id, string Name, string Version, string Author, string PresetId, int PresetIndex, string PresetName, string PackagePath)
プロパティstring Id { get; init; }
プロパティstring Name { get; init; }
プロパティstring Version { get; init; }
プロパティstring Author { get; init; }
プロパティstring PresetId { get; init; }
プロパティint PresetIndex { get; init; }
プロパティstring PresetName { get; init; }
プロパティstring PackagePath { get; init; }

SessionState#

列挙型 (byte)(OmsiLaunch.Api)。安定性: STABLE_BETA。セマンティクス: public-api.

メンバーシグネチャ
値Created = 0
値ValidatingPlatform = 1
値Planning = 2
値AcquiringInstallationLock = 3
値RecoveringPreviousTransaction = 4
値Snapshotting = 5
値ApplyingConfiguration = 6
値DeployingRuntime = 7
値CreatingStartupHandoff = 8
値StartingProcess = 9
値WaitingForPlugin = 10
値PluginBootstrap = 11
値StartingWorld = 12
値EnteringGameplay = 13
値Running = 14
値ProcessExited = 15
値Restoring = 16
値CleaningRuntime = 17
値Completed = 18
値Failed = 19

SessionStatus#

sealed record(OmsiLaunch.Api)。安定性: STABLE_BETA。セマンティクス: public-api.

メンバーシグネチャ
コンストラクターSessionStatus(Guid SessionId, SessionState State, IReadOnlyList<LaunchDiagnostic> Diagnostics, IReadOnlyList<RuntimeEvent> RuntimeEvents = null)
プロパティGuid SessionId { get; init; }
プロパティSessionState State { get; init; }
プロパティIReadOnlyList<LaunchDiagnostic> Diagnostics { get; init; }
プロパティIReadOnlyList<RuntimeEvent> RuntimeEvents { get; init; }

SplashMode#

列挙型 (byte)(OmsiLaunch.Api)。安定性: STABLE_BETA。セマンティクス: launchspec.

メンバーシグネチャ
値Unset = 0
値Native = 0
値Managed = 1

StartupHandoff#

sealed record(OmsiLaunch.Api)。安定性: INTERNAL。セマンティクス: public-api.

メンバーシグネチャ
コンストラクターStartupHandoff(Guid SessionId, string BuildProfileId, WorldMode WorldMode, string MapIdentity, int PresentedEntrypointIndex, bool HeadlessStart, bool PlayerVehicleEnabled, DateTimeMode DateMode, DateTimeMode TimeMode, string EntrypointIdentity = "", string SituationIdentity = "")
プロパティGuid SessionId { get; init; }
プロパティstring BuildProfileId { get; init; }
プロパティWorldMode WorldMode { get; init; }
プロパティstring MapIdentity { get; init; }
プロパティint PresentedEntrypointIndex { get; init; }
プロパティbool HeadlessStart { get; init; }
プロパティbool PlayerVehicleEnabled { get; init; }
プロパティDateTimeMode DateMode { get; init; }
プロパティDateTimeMode TimeMode { get; init; }
プロパティstring EntrypointIdentity { get; init; }
プロパティstring SituationIdentity { get; init; }

StartupHandoffWire#

static クラス(OmsiLaunch.Api)。安定性: INTERNAL。セマンティクス: public-api.

メンバーシグネチャ
定数uint Magic = 1330402120
定数ushort Version = 4
static メソッドbyte[] Serialize(StartupHandoff value)
static メソッドbool TryDeserialize(ReadOnlySpan<byte> bytes, out StartupHandoff value)

TimeSpec#

sealed record(OmsiLaunch.Api)。安定性: PARTIAL。セマンティクス: launchspec.

メンバーシグネチャ
コンストラクターTimeSpec(DateTimeMode Mode, OptionalValue<SemanticTime> Value)
プロパティDateTimeMode Mode { get; init; }
プロパティOptionalValue<SemanticTime> Value { get; init; }

WeatherMode#

列挙型 (byte)(OmsiLaunch.Api)。安定性: STABLE_BETA。セマンティクス: launchspec.

メンバーシグネチャ
値Unset = 0
値Preset = 1
値Icao = 2
値RealCurrent = 3

WeatherSpec#

sealed record(OmsiLaunch.Api)。安定性: PARTIAL。セマンティクス: launchspec.

メンバーシグネチャ
コンストラクターWeatherSpec(WeatherMode Mode, OptionalValue<string> Preset, OptionalValue<string> Icao)
プロパティWeatherMode Mode { get; init; }
プロパティOptionalValue<string> Preset { get; init; }
プロパティOptionalValue<string> Icao { get; init; }

WorldMode#

列挙型 (int)(OmsiLaunch.Api)。安定性: STABLE_BETA。セマンティクス: launchspec.

メンバーシグネチャ
値NewMap = 0
値SavedSituation = 1
値LastMapState = 2
値LastSituation = 2

WorldSpec#

sealed record(OmsiLaunch.Api)。安定性: STABLE_BETA。セマンティクス: launchspec.

メンバーシグネチャ
コンストラクターWorldSpec(WorldMode Mode, OptionalValue<string> MapIdentity, OptionalValue<string> SituationIdentity, OptionalValue<int> PresentedEntrypointIndex, OptionalValue<string> EntrypointIdentity = default)
プロパティWorldMode Mode { get; init; }
プロパティOptionalValue<string> MapIdentity { get; init; }
プロパティOptionalValue<string> SituationIdentity { get; init; }
プロパティOptionalValue<int> PresentedEntrypointIndex { get; init; }
プロパティOptionalValue<string> EntrypointIdentity { get; init; }
プロパティEntrypointSpec Entrypoint { get; }

YearSpec#

sealed record(OmsiLaunch.Api)。安定性: PARTIAL。セマンティクス: launchspec.

メンバーシグネチャ
コンストラクターYearSpec(DateTimeMode Mode, OptionalValue<int> Value)
プロパティDateTimeMode Mode { get; init; }
プロパティOptionalValue<int> Value { get; init; }

OmsiLaunch.Core#

LaunchValidation#

static クラス(OmsiLaunch.Core)。安定性: INTERNAL。セマンティクス: public-api.

メンバーシグネチャ
static メソッドbool IsMapIdentity(string value)
static メソッドIReadOnlyList<LaunchDiagnostic> Validate(LaunchSpec spec)

OmsiLaunchRuntimePaths#

sealed record(OmsiLaunch.Core)。安定性: STABLE_BETA。セマンティクス: public-api.

メンバーシグネチャ
コンストラクターOmsiLaunchRuntimePaths(string PluginBuildDirectory, string NativeBridgePath, string ReleaseManifestPath = null)
プロパティstring PluginBuildDirectory { get; init; }
プロパティstring NativeBridgePath { get; init; }
プロパティstring ReleaseManifestPath { get; init; }

OmsiLaunchService#

sealed クラス(OmsiLaunch.Core)。安定性: STABLE_BETA。セマンティクス: public-api.

メンバーシグネチャ
コンストラクターOmsiLaunchService(IRuntimePlatform platform, OmsiLaunchRuntimePaths runtimePaths)
メソッドTask CloseAsync(SessionHandle session, CancellationToken cancellationToken = default)
メソッドTask<IReadOnlyList<ContentIdentity>> DiscoverAsync(InstallationSpec installation, ContentQueryKind query, OptionalValue<string> scope = default, CancellationToken cancellationToken = default)
メソッドTask<RuntimeCommandResult> ExecuteRuntimeAsync(SessionHandle session, RuntimeCommand command, TimeSpan timeout, CancellationToken cancellationToken = default)
メソッドTask<IReadOnlyList<Capability>> GetCapabilitiesAsync(InstallationSpec installation, CancellationToken cancellationToken = default)
メソッドTask<SessionStatus> GetStatusAsync(SessionHandle session, CancellationToken cancellationToken = default)
メソッドTask<SessionPlan> PlanSessionAsync(LaunchSpec spec, CancellationToken cancellationToken = default)
メソッドTask<RecoveryStatus> RecoverPendingAsync(InstallationSpec installation, bool restore, CancellationToken cancellationToken = default)
メソッドTask<SessionHandle> StartSessionAsync(SessionPlan plan, CancellationToken cancellationToken = default)
メソッドTask StopAsync(SessionHandle session, CancellationToken cancellationToken = default)
メソッドTask<SessionStatus> WaitForAsync(SessionHandle session, SessionState state, TimeSpan timeout, CancellationToken cancellationToken = default)

ProfileNew#

sealed record(OmsiLaunch.Core)。安定性: EXPERIMENTAL。セマンティクス: session-profiles.

メンバーシグネチャ
コンストラクターProfileNew(string Map = null, int? EntrypointIndex = default, string EntrypointIdentity = null, SemanticDate Date = null, SemanticTime Time = null, int? Year = default, WeatherSpec Weather = null)
プロパティstring Map { get; init; }
プロパティint? EntrypointIndex { get; init; }
プロパティstring EntrypointIdentity { get; init; }
プロパティSemanticDate Date { get; init; }
プロパティSemanticTime Time { get; init; }
プロパティint? Year { get; init; }
プロパティWeatherSpec Weather { get; init; }

ProfilePreset#

sealed record(OmsiLaunch.Core)。安定性: EXPERIMENTAL。セマンティクス: session-profiles.

メンバーシグネチャ
コンストラクターProfilePreset(int Index, string Id, string Name, IReadOnlyDictionary<string, string> Settings, SessionPresentationSpec Presentation, InternetTexturesSpec InternetTextures, LaunchBehaviorSpec Behavior)
プロパティint Index { get; init; }
プロパティstring Id { get; init; }
プロパティstring Name { get; init; }
プロパティIReadOnlyDictionary<string, string> Settings { get; init; }
プロパティSessionPresentationSpec Presentation { get; init; }
プロパティInternetTexturesSpec InternetTextures { get; init; }
プロパティLaunchBehaviorSpec Behavior { get; init; }

SessionPlanner#

sealed クラス(OmsiLaunch.Core)。安定性: INTERNAL。セマンティクス: public-api.

メンバーシグネチャ
コンストラクターSessionPlanner(IRuntimePlatform platform)
メソッドTask<SessionPlan> PlanAsync(LaunchSpec spec, CancellationToken cancellationToken = default)

SessionProfileCompiler#

static クラス(OmsiLaunch.Core)。安定性: EXPERIMENTAL。セマンティクス: session-profiles.

メンバーシグネチャ
定数string Schema = "omsilaunch.session-profile/v1"
定数long MaxBytes = 262144
static フィールドIReadOnlyDictionary<string, IReadOnlyList<string>> SchemaKeys
static メソッドLaunchSpec Apply(SessionProfilePackage profile, LaunchSpec baseline, WorldMode selectedWorldMode)
static メソッドSessionProfilePackage Load(string installationRoot, string id, int presetIndex)
static メソッドvoid ValidateCompatibility(SessionProfilePackage profile, string installationRoot, WorldSpec world, WorldMode mode)

SessionProfileException#

sealed クラス(OmsiLaunch.Core)。安定性: EXPERIMENTAL。セマンティクス: session-profiles.

メンバーシグネチャ
コンストラクターSessionProfileException(string code, string message)
プロパティstring Code { get; }

SessionProfilePackage#

sealed record(OmsiLaunch.Core)。安定性: EXPERIMENTAL。セマンティクス: session-profiles.

メンバーシグネチャ
コンストラクターSessionProfilePackage(string RootPath, SessionProfileMetadata Metadata, IReadOnlyList<string> CompatibleMaps, ProfileNew New, ProfilePreset Preset)
プロパティstring RootPath { get; init; }
プロパティSessionProfileMetadata Metadata { get; init; }
プロパティIReadOnlyList<string> CompatibleMaps { get; init; }
プロパティProfileNew New { get; init; }
プロパティProfilePreset Preset { get; init; }

OmsiLaunch.Process#

CurrentRuntimeCommandStore#

sealed クラス(OmsiLaunch.Process)。安定性: INTERNAL。セマンティクス: public-api.

メンバーシグネチャ
プロパティstring Name { get; }
プロパティGuid SessionId { get; }
static メソッドCurrentRuntimeCommandStore Create(Guid sessionId)
メソッドvoid Dispose()
メソッドTask<RuntimeCommandResult> RequestAsync(RuntimeCommand command, TimeSpan timeout, CancellationToken cancellationToken = default)

CurrentStartupHandoffStore#

sealed クラス(OmsiLaunch.Process)。安定性: INTERNAL。セマンティクス: public-api.

メンバーシグネチャ
プロパティstring Name { get; }
プロパティGuid SessionId { get; }
static メソッドCurrentStartupHandoffStore Create(StartupHandoff handoff)
メソッドvoid Dispose()

CurrentTelemetryStore#

sealed クラス(OmsiLaunch.Process)。安定性: INTERNAL。セマンティクス: public-api.

メンバーシグネチャ
プロパティstring Name { get; }
static メソッドCurrentTelemetryStore Create(Guid sessionId)
メソッドvoid Dispose()
メソッドValueTuple<int, string>? ReadLatest()

CurrentWindowsX64Platform#

sealed クラス(OmsiLaunch.Process)。安定性: STABLE_BETA。セマンティクス: public-api.

メンバーシグネチャ
コンストラクターCurrentWindowsX64Platform()
メソッドRuntimePlatformInfo Detect(string root)
メソッドbool HasExited(LaunchedProcess p)
メソッドbool IsInstallationWritable(string root)
メソッドTask<LaunchedProcess> StartAsync(StartupProcessRequest request, string executableSha256, CancellationToken cancellationToken)
メソッドvoid Terminate(LaunchedProcess p)
メソッドvoid ValidateCurrent(RuntimePlatformInfo p)
メソッドTask WaitForExitAsync(LaunchedProcess process, CancellationToken token)

IOmsiProcessController#

インターフェイス(OmsiLaunch.Process)。安定性: INTERNAL。セマンティクス: public-api.

メンバーシグネチャ
メソッドOmsiProcessState Observe()
メソッドTask<int> StartAsync(string installation, CancellationToken cancellationToken = default)
メソッドTask StopAsync(CancellationToken cancellationToken = default)

IRuntimePlatform#

インターフェイス(OmsiLaunch.Process)。安定性: STABLE_BETA。セマンティクス: public-api.

メンバーシグネチャ
メソッドRuntimePlatformInfo Detect(string installationRoot)
メソッドbool HasExited(LaunchedProcess process)
メソッドbool IsInstallationWritable(string installationRoot)
メソッドTask<LaunchedProcess> StartAsync(StartupProcessRequest request, string executableSha256, CancellationToken cancellationToken)
メソッドvoid Terminate(LaunchedProcess process)
メソッドvoid ValidateCurrent(RuntimePlatformInfo platform)
メソッドTask WaitForExitAsync(LaunchedProcess process, CancellationToken cancellationToken)

InstallationLease#

sealed クラス(OmsiLaunch.Process)。安定性: INTERNAL。セマンティクス: public-api.

メンバーシグネチャ
static メソッドInstallationLease Acquire(string installationRoot)
メソッドvoid Dispose()
static メソッドstring NormalizeRoot(string installationRoot)

LaunchedProcess#

sealed クラス(OmsiLaunch.Process)。安定性: INTERNAL。セマンティクス: public-api.

メンバーシグネチャ
プロパティint ProcessId { get; }
プロパティint ThreadId { get; }
プロパティProcessIdentity Identity { get; }
メソッドvoid Dispose()

OmsiProcessState#

sealed record(OmsiLaunch.Process)。安定性: INTERNAL。セマンティクス: public-api.

メンバーシグネチャ
コンストラクターOmsiProcessState(string State, int? ProcessId, bool Responding)
プロパティstring State { get; init; }
プロパティint? ProcessId { get; init; }
プロパティbool Responding { get; init; }

ProcessIdentity#

sealed record(OmsiLaunch.Process)。安定性: INTERNAL。セマンティクス: public-api.

メンバーシグネチャ
コンストラクターProcessIdentity(int ProcessId, DateTimeOffset CreationTimeUtc, string ExecutablePath, string ExecutableSha256)
プロパティint ProcessId { get; init; }
プロパティDateTimeOffset CreationTimeUtc { get; init; }
プロパティstring ExecutablePath { get; init; }
プロパティstring ExecutableSha256 { get; init; }

ReleaseManifest#

static クラス(OmsiLaunch.Process)。安定性: INTERNAL。セマンティクス: public-api.

メンバーシグネチャ
定数string FileName = "release-manifest.json"
static メソッドIReadOnlyDictionary<string, string> ParsePluginHashes(byte[] bytes)
static メソッドIReadOnlyDictionary<string, string> TryReadPluginHashes(string manifestPath)

RuntimeArtifact#

sealed record(OmsiLaunch.Process)。安定性: INTERNAL。セマンティクス: public-api.

メンバーシグネチャ
コンストラクターRuntimeArtifact(string SourcePath, string DestinationRelativePath, string Sha256, long Size)
プロパティstring SourcePath { get; init; }
プロパティstring DestinationRelativePath { get; init; }
プロパティstring Sha256 { get; init; }
プロパティlong Size { get; init; }

RuntimeArtifactSet#

sealed クラス(OmsiLaunch.Process)。安定性: INTERNAL。セマンティクス: public-api.

メンバーシグネチャ
プロパティIReadOnlyList<RuntimeArtifact> Artifacts { get; }
プロパティIReadOnlyDictionary<string, string> ExpectedHashes { get; }
プロパティstring IntegrityReference { get; }
static メソッドRuntimeArtifactSet Load(string pluginBuildDirectory, string nativeBuildPath, IReadOnlyDictionary<string, string> expectedHashes = null)
メソッドvoid ValidateInstalled(string installationRoot)

StartupProcessRequest#

sealed record(OmsiLaunch.Process)。安定性: INTERNAL。セマンティクス: public-api.

メンバーシグネチャ
コンストラクターStartupProcessRequest(string ExecutablePath, string WorkingDirectory, IReadOnlyDictionary<string, string> Environment)
プロパティstring ExecutablePath { get; init; }
プロパティstring WorkingDirectory { get; init; }
プロパティIReadOnlyDictionary<string, string> Environment { get; init; }