more tidy in DrawLineToTarget
This commit is contained in:
@@ -24,21 +24,19 @@ namespace OpenRA.Traits
|
|||||||
public class DrawLineToTarget : IPostRenderSelection
|
public class DrawLineToTarget : IPostRenderSelection
|
||||||
{
|
{
|
||||||
DrawLineToTargetInfo Info;
|
DrawLineToTargetInfo Info;
|
||||||
public DrawLineToTarget(DrawLineToTargetInfo info)
|
|
||||||
{
|
|
||||||
this.Info = info;
|
|
||||||
}
|
|
||||||
|
|
||||||
Target target;
|
Target target;
|
||||||
int lifetime;
|
|
||||||
Color c;
|
Color c;
|
||||||
|
int lifetime;
|
||||||
|
|
||||||
|
public DrawLineToTarget(DrawLineToTargetInfo info) { this.Info = info; }
|
||||||
|
|
||||||
public void SetTarget(Actor self, Target target, Color c, bool display)
|
public void SetTarget(Actor self, Target target, Color c, bool display)
|
||||||
{
|
{
|
||||||
this.target = target;
|
this.target = target;
|
||||||
|
this.c = c;
|
||||||
|
|
||||||
if (display)
|
if (display)
|
||||||
lifetime = Info.Ticks;
|
lifetime = Info.Ticks;
|
||||||
this.c = c;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void RenderAfterWorld(WorldRenderer wr, Actor self)
|
public void RenderAfterWorld(WorldRenderer wr, Actor self)
|
||||||
|
|||||||
Reference in New Issue
Block a user