Interface ITraitBasedStateConverter | AI Planner | 0.2.4-preview.3
docs.unity.cn
    Show / Hide Table of Contents

    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.

    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on 13 November 2020