Class BehaviorAction<T>
A generic version of BehaviorAction<T> with some additional functionality.
If the chosen behavior type T does not have a constructor that only accepts an Action as an argument, the Behavior property has to be set manually in the subclass constructor.
public abstract class BehaviorAction<T> : BehaviorAction, IGenericDataHolder where T : ActionBehavior
Type Parameters
TThe type of ActionBehavior that this action uses
- Inheritance
-
JsonTypeSafeGenericDataHolderBehaviorAction<T>
- Implements
-
IGenericDataHolder
- Derived
- Inherited Members
-
JsonTypeSafeGenericDataHolder.GetDataKeys()
- Extension Methods
Constructors
BehaviorAction(ActionInfo)
protected BehaviorAction(ActionInfo info)
Parameters
infoActionInfo
BehaviorAction(ActionType, ActionInfo)
protected BehaviorAction(ActionType type, ActionInfo info)
Parameters
typeActionTypeinfoActionInfo
Properties
Behavior
The underlying ActionBehavior that this action uses and invokes
public T Behavior { get; protected set; }
Property Value
- T