Struct NavigationCellAddress
- Namespace
- Trailblazer.Pathing
- Assembly
- Trailblazer.dll
Identifies one durable navigation cell by ordinal map ID and topology-local index.
public readonly struct NavigationCellAddress : IEquatable<NavigationCellAddress>, IComparable<NavigationCellAddress>
- Implements
- Inherited Members
Constructors
NavigationCellAddress(string, VoxelIndex)
Creates a durable cell address.
public NavigationCellAddress(string mapId, VoxelIndex index)
Parameters
mapIdstringindexVoxelIndex
Properties
Index
The topology-local X/Q, Y/layer, Z/R cell index.
public VoxelIndex Index { get; }
Property Value
- VoxelIndex
MapId
The stable host-owned map identifier.
public string MapId { get; }
Property Value
Methods
CompareTo(NavigationCellAddress)
public int CompareTo(NavigationCellAddress other)
Parameters
otherNavigationCellAddress
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(NavigationCellAddress)
public bool Equals(NavigationCellAddress other)
Parameters
otherNavigationCellAddress
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(NavigationCellAddress, NavigationCellAddress)
Tests two addresses for value equality.
public static bool operator ==(NavigationCellAddress left, NavigationCellAddress right)
Parameters
leftNavigationCellAddressrightNavigationCellAddress
Returns
operator !=(NavigationCellAddress, NavigationCellAddress)
Tests two addresses for value inequality.
public static bool operator !=(NavigationCellAddress left, NavigationCellAddress right)
Parameters
leftNavigationCellAddressrightNavigationCellAddress