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

An editor-side class that describes a hull physics shape for the embedded Valve resource format. It subclasses ShapeDescriptor<Hull> and implements DeserializeShape by constructing a Hull from a KVObject.

File Access
#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);
    }