Interface ICustomActionEffect<TStateData>
Custom implementation of an action effect
Namespace: Unity.AI.Planner.Traits
Syntax
public interface ICustomActionEffect<TStateData>
where TStateData : struct, IStateData
Type Parameters
| Name | Description |
|---|---|
| TStateData | State data Type |
Methods
ApplyCustomActionEffectsToState(TStateData, ActionKey, TStateData)
Apply custom modifications on a state given an action
Declaration
void ApplyCustomActionEffectsToState(TStateData originalState, ActionKey action, TStateData newState)
Parameters
| Type | Name | Description |
|---|---|---|
| TStateData | originalState |
|
| ActionKey | action | Key index of the action evaluated |
| TStateData | newState | State after basic effects were applied |