Add support for custom SupportPowerInstances.

This commit is contained in:
Paul Chote
2018-10-07 15:02:04 +00:00
committed by reaperrr
parent 61c56dcb00
commit e03abdc0da
2 changed files with 35 additions and 30 deletions

View File

@@ -125,6 +125,11 @@ namespace OpenRA.Mods.Common.Traits
this.info = info;
}
public virtual SupportPowerInstance CreateInstance(string key, SupportPowerManager manager)
{
return new SupportPowerInstance(key, info, manager);
}
public virtual void Charging(Actor self, string key)
{
Game.Sound.PlayToPlayer(SoundType.UI, self.Owner, Info.BeginChargeSound);