Пример #1
0
        public override void PreInit()
        {
            IoCManager.InjectDependencies(this);

            // Default to en-US.
            Loc.LoadCulture(_resourceManager, new CultureInfo(Culture));
        }
Пример #2
0
        public override void PreInit()
        {
            IoCManager.InjectDependencies(this);

            _textMacroFactory.DoAutoRegistrations();

            // Default to en-US.
            Loc.LoadCulture(_resourceManager, _textMacroFactory, new CultureInfo(Culture));
        }
Пример #3
0
        public override void PreInit()
        {
            IoCManager.InjectDependencies(this);

            var textMacroFactory = IoCManager.Resolve <ITextMacroFactory>();

            textMacroFactory.DoAutoRegistrations();

            // Default to en-US.
            Loc.LoadCulture(new CultureInfo(Culture));
        }
Пример #4
0
        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));
            // TODO: Document what else you might want to put here
        }