Mark various removed implementations as obsolete

This commit is contained in:
Archangel
2025-11-05 14:41:28 +01:00
parent 0e675129a0
commit 4eecb485c6
2 changed files with 5 additions and 0 deletions
@@ -6,8 +6,10 @@
///
/// This should not be used at all when having direct access to DI.
/// </summary>
[Obsolete("This will be removed in the next version of SPT in favor of DI injecting patches")]
public static class ServiceLocator
{
[Obsolete("This will be removed in the next version of SPT in favor of DI injecting patches")]
public static IServiceProvider ServiceProvider { get; private set; }
internal static void SetServiceProvider(IServiceProvider provider)
@@ -31,6 +31,7 @@ public class SaveServer(
protected const string profileFilepath = "user/profiles/";
// onLoad = require("../bindings/SaveLoad");
[Obsolete("This will be removed in the next version of SPT")]
protected readonly Dictionary<string, Func<SptProfile, SptProfile>> onBeforeSaveCallbacks = new();
protected readonly ConcurrentDictionary<MongoId, SptProfile> profiles = new();
@@ -42,6 +43,7 @@ public class SaveServer(
/// </summary>
/// <param name="id"> ID for the save callback </param>
/// <param name="callback"> Callback to execute prior to running SaveServer.saveProfile() </param>
[Obsolete("This will be removed in the next version of SPT")]
public void AddBeforeSaveCallback(string id, Func<SptProfile, SptProfile> callback)
{
onBeforeSaveCallbacks[id] = callback;
@@ -51,6 +53,7 @@ public class SaveServer(
/// Remove a callback from being executed prior to saving profile in SaveServer.saveProfile()
/// </summary>
/// <param name="id"> ID of Callback to remove </param>
[Obsolete("This will be removed in the next version of SPT")]
public void RemoveBeforeSaveCallback(string id)
{
onBeforeSaveCallbacks.Remove(id);