Move upload commands to engine (#4072)

This commit is contained in:
Leon Friedrich
2023-05-20 13:53:05 +12:00
committed by GitHub
parent 36a124a3aa
commit ccec1cbdf3
17 changed files with 601 additions and 1 deletions

View File

@@ -15,6 +15,7 @@ using Robust.Server.Replays;
using Robust.Server.Scripting;
using Robust.Server.ServerHub;
using Robust.Server.ServerStatus;
using Robust.Server.Upload;
using Robust.Server.Utility;
using Robust.Server.ViewVariables;
using Robust.Shared;
@@ -35,6 +36,7 @@ using Robust.Shared.Serialization;
using Robust.Shared.Serialization.Manager;
using Robust.Shared.Threading;
using Robust.Shared.Timing;
using Robust.Shared.Upload;
using Robust.Shared.Utility;
using Serilog.Debugging;
using Serilog.Sinks.Loki;
@@ -98,6 +100,8 @@ namespace Robust.Server
[Dependency] private readonly IStatusHost _statusHost = default!;
[Dependency] private readonly IComponentFactory _componentFactory = default!;
[Dependency] private readonly IInternalReplayRecordingManager _replay = default!;
[Dependency] private readonly IGamePrototypeLoadManager _protoLoadMan = default!;
[Dependency] private readonly NetworkResourceManager _netResMan = default!;
private readonly Stopwatch _uptimeStopwatch = new();
@@ -377,6 +381,8 @@ namespace Robust.Server
_stateManager.TransformNetId = reg.NetID.Value;
_scriptHost.Initialize();
_protoLoadMan.Initialize();
_netResMan.Initialize();
_modLoader.BroadcastRunLevel(ModRunLevel.PostInit);