using Domain.XML_Model;
using Microsoft.AspNetCore.Components;

namespace Deathwatch.Pages.Weapon
{
    public partial class Weapon
    {
        [Parameter]
        public Arme Arme { get; set; }
        public bool ShowDetails { get; set; }

        public Weapon()
        {

        }

        //public override Task SetParametersAsync(ParameterView parameters)
        //{
        //    return base.SetParametersAsync(parameters);
        //}

        //public Weapon(Arme arme)
        //{
        //    Arme = arme;
        //}

        public void ToggleDescription()
        {
            ShowDetails = !ShowDetails;
        }
    }
}
