Struct Memory<TNode, TSeg>
Structure containing multiple native containers that the A* algorithm uses, like a priority queue and hashmaps.
Namespace: AnyPath.Native.Util
Assembly: Assembly-CSharp.dll
Syntax
public struct Memory<TNode, TSeg>
where TNode : struct, IEquatable<TNode> where TSeg : struct
Type Parameters
Name | Description |
---|---|
TNode | The type of nodes |
TSeg | The type of segments |
Constructors
| Improve this Doc View SourceMemory(Int32, Allocator)
Constructs a memory struct.
Declaration
public Memory(int initialCapacity, Allocator allocator)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | initialCapacity | Initial capacity of the came from hashmap |
Unity.Collections.Allocator | allocator | Unity allocator to use |
Properties
| Improve this Doc View SourceIsCreated
Returns wether the native containers inside this structure were allocated
Declaration
public readonly bool IsCreated { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceDispose()
Dispose this memory and all of it's native containers
Declaration
public void Dispose()
Dispose(JobHandle)
Dispose this memory and all of it's native containers
Declaration
public void Dispose(JobHandle inputDeps)
Parameters
Type | Name | Description |
---|---|---|
Unity.Jobs.JobHandle | inputDeps | JobHandle to use as a dependency |