Skip to content

Commit

Permalink
PauseManager moved to Shared (#3288)
Browse files Browse the repository at this point in the history
* Namespace changes for moving IPauseManager to shared.

* Namespace changes for moving ITimerManager from Timers to Timing.

* Rebase Fixes.

* Update engine submodule to v0.3.8
  • Loading branch information
Acruid authored Feb 19, 2021
1 parent c996021 commit d1b5a31
Show file tree
Hide file tree
Showing 34 changed files with 38 additions and 43 deletions.
1 change: 0 additions & 1 deletion Content.Client/Chat/SpeechBubble.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
using Robust.Client.UserInterface.Controls;
using Robust.Shared.GameObjects;
using Robust.Shared.Maths;
using Robust.Shared.Timers;
using Robust.Shared.Timing;

namespace Content.Client.Chat
Expand Down
2 changes: 1 addition & 1 deletion Content.Client/Command/CommunicationsConsoleMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using Robust.Shared.IoC;
using Robust.Shared.Localization;
using Robust.Shared.Maths;
using Timer = Robust.Shared.Timers.Timer;
using Timer = Robust.Shared.Timing.Timer;

namespace Content.Client.Command
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using Content.Shared.AI;
Expand All @@ -10,7 +10,7 @@
using Robust.Shared.Maths;
using Robust.Shared.Prototypes;
using Robust.Shared.Random;
using Robust.Shared.Timers;
using Robust.Shared.Timing;

namespace Content.Client.GameObjects.EntitySystems.AI
{
Expand Down
2 changes: 1 addition & 1 deletion Content.Client/GameObjects/EntitySystems/VerbSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
using Robust.Shared.Maths;
using Robust.Shared.Timing;
using Robust.Shared.Utility;
using Timer = Robust.Shared.Timers.Timer;
using Timer = Robust.Shared.Timing.Timer;

namespace Content.Client.GameObjects.EntitySystems
{
Expand Down
1 change: 0 additions & 1 deletion Content.Client/Instruments/InstrumentMenu.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
using Robust.Shared.IoC;
using Robust.Shared.Localization;
using Robust.Shared.Maths;
using Robust.Shared.Timers;
using Robust.Shared.Timing;
using Range = Robust.Client.UserInterface.Controls.Range;

Expand Down
2 changes: 1 addition & 1 deletion Content.IntegrationTests/ContentIntegrationTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
using Content.Shared;
using NUnit.Framework;
using Robust.Server.Maps;
using Robust.Server.Timing;
using Robust.Shared.ContentPack;
using Robust.Shared.IoC;
using Robust.Shared.Map;
using Robust.Shared.Network;
using Robust.Shared.Timing;
using Robust.UnitTesting;

namespace Content.IntegrationTests
Expand Down
4 changes: 2 additions & 2 deletions Content.IntegrationTests/Tests/EntityTest.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Content.Shared.Utility;
using NUnit.Framework;
using Robust.Server.Timing;
using Robust.Shared.GameObjects;
using Robust.Shared.Log;
using Robust.Shared.Map;
using Robust.Shared.Prototypes;
using Robust.Shared.Timing;

namespace Content.IntegrationTests.Tests
{
Expand Down
3 changes: 1 addition & 2 deletions Content.IntegrationTests/Tests/Fluids/PuddleTest.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
using System;
using System;
using System.Threading.Tasks;
using Content.Server.GameObjects.Components.Fluids;
using Content.Shared.Chemistry;
using Content.Shared.Utility;
using NUnit.Framework;
using Robust.Server.Timing;
using Robust.Shared.GameObjects;
using Robust.Shared.Map;
using Robust.Shared.Timing;
Expand Down
4 changes: 2 additions & 2 deletions Content.IntegrationTests/Tests/SaveLoadSaveTest.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using System.IO;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using NUnit.Framework;
using Robust.Server.Maps;
using Robust.Server.Timing;
using Robust.Shared.ContentPack;
using Robust.Shared.Map;
using Robust.Shared.Timing;
using Robust.Shared.Utility;

namespace Content.IntegrationTests.Tests
Expand Down
2 changes: 1 addition & 1 deletion Content.Server/Commands/GameTicking/MappingCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
using Content.Server.Administration;
using Content.Shared.Administration;
using Robust.Server.Player;
using Robust.Server.Timing;
using Robust.Shared.Console;
using Robust.Shared.IoC;
using Robust.Shared.Map;
using Robust.Shared.Maths;
using Robust.Shared.Timing;
using Robust.Shared.Utility;

namespace Content.Server.Commands.GameTicking
Expand Down
2 changes: 1 addition & 1 deletion Content.Server/Commands/MakeSentientCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Robust.Shared.Console;
using Robust.Shared.GameObjects;
using Robust.Shared.IoC;
using Timer = Robust.Shared.Timers.Timer;
using Timer = Robust.Shared.Timing.Timer;

namespace Content.Server.Commands
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
using Robust.Shared.Serialization;
using Robust.Shared.Timing;
using Robust.Shared.ViewVariables;
using Timer = Robust.Shared.Timers.Timer;
using Timer = Robust.Shared.Timing.Timer;

namespace Content.Server.GameObjects.Components.Disposal
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
using Robust.Shared.Players;
using Robust.Shared.Serialization;
using Robust.Shared.ViewVariables;
using Timer = Robust.Shared.Timers.Timer;
using Timer = Robust.Shared.Timing.Timer;

namespace Content.Server.GameObjects.Components.Doors
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
using Robust.Shared.Localization;
using Robust.Shared.Map;
using Robust.Shared.Serialization;
using Robust.Shared.Timers;
using Robust.Shared.Timing;
using Robust.Shared.Utility;
using Robust.Shared.ViewVariables;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
using Robust.Shared.Utility;
using Robust.Shared.ViewVariables;
using static Content.Shared.GameObjects.Components.SharedWiresComponent;
using Timer = Robust.Shared.Timers.Timer;
using Timer = Robust.Shared.Timing.Timer;

namespace Content.Server.GameObjects.Components.PA
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using Robust.Shared.GameObjects;
using Robust.Shared.Log;
using Robust.Shared.Maths;
using Robust.Shared.Timers;
using Robust.Shared.Timing;

namespace Content.Server.GameObjects.Components.PA
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using Robust.Shared.IoC;
using Robust.Shared.Log;
using Robust.Shared.Maths;
using Timer = Robust.Shared.Timers.Timer;
using Timer = Robust.Shared.Timing.Timer;

namespace Content.Server.GameObjects.Components.Singularity
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
using Robust.Shared.Serialization;
using Robust.Shared.Utility;
using Robust.Shared.ViewVariables;
using Timer = Robust.Shared.Timers.Timer;
using Timer = Robust.Shared.Timing.Timer;

#nullable enable

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
using Robust.Shared.Map;
using Robust.Shared.Physics;
using Robust.Shared.Random;
using Robust.Shared.Timers;
using Robust.Shared.Timing;

namespace Content.Server.GameObjects.Components.Singularity
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
Expand All @@ -9,11 +9,11 @@
using Content.Server.GameObjects.EntitySystems.JobQueues;
using Content.Shared.GameObjects.EntitySystems.ActionBlocker;
using Content.Shared.Utility;
using Robust.Server.Timing;
using Robust.Shared.GameObjects;
using Robust.Shared.IoC;
using Robust.Shared.Map;
using Robust.Shared.Maths;
using Robust.Shared.Timing;
using Robust.Shared.Utility;
using Robust.Shared.ViewVariables;

Expand Down
3 changes: 1 addition & 2 deletions Content.Server/GameObjects/EntitySystems/ApcNetSystem.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
#nullable enable
using Content.Server.GameObjects.Components.NodeContainer.NodeGroups;
using JetBrains.Annotations;
using Robust.Server.Timing;
using Robust.Shared.GameObjects;
using Robust.Shared.IoC;
using Robust.Shared.Map;
using System.Collections.Generic;
using Robust.Shared.Timing;

namespace Content.Server.GameObjects.EntitySystems
{
Expand Down
4 changes: 2 additions & 2 deletions Content.Server/GameObjects/EntitySystems/AtmosphereSystem.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#nullable enable
#nullable enable
using System;
using System.Collections.Generic;
using System.Linq;
Expand All @@ -11,13 +11,13 @@
using Content.Shared.Maps;
using JetBrains.Annotations;
using Robust.Server.GameObjects;
using Robust.Server.Timing;
using Robust.Shared.Configuration;
using Robust.Shared.GameObjects;
using Robust.Shared.IoC;
using Robust.Shared.Map;
using Robust.Shared.Maths;
using Robust.Shared.Prototypes;
using Robust.Shared.Timing;

namespace Content.Server.GameObjects.EntitySystems
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
using Robust.Shared.Players;
using Robust.Shared.Prototypes;
using Robust.Shared.Random;
using Robust.Shared.Timers;

using Robust.Shared.Timing;

namespace Content.Server.GameObjects.EntitySystems
{
Expand Down
2 changes: 1 addition & 1 deletion Content.Server/GameObjects/EntitySystems/RoundEndSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Robust.Shared.IoC;
using Robust.Shared.Localization;
using Robust.Shared.Timing;
using Timer = Robust.Shared.Timers.Timer;
using Timer = Robust.Shared.Timing.Timer;

namespace Content.Server.GameObjects.EntitySystems
{
Expand Down
2 changes: 1 addition & 1 deletion Content.Server/GameObjects/EntitySystems/TriggerSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Linq;
using JetBrains.Annotations;
using Robust.Shared.GameObjects;
using Robust.Shared.Timers;
using Robust.Shared.Timing;

namespace Content.Server.GameObjects.EntitySystems
{
Expand Down
2 changes: 1 addition & 1 deletion Content.Server/GameTicking/GameRules/RuleDeathMatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
using Robust.Shared.GameObjects;
using Robust.Shared.IoC;
using Robust.Shared.Localization;
using Timer = Robust.Shared.Timers.Timer;
using Timer = Robust.Shared.Timing.Timer;

namespace Content.Server.GameTicking.GameRules
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using Robust.Server.Player;
using Robust.Shared.IoC;
using Robust.Shared.Localization;
using Timer = Robust.Shared.Timers.Timer;
using Timer = Robust.Shared.Timing.Timer;

namespace Content.Server.GameTicking.GameRules
{
Expand Down
2 changes: 1 addition & 1 deletion Content.Server/GameTicking/GameRules/RuleMaxTimeRestart.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using Content.Server.Interfaces.GameTicking;
using Robust.Shared.IoC;
using Robust.Shared.Localization;
using Timer = Robust.Shared.Timers.Timer;
using Timer = Robust.Shared.Timing.Timer;

namespace Content.Server.GameTicking.GameRules
{
Expand Down
2 changes: 1 addition & 1 deletion Content.Server/GameTicking/GameRules/RuleSuspicion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
using Robust.Shared.IoC;
using Robust.Shared.Localization;
using Robust.Shared.Timing;
using Timer = Robust.Shared.Timers.Timer;
using Timer = Robust.Shared.Timing.Timer;

namespace Content.Server.GameTicking.GameRules
{
Expand Down
2 changes: 1 addition & 1 deletion Content.Server/GameTicking/GameTicker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
using Robust.Shared.Utility;
using Robust.Shared.ViewVariables;
using static Content.Shared.GameObjects.Components.Inventory.EquipmentSlotDefines;
using Timer = Robust.Shared.Timers.Timer;
using Timer = Robust.Shared.Timing.Timer;

namespace Content.Server.GameTicking
{
Expand Down
2 changes: 1 addition & 1 deletion Content.Server/GameTicking/GameTickerBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using Robust.Server.Player;
using Robust.Shared.Enums;
using Robust.Shared.IoC;
using Robust.Shared.Timers;
using Robust.Shared.Timing;

#nullable enable

Expand Down
2 changes: 1 addition & 1 deletion Content.Server/StationEvents/PowerGridCheck.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Robust.Shared.IoC;
using Robust.Shared.Localization;
using Robust.Shared.Random;
using Timer = Robust.Shared.Timers.Timer;
using Timer = Robust.Shared.Timing.Timer;

namespace Content.Server.StationEvents
{
Expand Down
4 changes: 2 additions & 2 deletions Content.Server/StationEvents/RadiationStorm.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#nullable enable
#nullable enable
using JetBrains.Annotations;
using Content.Server.GameObjects.Components.StationEvents;
using Content.Server.Interfaces.GameTicking;
using Content.Shared.Utility;
using Robust.Server.Timing;
using Robust.Shared.GameObjects;
using Robust.Shared.IoC;
using Robust.Shared.Localization;
using Robust.Shared.Map;
using Robust.Shared.Random;
using Robust.Shared.Timing;

namespace Content.Server.StationEvents
{
Expand Down
2 changes: 1 addition & 1 deletion RobustToolbox
Submodule RobustToolbox updated 28 files
+3 −1 Robust.Client/ClientIoC.cs
+0 −1 Robust.Client/GameController.cs
+0 −11 Robust.Client/GameObjects/Components/IgnorePauseComponent.cs
+1 −1 Robust.Client/UserInterface/Controls/ItemList.cs
+33 −4 Robust.Client/ViewVariables/Instances/ViewVariablesInstanceObject.cs
+0 −1 Robust.Server/BaseServer.cs
+0 −64 Robust.Server/Console/Commands/AddCompCommand.cs
+61 −0 Robust.Server/Console/Commands/AddComponentCommand.cs
+2 −78 Robust.Server/Console/Commands/MapCommands.cs
+59 −0 Robust.Server/Console/Commands/RemoveComponentCommand.cs
+0 −1 Robust.Server/GameObjects/ServerEntityManager.cs
+1 −1 Robust.Server/Maps/MapLoader.cs
+3 −2 Robust.Server/ServerIoC.cs
+0 −98 Robust.Server/Timing/PauseManager.cs
+0 −16 Robust.Server/Timing/PauseManagerExt.cs
+5 −5 Robust.Shared/GameObjects/Components/IgnorePauseComponent.cs
+0 −7 Robust.Shared/GameObjects/Components/SharedIgnorePauseComponent.cs
+1 −1 Robust.Shared/GameObjects/Components/Timers/TimerComponent.cs
+1 −1 Robust.Shared/GameObjects/Components/Timers/TimerExtensions.cs
+1 −1 Robust.Shared/GameObjects/Entity.cs
+4 −6 Robust.Shared/GameObjects/IMapInit.cs
+1 −1 Robust.Shared/SharedIoC.cs
+3 −3 Robust.Shared/Timing/IPauseManager.cs
+1 −2 Robust.Shared/Timing/ITimerManager.cs
+179 −0 Robust.Shared/Timing/PauseManager.cs
+1 −1 Robust.Shared/Timing/Timer.cs
+1 −2 Robust.Shared/Timing/TimerManager.cs
+2 −3 Robust.UnitTesting/Shared/Timing/TimerTest.cs

0 comments on commit d1b5a31

Please sign in to comment.