Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Method in SerializedDictionary
public void Add(TKey key, TValue value)TKey key
Method in
Method in
TValue value
public void Clear()public bool Contains(KeyValuePair<TKey, TValue> item)System.Collections.Generic.KeyValuePair<TKey, TValue> item
Method in
public void Add(KeyValuePair<TKey, TValue> item)System.Collections.Generic.KeyValuePair<TKey, TValue> item
Indexer in
Property in
TValue this[TKey key]public int Count { get };Method in SerializedDictionary
public bool ContainsKey(TKey key)TKey key
Method in SerializedDictionary
public bool Remove(KeyValuePair<TKey, TValue> item)System.Collections.Generic.KeyValuePair<TKey, TValue> item
Class in Yarn.Unity
Inherits from System.Object
An System.Collections.Generic.IDictionary`2 that can be serialized as part of a Unity object.
public class SerializedDictionary<TKey, TValue> : IDictionary<TKey, TValue>, ISerializationCallbackReceiverPrior to Unity 2020, dictionaries cannot be directly serialized by Unity. This class is a workaround; it provides an API identical to System.Collections.Generic.Dictionary2</code> , and stores its contents as two <code>System.Collections.Generic.List1 s: one for TKey , and one for TValue .
Method in SerializedDictionary
public bool TryGetValue(TKey key, out TValue value)TKey key
Method in
TValue value
TKey
The type of key used in the dictionary.
TValue
The type of value used in the dictionary.
public void CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)System.Collections.Generic.KeyValuePair<TKey, TValue>[] array
int arrayIndex