- add: Settings, start

This commit is contained in:
2025-05-10 19:19:30 +03:00
parent 17cc6f0928
commit 39308fc316
8 changed files with 250 additions and 1 deletions

View File

@@ -33,7 +33,10 @@ public static class ConVarBuilder
[ServiceRegister]
public class ConfigurationService
{
public delegate void OnConfigurationChangedDelegate<in T>(T value);
public IReadWriteFileApi ConfigurationApi { get; init; }
private readonly ILogger _logger;
public ConfigurationService(FileService fileService, DebugService debugService)
@@ -42,6 +45,11 @@ public class ConfigurationService
ConfigurationApi = fileService.CreateFileApi("config");
}
private void SubscribeVarChanged<T>(ConVar<T> convar, OnConfigurationChangedDelegate<T> @delegate)
{
}
public T? GetConfigValue<T>(ConVar<T> conVar)
{