Class CompatLoader
- Namespace
- ConfigurableWarning.API.Compat
- Assembly
- RedstoneWizard08.ContentLibrary.dll
A loader for compat modules.
public static class CompatLoader
- Inheritance
-
CompatLoader
- Inherited Members
Fields
RegisteredGroups
A list of all registered compat groups.
public static readonly Dictionary<Type, CompatGroup> RegisteredGroups
Field Value
RegisteredModules
A list of all registered compat modules.
public static readonly Dictionary<Type, ICompatModule> RegisteredModules
Field Value
RegisteredTabs
A list of all registered compat tabs.
public static readonly Dictionary<Type, CompatTab> RegisteredTabs
Field Value
Methods
LoadModules()
Auto-loads all compat modules.
public static void LoadModules()
NamespaceExists(string)
Checks if a namespace exists.
public static bool NamespaceExists(string ns)
Parameters
ns
stringThe namespace.
Returns
- bool
If it exists.
TryRegisterCompatGroup(string?, Type)
Try to register a compat group from a type.
public static bool TryRegisterCompatGroup(string? tab, Type type)
Parameters
Returns
- bool
If it could be registered
TryRegisterCompatTab(Type)
Try to register a compat tab from a type.
public static bool TryRegisterCompatTab(Type type)
Parameters
type
TypeThe type
Returns
- bool
If it could be registered