using System;

namespace StandardScene.ExtendDevice.Door
{
    /// <summary>
    /// 门控制器类型特性，用于标记门控制器类型
    /// </summary>
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
    public class DoorTypeAttribute : Attribute
    {
        /// <summary>
        /// 类型名称
        /// </summary>
        public string Name { get; }

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="name">类型名称</param>
        public DoorTypeAttribute(string name)
        {
            Name = name ?? throw new ArgumentNullException(nameof(name));
        }
    }
}
