public static class StandardEditorsThe document kinds and views this assembly ships, as two lists a host can register.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
Registration stays explicit — see DocumentHost for why nothing is discovered — and these are the lists, in one place. Since #1294 they are two lists rather than one, because a kind (Vixen.Editor.Core) and a view (Vixen.Editor.Ui) are registered with two different registries; that each kind's documents have a view and each view a kind is held by DocumentPairingTests rather than by a type.
⚠ The scene and the prefab kinds need a world and this cannot decide where from. Whether two open scenes share one world is an application's decision, so the suppliers are arguments — two of them, because a prefab is edited in isolation and sharing the scene's world would silently take that away.
Methods (7)
public static IReadOnlyList<DocumentKind> Kinds(Func<DocumentRequest, World> scenes, Func<DocumentRequest, World> prefabs)Every kind this assembly ships.
public static IReadOnlyList<DocumentKind> WorldlessKinds()The kinds that need nothing from the host, for a test or a headless tool.
public static IReadOnlyList<DocumentView> Views()Every view this assembly ships, one or more per kind.
public static DocumentHost CreateDefault(EditorProject project, Func<DocumentRequest, World> scenes, Func<DocumentRequest, World> prefabs)A host over a project with every kind registered.
public static DocumentHost CreateWorldless(EditorProject project)A host over a project with every kind that needs no world.
public static EditorWorkspace CreateWorkspace()A workspace with every view registered.
public static IReadOnlyList<IDisposable> Register(IDocumentHost host, IWorkspace workspace, Func<DocumentRequest, World> scenes, Func<DocumentRequest, World> prefabs)Registers every kind and view into an editor's own registries, and hands back the removals.
Used by (6)
- AssetEditorsModuleVixen.Editor.AssetEditors
- AuthoringTestsVixen.Editor.AssetEditors.Tests
- DocumentHostTestsVixen.Editor.AssetEditors.Tests
- MilestoneE5TestsVixen.Editor.App.Tests
- ShaderGraphSurfaceTestsVixen.Editor.App.Tests
- StandardDocumentPairingTestsVixen.Editor.AssetEditors.Tests