Class PlatformerGraphWelder
Inheritance
PlatformerGraphWelder
Assembly: AnyPath.dll
public class PlatformerGraphWelder
Constructors
Declaration
public PlatformerGraphWelder()
Methods
Declaration
public static void ContinuousWeld(float2 a, float2 b, float enterCost, int flags, List<float2> vertices, List<PlatformerGraph.Edge> edges, Dictionary<int2, int> buckets, float thresholdMultiplier = 100)
Parameters
Declaration
public static void ContinuousWeld(float2 a, float2 b, float enterCost, int flags, NativeList<float2> vertices, NativeList<PlatformerGraph.Edge> edges, NativeHashMap<int2, int> buckets, float thresholdMultiplier = 100)
Parameters
Type |
Name |
Description |
float2 |
a |
|
float2 |
b |
|
float |
enterCost |
|
int |
flags |
|
NativeList<float2> |
vertices |
|
NativeList<PlatformerGraph.Edge> |
edges |
|
NativeHashMap<int2, int> |
buckets |
|
float |
thresholdMultiplier |
|
Declaration
public static JobHandle ScheduleWeld(NativeList<float2> inOutVertices, NativeArray<PlatformerGraph.Edge> inOutUndirectedEdges, NativeArray<PlatformerGraph.Edge> inOutDirectedEdges = default, float weldThreshold = 0.001, JobHandle dependsOn = default)
Parameters
Returns
Type |
Description |
JobHandle |
|
Declaration
public static JobHandle ScheduleWeld(NativeList<float2> inVertices, NativeArray<PlatformerGraph.Edge> inOutUndirectedEdges, NativeArray<PlatformerGraph.Edge> inOutDirectedEdges, NativeList<float2> outVertices, float weldThreshold = 0.001, JobHandle dependsOn = default)
Parameters
Type |
Name |
Description |
NativeList<float2> |
inVertices |
|
NativeArray<PlatformerGraph.Edge> |
inOutUndirectedEdges |
|
NativeArray<PlatformerGraph.Edge> |
inOutDirectedEdges |
|
NativeList<float2> |
outVertices |
|
float |
weldThreshold |
|
JobHandle |
dependsOn |
|
Returns
Type |
Description |
JobHandle |
|
Declaration
public static void Weld(List<float2> inVertices, List<PlatformerGraph.Edge> inOutUndirectedEdges, List<PlatformerGraph.Edge> inOutDirectedEdges, List<float2> outVertices, float weldThreshold = 0.001)
Parameters
Declaration
public static void Weld(List<float2> inOutVertices, List<PlatformerGraph.Edge> inOutUndirectedEdges, List<PlatformerGraph.Edge> inOutDirectedEdges, float weldThreshold = 0.001)
Parameters
Declaration
public static void Weld(NativeArray<float2> inVertices, NativeArray<PlatformerGraph.Edge> inOutUndirectedEdges, NativeArray<PlatformerGraph.Edge> inOutDirectedEdges, NativeList<float2> outVertices, NativeHashMap<int2, int> buckets, NativeHashMap<int, int> shiftedIndices, float weldThreshold = 0.001)
Parameters
Type |
Name |
Description |
NativeArray<float2> |
inVertices |
|
NativeArray<PlatformerGraph.Edge> |
inOutUndirectedEdges |
|
NativeArray<PlatformerGraph.Edge> |
inOutDirectedEdges |
|
NativeList<float2> |
outVertices |
|
NativeHashMap<int2, int> |
buckets |
|
NativeHashMap<int, int> |
shiftedIndices |
|
float |
weldThreshold |
|
Extension Methods