Class ConfigCategory
Inheritance
ConfigCategory
Assembly: RedLoader.dll
Syntax
public class ConfigCategory
Fields
Entries
Declaration
public readonly List<ConfigEntry> Entries
Field Value
Properties
DisplayName
Declaration
public string DisplayName { get; set; }
Property Value
Identifier
Declaration
public string Identifier { get; }
Property Value
IsHidden
Declaration
public bool IsHidden { get; set; }
Property Value
IsInlined
Declaration
public bool IsInlined { get; set; }
Property Value
Methods
CreateEntry<T>(string, T, string, bool)
Declaration
public ConfigEntry CreateEntry<T>(string identifier, T default_value, string display_name, bool is_hidden)
Parameters
Type |
Name |
Description |
string |
identifier |
|
T |
default_value |
|
string |
display_name |
|
bool |
is_hidden |
|
Returns
Type Parameters
CreateEntry<T>(string, T, string, string, bool, bool, ValueValidator)
Declaration
public ConfigEntry<T> CreateEntry<T>(string identifier, T default_value, string display_name, string description, bool is_hidden, bool dont_save_default, ValueValidator validator)
Parameters
Returns
Type Parameters
CreateEntry<T>(string, T, string, string, bool, bool, ValueValidator, string)
Declaration
public ConfigEntry<T> CreateEntry<T>(string identifier, T default_value, string display_name = null, string description = null, bool is_hidden = false, bool dont_save_default = false, ValueValidator validator = null, string oldIdentifier = null)
Parameters
Returns
Type Parameters
DeleteEntry(string)
Declaration
public bool DeleteEntry(string identifier)
Parameters
Type |
Name |
Description |
string |
identifier |
|
Returns
DestroyFileWatcher()
Declaration
public void DestroyFileWatcher()
GetEntry(string)
Declaration
public ConfigEntry GetEntry(string identifier)
Parameters
Type |
Name |
Description |
string |
identifier |
|
Returns
GetEntry<T>(string)
Declaration
public ConfigEntry<T> GetEntry<T>(string identifier)
Parameters
Type |
Name |
Description |
string |
identifier |
|
Returns
Type Parameters
HasEntry(string)
Declaration
public bool HasEntry(string identifier)
Parameters
Type |
Name |
Description |
string |
identifier |
|
Returns
LoadFromFile(bool)
Declaration
public void LoadFromFile(bool printmsg = true)
Parameters
Type |
Name |
Description |
bool |
printmsg |
|
RenameEntry(string, string)
Declaration
public bool RenameEntry(string identifier, string newIdentifier)
Parameters
Type |
Name |
Description |
string |
identifier |
|
string |
newIdentifier |
|
Returns
ResetFilePath()
Declaration
public void ResetFilePath()
SaveToFile(bool)
Declaration
public void SaveToFile(bool printmsg = true)
Parameters
Type |
Name |
Description |
bool |
printmsg |
|
SetFilePath(string)
Declaration
public void SetFilePath(string filepath)
Parameters
Type |
Name |
Description |
string |
filepath |
|
SetFilePath(string, bool)
Declaration
public void SetFilePath(string filepath, bool autoload)
Parameters
Type |
Name |
Description |
string |
filepath |
|
bool |
autoload |
|
SetFilePath(string, bool, bool)
Declaration
public void SetFilePath(string filepath, bool autoload, bool printmsg)
Parameters