Preset<T>

References
public sealed class Preset<T> : IPreset
Strongly typed preset.
T

Constructors

Preset

#
public Preset(
name,
info,
Color?
colour,
T
value
)

Preset

#
public Preset(
name,
info,
T
value
)

Preset

#
Create a new preset.
public Preset(
name,
Name of preset. If the name contains a double colon, the part before the colon becomes the category.
T
value
Value of preset.
)

Properties

Category

#
Preset category. May be null or empty, in which case the preset does not belong to any special category.
public string Category { get; }
Category
Explicit

IPreset.Value

#
Value

Info

#
Detailed description of preset. May be null or empty.
public string Info { get; }
Info

Name

#
Name of preset. Guaranteed to not be a empty string.
public string Name { get; }
Name

Tint

#
Optional colour override for preset.
public Color? Tint { get; }
Tint

Value

#
Value of preset.
public T Value { get; }