Interface IActionScheduler<TStateKey, TStateData, TStateDataContext, TStateManager, TActionKey, TActionResult>
An interface that marks an implementation of an action scheduler for a specific domain/planning definition that will schedule actions and report newly created states
Namespace: Unity.AI.Planner.Jobs
Syntax
public interface IActionScheduler<TStateKey, TStateData, TStateDataContext, TStateManager, TActionKey, TActionResult>
where TStateKey : struct, IEquatable<TStateKey> where TStateData : struct where TStateDataContext : struct, IStateDataContext<TStateKey, TStateData> where TStateManager : IStateManager<TStateKey, TStateData, TStateDataContext> where TActionKey : struct, IEquatable<TActionKey> where TActionResult : struct
Type Parameters
Name | Description |
---|---|
TStateKey | StateKey type |
TStateData | StateData type |
TStateDataContext | StateDataContext type |
TStateManager | StateManager type |
TActionKey | ActionKey type |
TActionResult | ActionResult type |
Properties
CreatedStateInfo
Output from action scheduler: List of newly created states w/ info
Declaration
NativeQueue<(TStateKey, TActionKey, TActionResult, TStateKey)> CreatedStateInfo { set; }
Property Value
Type | Description |
---|---|
NativeQueue<System.ValueTuple<TStateKey, TActionKey, TActionResult, TStateKey>> |
StateManager
Input to action scheduler: Instance of the state manager
Declaration
TStateManager StateManager { set; }
Property Value
Type | Description |
---|---|
TStateManager |
UnexpandedStates
Input to action scheduler: List of states to expand via scheduled actions
Declaration
NativeList<TStateKey> UnexpandedStates { set; }
Property Value
Type | Description |
---|---|
NativeList<TStateKey> |
Methods
Schedule(JobHandle)
Schedule job actions for delayed execution
Declaration
JobHandle Schedule(JobHandle inputDeps)
Parameters
Type | Name | Description |
---|---|---|
JobHandle | inputDeps |
Returns
Type | Description |
---|---|
JobHandle |