Skip to main content

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
NameDescription
TKey
TValue

Constructors

SyncIDictionary(IDictionary<TKey, TValue>)

Declaration
public SyncIDictionary(IDictionary<TKey, TValue> objects)
Parameters
TypeNameDescription
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
TypeNameDescription
System.BooleanshouldSync

ISyncObject.SetNetworkBehaviour(NetworkBehaviour)

Declaration
void ISyncObject.SetNetworkBehaviour(NetworkBehaviour networkBehaviour)
Parameters
TypeNameDescription
Mirage.NetworkBehaviournetworkBehaviour

Reset()

Declaration
public void Reset()

Flush()

Declaration
public void Flush()

OnSerializeAll(NetworkWriter)

Declaration
public void OnSerializeAll(NetworkWriter writer)
Parameters
TypeNameDescription
Mirage.Serialization.NetworkWriterwriter

OnSerializeDelta(NetworkWriter)

Declaration
public void OnSerializeDelta(NetworkWriter writer)
Parameters
TypeNameDescription
Mirage.Serialization.NetworkWriterwriter

OnDeserializeAll(NetworkReader)

Declaration
public void OnDeserializeAll(NetworkReader reader)
Parameters
TypeNameDescription
Mirage.Serialization.NetworkReaderreader

OnDeserializeDelta(NetworkReader)

Declaration
public void OnDeserializeDelta(NetworkReader reader)
Parameters
TypeNameDescription
Mirage.Serialization.NetworkReaderreader

Clear()

Declaration
public void Clear()

ContainsKey(TKey)

Declaration
public bool ContainsKey(TKey key)
Parameters
TypeNameDescription
TKeykey
Returns
TypeDescription
System.Boolean

Remove(TKey)

Declaration
public bool Remove(TKey key)
Parameters
TypeNameDescription
TKeykey
Returns
TypeDescription
System.Boolean

TryGetValue(TKey, out TValue)

Declaration
public bool TryGetValue(TKey key, out TValue value)
Parameters
TypeNameDescription
TKeykey
TValuevalue
Returns
TypeDescription
System.Boolean

Add(TKey, TValue)

Declaration
public void Add(TKey key, TValue value)
Parameters
TypeNameDescription
TKeykey
TValuevalue

Add(KeyValuePair<TKey, TValue>)

Declaration
public void Add(KeyValuePair<TKey, TValue> item)
Parameters
TypeNameDescription
System.Collections.Generic.KeyValuePair<TKey, TValue>item

Contains(KeyValuePair<TKey, TValue>)

Declaration
public bool Contains(KeyValuePair<TKey, TValue> item)
Parameters
TypeNameDescription
System.Collections.Generic.KeyValuePair<TKey, TValue>item
Returns
TypeDescription
System.Boolean

CopyTo(KeyValuePair<TKey, TValue>[], Int32)

Declaration
public void CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
Parameters
TypeNameDescription
System.Collections.Generic.KeyValuePair{{TKey},{TValue}}[]array
System.Int32arrayIndex

Remove(KeyValuePair<TKey, TValue>)

Declaration
public bool Remove(KeyValuePair<TKey, TValue> item)
Parameters
TypeNameDescription
System.Collections.Generic.KeyValuePair<TKey, TValue>item
Returns
TypeDescription
System.Boolean

GetEnumerator()

Declaration
public IEnumerator<KeyValuePair<TKey, TValue>> GetEnumerator()
Returns
TypeDescription
System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<TKey, TValue>>

IEnumerable.GetEnumerator()

Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
TypeDescription
System.Collections.IEnumerator