Implement loading screens.

This commit is contained in:
Paul Chote
2019-04-20 10:32:21 +00:00
committed by reaperrr
parent 1f3b30c2d2
commit 3a693d8def
16 changed files with 260 additions and 10 deletions

View File

@@ -30,9 +30,10 @@ namespace OpenRA.Mods.Common.Traits
this.info = info;
}
public void WorldLoaded(World world, WorldRenderer wr)
void IWorldLoaded.WorldLoaded(World world, WorldRenderer wr)
{
Game.Sound.PlayNotification(world.Map.Rules, null, "Speech", info.Notification, world.RenderPlayer == null ? null : world.RenderPlayer.Faction.InternalName);
if (!world.IsLoadingGameSave)
Game.Sound.PlayNotification(world.Map.Rules, null, "Speech", info.Notification, world.RenderPlayer == null ? null : world.RenderPlayer.Faction.InternalName);
}
}
}