Renamed IVideo implementations

To match the interface they are implementing.
This commit is contained in:
penev92
2021-09-22 02:27:37 +03:00
committed by Matthias Mailänder
parent 6f0509d235
commit 248b8d1102
4 changed files with 6 additions and 6 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;
}

View File

@@ -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;
}