Editor/Core/Output/PrefabComponent.cs

A small record type representing one component on a generated prefab. Holds the component type name and a dictionary of property names to JSON values.

#nullable enable annotations

using System.Security.Cryptography;
using System.Text;
using System.Text.Json;
using System.Text.Json.Nodes;

namespace WeaponImporter.EditorTools.Core.Output;

/// <summary>A component on a generated prefab object: type name plus property values.</summary>
public sealed record PrefabComponent(string Type, IReadOnlyDictionary<string, JsonNode?> Properties);