diff --git a/OpenRA.Game/OpenRA.Game.csproj b/OpenRA.Game/OpenRA.Game.csproj index 9bf40cad2a..3f30d687e7 100644 --- a/OpenRA.Game/OpenRA.Game.csproj +++ b/OpenRA.Game/OpenRA.Game.csproj @@ -222,6 +222,7 @@ + diff --git a/OpenRA.Game/Traits/DebugPauseState.cs b/OpenRA.Game/Traits/DebugPauseState.cs new file mode 100644 index 0000000000..e97dd31404 --- /dev/null +++ b/OpenRA.Game/Traits/DebugPauseState.cs @@ -0,0 +1,27 @@ +#region Copyright & License Information +/* + * Copyright 2007-2011 The OpenRA Developers (see AUTHORS) + * This file is part of OpenRA, which is free software. It is made + * available to you under the terms of the GNU General Public License + * as published by the Free Software Foundation. For more information, + * see COPYING. + */ +#endregion + +using System.Collections.Generic; +using OpenRA.Network; + +namespace OpenRA.Traits +{ + public class DebugPauseStateInfo : ITraitInfo + { + public object Create(ActorInitializer init) { return new DebugPauseState(init.world); } + } + + public class DebugPauseState : ISync + { + World world; + [Sync] public bool Paused { get { return world.Paused; } } + public DebugPauseState(World world) { this.world = world; } + } +} diff --git a/mods/cnc-classic/rules/system.yaml b/mods/cnc-classic/rules/system.yaml index 196bc5d8b1..35a79a5e8a 100644 --- a/mods/cnc-classic/rules/system.yaml +++ b/mods/cnc-classic/rules/system.yaml @@ -207,6 +207,7 @@ World: Shroud: PathFinder: ValidateOrder: + DebugPauseState: CRATE: Tooltip: diff --git a/mods/cnc/rules/system.yaml b/mods/cnc/rules/system.yaml index 569b1e6a0a..5136ebc526 100644 --- a/mods/cnc/rules/system.yaml +++ b/mods/cnc/rules/system.yaml @@ -312,6 +312,7 @@ World: WaterChance: 0 PathFinder: ValidateOrder: + DebugPauseState: ConquestObjectivesPanel: ObjectivesPanel: CONQUEST_OBJECTIVES diff --git a/mods/d2k/rules/system.yaml b/mods/d2k/rules/system.yaml index 7d0dd0623b..4ae5a989c6 100644 --- a/mods/d2k/rules/system.yaml +++ b/mods/d2k/rules/system.yaml @@ -392,6 +392,7 @@ World: Fog: PathFinder: ValidateOrder: + DebugPauseState: CRATE: Tooltip: diff --git a/mods/ra-classic/rules/system.yaml b/mods/ra-classic/rules/system.yaml index 74eceda6f7..6eccd968ca 100644 --- a/mods/ra-classic/rules/system.yaml +++ b/mods/ra-classic/rules/system.yaml @@ -239,6 +239,7 @@ World: Shroud: PathFinder: ValidateOrder: + DebugPauseState: MINP: Mine: diff --git a/mods/ra/rules/system.yaml b/mods/ra/rules/system.yaml index 04dba4b76d..970f1dd8e1 100644 --- a/mods/ra/rules/system.yaml +++ b/mods/ra/rules/system.yaml @@ -625,6 +625,7 @@ World: Fog: PathFinder: ValidateOrder: + DebugPauseState: MINP: Mine: