Class Path<TOption, TSeg>
The result of a managed path finding request. The target to which a path was found is included.
Inherited Members
Namespace: AnyPath.Managed.Results
Assembly: AnyPath.dll
Syntax
public class Path<TOption, TSeg> : Path<TSeg>, IReadOnlyList<TSeg>, IReadOnlyCollection<TSeg>, IEnumerable<TSeg>, IEnumerable where TSeg : unmanaged
Type Parameters
| Name | Description |
|---|---|
| TOption | The type of option |
| TSeg | The type of segments contained in the path |
Properties
Option
The option to which a path was found. If no path was found, this will be null or default.
Declaration
public TOption Option { get; }
Property Value
| Type | Description |
|---|---|
| TOption |
Methods
Hydrate(TOption, AStarFindPathResult, NativeList<TSeg>)
Fill this path container with data from a native A* result. This can be used to prevent new allocations.
Declaration
protected void Hydrate(TOption candidate, AStarFindPathResult aStarResult, NativeList<TSeg> resultBuffer)
Parameters
| Type | Name | Description |
|---|---|---|
| TOption | candidate | |
| AStarFindPathResult | aStarResult | |
| NativeList<TSeg> | resultBuffer |