restart button added for singleplayer in cnc, ra, d2k

This commit is contained in:
Alexander Heinz
2015-01-31 13:58:19 +01:00
committed by Whinis
parent 5516291c60
commit e0c033fe99
5 changed files with 126 additions and 1 deletions

View File

@@ -175,6 +175,12 @@ namespace OpenRA
GC.Collect();
}
public static void RestartGame()
{
OrderManager.World.EndGame();
StartGame(OrderManager.World.Map.Uid, WorldType.Regular);
}
public static bool IsHost
{
get