Interface IKnotController<TItemData, TValue, TValueType>
Inherited Members
System.Collections.Generic.IReadOnlyDictionary<System.String, TValue>.ContainsKey(System.String)
System.Collections.Generic.IReadOnlyDictionary<System.String, TValue>.TryGetValue(System.String, TValue)
System.Collections.Generic.IReadOnlyDictionary<System.String, TValue>.Item[System.String]
System.Collections.Generic.IReadOnlyDictionary<System.String, TValue>.Keys
System.Collections.Generic.IReadOnlyDictionary<System.String, TValue>.Values
System.Collections.Generic.IReadOnlyCollection<System.Collections.Generic.KeyValuePair<System.String, TValue>>.Count
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String, TValue>>.GetEnumerator()
System.Collections.IEnumerable.GetEnumerator()
System.IDisposable.Dispose()
Assembly: Knot.Localization.dll
Syntax
public interface IKnotController<TItemData, TValue, TValueType> : IReadOnlyDictionary<string, TValue>, IReadOnlyCollection<KeyValuePair<string, TValue>>, IEnumerable<KeyValuePair<string, TValue>>, IEnumerable, IDisposable where TItemData : KnotItemData where TValue : class, IKnotValue<TValueType>
Type Parameters
Name |
Description |
TItemData |
|
TValue |
|
TValueType |
|
Properties
Overrides
Declaration
IReadOnlyDictionary<string, TValue> Overrides { get; }
Property Value
Type |
Description |
System.Collections.Generic.IReadOnlyDictionary<System.String, TValue> |
|
ValueChangedCallbacks
Declaration
IDictionary<string, Action<TValueType>> ValueChangedCallbacks { get; }
Property Value
Type |
Description |
System.Collections.Generic.IDictionary<System.String, System.Action<TValueType>> |
|
Methods
AddOverride(String, TValue)
Declaration
void AddOverride(string key, TValue value)
Parameters
Type |
Name |
Description |
System.String |
key |
|
TValue |
value |
|
Declaration
void AddOverride(string key, TValueType value, params IKnotMetadata[] metadata)
Parameters
Type |
Name |
Description |
System.String |
key |
|
TValueType |
value |
|
IKnotMetadata[] |
metadata |
|
BuildAsync(KnotControllerBuildData<TItemData>)
Declaration
Task BuildAsync(KnotControllerBuildData<TItemData> buildData)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
ClearOverrides()
Declaration
GetFallbackValue(String)
Declaration
TValueType GetFallbackValue(string key)
Parameters
Type |
Name |
Description |
System.String |
key |
|
Returns
Type |
Description |
TValueType |
|
RegisterValueChangedCallback(String, Action<TValueType>)
Registers valueChanged
callback that will be invoked when IKnotValue<TValue> with given key
has been updated
Declaration
void RegisterValueChangedCallback(string key, Action<TValueType> valueChanged)
Parameters
Type |
Name |
Description |
System.String |
key |
|
System.Action<TValueType> |
valueChanged |
|
RemoveOverride(String)
Declaration
bool RemoveOverride(string key)
Parameters
Type |
Name |
Description |
System.String |
key |
|
Returns
Type |
Description |
System.Boolean |
|
UnRegisterValueChangedCallback(String, Action<TValueType>)
UnRegisters valueChanged
callback with given key
Declaration
void UnRegisterValueChangedCallback(string key, Action<TValueType> valueChanged)
Parameters
Type |
Name |
Description |
System.String |
key |
|
System.Action<TValueType> |
valueChanged |
|