Table of Contents

Struct PathContext

Namespace
Core.Systems
Assembly
Core.dll

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

PathContextFlags

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

PathContext

Methods

Create(ushort, ushort)

public static PathContext Create(ushort ownerCountryId, ushort unitTypeId = 0)

Parameters

ownerCountryId ushort
unitTypeId ushort

Returns

PathContext