HumanoidRetargeter/Core/Target/KvDouble.cs

A small immutable class representing a KV3 floating-point value. It stores a double in the Value property and inherits from KvValue.

#nullable enable annotations

using System;
using System.Collections.Generic;
using System.Globalization;
using System.Text;

namespace HumanoidRetargeter.Core.Target;

/// <summary>A KV3 floating-point number (decimal point or exponent in the source).</summary>
public sealed class KvDouble : KvValue
{
    /// <summary>The floating-point value.</summary>
    public double Value { get; }

    /// <summary>Creates a floating-point value.</summary>
    public KvDouble(double value) => Value = value;
}