Merge pull request #11398 from obrakmann/inotifyfiredsalvo

Added INotifyBurstComplete interface
This commit is contained in:
reaperrr
2016-06-04 22:54:54 +02:00
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;

View File

@@ -35,6 +35,7 @@ namespace OpenRA.Mods.Common.Traits
}
public interface INotifyAttack { void Attacking(Actor self, Target target, Armament a, Barrel barrel); }
public interface INotifyBurstComplete { void FiredBurst(Actor self, Target target, Armament a); }
public interface INotifyCharging { void Charging(Actor self, Target target); }
public interface INotifyChat { bool OnChat(string from, string message); }
public interface INotifyParachuteLanded { void OnLanded(Actor ignore); }