Change IPlaceBuildingDecorationInfo to use annotations.

This commit is contained in:
Paul Chote
2019-09-01 18:59:08 +01:00
committed by abcdefg30
parent 7d1ce0c83b
commit 0ff078968d
10 changed files with 20 additions and 16 deletions

View File

@@ -91,9 +91,6 @@ namespace OpenRA.Mods.Common.Traits
if (palette != null)
previewRenderables = previewRenderables.Select(a => a.IsDecoration ? a : a.WithPalette(palette));
foreach (var r in RenderDecorations(wr, topLeft))
yield return r;
if (info.FootprintUnderPreview != PlaceBuildingCellType.None)
foreach (var r in RenderFootprint(wr, topLeft, footprint, info.FootprintUnderPreview))
yield return r;