Struct TraversalTransitionDefinition
- Namespace
- Trailblazer.Pathing
- Assembly
- Trailblazer.dll
Describes one directed, source-map-owned semantic traversal action.
public readonly struct TraversalTransitionDefinition : IEquatable<TraversalTransitionDefinition>
- Implements
- Inherited Members
Constructors
TraversalTransitionDefinition(string, TraversalTransitionType, VoxelIndex, TraversalMedium, NavigationCellAddress, TraversalMedium, TraversalCapability, Fixed64, TraversalTransitionLocomotionHints, Vector3d, bool, Vector3d, bool)
Creates one complete directed semantic transition definition.
public TraversalTransitionDefinition(string id, TraversalTransitionType type, VoxelIndex sourceIndex, TraversalMedium sourceMedium, NavigationCellAddress destination, TraversalMedium destinationMedium, TraversalCapability requiredCapabilities = TraversalCapability.None, Fixed64 actionCost = default, TraversalTransitionLocomotionHints locomotionHints = TraversalTransitionLocomotionHints.None, Vector3d sourcePointOverride = default, bool hasSourcePointOverride = false, Vector3d destinationPointOverride = default, bool hasDestinationPointOverride = false)
Parameters
idstringtypeTraversalTransitionTypesourceIndexVoxelIndexsourceMediumTraversalMediumdestinationNavigationCellAddressdestinationMediumTraversalMediumrequiredCapabilitiesTraversalCapabilityactionCostFixed64locomotionHintsTraversalTransitionLocomotionHintssourcePointOverrideVector3dhasSourcePointOverridebooldestinationPointOverrideVector3dhasDestinationPointOverridebool
Properties
ActionCost
The non-negative surcharge for performing this semantic action.
public Fixed64 ActionCost { get; }
Property Value
- Fixed64
Destination
The durable destination-cell address.
public NavigationCellAddress Destination { get; }
Property Value
DestinationMedium
The traversal medium used at the destination endpoint.
public TraversalMedium DestinationMedium { get; }
Property Value
DestinationPointOverride
The exact destination endpoint when HasDestinationPointOverride is true.
public Vector3d DestinationPointOverride { get; }
Property Value
- Vector3d
HasDestinationPointOverride
Whether the destination endpoint overrides its cell anchor.
public bool HasDestinationPointOverride { get; }
Property Value
HasSourcePointOverride
Whether the source endpoint overrides its cell anchor.
public bool HasSourcePointOverride { get; }
Property Value
Id
The stable map-local transition identifier.
public string Id { get; }
Property Value
LocomotionHints
The authored built-in locomotion intent for this semantic action.
public TraversalTransitionLocomotionHints LocomotionHints { get; }
Property Value
RequiredCapabilities
The complete set of capabilities required to use this transition.
public TraversalCapability RequiredCapabilities { get; }
Property Value
SourceIndex
The local source-cell index in the owning map.
public VoxelIndex SourceIndex { get; }
Property Value
- VoxelIndex
SourceMedium
The traversal medium used at the source endpoint.
public TraversalMedium SourceMedium { get; }
Property Value
SourcePointOverride
The exact source endpoint when HasSourcePointOverride is true.
public Vector3d SourcePointOverride { get; }
Property Value
- Vector3d
Type
The semantic action performed by this transition.
public TraversalTransitionType Type { get; }
Property Value
Methods
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(TraversalTransitionDefinition)
public bool Equals(TraversalTransitionDefinition other)
Parameters
Returns
GetHashCode()
public override int GetHashCode()
Returns
Operators
operator ==(TraversalTransitionDefinition, TraversalTransitionDefinition)
Tests two definitions for value equality.
public static bool operator ==(TraversalTransitionDefinition left, TraversalTransitionDefinition right)
Parameters
Returns
operator !=(TraversalTransitionDefinition, TraversalTransitionDefinition)
Tests two definitions for value inequality.
public static bool operator !=(TraversalTransitionDefinition left, TraversalTransitionDefinition right)