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

A small editor-side class that describes a Rubikon physics sphere shape. It subclasses ShapeDescriptor<Sphere> and implements DeserializeShape by constructing a new Sphere 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 sphere shapes.
    /// </summary>
    public class SphereDescriptor : ShapeDescriptor<Sphere>
    {
        /// <inheritdoc/>
        public override Sphere DeserializeShape(KVObject data) => new(data);
    }