From def7e7b9485d61e83f3793e9769ef61ee074770f Mon Sep 17 00:00:00 2001 From: Kurochi51 Date: Tue, 20 Feb 2024 20:51:31 +0200 Subject: [PATCH] Revert more C#12 --- PetScale/Configuration.cs | 2 +- PetScale/PetScale.cs | 4 ++-- PetScale/PetScale.csproj | 2 +- PetScale/Windows/DevWindow.cs | 4 ++-- manifest.toml | 8 ++++++++ 5 files changed, 14 insertions(+), 6 deletions(-) create mode 100644 manifest.toml diff --git a/PetScale/Configuration.cs b/PetScale/Configuration.cs index e89f974..8171f4d 100644 --- a/PetScale/Configuration.cs +++ b/PetScale/Configuration.cs @@ -9,7 +9,7 @@ namespace PetScale; public class Configuration : IPluginConfiguration { public int Version { get; set; } = 0; - public IList PetData { get; set; } = []; + public IList PetData { get; set; } = new List(); public void Save(DalamudPluginInterface pi) => pi.SavePluginConfig(this); diff --git a/PetScale/PetScale.cs b/PetScale/PetScale.cs index 842f31b..f8a404b 100644 --- a/PetScale/PetScale.cs +++ b/PetScale/PetScale.cs @@ -39,8 +39,8 @@ public sealed class PetScale : IDalamudPlugin private readonly CultureInfo cultureInfo = CultureInfo.InvariantCulture; private readonly StringComparison ordinalComparison = StringComparison.Ordinal; - private readonly Dictionary, (Pointer character, bool petSet)> activePetDictionary = []; - private readonly Dictionary petSizeMap = []; + private readonly Dictionary, (Pointer character, bool petSet)> activePetDictionary = new(); + private readonly Dictionary petSizeMap = new(); private readonly Stopwatch stopwatch = new(); private readonly TimeSpan dictionaryExpirationTime = TimeSpan.FromMilliseconds(500); // used via .TotalMilliseconds private const string Others = "Other players"; diff --git a/PetScale/PetScale.csproj b/PetScale/PetScale.csproj index ab57b6c..a105557 100644 --- a/PetScale/PetScale.csproj +++ b/PetScale/PetScale.csproj @@ -15,7 +15,7 @@ net7.0-windows x64 enable - latest + 11 true false false diff --git a/PetScale/Windows/DevWindow.cs b/PetScale/Windows/DevWindow.cs index 2043e9b..1145bf8 100644 --- a/PetScale/Windows/DevWindow.cs +++ b/PetScale/Windows/DevWindow.cs @@ -13,8 +13,8 @@ namespace PetScale.Windows; public class DevWindow : Window { - private static readonly List PrintLines = []; - private static readonly Queue> RedrawObjects = []; + private static readonly List PrintLines = new(); + private static readonly Queue> RedrawObjects = new(); #pragma warning disable S4487 private readonly IPluginLog log; private readonly DalamudPluginInterface pluginInterface; diff --git a/manifest.toml b/manifest.toml new file mode 100644 index 0000000..bcc0e87 --- /dev/null +++ b/manifest.toml @@ -0,0 +1,8 @@ +[plugin] +repository = "https://github.com/Kurochi51/PetScale.git" +commit = "729055b78bf85fea161c91d1a8cfd7d36edf4f7c" +owners = ["Kurochi51"] +project_path = "PetScale" +changelog = """ +- New plugin that allows you to control the scale of summoner pets +"""