Add INotifyAiming interface

And trigger notifications from Attack* traits.
This commit is contained in:
reaperrr
2018-05-14 02:56:41 +02:00
committed by Paul Chote
parent 4898873617
commit bd38fe4926
4 changed files with 37 additions and 10 deletions

View File

@@ -88,6 +88,13 @@ namespace OpenRA.Mods.Common.Traits
void WarnCrush(Actor self, Actor crusher, HashSet<string> crushClasses);
}
[RequireExplicitImplementation]
public interface INotifyAiming
{
void StartedAiming(Actor self, AttackBase attack);
void StoppedAiming(Actor self, AttackBase attack);
}
[RequireExplicitImplementation]
public interface INotifyAttack
{