Introduce INotifyDiscovered interface and use it to move notifications from EnemyWatcher to AnnounceOnSeen

This commit is contained in:
penev92
2015-02-22 22:33:51 +02:00
parent eb0ea8d543
commit 1b616123ef
3 changed files with 51 additions and 29 deletions

View File

@@ -104,6 +104,7 @@ namespace OpenRA.Traits
public interface INotifyEffectiveOwnerChanged { void OnEffectiveOwnerChanged(Actor self, Player oldEffectiveOwner, Player newEffectiveOwner); }
public interface INotifyCapture { void OnCapture(Actor self, Actor captor, Player oldOwner, Player newOwner); }
public interface INotifyInfiltrated { void Infiltrated(Actor self, Actor infiltrator); }
public interface INotifyDiscovered { void OnDiscovered(Actor self, Player discoverer, bool playNotification); }
public interface IDisableMove { bool MoveDisabled(Actor self); }
public interface ISeedableResource { void Seed(Actor self); }