Skip to content

Game.Pathfind.CoverageParameters

Assembly: (unspecified in source; typically Assembly-CSharp.dll for game/Unity code)
Namespace: Game.Pathfind

Type: struct

Base: System.ValueType

Summary:
A simple value type that groups parameters used when computing "coverage" in the pathfinding subsystem. It holds which pathfinding method(s) should be used and a numeric range value used by the coverage calculation. Instances are plain-old-data and use the default struct initialization semantics (fields are zero / default-initialized).


Fields

  • public PathMethod m_Methods
    Contains the pathfinding method(s) to use when evaluating coverage. PathMethod is typically an enum or bitmask (not shown in this file) that selects one or more pathfinding behaviors or strategies.

  • public float m_Range
    A floating-point value representing the coverage distance/radius used by the calculation. The unit and interpretation depend on the caller (e.g., tiles, meters, or internal distance units); consult the code that consumes this struct for exact semantics.

Properties

  • This struct defines no properties.

Constructors

  • public CoverageParameters()
    The implicit default constructor. As a value type, fields are default-initialized (m_Methods to the enum default, m_Range to 0.0f) unless explicitly set.

Methods

  • This struct defines no methods.

Usage Example

// Example: initialize coverage parameters for a pathfinding query.
// Replace PathMethod.Example with an actual enum value from your codebase.

var coverage = new Game.Pathfind.CoverageParameters
{
    m_Methods = PathMethod.Default, // or PathMethod.SomeFlag | PathMethod.OtherFlag
    m_Range = 20.0f                 // example range value; unit depends on consumer
};

// Pass `coverage` into whatever API performs the coverage/pathfinding computation.