Class SyncIDictionary<TKey, TValue>
Inheritance
System.Object
Inherited Members
Show
Syntax
public class SyncIDictionary<TKey, TValue> : IDictionary<TKey, TValue>, ICollection<KeyValuePair<TKey, TValue>>, ISyncObject, IReadOnlyDictionary<TKey, TValue>, IReadOnlyCollection<KeyValuePair<TKey, TValue>>, IEnumerable<KeyValuePair<TKey, TValue>>, IEnumerable
Type Parameters
Name | Description |
---|---|
TKey | |
TValue |
Constructors
SyncIDictionary(IDictionary<TKey, TValue>)
Declaration
public SyncIDictionary(IDictionary<TKey, TValue> objects)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IDictionary<TKey, TValue> | objects |
Fields
objects
Declaration
protected readonly IDictionary<TKey, TValue> objects
Properties
Count
Declaration
public int Count { get; }
IsReadOnly
Declaration
public bool IsReadOnly { get; }
IsDirty
Declaration
public bool IsDirty { get; }
Keys
Declaration
public ICollection<TKey> Keys { get; }
Values
Declaration
public ICollection<TValue> Values { get; }
IReadOnlyDictionary<TKey, TValue>.Keys
Declaration
IEnumerable<TKey> IReadOnlyDictionary<TKey, TValue>.Keys { get; }
IReadOnlyDictionary<TKey, TValue>.Values
Declaration
IEnumerable<TValue> IReadOnlyDictionary<TKey, TValue>.Values { get; }
Item[TKey]
Declaration
public TValue this[TKey i] { get; set; }
Methods
ISyncObject.SetShouldSyncFrom(Boolean)
Declaration
void ISyncObject.SetShouldSyncFrom(bool shouldSync)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | shouldSync |
ISyncObject.SetNetworkBehaviour(NetworkBehaviour)
Declaration
void ISyncObject.SetNetworkBehaviour(NetworkBehaviour networkBehaviour)
Parameters
Type | Name | Description |
---|---|---|
Mirage.NetworkBehaviour | networkBehaviour |
Reset()
Declaration
public void Reset()
Flush()
Declaration
public void Flush()
OnSerializeAll(NetworkWriter)
Declaration
public void OnSerializeAll(NetworkWriter writer)
Parameters
Type | Name | Description |
---|---|---|
Mirage.Serialization.NetworkWriter | writer |
OnSerializeDelta(NetworkWriter)
Declaration
public void OnSerializeDelta(NetworkWriter writer)
Parameters
Type | Name | Description |
---|---|---|
Mirage.Serialization.NetworkWriter | writer |
OnDeserializeAll(NetworkReader)
Declaration
public void OnDeserializeAll(NetworkReader reader)
Parameters
Type | Name | Description |
---|---|---|
Mirage.Serialization.NetworkReader | reader |
OnDeserializeDelta(NetworkReader)
Declaration
public void OnDeserializeDelta(NetworkReader reader)
Parameters
Type | Name | Description |
---|---|---|
Mirage.Serialization.NetworkReader | reader |
Clear()
Declaration
public void Clear()
ContainsKey(TKey)
Declaration
public bool ContainsKey(TKey key)
Parameters
Type | Name | Description |
---|---|---|
TKey | key |
Returns
Type | Description |
---|---|
System.Boolean |
Remove(TKey)
Declaration
public bool Remove(TKey key)
Parameters
Type | Name | Description |
---|---|---|
TKey | key |
Returns
Type | Description |
---|---|
System.Boolean |
TryGetValue(TKey, out TValue)
Declaration
public bool TryGetValue(TKey key, out TValue value)
Parameters
Type | Name | Description |
---|---|---|
TKey | key | |
TValue | value |
Returns
Type | Description |
---|---|
System.Boolean |
Add(TKey, TValue)
Declaration
public void Add(TKey key, TValue value)
Parameters
Type | Name | Description |
---|---|---|
TKey | key | |
TValue | value |
Add(KeyValuePair<TKey, TValue>)
Declaration
public void Add(KeyValuePair<TKey, TValue> item)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.KeyValuePair<TKey, TValue> | item |
Contains(KeyValuePair<TKey, TValue>)
Declaration
public bool Contains(KeyValuePair<TKey, TValue> item)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.KeyValuePair<TKey, TValue> | item |
Returns
Type | Description |
---|---|
System.Boolean |
CopyTo(KeyValuePair<TKey, TValue>[], Int32)
Declaration
public void CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.KeyValuePair{{TKey},{TValue}}[] | array | |
System.Int32 | arrayIndex |
Remove(KeyValuePair<TKey, TValue>)
Declaration
public bool Remove(KeyValuePair<TKey, TValue> item)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.KeyValuePair<TKey, TValue> | item |
Returns
Type | Description |
---|---|
System.Boolean |
GetEnumerator()
Declaration
public IEnumerator<KeyValuePair<TKey, TValue>> GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<TKey, TValue>> |
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator |