Vixen
02b45cc4
csharp
public record class AssetTreeNode

One entry in a project browser's tree: a folder, or an asset in one.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

⚠ Not TreeNode, and it must not be. Vixen.Editor.Core does not reference the interface framework — see the assembly's own README for why — so a browser's shape is modelled here and turned into rows by whoever is drawing it. That is the same split DockLayout and NodeGraph make: the arrangement is a value that can be asserted on without a document, a stylesheet or a font.

Fields and properties (6)

  • public string Name

    What it is called, with its extension if it has one.

  • public string Path

    Where it is, project-relative with forward slashes.

  • public bool IsFolder

    Whether it holds other things.

  • public AssetId Guid

    Its identity, or Empty for a folder the database has no entry for — see Build.

  • public IReadOnlyList<AssetTreeNode> Children

    What is under it, folders first and then by name.

  • public bool IsIndexed

    Whether the database knows this by a GUID.

Methods (2)

  • public AssetTreeNode(string Name, string Path, bool IsFolder, AssetId Guid, IReadOnlyList<AssetTreeNode> Children)

    One entry in a project browser's tree: a folder, or an asset in one.

  • public IEnumerable<AssetTreeNode> Descend()

    Every node under this one, including this one, parents before children.

Used by (8)

  • AssetGridVixen.Editor.App
  • AssetTileVixen.Editor.App
  • AssetTreeVixen.Editor.Core
  • AssetTreeTestsVixen.Editor.Core.Tests
  • BuilderVixen.Editor.Core
  • EditorApplicationVixen.Editor.App
  • GridViewTestsVixen.Editor.App.Tests
  • ProjectBrowserVixen.Editor.App