Add obsolete markers

This commit is contained in:
Archangel
2025-11-05 14:56:21 +01:00
parent 4eecb485c6
commit 3a5f285fc5
@@ -3,6 +3,7 @@ namespace SPTarkov.Reflection.Patching;
/// <summary>
/// Cache of active patches for mod developers to use for compatibility reasons
/// </summary>
[Obsolete("Patches will be injectable through IEnumerable<IRuntimePatch> in SPT 4.1, making this redundant")]
public static class ModPatchCache
{
private static readonly List<AbstractPatch> _activePatches = [];
@@ -22,6 +23,7 @@ public static class ModPatchCache
/// <remarks>
/// This should never be called before PreSptLoad is completed, otherwise could be empty.
/// </remarks>
[Obsolete("Patches will be injectable through IEnumerable<IRuntimePatch> in SPT 4.1, making this redundant")]
public static IReadOnlyList<AbstractPatch> GetActivePatches()
{
// We're not exposing _activePatches so it cant be altered outside of this class. Do NOT implement this as a property.
@@ -38,6 +40,7 @@ public static class ModPatchCache
/// <remarks>
/// This should never be called before PreSptLoad is completed, otherwise could be empty.
/// </remarks>
[Obsolete("Patches will be injectable through IEnumerable<IRuntimePatch> in SPT 4.1, making this redundant")]
public static List<string> GetActivePatchedMethodNames()
{
var result = new List<string>();