using Darkmatter.Core.Data.Static.Features.ShapeBuilder;
using UnityEngine;
using UnityEngine.UI;

namespace Darkmatter.Features.ShapeBuilder.UI
{
    public sealed class SlotMarker : MonoBehaviour
    {
        [SerializeField] private ShapeSO shape;
        [SerializeField] private Image outline;

        public ShapeSO Shape => shape;
        public string SlotId => shape != null ? shape.Id : null;
        public RectTransform RectTransform => (RectTransform)transform;

        public void SetOutlineVisible(bool visible)
        {
            if (outline != null) outline.enabled = visible;
        }
    }
}
