Class MemoryExtensions
Inheritance
System.Object
MemoryExtensions
Namespace: AnyPath.Native.Util
Assembly: Assembly-CSharp.dll
Syntax
public static class MemoryExtensions
Methods
| Improve this Doc View SourceReconstruct<TNode, TSeg, TList>(ref Memory<TNode, TSeg>, TNode, TNode, ref TList, Boolean)
Reconstructs and appends the last stored path in memory from goal to start.
Declaration
public static void Reconstruct<TNode, TSeg, TList>(this ref Memory<TNode, TSeg> memory, TNode start, TNode goal, ref TList buffer, bool insertGhostEdge = false)
where TNode : struct, IEquatable<TNode> where TSeg : struct where TList : struct, INativeList<TSeg>
Parameters
Type | Name | Description |
---|---|---|
Memory<TNode, TSeg> | memory | Memory to use |
TNode | start | The starting node of the path to be reconstructed |
TNode | goal | The goal node of the path to be reconstructed |
TList | buffer | Edge buffer the path gets appended to |
System.Boolean | insertGhostEdge |
Type Parameters
Name | Description |
---|---|
TNode | Type of nodes |
TSeg | Type of segments |
TList |
Remarks
Only call this method when there was a valid found.