Beispiel #1
0
        protected override void Configure()
        {
            //var config = LoadConfig();
            _container = new WinRTContainer();
            _container.RegisterWinRTServices();

            _container.UseMapEditor();
            _container.UseResource()
            .UseResourceManager(new Uri("ms-appx:///Assets/Config/Shaders.json"),
                                new Uri("ms-appx:///Assets/Config/TileSets.json"),
                                new Uri("ms-appx:///Assets/Config/Sprites/Infantry.json"),
                                new Uri("ms-appx:///Assets/Config/Art/Infantry.json"))
            .UseRulesLoader(new Uri("ms-appx:///Assets/Config/Rules/Infantry.json"));
            _container.UseAudio();
            _eventAggregator = _container.GetInstance <IEventAggregator>();
            ViewModelBinder.ApplyConventionsByDefault = false;
        }