mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
ftl hot reloading (#5874)
* sloth is so going to kill me * the voices in my head told me to do this * Register ILocalizationManagerInternal on client * Avoid breaking change * Cleanup * Release notes
This commit is contained in:
@@ -11,6 +11,7 @@ using Robust.Server.Containers;
|
||||
using Robust.Server.Debugging;
|
||||
using Robust.Server.GameObjects;
|
||||
using Robust.Server.GameStates;
|
||||
using Robust.Server.Localization;
|
||||
using Robust.Server.Physics;
|
||||
using Robust.Server.Player;
|
||||
using Robust.Server.Prototypes;
|
||||
@@ -192,7 +193,7 @@ namespace Robust.UnitTesting.Server
|
||||
container.Register<INetConfigurationManagerInternal, ServerNetConfigurationManager>();
|
||||
container.Register<IDynamicTypeFactory, DynamicTypeFactory>();
|
||||
container.Register<IDynamicTypeFactoryInternal, DynamicTypeFactory>();
|
||||
container.Register<ILocalizationManager, LocalizationManager>();
|
||||
container.Register<ILocalizationManager, ServerLocalizationManager>();
|
||||
container.Register<IModLoader, TestingModLoader>();
|
||||
container.Register<IModLoaderInternal, TestingModLoader>();
|
||||
container.Register<ProfManager, ProfManager>();
|
||||
|
||||
@@ -31,6 +31,7 @@ term1 = 2
|
||||
res.MountString("/Locale/en-US/a.ftl", DuplicateTerm);
|
||||
|
||||
var loc = IoCManager.Resolve<ILocalizationManager>();
|
||||
loc.Initialize();
|
||||
|
||||
var spyLog = (SpyLogManager) IoCManager.Resolve<ILogManager>();
|
||||
var culture = new CultureInfo("en-US", false);
|
||||
|
||||
@@ -34,6 +34,7 @@ namespace Robust.UnitTesting.Shared.Localization
|
||||
|
||||
var loc = IoCManager.Resolve<ILocalizationManager>();
|
||||
var culture = new CultureInfo("en-US", false);
|
||||
loc.Initialize();
|
||||
loc.LoadCulture(culture);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user