Highroad Engine v1.3
Public Member Functions | Public Attributes | List of all members
MoreMountains.Tools.MMEnumConditionAttribute Class Reference

An attribute to conditionnally hide fields based on the current selection in an enum. Usage : [MMEnumCondition("rotationMode", (int)RotationMode.LookAtTarget, (int)RotationMode.RotateToAngles)] More...

Inheritance diagram for MoreMountains.Tools.MMEnumConditionAttribute:

Public Member Functions

bool ContainsBitFlag (int enumValue)
 
 MMEnumConditionAttribute (string conditionBoolean, params int[] enumValues)
 

Public Attributes

string ConditionEnum = ""
 
bool Hidden = false
 

Detailed Description

An attribute to conditionnally hide fields based on the current selection in an enum. Usage : [MMEnumCondition("rotationMode", (int)RotationMode.LookAtTarget, (int)RotationMode.RotateToAngles)]

Constructor & Destructor Documentation

◆ MMEnumConditionAttribute()

MoreMountains.Tools.MMEnumConditionAttribute.MMEnumConditionAttribute ( string  conditionBoolean,
params int[]  enumValues 
)

Member Function Documentation

◆ ContainsBitFlag()

bool MoreMountains.Tools.MMEnumConditionAttribute.ContainsBitFlag ( int  enumValue)

Member Data Documentation

◆ ConditionEnum

string MoreMountains.Tools.MMEnumConditionAttribute.ConditionEnum = ""

◆ Hidden

bool MoreMountains.Tools.MMEnumConditionAttribute.Hidden = false

The documentation for this class was generated from the following file: