Merge pull request #11398 from obrakmann/inotifyfiredsalvo
Added INotifyBurstComplete interface
This commit is contained in:
@@ -249,6 +249,9 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
.Select(m => m.GetReloadModifier());
|
.Select(m => m.GetReloadModifier());
|
||||||
FireDelay = Util.ApplyPercentageModifiers(Weapon.ReloadDelay, modifiers);
|
FireDelay = Util.ApplyPercentageModifiers(Weapon.ReloadDelay, modifiers);
|
||||||
Burst = Weapon.Burst;
|
Burst = Weapon.Burst;
|
||||||
|
|
||||||
|
foreach (var nbc in self.TraitsImplementing<INotifyBurstComplete>())
|
||||||
|
nbc.FiredBurst(self, target, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
return barrel;
|
return barrel;
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
}
|
}
|
||||||
|
|
||||||
public interface INotifyAttack { void Attacking(Actor self, Target target, Armament a, Barrel barrel); }
|
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 INotifyCharging { void Charging(Actor self, Target target); }
|
||||||
public interface INotifyChat { bool OnChat(string from, string message); }
|
public interface INotifyChat { bool OnChat(string from, string message); }
|
||||||
public interface INotifyParachuteLanded { void OnLanded(Actor ignore); }
|
public interface INotifyParachuteLanded { void OnLanded(Actor ignore); }
|
||||||
|
|||||||
Reference in New Issue
Block a user