Arbor 3: FSM & BT Graph Editor 3.6.4

Public Member Functions | List of all members
ClassEnumFlagsConstraint Class Reference

Attribute to restrict to enum types (With System.FlagsAttribute) only for fields. More...

Inheritance diagram for ClassEnumFlagsConstraint:

## 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 (With System.FlagsAttribute) 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.