Require explicit IGameOver

This commit is contained in:
reaperrr
2017-09-27 22:01:11 +02:00
committed by abcdefg30
parent 2b391d5724
commit 6f790938d0
2 changed files with 3 additions and 2 deletions

View File

@@ -354,6 +354,7 @@ namespace OpenRA.Traits
IEnumerable<WPos> TargetablePositions(Actor self);
}
[RequireExplicitImplementation]
public interface IGameOver { void GameOver(World world); }
public interface IWarhead

View File

@@ -116,7 +116,7 @@ namespace OpenRA.Mods.Common.Traits
return playlist;
}
public void GameOver(World world)
void IGameOver.GameOver(World world)
{
if (world.LocalPlayer != null && world.LocalPlayer.WinState == WinState.Won)
{
@@ -222,7 +222,7 @@ namespace OpenRA.Mods.Common.Traits
}
}
public void Disposing(Actor self)
void INotifyActorDisposing.Disposing(Actor self)
{
if (currentSong != null)
Game.Sound.StopMusic();