Mirror::SyncDictionary
Inherits from Mirror::SyncIDictionary< TKey, TValue >, IDictionary< TKey, TValue >, SyncObject
Public Functions
Name | |
---|---|
SyncDictionary() | |
SyncDictionary(IEqualityComparer< TKey > eq) | |
new Dictionary< TKey, TValue >.Enumerator | GetEnumerator() |
Public Attributes
Name | |
---|---|
new Dictionary< TKey, TValue >.ValueCollection | Values |
new Dictionary< TKey, TValue >.KeyCollection | Keys |
Additional inherited members
Public Events inherited from Mirror::SyncIDictionary< TKey, TValue >
Name | |
---|---|
SyncDictionaryChanged | Callback() |
Public Functions inherited from Mirror::SyncIDictionary< TKey, TValue >
Name | |
---|---|
delegate void | SyncDictionaryChanged(Operation op, TKey key, TValue item) |
void | Reset() Resets the SyncObject so that it can be re-used |
void | Flush() Discard all the queued changes |
SyncIDictionary(IDictionary< TKey, TValue > objects) | |
void | OnSerializeAll(NetworkWriter writer) Write a full copy of the object |
void | OnSerializeDelta(NetworkWriter writer) Write the changes made to the object since last sync |
void | OnDeserializeAll(NetworkReader reader) Reads a full copy of the object |
void | OnDeserializeDelta(NetworkReader reader) Reads the changes made to the object since last sync |
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) |
Public Properties inherited from Mirror::SyncIDictionary< TKey, TValue >
Name | |
---|---|
bool | IsReadOnly |
TValue | this[TKey i] |
Public Attributes inherited from Mirror::SyncIDictionary< TKey, TValue >
Name | |
---|---|
int | Count |
bool | IsDirty |
Protected Attributes inherited from Mirror::SyncIDictionary< TKey, TValue >
Name | |
---|---|
readonly IDictionary< TKey, TValue > | objects |
Public Functions inherited from SyncObject
Name | |
---|---|
void | Flush() Discard all the queued changes |
void | OnSerializeAll(NetworkWriter writer) Write a full copy of the object |
void | OnSerializeDelta(NetworkWriter writer) Write the changes made to the object since last sync |
void | OnDeserializeAll(NetworkReader reader) Reads a full copy of the object |
void | OnDeserializeDelta(NetworkReader reader) Reads the changes made to the object since last sync |
void | Reset() Resets the SyncObject so that it can be re-used |
Public Properties inherited from SyncObject
Name | |
---|---|
bool | IsDirty true if there are changes since the last flush |
Detailed Description
template <TKey ,
TValue >
class Mirror::SyncDictionary;
Public Functions Documentation
function SyncDictionary
inline SyncDictionary()
function SyncDictionary
inline SyncDictionary(
IEqualityComparer< TKey > eq
)
function GetEnumerator
new Dictionary< TKey, TValue >.Enumerator GetEnumerator()
Public Attributes Documentation
variable Values
new Dictionary< TKey, TValue >.ValueCollection Values => ((Dictionary<TKey, TValue>)objects).Values;
variable Keys
new Dictionary< TKey, TValue >.KeyCollection Keys => ((Dictionary<TKey, TValue>)objects).Keys;
Updated on 22 January 2021 at 07:53:48 UTC