Move Cloak, HiddenUnderFog, FrozenUnderFog into Mods.RA; Simplify a pile of related stuff.

This commit is contained in:
Paul Chote
2010-07-28 21:11:50 +12:00
parent 6854d9853b
commit 8fab45ae39
12 changed files with 38 additions and 52 deletions

View File

@@ -162,11 +162,7 @@ namespace OpenRA.Traits
}
public IEnumerable<int2> RadarSignatureCells(Actor self)
{
foreach (var mod in self.traits.WithInterface<IRadarVisibilityModifier>())
if (!mod.VisibleOnRadar(self))
return new int2[] {};
{
return Footprint.Tiles(self);
}