Table of Contents

Class PluginConfigExtensions

Namespace
CounterStrikeSharp.API.Modules.Extensions
Assembly
CounterStrikeSharp.API.dll
public static class PluginConfigExtensions
Inheritance
object
PluginConfigExtensions

Properties

JsonSerializerOptions

public static JsonSerializerOptions JsonSerializerOptions { get; }

Property Value

JsonSerializerOptions

Methods

GetConfigPath<T>(T)

Gets the configuration file path

public static string GetConfigPath<T>(this T _) where T : BasePluginConfig, new()

Parameters

_ T

Current configuration instance

Returns

string

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 T

Current 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 T

Current configuration instance

Type Parameters

T

Type of the plugin configuration.