Rename SelectionBoxRenderable to SelectionBoxAnnotationRenderable.

This commit is contained in:
Paul Chote
2019-09-15 12:37:23 +01:00
committed by abcdefg30
parent 43e84c89ef
commit 1599eac66c
5 changed files with 10 additions and 10 deletions

View File

@@ -14,16 +14,16 @@ using OpenRA.Primitives;
namespace OpenRA.Mods.Common.Graphics
{
public struct SelectionBoxRenderable : IRenderable, IFinalizedRenderable
public struct SelectionBoxAnnotationRenderable : IRenderable, IFinalizedRenderable
{
readonly WPos pos;
readonly Rectangle decorationBounds;
readonly Color color;
public SelectionBoxRenderable(Actor actor, Rectangle decorationBounds, Color color)
public SelectionBoxAnnotationRenderable(Actor actor, Rectangle decorationBounds, Color color)
: this(actor.CenterPosition, decorationBounds, color) { }
public SelectionBoxRenderable(WPos pos, Rectangle decorationBounds, Color color)
public SelectionBoxAnnotationRenderable(WPos pos, Rectangle decorationBounds, Color color)
{
this.pos = pos;
this.decorationBounds = decorationBounds;
@@ -38,7 +38,7 @@ namespace OpenRA.Mods.Common.Graphics
public IRenderable WithPalette(PaletteReference newPalette) { return this; }
public IRenderable WithZOffset(int newOffset) { return this; }
public IRenderable OffsetBy(WVec vec) { return new SelectionBoxRenderable(pos + vec, decorationBounds, color); }
public IRenderable OffsetBy(WVec vec) { return new SelectionBoxAnnotationRenderable(pos + vec, decorationBounds, color); }
public IRenderable AsDecoration() { return this; }
public IFinalizedRenderable PrepareRender(WorldRenderer wr) { return this; }