mirror of
https://github.com/space-wizards/RobustToolboxTemplate.git
synced 2026-10-24 06:12:50 -04:00
ohno
This commit is contained in:
parent
5bec4a5921
commit
50c6173d91
14 changed files with 261 additions and 8 deletions
46
Content.Shared/EntryPoint.cs
Normal file
46
Content.Shared/EntryPoint.cs
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
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
|
||||
{
|
||||
// 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
|
||||
// language. Robust doesn't support changing this mid-game. Load your config file early
|
||||
// if you want that.
|
||||
private const string Culture = "en-US";
|
||||
|
||||
public override void PreInit()
|
||||
{
|
||||
Console.WriteLine("BLUH");
|
||||
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));
|
||||
// TODO: Document what else you might want to put here
|
||||
}
|
||||
|
||||
public override void Init()
|
||||
{
|
||||
// TODO: Document what you put here
|
||||
}
|
||||
|
||||
public override void PostInit()
|
||||
{
|
||||
base.PostInit();
|
||||
// DEVNOTE: You might want to put special init handlers for, say, tiles here.
|
||||
// TODO: Document what else you might want to put here
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue