/
expens1ve
/
project_war
Обзор
Документация
Войти
/
expens1ve
/
project_war
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
observer
Engine/ConfigurationManager.cs
37 строк
1 KB
Vadim
feat: FAAAAAH
04 апр 2026, 03:04
04 апр 2026, 03:04
eb01cba
Код
Авторство
О чём код?
using System; using System.IO; using project_war.Engine.Interfaces; namespace project_war.Engine { /// <summary> /// ���������� �������� ������������ ����. /// ���������� ��� Singleton � ������� ��������������. /// </summary> public sealed class ConfigurationManager : IConfigurationManager { private static readonly Lazy<ConfigurationManager> _instance = new(() => new ConfigurationManager()); /// <summary> /// ���������� ����� ������� � ������������. /// </summary> public static ConfigurationManager Instance => _instance.Value; /// <inheritdoc /> public bool IsDamageLoggingEnabled { get; set; } /// <inheritdoc /> public bool IsDeathBeepEnabled { get; set; } /// <inheritdoc /> public string SavedGamesDirectory { get; set; } private ConfigurationManager() { IsDamageLoggingEnabled = true; IsDeathBeepEnabled = true; SavedGamesDirectory = Path.Combine(Directory.GetCurrentDirectory(), "saved_games"); } } }