Table of Contents

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

T

The 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

enabledSource IDefiningConfigKey<bool>

The config item that will be used as the enabled source for the default items generated for the ConfigKey.

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

IDefiningConfigKey<bool>

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

path IReadOnlyList<string>

The path for this enumeration request.

groupKeys IReadOnlyList<string>

The group keys for this enumeration request.

searchPhrase string

The search phrase for this enumeration request.

viewData object

The custom view data for this enumeration request.

Returns

IAsyncEnumerable<DataFeedItem>

An async sequence of FrooxEngine.DataFeedItems that represents this object.