using System; namespace BITKit { [AttributeUsage(AttributeTargets.Method)] public class BITCommandAttribute : Attribute { } /// /// 自动注入依赖 /// [AttributeUsage(AttributeTargets.Field)] public class InjectAttribute : System.Attribute { public readonly bool CanBeNull; public InjectAttribute() { } public InjectAttribute(bool canBeNull) { CanBeNull = canBeNull; } } [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, AllowMultiple = true, Inherited = true)] public class CustomTypeAttribute : System.Attribute { public readonly Type Type; public CustomTypeAttribute(Type type) { Type = type; } } #if UNITY_64 [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, AllowMultiple = true, Inherited = true)] public class ExportAttribute : System.Attribute { } #endif }