From 04f8a85cc6356ec234dd2e0bb9cf9451b66f305d Mon Sep 17 00:00:00 2001 From: reaperrr Date: Thu, 20 Apr 2017 21:12:07 +0200 Subject: [PATCH] Make LightPaletteRotator interfaces explicit and add desc --- OpenRA.Mods.Cnc/Traits/PaletteEffects/LightPaletteRotator.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/OpenRA.Mods.Cnc/Traits/PaletteEffects/LightPaletteRotator.cs b/OpenRA.Mods.Cnc/Traits/PaletteEffects/LightPaletteRotator.cs index 13ed8c21ad..14a72d7fb3 100644 --- a/OpenRA.Mods.Cnc/Traits/PaletteEffects/LightPaletteRotator.cs +++ b/OpenRA.Mods.Cnc/Traits/PaletteEffects/LightPaletteRotator.cs @@ -18,6 +18,7 @@ namespace OpenRA.Mods.Cnc.Traits [Desc("Palette effect used for blinking \"animations\" on actors.")] class LightPaletteRotatorInfo : ITraitInfo { + [Desc("Palettes this effect should not apply to.")] public readonly HashSet ExcludePalettes = new HashSet(); public object Create(ActorInitializer init) { return new LightPaletteRotator(this); } @@ -33,12 +34,12 @@ namespace OpenRA.Mods.Cnc.Traits this.info = info; } - public void Tick(Actor self) + void ITick.Tick(Actor self) { t += .5f; } - public void AdjustPalette(IReadOnlyDictionary palettes) + void IPaletteModifier.AdjustPalette(IReadOnlyDictionary palettes) { foreach (var pal in palettes) {