Add support for custom SupportPowerInstances.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user