move Mobile et al into Mods/

This commit is contained in:
Bob
2010-10-22 11:31:13 +13:00
parent 6513bd5fe0
commit 0d9cf63dd2
34 changed files with 68 additions and 42 deletions

View File

@@ -129,9 +129,9 @@ namespace OpenRA.Traits
}
else
{
var mobile = a.TraitOrDefault<Mobile>();
if (mobile != null)
return new[] { mobile.fromCell, mobile.toCell };
var ios = a.TraitOrDefault<IOccupySpace>();
if (ios != null)
return ios.OccupiedCells();
else
return new[] { (1f / Game.CellSize * a.CenterLocation).ToInt2() };
}