From 248b8d110293e54ae041f4dfb748cc02b993196b Mon Sep 17 00:00:00 2001 From: penev92 Date: Wed, 22 Sep 2021 02:27:37 +0300 Subject: [PATCH] Renamed IVideo implementations To match the interface they are implementing. --- OpenRA.Mods.Cnc/FileFormats/{VqaReader.cs => VqaVideo.cs} | 4 ++-- OpenRA.Mods.Cnc/FileFormats/{WsaReader.cs => WsaVideo.cs} | 4 ++-- OpenRA.Mods.Cnc/VideoLoaders/VqaLoader.cs | 2 +- OpenRA.Mods.Cnc/VideoLoaders/WsaLoader.cs | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) rename OpenRA.Mods.Cnc/FileFormats/{VqaReader.cs => VqaVideo.cs} (99%) rename OpenRA.Mods.Cnc/FileFormats/{WsaReader.cs => WsaVideo.cs} (97%) diff --git a/OpenRA.Mods.Cnc/FileFormats/VqaReader.cs b/OpenRA.Mods.Cnc/FileFormats/VqaVideo.cs similarity index 99% rename from OpenRA.Mods.Cnc/FileFormats/VqaReader.cs rename to OpenRA.Mods.Cnc/FileFormats/VqaVideo.cs index 8c9d89aa33..cf61f94445 100644 --- a/OpenRA.Mods.Cnc/FileFormats/VqaReader.cs +++ b/OpenRA.Mods.Cnc/FileFormats/VqaVideo.cs @@ -16,7 +16,7 @@ using OpenRA.Video; namespace OpenRA.Mods.Cnc.FileFormats { - public class VqaReader : IVideo + public class VqaVideo : IVideo { public ushort FrameCount { get; } public byte Framerate { get; } @@ -61,7 +61,7 @@ namespace OpenRA.Mods.Cnc.FileFormats // Top half contains block info, bottom half contains references to cbf array byte[] origData; - public VqaReader(Stream stream, bool useFramePadding) + public VqaVideo(Stream stream, bool useFramePadding) { this.stream = stream; diff --git a/OpenRA.Mods.Cnc/FileFormats/WsaReader.cs b/OpenRA.Mods.Cnc/FileFormats/WsaVideo.cs similarity index 97% rename from OpenRA.Mods.Cnc/FileFormats/WsaReader.cs rename to OpenRA.Mods.Cnc/FileFormats/WsaVideo.cs index eb0a84c7e4..f9f9006305 100644 --- a/OpenRA.Mods.Cnc/FileFormats/WsaReader.cs +++ b/OpenRA.Mods.Cnc/FileFormats/WsaVideo.cs @@ -15,7 +15,7 @@ using OpenRA.Video; namespace OpenRA.Mods.Cnc.FileFormats { - public class WsaReader : IVideo + public class WsaVideo : IVideo { public ushort FrameCount { get; } public byte Framerate => 1; @@ -39,7 +39,7 @@ namespace OpenRA.Mods.Cnc.FileFormats byte[] previousFramePaletteIndexData; byte[] currentFramePaletteIndexData; - public WsaReader(Stream stream, bool useFramePadding) + public WsaVideo(Stream stream, bool useFramePadding) { this.stream = stream; diff --git a/OpenRA.Mods.Cnc/VideoLoaders/VqaLoader.cs b/OpenRA.Mods.Cnc/VideoLoaders/VqaLoader.cs index b4531d6bc5..a6a800cfd7 100644 --- a/OpenRA.Mods.Cnc/VideoLoaders/VqaLoader.cs +++ b/OpenRA.Mods.Cnc/VideoLoaders/VqaLoader.cs @@ -24,7 +24,7 @@ namespace OpenRA.Mods.Cnc.VideoLoaders if (!IsWestwoodVqa(s)) return false; - video = new VqaReader(s, useFramePadding); + video = new VqaVideo(s, useFramePadding); return true; } diff --git a/OpenRA.Mods.Cnc/VideoLoaders/WsaLoader.cs b/OpenRA.Mods.Cnc/VideoLoaders/WsaLoader.cs index 84d4891327..19c5a4a3d2 100644 --- a/OpenRA.Mods.Cnc/VideoLoaders/WsaLoader.cs +++ b/OpenRA.Mods.Cnc/VideoLoaders/WsaLoader.cs @@ -25,7 +25,7 @@ namespace OpenRA.Mods.Cnc.VideoLoaders if (!IsWsa(s)) return false; - video = new WsaReader(s, useFramePadding); + video = new WsaVideo(s, useFramePadding); return true; }