Arbor 3: FSM & BT Graph Editor 3.7.4

Public Member Functions | List of all members
ClassEnumFieldConstraint Class Reference

Attribute to restrict to enum types only for fields. More...

Inheritance diagram for ClassEnumFieldConstraint:

## Public Member Functions
override string | GetTypeName (FieldInfo fieldInfo)
| Returns the type name of the constraint. More...
override bool | IsConstraintSatisfied (Type type, FieldInfo fieldInfo)
| Whether the constraint is satisfied is judged. More...
Public Member Functions inherited from ClassTypeConstraintAttribute
virtual Type | GetBaseType (FieldInfo fieldInfo)
| It returns the base type of constraints. More...

## Detailed Description

Attribute to restrict to enum types only for fields.

## Member Function Documentation

## ◆ GetTypeName()

override string GetTypeName | ( | FieldInfo | fieldInfo | ) |
| virtual

Returns the type name of the constraint.

Parameters

  fieldInfo | FieldInfo with this attribute specified

Returns
  Type name of constraint

Reimplemented from ClassTypeConstraintAttribute.

## ◆ IsConstraintSatisfied()

override bool IsConstraintSatisfied | ( | Type | type,
|  | FieldInfo | fieldInfo
| ) |  |
| virtual

Whether the constraint is satisfied is judged.

Parameters

  type | Determining type
  fieldInfo | FieldInfo with this attribute specified

Returns
  Returns true if the constraint is satisfied.

Implements ClassTypeConstraintAttribute.