NetworkedDictionaryTKey, TValue Class |
[This is preliminary documentation and is subject to change.]
Namespace: MLAPI.NetworkedVar.Collections
public class NetworkedDictionary<TKey, TValue> : IDictionary<TKey, TValue>, ICollection<KeyValuePair<TKey, TValue>>, IEnumerable<KeyValuePair<TKey, TValue>>, IEnumerable, INetworkedVar
The NetworkedDictionaryTKey, TValue type exposes the following members.
| Name | Description | |
|---|---|---|
| NetworkedDictionaryTKey, TValue |
Creates a NetworkedDictionary with the default value and settings
| |
| NetworkedDictionaryTKey, TValue(IDictionaryTKey, TValue) |
Creates a NetworkedDictionary with a custom value and the default settings
| |
| NetworkedDictionaryTKey, TValue(NetworkedVarSettings) |
Creates a NetworkedDictionary with the default value and custom settings
| |
| NetworkedDictionaryTKey, TValue(NetworkedVarSettings, IDictionaryTKey, TValue) |
Creates a NetworkedDictionary with a custom value and custom settings
|
| Name | Description | |
|---|---|---|
| Count | ||
| IsReadOnly | ||
| Item | ||
| Keys | ||
| LastSyncedTime |
Gets the last time the variable was synced
| |
| Values |
| Name | Description | |
|---|---|---|
| Add(KeyValuePairTKey, TValue) | ||
| Add(TKey, TValue) | ||
| CanClientRead |
Gets wheter or not a specific client can read to the varaible
| |
| CanClientWrite |
Gets wheter or not a specific client can write to the varaible
| |
| Clear | ||
| Contains | ||
| ContainsKey | ||
| CopyTo | ||
| Equals | (Inherited from Object.) | |
| Finalize | (Inherited from Object.) | |
| GetChannel |
Returns the name of the channel to be used for syncing
| |
| GetEnumerator | ||
| GetHashCode | (Inherited from Object.) | |
| GetType | (Inherited from Object.) | |
| IsDirty |
Gets wheter or not the container is dirty
| |
| MemberwiseClone | (Inherited from Object.) | |
| ReadDelta |
Reads delta from the reader and applies them to the internal value
| |
| ReadField |
Reads the complete state from the reader and applies it
| |
| Remove(KeyValuePairTKey, TValue) | ||
| Remove(TKey) | ||
| ResetDirty |
Resets the dirty state and marks the variable as synced / clean
| |
| SetNetworkedBehaviour |
Sets NetworkedBehaviour the container belongs to.
| |
| ToString | (Inherited from Object.) | |
| TryGetValue | ||
| WriteDelta |
Writes the dirty changes, that is, the changes since the variable was last dirty, to the writer
| |
| WriteField |
Writes the complete state of the variable to the writer
|