Interface ITraitBasedPlanExecutor
An interface denoting the implementation of a plan executor for trait-based planning domains.
Inherited Members
Namespace: Unity.AI.Planner.Traits
Syntax
public interface ITraitBasedPlanExecutor : IPlanExecutor, IDisposable
Methods
SetExecutionSettings(MonoBehaviour, ActionExecutionInfo[], PlanExecutionSettings, Action<IActionKey>, Action<IStateKey>, Action<IStateKey>)
Specifies the settings for the execution of the plan, as well as callbacks to invoke under certain conditions.
Declaration
void SetExecutionSettings(MonoBehaviour actor, ActionExecutionInfo[] actionExecutionInfos, PlanExecutionSettings executionSettings, Action<IActionKey> onActionComplete = null, Action<IStateKey> onTerminalStateReached = null, Action<IStateKey> onUnexpectedState = null)
Parameters
Type | Name | Description |
---|---|---|
MonoBehaviour | actor | A MonoBehaviour used to start and stop coroutines. |
ActionExecutionInfo[] | actionExecutionInfos | Action execution information for the actions contained in the problem definition. |
PlanExecutionSettings | executionSettings | Settings governing the execution of the plan |
Action<IActionKey> | onActionComplete | A callback to invoke at the completion of each action |
Action<IStateKey> | onTerminalStateReached | A callback to invoke once a terminal state is reached by the executor |
Action<IStateKey> | onUnexpectedState | A callback to invoke if the executor enters a state not contained within the plan |