Files
RobustToolbox/Robust.Shared/Configuration/IConfigurationManagerInternal.cs
T

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();
}
}