GPS Satellite.

This commit is contained in:
Paul Chote
2010-12-05 21:04:10 +13:00
parent 172e1eb295
commit cd10fb1db0
6 changed files with 55 additions and 45 deletions

View File

@@ -20,13 +20,15 @@ namespace OpenRA.Mods.RA
public readonly string Image = null;
public readonly string Description = "";
public readonly string LongDesc = "";
public readonly string OrderName;
public readonly bool AllowMultiple = false;
public readonly bool OneShot = false;
public readonly string BeginChargeSound = null;
public readonly string EndChargeSound = null;
public readonly string SelectTargetSound = null;
public readonly string LaunchSound = null;
public readonly bool AllowMultiple = false;
public readonly string OrderName;
public abstract object Create(ActorInitializer init);
public SupportPowerInfo() { OrderName = GetType().Name + "Order"; }
@@ -42,6 +44,16 @@ namespace OpenRA.Mods.RA
Info = info;
this.self = self;
}
public virtual void Charging(Actor self, string key)
{
Sound.PlayToPlayer(self.Owner, Info.BeginChargeSound);
}
public virtual void Charged(Actor self, string key)
{
Sound.PlayToPlayer(self.Owner, Info.EndChargeSound);
}
public virtual void Activate(Actor self, Order order) { }
public virtual IOrderGenerator OrderGenerator(string order, SupportPowerManager manager)