Synced
AssetDraftDocuments<TAsset>
Section titled “AssetDraftDocuments<TAsset>”
- Owns detached native asset drafts with shared document, History, recovery and explicit-save semantics.
Required contracts
Section titled “Required contracts”API: engine
Implements: System.IDisposable
Inherits: object
Project: Inno.Editor.Assets
Declaration
Section titled “Declaration”public sealed class Inno.Editor.Assets.AssetDraftDocuments<TAsset> where TAsset : Inno.Assets.AssetObject : System.IDisposableType parameters
Section titled “Type parameters”Type parameter TAsset: Native source type edited by the consuming feature.
Members
Section titled “Members”| Kind | Element | Description |
|---|---|---|
| Constructors | AssetDraftDocuments<TAsset>.Constructor | Creates a feature-owned draft store; call Start after document services become available. |
| Methods | AssetDraftDocuments<TAsset>.ApplyHistory | Applies a previously validated neutral record; failed recovery leaves the draft unchanged. |
| Methods | AssetDraftDocuments<TAsset>.Dispose | Preserves unsaved recovery and unregisters the current feature provider. |
| Methods | AssetDraftDocuments<TAsset>.GetDraft | Gets host-owned neutral presentation state for an open document. |
| Methods | AssetDraftDocuments<TAsset>.Open | Opens a native asset source in the shared document service without revealing a second Inspector. |
| Methods | AssetDraftDocuments<TAsset>.Read | Reads a detached current-generation value; callers must never mutate its referenced canonical assets. |
| Methods | AssetDraftDocuments<TAsset>.Replace | Updates the open draft through shared History without saving or publishing a runtime asset. |
| Methods | AssetDraftDocuments<TAsset>.ReplaceMany | Records a fully validated selection sample atomically in the shared History. |
| Methods | AssetDraftDocuments<TAsset>.Start | Registers the feature provider with the headless document ownership service. |
| Methods | AssetDraftDocuments<TAsset>.TryMergeHistory | Combines adjacent samples of the same document and gesture without retaining live assets. |
| Methods | AssetDraftDocuments<TAsset>.Update | Imports explicit saves and reconciles source changes without owning UI gesture lifetimes. |
| Methods | AssetDraftDocuments<TAsset>.ValidateHistory | Validates a feature’s neutral History record without changing the draft. |
| Nested types | AssetDraftDocuments<TAsset>.Draft | Contains neutral draft status; only the owning store can change it. |