Use SpriteLoader for frame exporting.
This commit is contained in:
@@ -23,6 +23,7 @@ namespace OpenRA.FileFormats
|
||||
public Size FrameSize { get; private set; }
|
||||
public float2 Offset { get; private set; }
|
||||
public byte[] Data { get; set; }
|
||||
public bool DisableExportPadding { get { return true; } }
|
||||
|
||||
public R8Image(Stream s)
|
||||
{
|
||||
|
||||
@@ -30,6 +30,7 @@ namespace OpenRA.FileFormats
|
||||
public Size FrameSize { get { return Size; } }
|
||||
public float2 Offset { get { return float2.Zero; } }
|
||||
public byte[] Data { get; set; }
|
||||
public bool DisableExportPadding { get { return false; } }
|
||||
|
||||
public Frame(Stream s)
|
||||
{
|
||||
|
||||
@@ -27,6 +27,7 @@ namespace OpenRA.FileFormats
|
||||
public Size FrameSize { get { return reader.Size; } }
|
||||
public float2 Offset { get { return float2.Zero; } }
|
||||
public byte[] Data { get; set; }
|
||||
public bool DisableExportPadding { get { return false; } }
|
||||
|
||||
public uint FileOffset;
|
||||
public Format Format;
|
||||
|
||||
@@ -22,6 +22,7 @@ namespace OpenRA.FileFormats
|
||||
public Size FrameSize { get; private set; }
|
||||
public float2 Offset { get; private set; }
|
||||
public byte[] Data { get; set; }
|
||||
public bool DisableExportPadding { get { return false; } }
|
||||
|
||||
public readonly uint FileOffset;
|
||||
public readonly byte Format;
|
||||
|
||||
@@ -20,6 +20,7 @@ namespace OpenRA.FileFormats
|
||||
public Size FrameSize { get; private set; }
|
||||
public float2 Offset { get { return float2.Zero; } }
|
||||
public byte[] Data { get; set; }
|
||||
public bool DisableExportPadding { get { return false; } }
|
||||
|
||||
public TmpTile(byte[] data, Size size)
|
||||
{
|
||||
|
||||
@@ -21,6 +21,7 @@ namespace OpenRA.FileFormats
|
||||
public Size FrameSize { get { return Size; } }
|
||||
public float2 Offset { get { return float2.Zero; } }
|
||||
public byte[] Data { get; set; }
|
||||
public bool DisableExportPadding { get { return false; } }
|
||||
|
||||
public TmpTSTile(Stream s, Size size)
|
||||
{
|
||||
|
||||
@@ -20,6 +20,7 @@ namespace OpenRA.Graphics
|
||||
Size FrameSize { get; }
|
||||
float2 Offset { get; }
|
||||
byte[] Data { get; }
|
||||
bool DisableExportPadding { get; }
|
||||
}
|
||||
|
||||
public interface ISpriteSource
|
||||
|
||||
Reference in New Issue
Block a user