public PlayingView(
            ContentManager content, 
            SpriteBatch spriteBatch,
            PlayingViewModel viewModel,
            LevelView levelView,
            DebugViewXNA debugView, 
            SoundManagerView soundManagerView)
        {
            this.content = content;
            this.soundManagerView = soundManagerView;
            this.spriteBatch = spriteBatch;
            this.viewModel = viewModel;
            this.levelView = levelView;

            this.debugView = debugView;
        }
Example #2
0
        /// <summary>
        /// Allows the game to perform any initialization it needs to before starting to run.
        /// This is where it can query for any required services and load any non-graphic
        /// related content.  Calling base.Initialize will enumerate through any components
        /// and initialize them as well.
        /// </summary>
        protected override void Initialize()
        {
            base.Initialize();
            Bootstrapper bootstrapper = new Bootstrapper(this.Content, this.spriteBatch);

            this.conductorView = bootstrapper.GetInstance<ConductorView>();
            this.inputManager = bootstrapper.GetInstance<MouseInputManager>();
            this.keyInputManager = bootstrapper.GetInstance<KeyboardInputManager>();
            this.soundManagerView = bootstrapper.GetInstance<SoundManagerView>();

            IConductorViewModel conductorViewModel = bootstrapper.GetInstance<IConductorViewModel>();
            conductorViewModel.Push(typeof(TitleViewModel));

            this.soundManagerView.LoadContent(this.Content);
            ISoundManager soundManager = bootstrapper.GetInstance<ISoundManager>();
            soundManager.PlayMusic();
        }