Remove redundant IBodyOrientation[Info] & replace with BodyOrientation[Info]

This commit is contained in:
atlimit8
2015-09-15 22:57:08 -05:00
parent 59edf85513
commit 45112cfa76
34 changed files with 65 additions and 79 deletions

View File

@@ -18,7 +18,7 @@ using OpenRA.Traits;
namespace OpenRA.Mods.Common.Effects
{
[Desc("Draw a colored contrail behind this actor when they move.")]
class ContrailInfo : ITraitInfo, Requires<IBodyOrientationInfo>
class ContrailInfo : ITraitInfo, Requires<BodyOrientationInfo>
{
[Desc("Position relative to body")]
public readonly WVec Offset = WVec.Zero;
@@ -38,7 +38,7 @@ namespace OpenRA.Mods.Common.Effects
class Contrail : ITick, IRender
{
readonly ContrailInfo info;
readonly IBodyOrientation body;
readonly BodyOrientation body;
// This is a mutable struct, so it can't be readonly.
ContrailRenderable trail;
@@ -50,7 +50,7 @@ namespace OpenRA.Mods.Common.Effects
var color = info.UsePlayerColor ? ContrailRenderable.ChooseColor(self) : info.Color;
trail = new ContrailRenderable(self.World, color, info.TrailLength, 0, 0);
body = self.Trait<IBodyOrientation>();
body = self.Trait<BodyOrientation>();
}
public void Tick(Actor self)