Editor/Core/Output/KvArray.cs

A KeyValues output node type in the weapon importer editor tooling. KvArray is a record holding a List of child KvNode entries, with an empty constructor and a fluent Add method for building the list.

#nullable enable annotations

using System.Globalization;
using System.Text;

namespace WeaponImporter.EditorTools.Core.Output;

public sealed record KvArray(List<KvNode> Items) : KvNode
{
    public KvArray() : this(new List<KvNode>()) { }
    public KvArray Add(KvNode node)
    {
        Items.Add(node);
        return this;
    }
}