RoR2-ChensGradiusMod

Gradius Mod in Risk of Rain 2.

View on GitHub

ChensGradiusMod

Chen.GradiusMod.Modules.ModuleBase

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

Binds a config option under the module’s config section.

protected T Bind<T>(string propertyName, T defaultValue, string description);

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

Returns

T
The value of the config option