Table of Contents

Struct NavigationAreaRule

Namespace
Trailblazer.Pathing
Assembly
Trailblazer.dll

Defines one immutable query-specific admission and enter-cost rule.

public readonly struct NavigationAreaRule : IEquatable<NavigationAreaRule>
Implements
Inherited Members

Constructors

NavigationAreaRule(bool, Fixed64)

Creates an immutable navigation-area rule.

public NavigationAreaRule(bool isAllowed, Fixed64 additionalEnterCost)

Parameters

isAllowed bool
additionalEnterCost Fixed64

Properties

AdditionalEnterCost

Gets the non-negative query-specific enter-cost surcharge.

public Fixed64 AdditionalEnterCost { get; }

Property Value

Fixed64

IsAllowed

Gets whether the query may enter this area.

public bool IsAllowed { get; }

Property Value

bool

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(NavigationAreaRule)

public bool Equals(NavigationAreaRule other)

Parameters

other NavigationAreaRule

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

Operators

operator ==(NavigationAreaRule, NavigationAreaRule)

Tests two rules for equality.

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

Parameters

left NavigationAreaRule
right NavigationAreaRule

Returns

bool

operator !=(NavigationAreaRule, NavigationAreaRule)

Tests two rules for inequality.

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

Parameters

left NavigationAreaRule
right NavigationAreaRule

Returns

bool