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
isAllowedbooladditionalEnterCostFixed64
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
Methods
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(NavigationAreaRule)
public bool Equals(NavigationAreaRule other)
Parameters
otherNavigationAreaRule
Returns
GetHashCode()
public override int GetHashCode()
Returns
Operators
operator ==(NavigationAreaRule, NavigationAreaRule)
Tests two rules for equality.
public static bool operator ==(NavigationAreaRule left, NavigationAreaRule right)
Parameters
leftNavigationAreaRulerightNavigationAreaRule
Returns
operator !=(NavigationAreaRule, NavigationAreaRule)
Tests two rules for inequality.
public static bool operator !=(NavigationAreaRule left, NavigationAreaRule right)
Parameters
leftNavigationAreaRulerightNavigationAreaRule