using System.Collections.Generic; namespace Pal.Client.Rendering { internal class MarkerConfig { private static readonly MarkerConfig EmptyConfig = new(); private static readonly Dictionary MarkerConfigs = new() { { Marker.EType.Trap, new MarkerConfig { Radius = 1.7f } }, { Marker.EType.Hoard, new MarkerConfig { Radius = 1.7f, OffsetY = -0.03f } }, { Marker.EType.SilverCoffer, new MarkerConfig { Radius = 1f } }, }; public float OffsetY { get; set; } public float Radius { get; set; } = 0.25f; public static MarkerConfig ForType(Marker.EType type) => MarkerConfigs.GetValueOrDefault(type, EmptyConfig); } }