Arbor 3: FSM & BT Graph Editor  3.2.0
ClassTypeConstraintAttribute Class Referenceabstract

A basic Attribute class that imposes a type constraint on a field. More...

Inheritance diagram for ClassTypeConstraintAttribute:
ClassComponentAttribute ClassExtendsAttribute ClassGenericArgumentAttribute ClassScriptableObjectAttribute ClassUnityObjectAttribute

Public Member Functions

virtual Type GetBaseType (System.Reflection.FieldInfo fieldInfo)
 It returns the base type of constraints. More...
 
abstract bool IsConstraintSatisfied (Type type, System.Reflection.FieldInfo fieldInfo)
 Whether the constraint is satisfied is judged. More...
 

Detailed Description

A basic Attribute class that imposes a type constraint on a field.

Available classes :

Member Function Documentation

virtual Type GetBaseType ( System.Reflection.FieldInfo  fieldInfo)
virtual

It returns the base type of constraints.

Parameters
fieldInfoFieldInfo with this attribute specified
Returns
The base type of constraints

Reimplemented in ClassGenericArgumentAttribute, ClassScriptableObjectAttribute, ClassComponentAttribute, ClassUnityObjectAttribute, and ClassExtendsAttribute.

abstract bool IsConstraintSatisfied ( Type  type,
System.Reflection.FieldInfo  fieldInfo 
)
pure virtual

Whether the constraint is satisfied is judged.

Parameters
typeDetermining type
fieldInfoFieldInfo with this attribute specified
Returns
Returns true if the constraint is satisfied.

Implemented in ClassGenericArgumentAttribute, ClassScriptableObjectAttribute, ClassComponentAttribute, ClassUnityObjectAttribute, and ClassExtendsAttribute.