Struct IdGraph2D
A simple graph structure that connects Id's together in 2D space
Implements
IGraph<
System.Int32,
System.Int32>
System.IDisposable
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
Assembly: Assembly-CSharp.dll
Syntax
public struct IdGraph2D : IGraph<int, int>, IGraph, INativeDisposable, IDisposable
Constructors
|
Improve this Doc
View Source
IdGraph2D(Allocator)
Declaration
public IdGraph2D(Allocator allocator)
Parameters
Type |
Name |
Description |
Unity.Collections.Allocator |
allocator |
|
Methods
|
Improve this Doc
View Source
Collect(Int32, ref EdgeCollector<Int32, Int32>)
Declaration
public void Collect(int node, ref EdgeCollector<int, int> collector)
Parameters
Type |
Name |
Description |
System.Int32 |
node |
|
EdgeCollector<System.Int32, System.Int32> |
collector |
|
|
Improve this Doc
View Source
Connect(Int32, Int32)
Declaration
public void Connect(int id1, int id2)
Parameters
Type |
Name |
Description |
System.Int32 |
id1 |
|
System.Int32 |
id2 |
|
|
Improve this Doc
View Source
Dispose()
Declaration
|
Improve this Doc
View Source
Dispose(JobHandle)
Declaration
public JobHandle Dispose(JobHandle inputDeps)
Parameters
Type |
Name |
Description |
Unity.Jobs.JobHandle |
inputDeps |
|
Returns
Type |
Description |
Unity.Jobs.JobHandle |
|
|
Improve this Doc
View Source
GetPosition(Int32)
Declaration
public float2 GetPosition(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
Type |
Description |
Unity.Mathematics.float2 |
|
|
Improve this Doc
View Source
Heuristic(Int32, Int32)
Declaration
public float Heuristic(int a, int b)
Parameters
Type |
Name |
Description |
System.Int32 |
a |
|
System.Int32 |
b |
|
Returns
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
SetPosition(Int32, float2)
Declaration
public void SetPosition(int id, float2 position)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Unity.Mathematics.float2 |
position |
|
Implements
System.IDisposable
Extension Methods
AStar.FindPath<TGraph, TNode, TSeg, TProc>(ref TGraph, TNode, TNode, AStarSettings, ref Memory<TNode, TSeg>, ref TProc, ref NativeList<TSeg>)
AStarStops.FindPathStops<TGraph, TNode, TSeg, TMod>(ref TGraph, NativeSlice<TNode>, AStarSettings, ref Memory<TNode, TSeg>, ref TMod, ref NativeList<TSeg>, ref NativeList<Int32>)
AStarOption.FindOption<TGraph, TNode, TSeg, TProc>(ref TGraph, NativeSlice<TNode>, NativeSlice<OffsetInfo>, AStarSettings, ref Memory<TNode, TSeg>, ref TProc, ref NativeList<TSeg>)
AStarOption.FindOptionRemap<TGraph, TNode, TSeg, TProc>(ref TGraph, NativeSlice<Int32>, NativeSlice<TNode>, NativeSlice<OffsetInfo>, AStarSettings, ref Memory<TNode, TSeg>, ref TProc, ref NativeList<TSeg>)
AStarOption.EvalOptionRemap<TGraph, TNode, TSeg, TProc>(ref TGraph, NativeSlice<Int32>, NativeSlice<TNode>, NativeSlice<OffsetInfo>, AStarSettings, ref Memory<TNode, TSeg>, ref TProc)
AStarCheapestOption.FindCheapestTarget<TGraph, TNode, TSeg, TProc>(ref TGraph, NativeSlice<TNode>, NativeSlice<OffsetInfo>, AStarSettings, ref Memory<TNode, TSeg>, ref TProc, ref NativeList<TSeg>, ref NativeList<TSeg>, ref NativeList<TSeg>)