Renamed IVideo implementations
To match the interface they are implementing.
This commit is contained in:
committed by
Matthias Mailänder
parent
6f0509d235
commit
248b8d1102
@@ -16,7 +16,7 @@ using OpenRA.Video;
|
|||||||
|
|
||||||
namespace OpenRA.Mods.Cnc.FileFormats
|
namespace OpenRA.Mods.Cnc.FileFormats
|
||||||
{
|
{
|
||||||
public class VqaReader : IVideo
|
public class VqaVideo : IVideo
|
||||||
{
|
{
|
||||||
public ushort FrameCount { get; }
|
public ushort FrameCount { get; }
|
||||||
public byte Framerate { 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
|
// Top half contains block info, bottom half contains references to cbf array
|
||||||
byte[] origData;
|
byte[] origData;
|
||||||
|
|
||||||
public VqaReader(Stream stream, bool useFramePadding)
|
public VqaVideo(Stream stream, bool useFramePadding)
|
||||||
{
|
{
|
||||||
this.stream = stream;
|
this.stream = stream;
|
||||||
|
|
||||||
@@ -15,7 +15,7 @@ using OpenRA.Video;
|
|||||||
|
|
||||||
namespace OpenRA.Mods.Cnc.FileFormats
|
namespace OpenRA.Mods.Cnc.FileFormats
|
||||||
{
|
{
|
||||||
public class WsaReader : IVideo
|
public class WsaVideo : IVideo
|
||||||
{
|
{
|
||||||
public ushort FrameCount { get; }
|
public ushort FrameCount { get; }
|
||||||
public byte Framerate => 1;
|
public byte Framerate => 1;
|
||||||
@@ -39,7 +39,7 @@ namespace OpenRA.Mods.Cnc.FileFormats
|
|||||||
byte[] previousFramePaletteIndexData;
|
byte[] previousFramePaletteIndexData;
|
||||||
byte[] currentFramePaletteIndexData;
|
byte[] currentFramePaletteIndexData;
|
||||||
|
|
||||||
public WsaReader(Stream stream, bool useFramePadding)
|
public WsaVideo(Stream stream, bool useFramePadding)
|
||||||
{
|
{
|
||||||
this.stream = stream;
|
this.stream = stream;
|
||||||
|
|
||||||
@@ -24,7 +24,7 @@ namespace OpenRA.Mods.Cnc.VideoLoaders
|
|||||||
if (!IsWestwoodVqa(s))
|
if (!IsWestwoodVqa(s))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
video = new VqaReader(s, useFramePadding);
|
video = new VqaVideo(s, useFramePadding);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ namespace OpenRA.Mods.Cnc.VideoLoaders
|
|||||||
if (!IsWsa(s))
|
if (!IsWsa(s))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
video = new WsaReader(s, useFramePadding);
|
video = new WsaVideo(s, useFramePadding);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user