Use read-only autoimplemented property when possible
This commit is contained in:
committed by
atlimit8
parent
79f321cb44
commit
7eb64ea6fc
@@ -70,11 +70,11 @@ namespace OpenRA.Mods.Common.SpriteLoaders
|
||||
{
|
||||
public class TgaFrame : ISpriteFrame
|
||||
{
|
||||
public SpriteFrameType Type { get; private set; }
|
||||
public Size Size { get; private set; }
|
||||
public Size FrameSize { get; private set; }
|
||||
public float2 Offset { get; private set; }
|
||||
public byte[] Data { get; private set; }
|
||||
public SpriteFrameType Type { get; }
|
||||
public Size Size { get; }
|
||||
public Size FrameSize { get; }
|
||||
public float2 Offset { get; }
|
||||
public byte[] Data { get; }
|
||||
public bool DisableExportPadding => false;
|
||||
|
||||
public TgaFrame()
|
||||
@@ -106,7 +106,7 @@ namespace OpenRA.Mods.Common.SpriteLoaders
|
||||
}
|
||||
}
|
||||
|
||||
public IReadOnlyList<ISpriteFrame> Frames { get; private set; }
|
||||
public IReadOnlyList<ISpriteFrame> Frames { get; }
|
||||
|
||||
public TgaSprite(Stream stream)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user