using System;
using UnityEngine;
namespace Funique
{
///
/// Field type should be a base type
/// Find all the possible subclass type through reflection
/// And form a dropdown list for it, The field must also have attribute
/// ------------------------------------------------
/// 欄位資料型態應該要是基本類
/// 透過映射尋找所有的延伸類別
/// 並形成下拉式選單, 欄位必須也要掛著 屬性
///
[AttributeUsage(AttributeTargets.Field)]
public class TypeDropdownAttribute : PropertyAttribute
{
///
/// Include base type into dropdown list
/// ------------------------------------------------
/// 下拉式選單的項目 是否包含基礎類
///
public readonly bool includeSelf;
public TypeDropdownAttribute(bool includeSelf = false)
{
this.includeSelf = includeSelf;
}
}
}