From 3f72076e1a13aeb9662f1afef146e44a1d8a54d3 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Thu, 7 Sep 2017 20:40:49 +0100 Subject: [PATCH] Move radar signature interfaces to Mods.Common. --- OpenRA.Game/Traits/TraitsInterfaces.cs | 7 ------- OpenRA.Mods.Common/TraitsInterfaces.cs | 8 ++++++++ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/OpenRA.Game/Traits/TraitsInterfaces.cs b/OpenRA.Game/Traits/TraitsInterfaces.cs index 537ef15458..18f6fe4803 100644 --- a/OpenRA.Game/Traits/TraitsInterfaces.cs +++ b/OpenRA.Game/Traits/TraitsInterfaces.cs @@ -179,11 +179,6 @@ namespace OpenRA.Traits public interface IDisabledTrait { bool IsTraitDisabled { get; } } public interface IDisable { bool Disabled { get; } } - public interface IRadarSignature - { - IEnumerable> RadarSignatureCells(Actor self); - } - public interface IDefaultVisibilityInfo : ITraitInfoInterface { } public interface IDefaultVisibility { bool IsVisible(Actor self, Player byPlayer); } public interface IVisibilityModifier { bool IsVisible(Actor self, Player byPlayer); } @@ -194,8 +189,6 @@ namespace OpenRA.Traits bool HasFogVisibility(); } - public interface IRadarColorModifier { Color RadarColorOverride(Actor self, Color color); } - public interface ITargetableCells { IEnumerable> TargetableCells(); diff --git a/OpenRA.Mods.Common/TraitsInterfaces.cs b/OpenRA.Mods.Common/TraitsInterfaces.cs index d6284a534c..30009d8907 100644 --- a/OpenRA.Mods.Common/TraitsInterfaces.cs +++ b/OpenRA.Mods.Common/TraitsInterfaces.cs @@ -10,6 +10,7 @@ #endregion using System.Collections.Generic; +using System.Drawing; using OpenRA.Activities; using OpenRA.Graphics; using OpenRA.Mods.Common.Activities; @@ -319,4 +320,11 @@ namespace OpenRA.Mods.Common.Traits bool IsMovingVertically { get; set; } bool CanEnterTargetNow(Actor self, Target target); } + + public interface IRadarSignature + { + IEnumerable> RadarSignatureCells(Actor self); + } + + public interface IRadarColorModifier { Color RadarColorOverride(Actor self, Color color); } }