Implement a utility command to check for explicit

interface implementation violations
This commit is contained in:
Taryn Hill
2015-11-28 18:49:43 -06:00
parent 3ccbb480ad
commit 2e861c6d65
3 changed files with 127 additions and 0 deletions

View File

@@ -19,6 +19,8 @@ using OpenRA.Primitives;
namespace OpenRA.Traits
{
public sealed class RequireExplicitImplementationAttribute : Attribute { }
public enum DamageState { Undamaged, Light, Medium, Heavy, Critical, Dead }
public interface IHealth
@@ -249,6 +251,8 @@ namespace OpenRA.Traits
public interface ILoadsPlayerPalettes { void LoadPlayerPalettes(WorldRenderer wr, string playerName, HSLColor playerColor, bool replaceExisting); }
public interface IPaletteModifier { void AdjustPalette(IReadOnlyDictionary<string, MutablePalette> b); }
public interface IPips { IEnumerable<PipType> GetPips(Actor self); }
[RequireExplicitImplementation]
public interface ISelectionBar { float GetValue(); Color GetColor(); }
public interface IPositionableInfo : ITraitInfoInterface { }