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
T
The 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
info
ActionInfo
BehaviorAction(ActionType, ActionInfo)
protected BehaviorAction(ActionType type, ActionInfo info)
Parameters
type
ActionTypeinfo
ActionInfo
Properties
Behavior
The underlying ActionBehavior that this action uses and invokes
public T Behavior { get; protected set; }
Property Value
- T