Overhaul ingame timer displays. Fixes #3062.

This commit is contained in:
Paul Chote
2014-03-12 12:23:24 +13:00
parent 1079f37a68
commit a7d6f717c4
9 changed files with 112 additions and 53 deletions

View File

@@ -31,6 +31,7 @@ namespace OpenRA
Queue<Action<World>> frameEndActions = new Queue<Action<World>>();
public int FrameNumber { get { return orderManager.LocalFrameNumber; } }
public int Timestep;
internal readonly OrderManager orderManager;
public Session LobbyInfo { get { return orderManager.LobbyInfo; } }
@@ -190,6 +191,7 @@ namespace OpenRA
public bool PredictedPaused { get; internal set; }
public bool PauseStateLocked { get; set; }
public bool IsShellmap = false;
public int WorldTick { get; private set; }
public void SetPauseState(bool paused)
{
@@ -209,6 +211,8 @@ namespace OpenRA
{
if (!Paused && (!IsShellmap || Game.Settings.Game.ShowShellmap))
{
WorldTick++;
using (new PerfSample("tick_idle"))
foreach (var ni in ActorsWithTrait<INotifyIdle>())
if (ni.Actor.IsIdle)