using Darkmatter.Core.Data.Static.Features.ShapeBuilder;
using Darkmatter.Libs.Installers;
using UnityEngine;
using VContainer;

namespace Darkmatter.Features.ShapeBuilder.Installers
{
    public class ShapeBuilderFeatureModule : MonoBehaviour, IModule
    {
        [SerializeField] private ShapeBuilderConfig config;

        public void Register(IContainerBuilder builder)
        {
            if (config != null)
                builder.RegisterInstance(config);

            // ShapePiece instances are MonoBehaviours instantiated by the
            // ShapeBuilderController; nothing to register here for them.
        }
    }
}
