Struct PathContext
Context passed to cost calculator for unit-specific pathfinding.
public struct PathContext
Fields
Flags
Optional flags for special pathfinding modes
public PathContextFlags Flags
Field Value
UnitOwnerCountryId
Country that owns the unit
public ushort UnitOwnerCountryId
Field Value
- ushort
UnitTypeId
Type of unit (for unit-specific costs)
public ushort UnitTypeId
Field Value
- ushort
Properties
Default
public static PathContext Default { get; }
Property Value
Methods
Create(ushort, ushort)
public static PathContext Create(ushort ownerCountryId, ushort unitTypeId = 0)
Parameters
ownerCountryIdushortunitTypeIdushort