Massive Namespace Cleanup (#3120)
* Engine namespace changes.
* Automated remove redundant using statements.
* Simplified Graphics namespace.
* Apparently the container system stores full type names in the map file.😞 This updates those names.
* API Changes to LocalizationManager.LoadCulture.
* Update submodule to v0.3.2
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using Content.Shared.Chemistry;
|
||||
using Content.Shared.Maps;
|
||||
using Robust.Shared.ContentPack;
|
||||
using Robust.Shared.Interfaces.Map;
|
||||
using Robust.Shared.IoC;
|
||||
using Robust.Shared.Localization;
|
||||
using Robust.Shared.Localization.Macros;
|
||||
using Robust.Shared.Log;
|
||||
using Robust.Shared.Map;
|
||||
using Robust.Shared.Prototypes;
|
||||
|
||||
namespace Content.Shared
|
||||
@@ -20,16 +20,17 @@ namespace Content.Shared
|
||||
|
||||
[Dependency] private readonly IPrototypeManager _prototypeManager = default!;
|
||||
[Dependency] private readonly ITileDefinitionManager _tileDefinitionManager = default!;
|
||||
[Dependency] private readonly ITextMacroFactory _textMacroFactory = default!;
|
||||
[Dependency] private readonly IResourceManager _resourceManager = default!;
|
||||
|
||||
public override void PreInit()
|
||||
{
|
||||
IoCManager.InjectDependencies(this);
|
||||
|
||||
var textMacroFactory = IoCManager.Resolve<ITextMacroFactory>();
|
||||
textMacroFactory.DoAutoRegistrations();
|
||||
_textMacroFactory.DoAutoRegistrations();
|
||||
|
||||
// Default to en-US.
|
||||
Loc.LoadCulture(new CultureInfo(Culture));
|
||||
Loc.LoadCulture(_resourceManager, _textMacroFactory, new CultureInfo(Culture));
|
||||
}
|
||||
|
||||
public override void Init()
|
||||
|
||||
Reference in New Issue
Block a user