Table of Contents

Class NetworkDictionary<TKey, TValue>

Namespace
Netick
Assembly
Netick.dll

A networked Dictionary<TKey, TValue> collection.

public sealed class NetworkDictionary<TKey, TValue> : NetworkDictionary, INetworkCollection, IEnumerable<KeyValuePair<TKey, TValue>>, IEnumerable where TKey : unmanaged where TValue : unmanaged

Type Parameters

TKey
TValue
Inheritance
NetworkDictionary<TKey, TValue>
Implements
IEnumerable<KeyValuePair<TKey, TValue>>
Inherited Members

Constructors

NetworkDictionary(int)

public NetworkDictionary(int capacity)

Parameters

capacity int

Properties

Count

public int Count { get; }

Property Value

int

this[TKey]

public TValue this[TKey key] { get; set; }

Parameters

key TKey

Property Value

TValue

Methods

Add(TKey, TValue)

public bool Add(TKey key, TValue value)

Parameters

key TKey
value TValue

Returns

bool

Clear()

public void Clear()

ContainsKey(TKey)

public bool ContainsKey(TKey key)

Parameters

key TKey

Returns

bool

ContainsValue(TValue)

public bool ContainsValue(TValue value)

Parameters

value TValue

Returns

bool

GetEnumerator()

public IEnumerator<KeyValuePair<TKey, TValue>> GetEnumerator()

Returns

IEnumerator<KeyValuePair<TKey, TValue>>

InternalInit(INetickNetworkScript, int*, int, int)

public override void InternalInit(INetickNetworkScript beh, int* state, int elementSizeWords, int flags)

Parameters

beh INetickNetworkScript
state int*
elementSizeWords int
flags int

InternalReset()

public override void InternalReset()

Remove(TKey)

public bool Remove(TKey key)

Parameters

key TKey

Returns

bool

SetKeyValue(TKey, TValue)

public bool SetKeyValue(TKey key, TValue value)

Parameters

key TKey
value TValue

Returns

bool

TryGetValue(TKey, out TValue)

public bool TryGetValue(TKey key, out TValue value)

Parameters

key TKey
value TValue

Returns

bool