Improved ConfigServer obsolete messages
This commit is contained in:
@@ -10,7 +10,7 @@ using LogLevel = SPTarkov.Server.Core.Models.Spt.Logging.LogLevel;
|
|||||||
namespace SPTarkov.Server.Core.Servers;
|
namespace SPTarkov.Server.Core.Servers;
|
||||||
|
|
||||||
[Injectable(InjectionType.Singleton)]
|
[Injectable(InjectionType.Singleton)]
|
||||||
[Obsolete("This class will be removed in SPT 4.2 in favor for directly injecting the configuration into classes")]
|
[Obsolete("This class will be removed in SPT 4.1 in favor for directly injecting the configuration into classes")]
|
||||||
public class ConfigServer
|
public class ConfigServer
|
||||||
{
|
{
|
||||||
protected readonly FrozenSet<string> acceptableFileExtensions = ["json", "jsonc"];
|
protected readonly FrozenSet<string> acceptableFileExtensions = ["json", "jsonc"];
|
||||||
@@ -31,7 +31,7 @@ public class ConfigServer
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[Obsolete("This method will be removed in SPT 4.2 in favor for directly injecting the configuration into classes")]
|
[Obsolete("This method will be removed in SPT 4.1 in favor for directly injecting the configuration into classes")]
|
||||||
public T GetConfig<T>()
|
public T GetConfig<T>()
|
||||||
where T : BaseConfig
|
where T : BaseConfig
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user