Editor/Embedded/ValveResourceFormat/ResourceTypes/RubikonPhysics/HullDescriptor.cs

This is a descriptor for hull shapes. It inherits from ShapeDescriptor<Hull> and implements a deserialization method.

#nullable enable
using System;
using System.Collections.Generic;
using System.Linq;
using HumanoidRetargeter.EditorTools.Embedded.ValveResourceFormat.Utils;
using System.IO;
using HumanoidRetargeter.EditorTools.Embedded.ValveResourceFormat.ResourceTypes.RubikonPhysics.Shapes;
using HumanoidRetargeter.EditorTools.Embedded.ValveResourceFormat.Serialization.KeyValues;

namespace HumanoidRetargeter.EditorTools.Embedded.ValveResourceFormat.ResourceTypes.RubikonPhysics;

    /// <summary>
    /// Descriptor for hull shapes.
    /// </summary>
    public class HullDescriptor : ShapeDescriptor<Hull>
    {
        /// <inheritdoc/>
        public override Hull DeserializeShape(KVObject data) => new(data);
    }