Class SyncDict<TKey, TValue>
Inheritance
SyncDict<TKey, TValue>
Assembly: LiteEntitySystem.dll
Syntax
public class SyncDict<TKey, TValue> : SyncableField, IEnumerable<KeyValuePair<TKey, TValue>>, IEnumerable where TKey : unmanaged where TValue : unmanaged
Type Parameters
Name |
Description |
TKey |
|
TValue |
|
Properties
Count
Declaration
public int Count { get; }
Property Value
this[TKey]
Declaration
public TValue this[TKey index] { get; set; }
Parameters
Type |
Name |
Description |
TKey |
index |
|
Property Value
Keys
Declaration
public Dictionary<TKey, TValue>.KeyCollection Keys { get; }
Property Value
Values
Declaration
public Dictionary<TKey, TValue>.ValueCollection Values { get; }
Property Value
Methods
Add(TKey, TValue)
Declaration
public void Add(TKey key, TValue value)
Parameters
Type |
Name |
Description |
TKey |
key |
|
TValue |
value |
|
AfterReadRPC()
Declaration
protected override void AfterReadRPC()
Overrides
BeforeReadRPC()
Declaration
protected override void BeforeReadRPC()
Overrides
Clear()
Declaration
ContainsKey(TKey)
Declaration
public bool ContainsKey(TKey key)
Parameters
Type |
Name |
Description |
TKey |
key |
|
Returns
ContainsValue(TValue)
Declaration
public bool ContainsValue(TValue value)
Parameters
Type |
Name |
Description |
TValue |
value |
|
Returns
GetEnumerator()
Declaration
public Dictionary<TKey, TValue>.Enumerator GetEnumerator()
Returns
OnRollback()
Declaration
protected override void OnRollback()
Overrides
OnSyncRequested()
Declaration
protected override void OnSyncRequested()
Overrides
RegisterRPC(ref SyncableRPCRegistrator)
Declaration
protected override void RegisterRPC(ref SyncableRPCRegistrator r)
Parameters
Overrides
Remove(TKey)
Declaration
public bool Remove(TKey key)
Parameters
Type |
Name |
Description |
TKey |
key |
|
Returns
TryGetValue(TKey, out TValue)
Declaration
public bool TryGetValue(TKey key, out TValue value)
Parameters
Type |
Name |
Description |
TKey |
key |
|
TValue |
value |
|
Returns
Implements