Remove deprecated airstrike and paratrooper methods for Lua

This commit is contained in:
abcdefg30
2022-05-11 13:10:14 +02:00
committed by atlimit8
parent 7ec74749be
commit 4ec19b3486
2 changed files with 0 additions and 25 deletions

View File

@@ -32,22 +32,5 @@ namespace OpenRA.Mods.Common.Scripting
{
return ap.SendAirstrike(Self, target, facing);
}
[Desc("Activate the actor's Airstrike Power. DEPRECATED! Will be removed.")]
public void SendAirstrike(WPos target, bool randomize = true, int facing = 0)
{
TextNotificationsManager.Debug("SendAirstrike is deprecated. Use TargetAirstrike instead.");
ap.SendAirstrike(Self, target, randomize ? (WAngle?)null : WAngle.FromFacing(facing));
}
[Desc("Activate the actor's Airstrike Power. DEPRECATED! Will be removed.")]
public void SendAirstrikeFrom(CPos from, CPos to)
{
TextNotificationsManager.Debug("SendAirstrikeFrom is deprecated. Use TargetAirstrike instead.");
var i = Self.World.Map.CenterOfCell(from);
var j = Self.World.Map.CenterOfCell(to);
ap.SendAirstrike(Self, j, (i - j).Yaw);
}
}
}

View File

@@ -33,13 +33,5 @@ namespace OpenRA.Mods.Common.Scripting
var actors = pp.SendParatroopers(Self, target, facing);
return actors.Aircraft;
}
[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)
{
TextNotificationsManager.Debug("SendParatroopersFrom is deprecated. Use TargetParatroopers instead.");
var actors = pp.SendParatroopers(Self, target, facing == -1 ? (WAngle?)null : WAngle.FromFacing(facing));
return actors.Aircraft;
}
}
}