Table of Contents

Class OptionLoader

Namespace
ConfigurableWarning.API.Internal
Assembly
RedstoneWizard08.ContentLibrary.dll

Responsible for loading, holding, and registering options.

public static class OptionLoader
Inheritance
OptionLoader
Inherited Members

Fields

RegisteredGroups

A list of all registered groups.

public static readonly Dictionary<Type, Group> RegisteredGroups

Field Value

Dictionary<Type, Group>

RegisteredOptions

A list of all registered options.

public static readonly Dictionary<Type, IUntypedOption> RegisteredOptions

Field Value

Dictionary<Type, IUntypedOption>

RegisteredTabs

A list of all registered tabs.

public static readonly Dictionary<Type, Tab> RegisteredTabs

Field Value

Dictionary<Type, Tab>

Methods

RegisterOptions()

Automatically collect and register all options annotated with Register.

public static void RegisterOptions()

TryRegisterGroup(string?, Type)

Try to register a group from a type.

public static bool TryRegisterGroup(string? tab, Type type)

Parameters

tab string

The tab

type Type

The type

Returns

bool

If it could be registered

TryRegisterSetting(string, string, Type)

Try to register a setting from a type.

public static bool TryRegisterSetting(string tab, string group, Type type)

Parameters

tab string

The tab

group string

The group

type Type

The type

Returns

bool

If it could be registered

TryRegisterTab(Type)

Try to register a tab from a type.

public static bool TryRegisterTab(Type type)

Parameters

type Type

The type

Returns

bool

If it could be registered