Added INotifyBurstComplete trait interface to notify when a full salvo has been fired

This commit is contained in:
teees
2016-04-21 11:23:50 +02:00
committed by Oliver Brakmann
parent 8de91be069
commit 524bc3d45f
2 changed files with 4 additions and 0 deletions

View File

@@ -249,6 +249,9 @@ namespace OpenRA.Mods.Common.Traits
.Select(m => m.GetReloadModifier());
FireDelay = Util.ApplyPercentageModifiers(Weapon.ReloadDelay, modifiers);
Burst = Weapon.Burst;
foreach (var nbc in self.TraitsImplementing<INotifyBurstComplete>())
nbc.FiredBurst(self, target, this);
}
return barrel;