mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-15 14:52:35 +02:00
34 lines
1.1 KiB
C#
34 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Reflection;
|
|
|
|
namespace Robust.Shared.Configuration
|
|
{
|
|
internal interface IConfigurationManagerInternal : IConfigurationManager
|
|
{
|
|
void OverrideConVars(IEnumerable<(string key, string value)> cVars);
|
|
void LoadCVarsFromAssembly(Assembly assembly);
|
|
void LoadCVarsFromType(Type containingType);
|
|
|
|
void Initialize(bool isServer);
|
|
|
|
void Shutdown();
|
|
|
|
/// <summary>
|
|
/// Sets up the ConfigurationManager and loads a TOML configuration file.
|
|
/// </summary>
|
|
/// <param name="configFile">the full name of the config file.</param>
|
|
HashSet<string> LoadFromFile(string configFile);
|
|
|
|
/// <summary>
|
|
/// Specifies the location where the config file should be saved, without trying to load from it.
|
|
/// </summary>
|
|
void SetSaveFile(string configFile);
|
|
|
|
/// <summary>
|
|
/// Check the list of CVars to make sure there's no unused CVars set, which might indicate a typo or such.
|
|
/// </summary>
|
|
void CheckUnusedCVars();
|
|
}
|
|
}
|