Added OwnerLostAction

Allows customisation of what will happen to an actor when its owner
loses.
This commit is contained in:
Mustafa Alperen Seki
2018-03-23 11:49:20 +03:00
committed by Paul Chote
parent 0d23070c8e
commit 367a7f617c
7 changed files with 106 additions and 5 deletions

View File

@@ -181,6 +181,7 @@ namespace OpenRA.Traits
public interface INotifyActorDisposing { void Disposing(Actor self); }
public interface INotifyOwnerChanged { void OnOwnerChanged(Actor self, Player oldOwner, Player newOwner); }
public interface INotifyEffectiveOwnerChanged { void OnEffectiveOwnerChanged(Actor self, Player oldEffectiveOwner, Player newEffectiveOwner); }
public interface INotifyOwnerLost { void OnOwnerLost(Actor self); }
[RequireExplicitImplementation]
public interface IVoiced