Table of Contents

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

mapId string
index VoxelIndex

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

string

Methods

CompareTo(NavigationCellAddress)

public int CompareTo(NavigationCellAddress other)

Parameters

other NavigationCellAddress

Returns

int

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(NavigationCellAddress)

public bool Equals(NavigationCellAddress other)

Parameters

other NavigationCellAddress

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(NavigationCellAddress, NavigationCellAddress)

Tests two addresses for value equality.

public static bool operator ==(NavigationCellAddress left, NavigationCellAddress right)

Parameters

left NavigationCellAddress
right NavigationCellAddress

Returns

bool

operator !=(NavigationCellAddress, NavigationCellAddress)

Tests two addresses for value inequality.

public static bool operator !=(NavigationCellAddress left, NavigationCellAddress right)

Parameters

left NavigationCellAddress
right NavigationCellAddress

Returns

bool