Add INotifyAiming interface
And trigger notifications from Attack* traits.
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user