Remove deprecated airstrike and paratrooper methods for Lua
This commit is contained in:
@@ -32,22 +32,5 @@ namespace OpenRA.Mods.Common.Scripting
|
|||||||
{
|
{
|
||||||
return ap.SendAirstrike(Self, target, facing);
|
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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,13 +33,5 @@ namespace OpenRA.Mods.Common.Scripting
|
|||||||
var actors = pp.SendParatroopers(Self, target, facing);
|
var actors = pp.SendParatroopers(Self, target, facing);
|
||||||
return actors.Aircraft;
|
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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user