Code/HumanoidRetargeter/Core/Target/SmartPortGraphCopy.cs

A small immutable record type that represents a copied entry graph with renamed bone references. It stores the graph asset path, a map of subgraph asset paths to their copied targets, and a list of subgraph asset paths that could not be read.

#nullable enable annotations

using System;
using System.Collections.Generic;
using System.Linq;

namespace HumanoidRetargeter.Core.Target;

/// <summary>An entry graph with its bone references renamed, the subgraph copies it now points at (keyed by
/// asset path) and the subgraphs that could not be read (still referenced as they were).</summary>
public sealed record SmartPortGraphCopy(string Graph, IReadOnlyDictionary<string, string> Subgraphs, IReadOnlyList<string> Unread);