Class ConfigKeyEnabledSource<T>
- Namespace
- MonkeyLoader.Resonite.Configuration
- Assembly
- MonkeyLoader.Resonite.Integration.dll
Implements a custom data feed items component that will use another config key as the enabled source for the default items generated for the ConfigKey.
public sealed class ConfigKeyEnabledSource<T> : ConfigKeyCustomDataFeedItems<T>, IConfigKeyCustomDataFeedItems<T>, IConfigKeyComponent<IDefiningConfigKey<T>>, IComponent<IDefiningConfigKey<T>>, ICustomDataFeedItems
Type Parameters
TThe type of the config key
- Inheritance
-
ConfigKeyEnabledSource<T>
- Implements
- Inherited Members
Remarks
Beware, that only the first of these components will be used, should a config key have multiple.
Constructors
ConfigKeyEnabledSource(IDefiningConfigKey<bool>)
Creates a new instance of this custom data feed items component that will use the given config key as the enabled source for the default items generated for the ConfigKey.
public ConfigKeyEnabledSource(IDefiningConfigKey<bool> enabledSource)
Parameters
enabledSourceIDefiningConfigKey<bool>
Remarks
Beware, that only the first of these components will be used, should a config key have multiple.
Properties
EnabledSource
Gets the config item that will be used as the enabled source for the default items generated for the ConfigKey.
public IDefiningConfigKey<bool> EnabledSource { get; }
Property Value
Methods
Enumerate(IReadOnlyList<string>, IReadOnlyList<string>, string?, object?)
Enumerates the FrooxEngine.DataFeedItems that represent this object.
public override IAsyncEnumerable<DataFeedItem> Enumerate(IReadOnlyList<string> path, IReadOnlyList<string> groupKeys, string? searchPhrase, object? viewData)
Parameters
pathIReadOnlyList<string>The path for this enumeration request.
groupKeysIReadOnlyList<string>The group keys for this enumeration request.
searchPhrasestringThe search phrase for this enumeration request.
viewDataobjectThe custom view data for this enumeration request.
Returns
- IAsyncEnumerable<DataFeedItem>
An async sequence of FrooxEngine.DataFeedItems that represents this object.