Simplify Fly interface.
This commit is contained in:
@@ -92,7 +92,7 @@ namespace OpenRA.Mods.RA
|
||||
if (flare != null)
|
||||
a.QueueActivity(new CallFunc(() => flare.Destroy()));
|
||||
|
||||
a.QueueActivity(Fly.ToPos(finishEdge + spawnOffset));
|
||||
a.QueueActivity(new Fly(a, Target.FromPos(finishEdge + spawnOffset)));
|
||||
a.QueueActivity(new RemoveSelf());
|
||||
}
|
||||
});
|
||||
|
||||
@@ -38,7 +38,7 @@ namespace OpenRA.Mods.RA
|
||||
});
|
||||
|
||||
plane.CancelActivity();
|
||||
plane.QueueActivity(Fly.ToCell(order.TargetLocation));
|
||||
plane.QueueActivity(new Fly(plane, Target.FromCell(order.TargetLocation)));
|
||||
plane.QueueActivity(new CallFunc(() => plane.World.AddFrameEndTask( w =>
|
||||
{
|
||||
var camera = w.CreateActor("camera", new TypeDictionary
|
||||
|
||||
Reference in New Issue
Block a user