2024-01-28 18:37:24 +07:00
|
|
|
using Content.Shared._White.Trail;
|
2024-01-24 12:58:57 +07:00
|
|
|
|
2024-01-28 17:32:55 +07:00
|
|
|
namespace Content.Client._White.Trail.SplineRenderer;
|
2024-01-24 12:58:57 +07:00
|
|
|
|
|
|
|
|
public static class TrailSplineRenderer
|
|
|
|
|
{
|
|
|
|
|
public static ITrailSplineRenderer FromType(TrailSplineRendererType type)
|
|
|
|
|
{
|
|
|
|
|
return type switch
|
|
|
|
|
{
|
|
|
|
|
TrailSplineRendererType.Continuous => new TrailSplineRendererContinuous(),
|
|
|
|
|
TrailSplineRendererType.Point => new TrailSplineRendererPoint(),
|
|
|
|
|
TrailSplineRendererType.Debug => new TrailSplineRendererDebug(),
|
|
|
|
|
_ => throw new NotImplementedException()
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|