Struct PathQuery
- Namespace
- Trailblazer.Pathing
- Assembly
- Trailblazer.dll
Defines complete immutable caller intent for one navigation query.
public readonly struct PathQuery : IEquatable<PathQuery>
- Implements
- Inherited Members
Constructors
PathQuery(NavigationEndpoint, NavigationEndpoint, NavigationAgentProfile, NavigationAreaPolicyKey, TraversalIntent, PathAlgorithm, NavigationWorkBudget, bool, FlowFieldQueryOptions)
Creates complete immutable navigation query intent.
public PathQuery(NavigationEndpoint start, NavigationEndpoint end, NavigationAgentProfile agent, NavigationAreaPolicyKey areaPolicy, TraversalIntent traversal, PathAlgorithm algorithm, NavigationWorkBudget budget, bool allowTransitions, FlowFieldQueryOptions flowField = default)
Parameters
startNavigationEndpointendNavigationEndpointagentNavigationAgentProfileareaPolicyNavigationAreaPolicyKeytraversalTraversalIntentalgorithmPathAlgorithmbudgetNavigationWorkBudgetallowTransitionsboolflowFieldFlowFieldQueryOptions
Exceptions
- ArgumentException
Thrown when a nested value is invalid or incompatible with the algorithm.
- ArgumentOutOfRangeException
Thrown when the algorithm is unknown.
Properties
Agent
Gets the exact agent profile used to evaluate traversal.
public NavigationAgentProfile Agent { get; }
Property Value
Algorithm
Gets the selected search algorithm.
public PathAlgorithm Algorithm { get; }
Property Value
AllowTransitions
Gets whether explicit or generated traversal transitions may be used.
public bool AllowTransitions { get; }
Property Value
AreaPolicy
Gets the exact query-specific navigation-area policy identity.
public NavigationAreaPolicyKey AreaPolicy { get; }
Property Value
Budget
Gets the finite work budget shared by the complete query.
public NavigationWorkBudget Budget { get; }
Property Value
End
Gets the requested destination endpoint.
public NavigationEndpoint End { get; }
Property Value
FlowField
public FlowFieldQueryOptions FlowField { get; }
Property Value
Start
Gets the requested start endpoint.
public NavigationEndpoint Start { get; }
Property Value
Traversal
Gets the exact start medium and allowed target media.
public TraversalIntent Traversal { get; }
Property Value
Methods
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(PathQuery)
public bool Equals(PathQuery other)
Parameters
otherPathQuery
Returns
GetHashCode()
public override int GetHashCode()
Returns
Operators
operator ==(PathQuery, PathQuery)
Returns whether two queries have exactly equal intent.
public static bool operator ==(PathQuery left, PathQuery right)
Parameters
Returns
operator !=(PathQuery, PathQuery)
Returns whether two queries differ.
public static bool operator !=(PathQuery left, PathQuery right)