<commit_before>﻿// Original Work Copyright (c) <NAME> 2014-2016
// This file is subject to the GPL v2 License
// For additional details, see the LICENSE file

using EndlessClient.GameExecution;
using EOLib.DependencyInjection;
using Microsoft.Practices.Unity;
using Microsoft.Xna.Framework;

namespace EndlessClient
{
    public class XNAControlsDependencyContainer : IInitializableContainer
    {
        public void RegisterDependencies(IUnityContainer container)
        {
        }

        public void InitializeDependencies(IUnityContainer container)
        {
            var game = (Game)container.Resolve<IEndlessGame>();
            XNAControls.GameRepository.SetGame(game);

            //todo: remove this once converted to new XNAControls code
            XNAControls.Old.XNAControls.Initialize(game);
            XNAControls.Old.XNAControls.IgnoreEnterForDialogs = true;
            XNAControls.Old.XNAControls.IgnoreEscForDialogs = true;
        }
    }
}
<commit_msg>Remove old XNAControls code from initialization. Crash & burn if old XNAControls are used.<commit_after>﻿// Original Work Copyright (c) <NAME> 2014-2016
// This file is subject to the GPL v2 License
// For additional details, see the LICENSE file

using EndlessClient.GameExecution;
using EOLib.DependencyInjection;
using Microsoft.Practices.Unity;
using Microsoft.Xna.Framework;

namespace EndlessClient
{
    public class XNAControlsDependencyContainer : IInitializableContainer
    {
        public void RegisterDependencies(IUnityContainer container)
        {
        }

        public void InitializeDependencies(IUnityContainer container)
        {
            var game = (Game)container.Resolve<IEndlessGame>();
            XNAControls.GameRepository.SetGame(game);
        }
    }
}

{'fraction_non_alphanumeric': 0.07211267605633803, 'fraction_numerical': 0.010140845070422535, 'mean_word_length': 3.2285714285714286, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5928437', 'n_tokens_mistral': 484, 'n_tokens_neox': 456, 'n_words': 124}