Refactored ticks to delay per issue #9810

This commit is contained in:
Jonathan Ling
2016-02-06 23:18:08 -05:00
committed by colonelpopcorn
parent 689f05c3ca
commit 2d4c3f715f
11 changed files with 58 additions and 31 deletions

View File

@@ -17,7 +17,7 @@ namespace OpenRA.Traits
{
public class DrawLineToTargetInfo : ITraitInfo
{
public readonly int Ticks = 60;
public readonly int Delay = 60;
public virtual object Create(ActorInitializer init) { return new DrawLineToTarget(init.Self, this); }
}
@@ -38,7 +38,7 @@ namespace OpenRA.Traits
this.c = c;
if (display)
lifetime = info.Ticks;
lifetime = info.Delay;
}
public void SetTargets(Actor self, List<Target> targets, Color c, bool display)
@@ -47,7 +47,7 @@ namespace OpenRA.Traits
this.c = c;
if (display)
lifetime = info.Ticks;
lifetime = info.Delay;
}
public void Selected(Actor a)
@@ -56,7 +56,7 @@ namespace OpenRA.Traits
return;
// Reset the order line timeout.
lifetime = info.Ticks;
lifetime = info.Delay;
}
public IEnumerable<IRenderable> RenderAfterWorld(WorldRenderer wr)