Skip to content

ConfigDescription Class

Metadata of a ConfigEntryBase.

C#
public class ConfigDescription

Inheritance object

ConfigDescription(string, AcceptableValueBase, params object[])

Section titled “ConfigDescription(string, AcceptableValueBase, params object[])”

Create a new description.

C#
public ConfigDescription(string description, AcceptableValueBase acceptableValues = null, params object[] tags)

description string
Text describing the function of the setting and any notes or warnings.

acceptableValues AcceptableValueBase
Range of values that this setting can take. The setting’s value will be automatically clamped.

tags object[]
Objects that can be used by user-made classes to add functionality.

Text describing the function of the setting and any notes or warnings.

C#
public string Description { get; }

Range of acceptable values for a setting.

C#
public AcceptableValueBase AcceptableValues { get; }

Objects that can be used by user-made classes to add functionality.

C#
public object[] Tags { get; }

An empty description.

C#
public static ConfigDescription Empty { get; }