Code/HumanoidRetargeter/Core/Target/StockAnimationSlot.cs

A readonly record type that represents a supported stock animation slot with metadata. It stores an identifier, display label, looping flag, sequence names, and a warning string, and computes a replacement prefix based on the Id.

#nullable enable annotations

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

namespace HumanoidRetargeter.Core.Target;

/// <summary>A supported stock graph slot, independent of the imported clip's format or rig.</summary>
public sealed record StockAnimationSlot(string Id, string Label, bool Looping, string[] Sequences, string Warning)
{
    public string ReplacementPrefix => "hr_replace_" + Id + "_";
}