mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
Prototype load parallelization (#3502)
This commit is contained in:
committed by
GitHub
parent
2aafb21772
commit
84733a335c
@@ -90,7 +90,7 @@ namespace Robust.Server
|
||||
[Dependency] private readonly IServerConsoleHost _consoleHost = default!;
|
||||
[Dependency] private readonly IParallelManagerInternal _parallelMgr = default!;
|
||||
[Dependency] private readonly ProfManager _prof = default!;
|
||||
[Dependency] private readonly IPrototypeManager _prototype = default!;
|
||||
[Dependency] private readonly IPrototypeManagerInternal _prototype = default!;
|
||||
[Dependency] private readonly IPlacementManager _placement = default!;
|
||||
[Dependency] private readonly IServerViewVariablesInternal _viewVariables = default!;
|
||||
[Dependency] private readonly ISerializationManager _serialization = default!;
|
||||
@@ -317,11 +317,11 @@ namespace Robust.Server
|
||||
|
||||
//IoCManager.Resolve<IMapLoader>().LoadedMapData +=
|
||||
// IoCManager.Resolve<IRobustMappedStringSerializer>().AddStrings;
|
||||
_prototype.LoadedData += (yaml, name) =>
|
||||
_prototype.LoadedData += data =>
|
||||
{
|
||||
if (!_stringSerializer.Locked)
|
||||
{
|
||||
_stringSerializer.AddStrings(yaml);
|
||||
_stringSerializer.AddStrings(data.Root);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user