Add RenderUtils

With ZOffsetFromCenter as first feature so render traits don't have to use it from WithTurret(Overlay)
This commit is contained in:
reaperrr
2015-10-04 19:18:53 +02:00
parent abed25d293
commit 72ec431766
9 changed files with 31 additions and 13 deletions

View File

@@ -54,7 +54,7 @@ namespace OpenRA.Mods.Common.Traits
() => body.LocalToWorld(info.Offset.Rotate(body.QuantizeOrientation(self, self.Orientation))),
() => !visible || !buildComplete,
() => info.PauseOnLowPower && self.IsDisabled(),
p => WithTurret.ZOffsetFromCenter(self, p, 1));
p => RenderUtils.ZOffsetFromCenter(self, p, 1));
rs.Add(anim, info.Palette, info.IsPlayerPalette);
}