Interface IConfig.IManagedInterface
Represents the managed interface implemented by its unmanaged counterpart.
public interface IConfig.IManagedInterface : IUnmanagedInterface
- Inherited Members
Methods
AddBan(BanEntry)
Adds a ban.
void AddBan(BanEntry entry)
Parameters
entryBanEntryThe ban entry to add.
ClearBans()
Clears all bans.
void ClearBans()
GetBan(Size)
Gets the ban at the specified index.
BanEntry? GetBan(Size index)
Parameters
indexSizeThe index of the ban.
Returns
- BanEntry
The ban entry.
GetBansCount()
Gets the number of bans.
Size GetBansCount()
Returns
- Size
The number of bans.
GetBool(string)
Get a variable as a boolean.
BlittableRef<bool> GetBool(string key)
Parameters
keystringThe key of the variable.
Returns
- BlittableRef<bool>
A pointer to the value.
GetFloat(string)
Get a variable as a float.
BlittableRef<float> GetFloat(string key)
Parameters
keystringThe key of the variable.
Returns
- BlittableRef<float>
A pointer to the value.
GetInt(string)
Get a variable as an integer.
BlittableRef<int> GetInt(string key)
Parameters
keystringThe key of the variable.
Returns
- BlittableRef<int>
A pointer to the value.
GetNameFromAlias(string)
Get an option name from an alias if available.
(bool, string?) GetNameFromAlias(string alias)
Parameters
aliasstringThe alias to find.
Returns
- (bool, string)
A pair of bool which is true if the alias is deprecated and a string with the real config name.
GetOptions()
Gets all available options and their type.
IReadOnlyDictionary<string, ConfigOptionType> GetOptions()
Returns
GetString(string)
Get a variable as a string.
string? GetString(string key)
Parameters
keystringThe key of the variable.
Returns
GetStrings(string)
Gets a list of strings.
string?[] GetStrings(string key)
Parameters
keystringThe key of the variable.
Returns
- string[]
An array containing the string values.
GetValueType(string)
Gets the type of a variable.
ConfigOptionType GetValueType(string key)
Parameters
keystringThe key of the variable.
Returns
- ConfigOptionType
tHE type of the variable.
IsBanned(BanEntry)
Checks if a ban entry is banned.
bool IsBanned(BanEntry entry)
Parameters
entryBanEntryThe ban entry to check.
Returns
ReloadBans()
Reloads the bans.
void ReloadBans()
RemoveBan(BanEntry)
Removes a ban.
void RemoveBan(BanEntry entry)
Parameters
entryBanEntryThe ban entry to remove.
RemoveBan(Size)
Removes a ban.
void RemoveBan(Size index)
Parameters
indexSizeThe index of the ban to remove.
WriteBans()
Writes the bans to the file.
void WriteBans()