More misc explicit interface implementations

By-product from making ITick explicit in various places.
This commit is contained in:
reaperrr
2017-09-07 18:18:04 +02:00
committed by Matthias Mailänder
parent 03c3a5f310
commit 85e60ef77f
7 changed files with 10 additions and 10 deletions

View File

@@ -46,6 +46,7 @@ namespace OpenRA.Mods.D2k.Traits
public bool IsAttacking;
int targetCountdown;
bool disposed;
public Sandworm(Actor self, SandwormInfo info)
: base(self, info)
@@ -134,8 +135,7 @@ namespace OpenRA.Mods.D2k.Traits
IsMovingTowardTarget = true;
}
bool disposed;
public void Disposing(Actor self)
void INotifyActorDisposing.Disposing(Actor self)
{
if (disposed)
return;

View File

@@ -59,7 +59,7 @@ namespace OpenRA.Mods.D2k.Traits
}
}
public void OnOwnerChanged(Actor self, Player oldOwner, Player newOwner)
void INotifyOwnerChanged.OnOwnerChanged(Actor self, Player oldOwner, Player newOwner)
{
if (changingOwner == null || changingOwner != newOwner)
originalOwner = newOwner; // It wasn't a temporary change, so we need to update here