Add WAngle-compatible airstrike/paratrooper APIs.
This commit is contained in:
@@ -28,10 +28,18 @@ namespace OpenRA.Mods.Common.Scripting
|
||||
}
|
||||
|
||||
[Desc("Activate the actor's Paratroopers Power. Returns the aircraft that will drop the reinforcements.")]
|
||||
public Actor[] ActivateParatroopers(WPos target, int facing = -1)
|
||||
public Actor[] TargetParatroopers(WPos target, WAngle? facing = null)
|
||||
{
|
||||
var actors = pp.SendParatroopers(Self, target, facing);
|
||||
return actors.First;
|
||||
}
|
||||
|
||||
[Desc("Activate the actor's Paratroopers Power. Returns the aircraft that will drop the reinforcements. DEPRECATED! Will be removed.")]
|
||||
public Actor[] ActivateParatroopers(WPos target, int facing = -1)
|
||||
{
|
||||
Game.Debug("SendParatroopersFrom is deprecated. Use TargetParatroopers instead.");
|
||||
var actors = pp.SendParatroopers(Self, target, facing == -1 ? (WAngle?)null : WAngle.FromFacing(facing));
|
||||
return actors.First;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user