Interface ITraitBasedStateConverter | AI Planner | 0.2.4-preview.3
docs.unity3d.com
    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 © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023