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
RegisteredOptions
A list of all registered options.
public static readonly Dictionary<Type, IUntypedOption> RegisteredOptions
Field Value
RegisteredTabs
A list of all registered tabs.
public static readonly Dictionary<Type, Tab> RegisteredTabs
Field Value
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
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
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
TypeThe type
Returns
- bool
If it could be registered