mirror of
https://github.com/space-wizards/RobustToolboxTemplate.git
synced 2026-02-10 08:14:49 -05: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,15 +1,12 @@
|
|||
using Robust.Shared.ContentPack;
|
||||
using Robust.Shared.Interfaces.Configuration;
|
||||
using Robust.Shared.Interfaces.GameObjects;
|
||||
using Robust.Shared.Interfaces.Map;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.IoC;
|
||||
using Robust.Shared.Map;
|
||||
using Robust.Shared.Prototypes;
|
||||
using Robust.Shared.Timing;
|
||||
|
||||
namespace Content.Client
|
||||
{
|
||||
public class EntryPoint: GameClient
|
||||
public class EntryPoint : GameClient
|
||||
{
|
||||
public override void Init()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
using Robust.Shared.ContentPack;
|
||||
using Robust.Shared.Interfaces.GameObjects;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.IoC;
|
||||
using Robust.Shared.Timing;
|
||||
|
||||
namespace Content.Server
|
||||
{
|
||||
public class EntryPoint: GameServer
|
||||
public class EntryPoint : GameServer
|
||||
{
|
||||
public override void Init() {
|
||||
base.Init();
|
||||
|
|
|
|||
|
|
@ -1,15 +1,11 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using Robust.Shared.ContentPack;
|
||||
using Robust.Shared.IoC;
|
||||
using Robust.Shared.Localization;
|
||||
using Robust.Shared.Localization.Macros;
|
||||
using Robust.Shared.Prototypes;
|
||||
|
||||
namespace Content.Shared
|
||||
{
|
||||
public class EntryPoint: GameShared
|
||||
public class EntryPoint : GameShared
|
||||
{
|
||||
// See line 25. Controls the default game culture and language.
|
||||
// Robust calls this culture, but you might find it more fitting to call it the game
|
||||
|
|
@ -20,13 +16,11 @@ namespace Content.Shared
|
|||
public override void PreInit()
|
||||
{
|
||||
IoCManager.InjectDependencies(this);
|
||||
var textMacroFactory = IoCManager.Resolve<ITextMacroFactory>();
|
||||
textMacroFactory.DoAutoRegistrations();
|
||||
|
||||
// Default to en-US.
|
||||
// DEVNOTE: If you want your game to be multiregional at runtime, you'll need to
|
||||
// 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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue