Mirror Networking
Mirror.SyncDictionary< TKey, TValue > Class Template Reference
Inheritance diagram for Mirror.SyncDictionary< TKey, TValue >:
Mirror.SyncIDictionary< TKey, TValue > Mirror.SyncObject

Public Member Functions

 SyncDictionary (IEqualityComparer< TKey > eq)
 
 SyncDictionary (IDictionary< TKey, TValue > d)
 
new Dictionary< TKey, TValue >.Enumerator GetEnumerator ()
 
- Public Member Functions inherited from Mirror.SyncIDictionary< TKey, TValue >
delegate void SyncDictionaryChanged (Operation op, TKey key, TValue item)
 
override void Reset ()
 Resets the SyncObject so that it can be re-used More...
 
override void ClearChanges ()
 Discard all the queued changes More...
 
 SyncIDictionary (IDictionary< TKey, TValue > objects)
 
override void OnSerializeAll (NetworkWriter writer)
 Write a full copy of the object More...
 
override void OnSerializeDelta (NetworkWriter writer)
 Write the changes made to the object since last sync More...
 
override void OnDeserializeAll (NetworkReader reader)
 Reads a full copy of the object More...
 
override void OnDeserializeDelta (NetworkReader reader)
 Reads the changes made to the object since last sync More...
 
void Clear ()
 
bool ContainsKey (TKey key)
 
bool Remove (TKey key)
 
bool TryGetValue (TKey key, out TValue value)
 
void Add (TKey key, TValue value)
 
void Add (KeyValuePair< TKey, TValue > item)
 
bool Contains (KeyValuePair< TKey, TValue > item)
 
void CopyTo (KeyValuePair< TKey, TValue >[] array, int arrayIndex)
 
bool Remove (KeyValuePair< TKey, TValue > item)
 
IEnumerator< KeyValuePair< TKey, TValue > > GetEnumerator ()
 
abstract void ClearChanges ()
 Discard all the queued changes More...
 
abstract void OnSerializeAll (NetworkWriter writer)
 Write a full copy of the object More...
 
abstract void OnSerializeDelta (NetworkWriter writer)
 Write the changes made to the object since last sync More...
 
abstract void OnDeserializeAll (NetworkReader reader)
 Reads a full copy of the object More...
 
abstract void OnDeserializeDelta (NetworkReader reader)
 Reads the changes made to the object since last sync More...
 
abstract void Reset ()
 Resets the SyncObject so that it can be re-used More...
 

Properties

new Dictionary< TKey, TValue >.ValueCollection Values [get]
 
new Dictionary< TKey, TValue >.KeyCollection Keys [get]
 
- Properties inherited from Mirror.SyncIDictionary< TKey, TValue >
int Count [get]
 
bool IsReadOnly [get]
 
ICollection< TKey > Keys [get]
 
ICollection< TValue > Values [get]
 
TValue this[TKey i] [get, set]
 

Additional Inherited Members

- Public Attributes inherited from Mirror.SyncObject
Action OnDirty
 Used internally to set owner NetworkBehaviour's dirty mask bit when changed. More...
 
Func< bool > IsRecording = () => true
 Used internally to check if we are currently tracking changes. More...
 
- Protected Attributes inherited from Mirror.SyncIDictionary< TKey, TValue >
readonly IDictionary< TKey, TValue > objects
 
- Events inherited from Mirror.SyncIDictionary< TKey, TValue >
SyncDictionaryChanged Callback
 

Detailed Description

Definition at line 301 of file SyncDictionary.cs.

Constructor & Destructor Documentation

◆ SyncDictionary() [1/3]

Definition at line 303 of file SyncDictionary.cs.

303: base(new Dictionary<TKey, TValue>()) {}

◆ SyncDictionary() [2/3]

Mirror.SyncDictionary< TKey, TValue >.SyncDictionary ( IEqualityComparer< TKey >  eq)

Definition at line 304 of file SyncDictionary.cs.

304: base(new Dictionary<TKey, TValue>(eq)) {}

◆ SyncDictionary() [3/3]

Mirror.SyncDictionary< TKey, TValue >.SyncDictionary ( IDictionary< TKey, TValue >  d)

Definition at line 305 of file SyncDictionary.cs.

305: base(new Dictionary<TKey, TValue>(d)) {}

Property Documentation

◆ Keys

new Dictionary<TKey, TValue>.KeyCollection Mirror.SyncDictionary< TKey, TValue >.Keys
get

Definition at line 307 of file SyncDictionary.cs.

◆ Values

new Dictionary<TKey, TValue>.ValueCollection Mirror.SyncDictionary< TKey, TValue >.Values
get

Definition at line 306 of file SyncDictionary.cs.