Contrail trait

This commit is contained in:
Caleb Anderson
2010-10-23 23:29:38 -05:00
committed by Chris Forbes
parent ff7daf8727
commit c568dfa486
6 changed files with 139 additions and 3 deletions

View File

@@ -105,6 +105,12 @@ namespace OpenRA.Graphics
image.Sprite.DrawAt( image.Pos, this.GetPaletteIndex( image.Palette ) );
uiOverlay.Draw(this, world);
// added for contrails
foreach (var a in world.Actors)
if (!a.Destroyed)
foreach (var t in a.TraitsImplementing<IPostRender>())
t.RenderAfterWorld(this, a);
if (world.OrderGenerator != null)
world.OrderGenerator.RenderAfterWorld(this, world);