using System; namespace FlaxEngine; /// /// This attribute is used to check for if a script requires an Actor type. /// [Serializable] [AttributeUsage(AttributeTargets.Class)] public class RequireActorAttribute : Attribute { /// /// The required type. /// public Type RequiredType; /// /// Whether to include inherited types. /// public bool IncludeInheritedTypes; /// /// Initializes a new instance of the class. /// /// The required type. /// Whether to include inherited types. public RequireActorAttribute(Type type, bool includeInheritedTypes = false) { RequiredType = type; IncludeInheritedTypes = includeInheritedTypes; } }