Use explicit interfaces in WithBuildingPlaced(Overlay|Animation).

This commit is contained in:
Paul Chote
2016-09-04 15:23:23 +01:00
parent 21f9a0ec6c
commit 53f47f8ee1
2 changed files with 15 additions and 15 deletions

View File

@@ -35,26 +35,26 @@ namespace OpenRA.Mods.Common.Traits.Render
buildComplete = !self.Info.HasTraitInfo<BuildingInfo>();
}
public void BuildingComplete(Actor self)
void INotifyBuildComplete.BuildingComplete(Actor self)
{
buildComplete = true;
}
public void Sold(Actor self) { }
public void Selling(Actor self)
void INotifySold.Sold(Actor self) { }
void INotifySold.Selling(Actor self)
{
buildComplete = false;
}
public void BeforeTransform(Actor self)
void INotifyTransform.BeforeTransform(Actor self)
{
buildComplete = false;
}
public void OnTransform(Actor self) { }
public void AfterTransform(Actor self) { }
void INotifyTransform.OnTransform(Actor self) { }
void INotifyTransform.AfterTransform(Actor self) { }
public void BuildingPlaced(Actor self)
void INotifyBuildingPlaced.BuildingPlaced(Actor self)
{
if (buildComplete)
wsb.PlayCustomAnimation(self, info.Sequence, () => wsb.CancelCustomAnimation(self));