using LittleTown.Core;
using LittleTown.Core.Ports;
using Microsoft.AspNetCore.Components;

namespace LittleTown.Blazor.Client.Components
{
    public partial class MatchBoard
    {
        [Inject]
        private IStaticDataGetter StaticDataGetter { get; set; } = default!;

        [Parameter, EditorRequired]
        public Core.Match Match { get; init; }

        public Board Board { get; private set; }

        protected override void OnParametersSet()
        {
            Board = StaticDataGetter.GetBoard(1);
        }

    }
}