Struct NativeMultiDictionary<TKey, TValue>
- Namespace
- Root
- Assembly
- SPZGameAssembly.dll
public struct NativeMultiDictionary<TKey, TValue> where TKey : unmanaged, IEquatable<TKey> where TValue : unmanaged
Type Parameters
TKeyTValue
- Extension Methods
Constructors
NativeMultiDictionary(int, Allocator)
public NativeMultiDictionary(int initialCapacity, Allocator allocator)
Parameters
initialCapacityintallocatorAllocator
Properties
Map
public readonly NativeParallelMultiHashMap<TKey, TValue> Map { get; }
Property Value
- NativeParallelMultiHashMap<TKey, TValue>
UniqueKeys
public readonly NativeHashSet<TKey> UniqueKeys { get; }
Property Value
- NativeHashSet<TKey>
Methods
Add(TKey, TValue)
public void Add(TKey key, TValue value)
Parameters
keyTKeyvalueTValue
Clear()
public void Clear()
Dispose()
public void Dispose()
Dispose(JobHandle)
public void Dispose(JobHandle handle)
Parameters
handleJobHandle
GetValueListForKey(TKey, Allocator)
public NativeList<TValue> GetValueListForKey(TKey key, Allocator allocator = Allocator.TempJob)
Parameters
keyTKeyallocatorAllocator
Returns
- NativeList<TValue>
Remove(TKey)
public void Remove(TKey key)
Parameters
keyTKey
UniqueKeysCount()
public int UniqueKeysCount()
Returns
- int