Merge PlaceSimpleBeacon and AnimatedBeacon into PlaceBeacon and Beacon

This commit is contained in:
abcdefg30
2018-12-26 10:36:42 +01:00
committed by reaperrr
parent 8edbf665c5
commit 8578ce1346
8 changed files with 34 additions and 13 deletions

View File

@@ -30,7 +30,9 @@ namespace OpenRA.Mods.Common.Scripting
public Beacon New(Player owner, WPos position, int duration = 30 * 25, bool showRadarPings = true)
{
var beacon = owner.PlayerActor.Info.TraitInfo<PlaceBeaconInfo>();
var playerBeacon = new Beacon(owner, position, duration, beacon.Palette, beacon.IsPlayerPalette, beacon.BeaconImage, beacon.ArrowSequence, beacon.CircleSequence);
var playerBeacon = new Beacon(owner, position, duration, beacon.Palette, beacon.IsPlayerPalette,
beacon.BeaconImage, beacon.BeaconSequence, beacon.ArrowSequence, beacon.CircleSequence);
owner.PlayerActor.World.AddFrameEndTask(w => w.Add(playerBeacon));
if (showRadarPings && radarPings != null)