18 lines
610 B
C#
18 lines
610 B
C#
using Content.Shared._White.Trail;
|
|
|
|
namespace Content.Client._White.Trail.SplineRenderer;
|
|
|
|
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()
|
|
};
|
|
}
|
|
}
|