Use expression body syntax
This commit is contained in:
@@ -48,10 +48,10 @@ namespace OpenRA.Mods.Common.SpriteLoaders
|
||||
{
|
||||
public SpriteFrameType Type { get; private set; }
|
||||
public Size Size { get; private set; }
|
||||
public Size FrameSize { get { return Size; } }
|
||||
public float2 Offset { get { return float2.Zero; } }
|
||||
public Size FrameSize => Size;
|
||||
public float2 Offset => float2.Zero;
|
||||
public byte[] Data { get; private set; }
|
||||
public bool DisableExportPadding { get { return false; } }
|
||||
public bool DisableExportPadding => false;
|
||||
|
||||
public DdsFrame(Stream stream)
|
||||
{
|
||||
|
||||
@@ -39,7 +39,7 @@ namespace OpenRA.Mods.Common.SpriteLoaders
|
||||
public Size FrameSize { get; set; }
|
||||
public float2 Offset { get; set; }
|
||||
public byte[] Data { get; set; }
|
||||
public bool DisableExportPadding { get { return false; } }
|
||||
public bool DisableExportPadding => false;
|
||||
}
|
||||
|
||||
public bool TryParseSprite(Stream s, out ISpriteFrame[] frames, out TypeDictionary metadata)
|
||||
|
||||
@@ -20,12 +20,12 @@ namespace OpenRA.Mods.Common.SpriteLoaders
|
||||
{
|
||||
class ShpTSFrame : ISpriteFrame
|
||||
{
|
||||
public SpriteFrameType Type { get { return SpriteFrameType.Indexed8; } }
|
||||
public SpriteFrameType Type => SpriteFrameType.Indexed8;
|
||||
public Size Size { get; private set; }
|
||||
public Size FrameSize { get; private set; }
|
||||
public float2 Offset { get; private set; }
|
||||
public byte[] Data { get; set; }
|
||||
public bool DisableExportPadding { get { return false; } }
|
||||
public bool DisableExportPadding => false;
|
||||
|
||||
public readonly uint FileOffset;
|
||||
public readonly byte Format;
|
||||
|
||||
@@ -73,7 +73,7 @@ namespace OpenRA.Mods.Common.SpriteLoaders
|
||||
public Size FrameSize { get; private set; }
|
||||
public float2 Offset { get; private set; }
|
||||
public byte[] Data { get; private set; }
|
||||
public bool DisableExportPadding { get { return false; } }
|
||||
public bool DisableExportPadding => false;
|
||||
|
||||
public TgaFrame()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user