class MAGES::SceneGraph::DisplayOnlyOnActionsAttribute

Overview

Used on serialized properties declared inside EffectData. Only allows the specified property to be displayed when an action is one of the specified types. More…

class DisplayOnlyOnActionsAttribute: public MAGES::SceneGraph::EffectPropertyAttribute
{
public:
    // methods

    DisplayOnlyOnActionsAttribute(params System.Type[] applicableActions);
    virtual override bool IsApplicable(System.Type actionDataType);
};

Inherited Members

public:
    // methods

    virtual abstract bool IsApplicable(System.Type actionDataType) = 0;

Detailed Documentation

Used on serialized properties declared inside EffectData. Only allows the specified property to be displayed when an action is one of the specified types.

Methods

DisplayOnlyOnActionsAttribute(params System.Type[] applicableActions)

Initializes a new instance of the DisplayOnlyOnActionsAttribute class.

Parameters:

applicableActions

The actions on which the property can only be displayed.

virtual override bool IsApplicable(System.Type actionDataType)

Returns true if the attribute is applicable to the given action data type.

Parameters:

actionDataType

The action data type context.

Returns:

Whether (or not) this property is applicable to the action type.