Iron curtain power implementation; Remove AutoActivate attribute to be part of the GPS implementation

This commit is contained in:
Paul Chote
2010-01-09 00:21:39 +13:00
parent d93a7b766a
commit 86b0ee8c97
12 changed files with 101 additions and 55 deletions

View File

@@ -1,6 +1,7 @@
using System;
using System.IO;
using System.Linq;
using OpenRa.Game.SupportPowers;
namespace OpenRa.Game
{
@@ -31,6 +32,19 @@ namespace OpenRa.Game
this.TargetLocation = targetLocation;
this.TargetString = targetString;
}
// This is a hack - fix me
public readonly ISupportPowerImpl Power;
public Order(string orderString, Actor subject, ISupportPowerImpl power)
{
this.OrderString = orderString;
this.SubjectId = UIntFromActor( subject );
this.Power = power;
this.TargetActorId = UIntFromActor(null);
this.TargetLocation = int2.Zero;
this.TargetString = null;
}
public bool Validate()
{