Interface ITraitBasedStateConverter
An interface denoting the implementation of a state converter for trait-based planning states. A state converter creates planning state representations from game state data.
Namespace: Unity.AI.Planner.Traits
Syntax
public interface ITraitBasedStateConverter
Methods
CreateState(Entity, IEnumerable<Entity>)
Creates a planning state from a set of entities holding traits. Only traits covered by the converter's associated ProblemDefinition will be included.
Declaration
IStateKey CreateState(Entity planningAgent, IEnumerable<Entity> traitBasedObjects = null)
Parameters
Type | Name | Description |
---|---|---|
Entity | planningAgent | The entity representing the planning agent. |
IEnumerable<Entity> | traitBasedObjects | The entities representing objects to be included in the planning state. |
Returns
Type | Description |
---|---|
IStateKey | A planning state instance representing the given objects. |