Display yellow footprint for cells that trigger damage in D2k.

This commit is contained in:
Paul Chote
2019-05-18 18:45:52 +00:00
committed by reaperrr
parent 3b2b093e0e
commit 697935f931
6 changed files with 96 additions and 6 deletions

View File

@@ -42,7 +42,7 @@ namespace OpenRA.Mods.Common.Traits
public class FootprintPlaceBuildingPreview { }
class FootprintPlaceBuildingPreviewPreview : IPlaceBuildingPreview
public class FootprintPlaceBuildingPreviewPreview : IPlaceBuildingPreview
{
protected readonly ActorInfo actorInfo;
protected readonly WVec centerOffset;
@@ -72,7 +72,7 @@ namespace OpenRA.Mods.Common.Traits
protected virtual void TickInner() { }
protected IEnumerable<IRenderable> RenderFootprint(WorldRenderer wr, CPos topLeft, Dictionary<CPos, PlaceBuildingCellType> footprint,
protected virtual IEnumerable<IRenderable> RenderFootprint(WorldRenderer wr, CPos topLeft, Dictionary<CPos, PlaceBuildingCellType> footprint,
PlaceBuildingCellType filter = PlaceBuildingCellType.Invalid | PlaceBuildingCellType.Valid | PlaceBuildingCellType.LineBuild)
{
var cellPalette = wr.Palette(info.Palette);