mirror of
https://github.com/space-wizards/RobustToolboxTemplate.git
synced 2026-03-28 07:23:32 -04:00
Update files to work on latest engine version
This commit is contained in:
parent
761dc47152
commit
18b2eb4da7
3 changed files with 6 additions and 15 deletions
|
|
@ -1,9 +1,6 @@
|
||||||
using Robust.Shared.ContentPack;
|
using Robust.Shared.ContentPack;
|
||||||
using Robust.Shared.Interfaces.Configuration;
|
using Robust.Shared.GameObjects;
|
||||||
using Robust.Shared.Interfaces.GameObjects;
|
|
||||||
using Robust.Shared.Interfaces.Map;
|
|
||||||
using Robust.Shared.IoC;
|
using Robust.Shared.IoC;
|
||||||
using Robust.Shared.Map;
|
|
||||||
using Robust.Shared.Prototypes;
|
using Robust.Shared.Prototypes;
|
||||||
using Robust.Shared.Timing;
|
using Robust.Shared.Timing;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
using Robust.Shared.ContentPack;
|
using Robust.Shared.ContentPack;
|
||||||
using Robust.Shared.Interfaces.GameObjects;
|
using Robust.Shared.GameObjects;
|
||||||
using Robust.Shared.IoC;
|
using Robust.Shared.IoC;
|
||||||
using Robust.Shared.Timing;
|
using Robust.Shared.Timing;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,7 @@
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using Robust.Shared.ContentPack;
|
using Robust.Shared.ContentPack;
|
||||||
using Robust.Shared.IoC;
|
using Robust.Shared.IoC;
|
||||||
using Robust.Shared.Localization;
|
using Robust.Shared.Localization;
|
||||||
using Robust.Shared.Localization.Macros;
|
|
||||||
using Robust.Shared.Prototypes;
|
|
||||||
|
|
||||||
namespace Content.Shared
|
namespace Content.Shared
|
||||||
{
|
{
|
||||||
|
|
@ -20,13 +16,11 @@ namespace Content.Shared
|
||||||
public override void PreInit()
|
public override void PreInit()
|
||||||
{
|
{
|
||||||
IoCManager.InjectDependencies(this);
|
IoCManager.InjectDependencies(this);
|
||||||
var textMacroFactory = IoCManager.Resolve<ITextMacroFactory>();
|
|
||||||
textMacroFactory.DoAutoRegistrations();
|
|
||||||
|
|
||||||
// Default to en-US.
|
// Default to en-US.
|
||||||
// DEVNOTE: If you want your game to be multiregional at runtime, you'll need to
|
// DEVNOTE: If you want your game to be multiregional at runtime, you'll need to
|
||||||
// do something more complicated here.
|
// do something more complicated here.
|
||||||
Loc.LoadCulture(new CultureInfo(Culture));
|
IoCManager.Resolve<ILocalizationManager>().LoadCulture(new CultureInfo(Culture));
|
||||||
// TODO: Document what else you might want to put here
|
// TODO: Document what else you might want to put here
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue