Table of Contents

Interface IConfigKeyRange<T>

Namespace
MonkeyLoader.Configuration
Assembly
MonkeyLoader.dll

Defines the interface for range components for IDefiningConfigKey<T>s.

public interface IConfigKeyRange<T> : IConfigKeyComponent<IDefiningConfigKey<T>>, IComponent<IDefiningConfigKey<T>>

Type Parameters

T
Inherited Members

Remarks

Game Packs implementing a settings page may use this to display a slider instead of a plain field.

Properties

Comparer

Gets the typed comparer used to check whether new values fall into this config item's range.

IComparer<T> Comparer { get; }

Property Value

IComparer<T>

Max

Gets the typed upper bound of this config item's value range.

T Max { get; }

Property Value

T

Min

Gets the typed lower bound of this config item's value range.

T Min { get; }

Property Value

T

Methods

IsValueInRange(T)

Determines whether the given value falls into this config item's range.

bool IsValueInRange(T value)

Parameters

value T

The value to test.

Returns

bool

true if the value falls into the range; otherwise, false.