From ff4d083ae94e486019b6fc32fd86b6e16eb77543 Mon Sep 17 00:00:00 2001 From: Luzifix Date: Tue, 9 Jul 2024 23:50:43 +0200 Subject: [PATCH] Resolve nullable warnings --- Warcraft.NET/Files/BLP/BLP.cs | 9 +++++---- Warcraft.NET/Files/WDL/Legion/WorldDataLod.cs | 2 ++ Warcraft.NET/Files/WDL/WorldDataLodBase.cs | 3 ++- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/Warcraft.NET/Files/BLP/BLP.cs b/Warcraft.NET/Files/BLP/BLP.cs index 0c4845f..f672c4c 100644 --- a/Warcraft.NET/Files/BLP/BLP.cs +++ b/Warcraft.NET/Files/BLP/BLP.cs @@ -1,13 +1,13 @@ -using System; -using System.Collections.Generic; -using System.IO; - using SixLabors.ImageSharp; using SixLabors.ImageSharp.PixelFormats; using SixLabors.ImageSharp.Processing; +using System; +using System.Collections.Generic; +using System.IO; using Warcraft.NET.Compression.Squish; using Warcraft.NET.Extensions; +#nullable enable namespace Warcraft.NET.Files.BLP { /// @@ -1173,3 +1173,4 @@ public BLP Resize(int imageWidth, int imageHeight) } } } +#nullable disable \ No newline at end of file diff --git a/Warcraft.NET/Files/WDL/Legion/WorldDataLod.cs b/Warcraft.NET/Files/WDL/Legion/WorldDataLod.cs index ff08a2a..ead19a5 100644 --- a/Warcraft.NET/Files/WDL/Legion/WorldDataLod.cs +++ b/Warcraft.NET/Files/WDL/Legion/WorldDataLod.cs @@ -4,6 +4,7 @@ using Warcraft.NET.Extensions; using Warcraft.NET.Files.WDL.Chunks; +#nullable enable namespace Warcraft.NET.Files.WDL.Legion { public class WorldDataLod : WorldDataLodBase @@ -188,3 +189,4 @@ public static explicit operator WorldDataLod(Wotlk.WorldDataLod wdlWotlk) } } } +#nullable disable \ No newline at end of file diff --git a/Warcraft.NET/Files/WDL/WorldDataLodBase.cs b/Warcraft.NET/Files/WDL/WorldDataLodBase.cs index 99a3a0a..a72b16b 100644 --- a/Warcraft.NET/Files/WDL/WorldDataLodBase.cs +++ b/Warcraft.NET/Files/WDL/WorldDataLodBase.cs @@ -1,10 +1,10 @@ using System; -using System.Collections.Concurrent; using System.Collections.Generic; using Warcraft.NET.Attribute; using Warcraft.NET.Files.WDL.Chunks; using Warcraft.NET.Types; +#nullable enable namespace Warcraft.NET.Files.WDL { public abstract class WorldDataLodBase : ChunkedFile @@ -92,3 +92,4 @@ public MARE GetEntry(int x, int y) public abstract byte[] Serialize(); } } +#nullable disable \ No newline at end of file