RoR2-ChensGradiusMod

Gradius Mod in Risk of Rain 2.

View on GitHub

ChensGradiusMod

Chen.GradiusMod.Modules.ModuleBase

ModuleBase.Bind<T>(string, T, string, T, T) Method

Binds a config option under the module’s config section, clamped within a range.

protected T Bind<T>(string propertyName, T defaultValue, string description, T min, T max)
    where T : System.IComparable;

Type parameters

T
Type of the config option

Parameters

propertyName System.String
Name of the property that holds the value. It is turned to PascalCase for the config key.

defaultValue T
Default value of the config option

description System.String
Description of the config option

min T
Minimum value of the config option

max T
Maximum value of the config option

Returns

T
The value of the config option