From 49a18e3c1ed328f74c559657635b66e1008ad26c Mon Sep 17 00:00:00 2001 From: goat Date: Mon, 30 Dec 2024 14:01:50 +0100 Subject: [PATCH] Api11ToDo -> Api12ToDo --- Dalamud/Game/ClientState/Objects/ObjectTable.cs | 2 +- Dalamud/Game/Gui/Dtr/DtrBarEntry.cs | 2 +- Dalamud/Interface/Animation/Easing.cs | 2 +- .../{Api11ToDoAttribute.cs => Api12ToDoAttribute.cs} | 6 +++--- Dalamud/Utility/SeStringExtensions.cs | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) rename Dalamud/Utility/{Api11ToDoAttribute.cs => Api12ToDoAttribute.cs} (75%) diff --git a/Dalamud/Game/ClientState/Objects/ObjectTable.cs b/Dalamud/Game/ClientState/Objects/ObjectTable.cs index 8ea1b582f..6aa7fd8ad 100644 --- a/Dalamud/Game/ClientState/Objects/ObjectTable.cs +++ b/Dalamud/Game/ClientState/Objects/ObjectTable.cs @@ -155,7 +155,7 @@ internal sealed partial class ObjectTable : IServiceType, IObjectTable }; } - [Api11ToDo("Use ThreadSafety.AssertMainThread() instead of this.")] + [Api12ToDo("Use ThreadSafety.AssertMainThread() instead of this.")] [MethodImpl(MethodImplOptions.AggressiveInlining)] private bool WarnMultithreadedUsage() { diff --git a/Dalamud/Game/Gui/Dtr/DtrBarEntry.cs b/Dalamud/Game/Gui/Dtr/DtrBarEntry.cs index 8ba46f999..49a2cbb73 100644 --- a/Dalamud/Game/Gui/Dtr/DtrBarEntry.cs +++ b/Dalamud/Game/Gui/Dtr/DtrBarEntry.cs @@ -145,7 +145,7 @@ internal sealed unsafe class DtrBarEntry : IDisposable, IDtrBarEntry } /// - [Api11ToDo("Maybe make this config scoped to internalname?")] + [Api12ToDo("Maybe make this config scoped to internalname?")] public bool UserHidden => this.configuration.DtrIgnore?.Contains(this.Title) ?? false; /// diff --git a/Dalamud/Interface/Animation/Easing.cs b/Dalamud/Interface/Animation/Easing.cs index 473e3d5e1..c6d6149af 100644 --- a/Dalamud/Interface/Animation/Easing.cs +++ b/Dalamud/Interface/Animation/Easing.cs @@ -8,7 +8,7 @@ namespace Dalamud.Interface.Animation; /// /// Base class facilitating the implementation of easing functions. /// -[Api11ToDo("Re-apply https://github.com/goatcorp/Dalamud/commit/1aada983931d9e45a250eebbc17c8b782d07701b")] +[Api12ToDo("Re-apply https://github.com/goatcorp/Dalamud/commit/1aada983931d9e45a250eebbc17c8b782d07701b")] public abstract class Easing { // TODO: Use game delta time here instead diff --git a/Dalamud/Utility/Api11ToDoAttribute.cs b/Dalamud/Utility/Api12ToDoAttribute.cs similarity index 75% rename from Dalamud/Utility/Api11ToDoAttribute.cs rename to Dalamud/Utility/Api12ToDoAttribute.cs index 0336120ba..9f871274d 100644 --- a/Dalamud/Utility/Api11ToDoAttribute.cs +++ b/Dalamud/Utility/Api12ToDoAttribute.cs @@ -4,7 +4,7 @@ namespace Dalamud.Utility; /// Utility class for marking something to be changed for API 11, for ease of lookup. /// [AttributeUsage(AttributeTargets.All, Inherited = false)] -internal sealed class Api11ToDoAttribute : Attribute +internal sealed class Api12ToDoAttribute : Attribute { /// /// Marks that this should be made internal. @@ -12,11 +12,11 @@ internal sealed class Api11ToDoAttribute : Attribute public const string MakeInternal = "Make internal."; /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// The explanation. /// The explanation 2. - public Api11ToDoAttribute(string what, string what2 = "") + public Api12ToDoAttribute(string what, string what2 = "") { _ = what; _ = what2; diff --git a/Dalamud/Utility/SeStringExtensions.cs b/Dalamud/Utility/SeStringExtensions.cs index 34ebb1450..057759e1e 100644 --- a/Dalamud/Utility/SeStringExtensions.cs +++ b/Dalamud/Utility/SeStringExtensions.cs @@ -43,7 +43,7 @@ public static class SeStringExtensions /// Macro string in UTF-8 to compile and append to . /// this for method chaining. [Obsolete($"Use {nameof(LSeStringBuilder)}.{nameof(LSeStringBuilder.AppendMacroString)} directly instead.", true)] - [Api11ToDo("Remove")] + [Api12ToDo("Remove")] public static LSeStringBuilder AppendMacroString(this LSeStringBuilder ssb, ReadOnlySpan macroString) => ssb.AppendMacroString(macroString, new() { ExceptionMode = MacroStringParseExceptionMode.EmbedError }); @@ -52,7 +52,7 @@ public static class SeStringExtensions /// Macro string in UTF-16 to compile and append to . /// this for method chaining. [Obsolete($"Use {nameof(LSeStringBuilder)}.{nameof(LSeStringBuilder.AppendMacroString)} directly instead.", true)] - [Api11ToDo("Remove")] + [Api12ToDo("Remove")] public static LSeStringBuilder AppendMacroString(this LSeStringBuilder ssb, ReadOnlySpan macroString) => ssb.AppendMacroString(macroString, new() { ExceptionMode = MacroStringParseExceptionMode.EmbedError });