Move INotifySold to Common and require explicit implementation

This commit is contained in:
reaperrr
2016-10-20 18:44:29 +02:00
parent b8c04a0887
commit 22dcb1c66f
20 changed files with 53 additions and 43 deletions

View File

@@ -76,9 +76,13 @@ namespace OpenRA.Mods.Common.Traits
reservedForAircraft.UnReserve();
}
public void Selling(Actor self) { Sold(self); }
void INotifySold.Selling(Actor self)
{
if (reservedForAircraft != null)
reservedForAircraft.UnReserve();
}
public void Sold(Actor self)
void INotifySold.Sold(Actor self)
{
if (reservedForAircraft != null)
reservedForAircraft.UnReserve();