Inno.Editor.Assets
Section titled “Inno.Editor.Assets”
- Reusable source asset drafts, creation templates, file edits and operation-scoped sample progress.
Reusable source asset drafts, creation templates, file edits and operation-scoped sample progress.
Extend the shared asset workflow
Section titled “Extend the shared asset workflow”Asset creation and draft editing explains template discovery, importer/processor identity, source ownership and immediate neutral History. The feature does not introduce another asset database, document service or undo stack. Material and Pipeline reuse AssetDraftDocuments rather than encoding their own source/recovery protocol.
Keep editing and saving distinct
Section titled “Keep editing and saving distinct”Replace/ReplaceMany records a sample immediately. Continuous gestures share a transaction/merge key; Commit ends a gesture without saving, and Cancel uses the same History rollback. Multi-document History is not cross-file crash-atomic saving. Canonical reference assets remain read-only, and detached values are callback-scoped.
Save/Revert/dirty close belong to the shared document service. Save publishes source atomically and later import may still fail visibly. Recovery preserves source identity, baseline and draft; conflicting external edits refuse overwrite. Installed assets remain read-only. Batch file edits prevalidate the normalized selection and compensate failures. Sample progress and cancellation identify one live operation.
Host examples
Section titled “Host examples”These use the actual host contracts and borrowed live dependencies. They do not initialize a product or establish lifecycle/device acceptance.
using System;using Inno.Assets;using Inno.Editor.Assets;
public static class Example0{ static void ReplaceEditedDraft<T>( AssetDraftDocuments<T> documents, AssetPath path, Action<T> editDetachedDraft ) where T : AssetObject { var id = documents.Open(path); T draft = documents.Read(id); editDetachedDraft(draft); documents.Replace(id, draft); }}Script examples
Section titled “Script examples”Source boundary
Section titled “Source boundary”Source project. Declarations, script selection and runtime behavior require separate matching evidence.
API reference
Section titled “API reference”Types and exact member contracts preserve captured declarations and source XML.
Logical script references
Section titled “Logical script references”The compiler-selected script declarations are separate from this project’s host CLR surface. Read the script calling guide and the associated module contracts before using a projected member.
Source project facts
Section titled “Source project facts”Project: Inno.Editor.Assets
Source: src/composition/editor/features/Inno.Editor.Assets/Inno.Editor.Assets.csproj
| Type | API | Description |
|---|---|---|
| AssetCreationContext | engine | Provides source encoding services to one detached Asset creation template invocation. |
| AssetCreationMenuAttribute | engine | Declares the source name, extension, and menu placement that cannot be inferred from an T:Inno.Assets.AssetObject type alone. |
| AssetCreationTemplate | engine | Produces the detached initial value for one authorable native asset source. |
| AssetCreationTemplate<TAsset> | engine | Creates a default-constructed native source for an authorable asset type. |
| AssetDraftDocuments<TAsset> | engine | Owns detached native asset drafts with shared document, History, recovery and explicit-save semantics. |
| AssetDraftDocuments<TAsset>.Draft | engine | Contains neutral draft status; only the owning store can change it. |
| AssetEditingModule | engine | Handles asset creation actions in the Editor file browser. Owns source mutations, asset extension dispatch and neutral shared-history records independently of presentation. Applies validated selection operations through the authoritative asset and History owners. |
| AssetEditor | engine | Customizes editor interactions for one imported asset type. |
| AssetEditorAttribute | engine | Associates an asset editor with an imported asset type. |
| AssetEditorContext | engine | Provides an immutable snapshot for an asset editor operation. |
| AssetImportSettingsEdits | engine | Applies importer configuration through the common sidecar pipeline and stable-identity Editor history. |
| AssetOperationValidation | engine | Describes whether an editor asset operation may proceed. |
| AssetSampleImportModule | engine | Owns sample import validation, publication and rollback independently of its progress window. |
| AssetSampleImportProgress | engine | Contains one atomically captured sample import status. |
| AssetCreationContext | Editor | Provides source encoding services to one detached Asset creation template invocation. |
| AssetCreationMenuAttribute | Editor | Declares the source name, extension, and menu placement that cannot be inferred from an T:InnoEngine.Assets.AssetObject type alone. |
| AssetCreationTemplate | Editor | Produces the detached initial value for one authorable native asset source. |
| AssetCreationTemplate<TAsset> | Editor | Creates a default-constructed native source for an authorable asset type. |
| AssetEditor | Editor | Customizes editor interactions for one imported asset type. |
| AssetEditorAttribute | Editor | Associates an asset editor with an imported asset type. |
| AssetEditorContext | Editor | Provides an immutable snapshot for an asset editor operation. |
| AssetImportSettingsEdits | Editor | Applies importer configuration through the common sidecar pipeline and stable-identity Editor history. |
| AssetOperationValidation | Editor | Describes whether an editor asset operation may proceed. |