Class PluginConfigExtensions
- Namespace
- CounterStrikeSharp.API.Modules.Extensions
- Assembly
- CounterStrikeSharp.API.dll
public static class PluginConfigExtensions
- Inheritance
-
objectPluginConfigExtensions
Properties
JsonSerializerOptions
public static JsonSerializerOptions JsonSerializerOptions { get; }
Property Value
Methods
GetConfigPath<T>(T)
Gets the configuration file path
public static string GetConfigPath<T>(this T _) where T : BasePluginConfig, new()
Parameters
_
TCurrent configuration instance
Returns
Type Parameters
T
Type of the plugin configuration.
Reload<T>(T)
Reloads the configuration file and updates current configuration instance.
public static void Reload<T>(this T config) where T : BasePluginConfig, new()
Parameters
config
TCurrent configuration instance
Type Parameters
T
Type of the plugin configuration.
Update<T>(T)
Updates the configuration file
public static void Update<T>(this T config) where T : BasePluginConfig, new()
Parameters
config
TCurrent configuration instance
Type Parameters
T
Type of the plugin configuration.