Use expression body syntax
This commit is contained in:
@@ -61,10 +61,10 @@ namespace OpenRA.Mods.Cnc.Graphics
|
||||
cache = new IFinalizedRenderable[] { };
|
||||
}
|
||||
|
||||
public WPos Pos { get { return pos; } }
|
||||
public PaletteReference Palette { get { return null; } }
|
||||
public int ZOffset { get { return zOffset; } }
|
||||
public bool IsDecoration { get { return true; } }
|
||||
public WPos Pos => pos;
|
||||
public PaletteReference Palette => null;
|
||||
public int ZOffset => zOffset;
|
||||
public bool IsDecoration => true;
|
||||
|
||||
public IPalettedRenderable WithPalette(PaletteReference newPalette)
|
||||
{
|
||||
|
||||
@@ -32,8 +32,8 @@ namespace OpenRA.Mods.Cnc.Graphics
|
||||
readonly uint frames;
|
||||
readonly uint limbs;
|
||||
|
||||
uint IModel.Frames { get { return frames; } }
|
||||
uint IModel.Sections { get { return limbs; } }
|
||||
uint IModel.Frames => frames;
|
||||
uint IModel.Sections => limbs;
|
||||
|
||||
public Voxel(VoxelLoader loader, VxlReader vxl, HvaReader hva, (string Vxl, string Hva) files)
|
||||
{
|
||||
|
||||
@@ -114,7 +114,7 @@ namespace OpenRA.Mods.Cnc.Graphics
|
||||
return models[model].ContainsKey(sequence);
|
||||
}
|
||||
|
||||
public IVertexBuffer<Vertex> VertexBuffer { get { return loader.VertexBuffer; } }
|
||||
public IVertexBuffer<Vertex> VertexBuffer => loader.VertexBuffer;
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user