Editor/HumanoidRetargeter/Embedded/ValveResourceFormat/Serialization/KeyValues/KV3ID.cs
#nullable enable
using System;
using System.Collections.Generic;
using System.Linq;
using HumanoidRetargeterVrf.Utils;
namespace HumanoidRetargeterVrf.Serialization.KeyValues;
/// <summary>
/// Represents a <see cref="KeyValues3"/> identifier with a name and GUID.
/// </summary>
public readonly record struct KV3ID(string Name, Guid Id)
{
/// <inheritdoc/>
/// <remarks>
/// Returns the <see cref="KV3ID"/> in the format "Name:version{Guid}".
/// </remarks>
public override string ToString()
{
return $"{Name}:version{{{Id}}}";
}
}