Table of Contents

Class BehaviorAction<T>

Namespace
TinyLife.Actions
Assembly
Tiny Life.dll

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
JsonTypeSafeGenericDataHolder
BehaviorAction<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 ActionType
info ActionInfo

Properties

Behavior

The underlying ActionBehavior that this action uses and invokes

public T Behavior { get; protected set; }

Property Value

T